Re: [U-Boot] [PATCH 4/6] armv8/mmu: Set bits marked RES1 in TCR

2015-03-24 Thread FengHua
> -Original Messages- > From: "Thierry Reding" > Sent Time: 2015-03-20 19:47:51 (Friday) > To: u-boot@lists.denx.de > Cc: "Marc Zyngier" > Subject: [U-Boot] [PATCH 4/6] armv8/mmu: Set bits marked RES1 in TCR > > From: Thierry Reding > > For EL3 and EL2, the documentation says that b

Re: [U-Boot] [PATCH] Vexpress64: Fix the compiling error when CONFIG_ARMV8_MULTIENTRY defined

2015-03-24 Thread FengHua
hi Linus, > -Original Messages- > From: "Linus Walleij" > Sent Time: 2015-03-20 17:39:48 (Friday) > To: FengHua > Cc: "U-Boot Mailing List" , "albert.u.boot" > > Subject: Re: Re: [PATCH] Vexpress64: Fix the compiling error when &g

Re: [U-Boot] [PATCH 6/6] armv8: Allow SoCs to override the generic timer

2015-03-24 Thread FengHua
hi Thierry, > -Original Messages- > From: "Thierry Reding" > Sent Time: 2015-03-20 19:47:53 (Friday) > To: u-boot@lists.denx.de > Cc: "Marc Zyngier" > Subject: [U-Boot] [PATCH 6/6] armv8: Allow SoCs to override the generic timer > > From: Thierry Reding > > Some SoCs come with a cus

Re: [U-Boot] [PATCH 3/6] armv8/mmu: Clean up TCR programming

2015-03-24 Thread FengHua
> -Original Messages- > From: "Thierry Reding" > Sent Time: 2015-03-20 19:47:50 (Friday) > To: u-boot@lists.denx.de > Cc: "Marc Zyngier" > Subject: [U-Boot] [PATCH 3/6] armv8/mmu: Clean up TCR programming > > From: Thierry Reding > > Use the inner shareable attribute for memory, whi

Re: [U-Boot] [PATCH 1/6] armv8/cache: Fix page table creation

2015-03-24 Thread FengHua
> -Original Messages- > From: "Thierry Reding" > Sent Time: 2015-03-20 19:47:48 (Friday) > To: u-boot@lists.denx.de > Cc: "Marc Zyngier" > Subject: [U-Boot] [PATCH 1/6] armv8/cache: Fix page table creation > > From: Thierry Reding > > While generating the page tables, a running inte

Re: [U-Boot] [PATCH 2/6] armv8: Implement CONFIG_SYS_MALLOC_F_LEN support

2015-03-24 Thread FengHua
hi Thierry, > -Original Messages- > From: "Thierry Reding" > Sent Time: 2015-03-20 19:47:49 (Friday) > To: u-boot@lists.denx.de > Cc: "Marc Zyngier" > Subject: [U-Boot] [PATCH 2/6] armv8: Implement CONFIG_SYS_MALLOC_F_LEN support > > From: Thierry Reding > > Implement early malloc()

Re: [U-Boot] [PATCH] Vexpress64: Fix the compiling error when CONFIG_ARMV8_MULTIENTRY defined

2015-03-12 Thread FengHua
> -Original Messages- > From: "Linus Walleij" > Sent Time: 2015-03-10 18:08:03 (Tuesday) > To: "David Feng" > Cc: "U-Boot Mailing List" , "Tom Rini" , > "Albert ARIBAUD" > Subject: Re: [PATCH] Vexpress64: Fix the compiling error when > CONFIG_ARMV8_MULTIENTRY defined > > On Tue, Ma

[U-Boot] [PATCH] Vexpress64: Fix the compiling error when CONFIG_ARMV8_MULTIENTRY defined

2015-03-09 Thread fenghua
From: David Feng CPU_RELEASE_ADDR should be defined when CONFIG_ARMV8_MULTIENTRY is used. Signed-off-by: David Feng --- board/armltd/vexpress64/vexpress64.c |8 include/configs/vexpress_aemv8a.h|9 + 2 files changed, 17 insertions(+) diff --git a/board/armltd/vexp

[U-Boot] [PATCH] Armv8: Initializing CNTVOFF_EL2

2015-03-01 Thread fenghua
From: David Feng Linux-arm64 require that CNTVOFF_EL2 should be programmed with a consistent value on all cpus. Initializing CNTVOFF_EL2 at state transition instead of start.S could prevent potential different value on cpus if ATF exist and u-boot runs at only one cpu. Signed-off-by: David Feng

Re: [U-Boot] [PATCH] ARMv8: Bug fix of dcache_disable()

2015-02-26 Thread FengHua
2015-02-11 23:51:15 (Wednesday) > To: FengHua > Cc: "u-boot@lists.denx.de" , "albert.u.boot" > > Subject: Re: Re: [U-Boot] [PATCH] ARMv8: Bug fix of dcache_disable() > > On Wed, Feb 11, 2015 at 03:26:06AM +, FengHua wrote: > > > > hi Mark, &

Re: [U-Boot] [PATCH] ARMv8: Bug fix of dcache_disable()

2015-02-10 Thread FengHua
hi Mark, Thank you review this patch. > -Original Messages- > From: "Mark Rutland" > Sent Time: 2015-02-09 19:05:54 (Monday) > To: "feng...@phytium.com.cn" > Cc: "u-boot@lists.denx.de" > Subject: Re: [U-Boot] [PATCH] ARMv8: Bug fix of dcache_disable() > > On Mon, Feb 09, 2015 at 0

[U-Boot] [PATCH] ARMv8: Bug fix of dcache_disable()

2015-02-09 Thread fenghua
From: David Feng The cache disable operation shoud be performed after flush_dcache_all(). If cache disable operation is performed before flush_dcache_all(), flush_dcache_all() store data directly to memory and may be overrided by data copy in cache. Signed-off-by: David Feng --- arch/arm/cpu/a

Re: [U-Boot] [PATCH v2] armv8/vexpress64: make multientry conditional

2015-02-04 Thread FengHua
hi Linus, The following is some advice about the multi entry patch. > While the Freescale ARMv8 board LS2085A will enter U-Boot both > on a master and a secondary (slave) CPU, this is not the common > behaviour on ARMv8 platforms. The norm is that U-Boot is entered > from the master

[U-Boot] [RFC PATCH] ARMv8: add Kconfig and CPU_V8 option

2015-02-03 Thread fenghua
From: David Feng This patch add Kconfig to armv8. Signed-off-by: David Feng --- arch/arm/Kconfig | 16 +++- arch/arm/cpu/armv8/Kconfig | 10 ++ 2 files changed, 21 insertions(+), 5 deletions(-) create mode 100644 arch/arm/cpu/armv8/Kconfig diff --git a/arch/

[U-Boot] [RFC PATCH] ARMv8: replace CONFIG_ARM64 with builtin __aarch64__

2015-02-03 Thread fenghua
From: David Feng This patch replace CONFIG_ARM64 with gcc builtin __aarch64__. CONFIG_ARM64 is still needed in makefile and config.mk. Maybe them could be replace with something like *_V8 later. Signed-off-by: David Feng --- arch/arm/include/asm/cache.h|2 +- arch/arm/include/a

[U-Boot] [PATCH v2] PCI: add 64-bit prefetchable memory support

2015-02-02 Thread fenghua
From: David Feng PCI specification allow prefetchable memory to be 32-bit or 64-bit. PCI express specification states that all memmory bars for prefetchable memory must be implemented as 64-bit. They all require that 64 bit prefetchble memory are suported especially when u-boot is ported to more

[U-Boot] [PATCH] PCI: add 64-bit prefetchable memory support

2015-02-01 Thread fenghua
From: David Feng PCI specification allow prefetchable memory to be 32-bit or 64-bit. PCI express specification states that all memmory bars for prefetchable memory must be implemented as 64-bit. They all require that 64 bit prefetchble memory are suported especially when u-boot is ported to more

[U-Boot] [PATCH] ARMv8: bug fix of mmu setup and code optimization

2015-02-01 Thread fenghua
From: David Feng 1. Fix a bug of mmu_setup that variable i and j should be type long instead of int. 2. Give mmu_setup weak attribute so that other implementation can redfine it. 3. A more common set_pgtable_section(). 4. Give device memory PXN and UXN attribute. CPU may speculatively pr

[U-Boot] [PATCH 2/2] ARMv8: enable DM in vexpress64 board

2015-02-01 Thread fenghua
From: David Feng Signed-off-by: David Feng --- board/armltd/vexpress64/vexpress64.c | 13 + include/configs/vexpress_aemv8a.h| 14 -- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/board/armltd/vexpress64/vexpress64.c b/board/armltd/vexpress64/v

[U-Boot] [PATCH 1/2] ARMv8: enable pre-allocation malloc

2015-02-01 Thread fenghua
From: David Feng Allocate memory space for pre-allocation malloc and zero global data. This code is partly from crt0.S. Signed-off-by: David Feng --- arch/arm/include/asm/config.h |4 arch/arm/lib/crt0_64.S| 13 +++-- 2 files changed, 11 insertions(+), 6 deletions(-)

[U-Boot] [PATCH 0/2] ARMv8: driver model enable

2015-02-01 Thread fenghua
From: David Feng Currently serial_pl01x.c driver contain DM and non-DM mode, but it will access static varible in non-DM mode. So, u-boot using non-DM pl01x driver can not be placed in flash. This patch set enable pre-allocation malloc that is required by DM and enable DM in vexpress64 board. Da

Re: [U-Boot] [PATCH v2] armv8/vexpress64: make multientry conditional

2015-02-01 Thread FengHua
hi Linus: > While the Freescale ARMv8 board LS2085A will enter U-Boot both > on a master and a secondary (slave) CPU, this is not the common > behaviour on ARMv8 platforms. The norm is that U-Boot is entered > from the master CPU only, while the other CPUs are kept in > WFI (wait for interru

[U-Boot] [RFC PATCH] ARM: Merge v7 and v8 outer cache operations

2015-02-01 Thread fenghua
From: David Feng Armv7 and Armv8 allow outer cache exist, it is outside of the architecture defined cache hierarchy and can not be manipulated by architecture defined instructions. It's processor specific. This patch merge v7_outer_cache_* and v8 l3_cache_*. Signed-off-by: David Feng --- arch/

[U-Boot] [PATCH] Arm64 fix a bug of vbar_el3 initialization

2014-04-18 Thread fenghua
From: David Feng Signed-off-by: David Feng --- arch/arm/cpu/armv8/start.S |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/cpu/armv8/start.S b/arch/arm/cpu/armv8/start.S index 33d3f36..4b11aa4 100644 --- a/arch/arm/cpu/armv8/start.S +++ b/arch/arm/cpu/armv8/st

Re: [U-Boot] [PATCH v5 3/9] arm: add support for arch timer

2014-04-04 Thread FengHua
> -Original Messages- > From: "Andrianov, Vitaly" > Sent Time: 2014-04-03 19:22:34 (Thursday) > To: "Masahiro Yamada" , "Karicheri, Muralidharan" > > Cc: "Rini, Tom" , "u-boot@lists.denx.de" > Subject: Re: [U-Boot] [PATCH v5 3/9] arm: add support for arch timer > > Hi Masahiro, > >

Re: [U-Boot] CONFIG_REMAKE_ELF for aarch64

2014-04-02 Thread FengHua
> -Original Messages- > From: "York Sun" > Sent Time: 2014-03-22 02:10:39 (Saturday) > To: "Scott Wood" > Cc: FengHua , "u-boot@lists.denx.de" > > Subject: CONFIG_REMAKE_ELF for aarch64 > > Scott, > > I am having a probl

Re: [U-Boot] [PATCH] armv8: Flush dcache before switching to EL2

2014-04-02 Thread FengHua
> -Original Messages- > From: "York Sun" > Sent Time: 2014-04-01 05:40:32 (Tuesday) > To: albert.u.b...@aribaud.net > Cc: u-boot@lists.denx.de, "York Sun" > Subject: [U-Boot] [PATCH] armv8: Flush dcache before switching to EL2 > > For ARMv8, U-boot has been running at EL3 with cache a

Re: [U-Boot] [PATCH] ARMv8: fix bug for flush data cache by set/way

2014-04-01 Thread FengHua
> -Original Messages- > From: "Leo Yan" > Sent Time: 2014-03-31 09:11:47 (Monday) > To: u-boot@lists.denx.de, "David Feng" , "Scott Wood" > > Cc: "Leo Yan" > Subject: [PATCH] ARMv8: fix bug for flush data cache by set/way > > When flush the d$ with set/way instruction, it need calcu

[U-Boot] [PATCH v2] arm64 patch: gicv3 support

2014-03-13 Thread fenghua
From: David Feng This patch add gicv3 support to uboot armv8 platform. Changes for v2: - rename arm/cpu/armv8/gic.S with arm/lib/gic_64.S - move smp_kick_all_cpus() from gic.S to start.S, it would be implementation dependent. - Each core initialize it's own ReDistributor instead of mas

Re: [U-Boot] [PATCH] arm64 patch: gicv3 support

2014-02-24 Thread FengHua
> -Original Messages- > From: "Albert ARIBAUD" > Sent Time: 2014-02-22 00:38:05 (Saturday) > To: feng...@phytium.com.cn > Cc: u-boot@lists.denx.de, tr...@ti.com > Subject: Re: [PATCH] arm64 patch: gicv3 support > > Hi feng...@phytium.com.cn, > > On Wed, 15 Jan 2014 16:10:56 +0800, fen

Re: [U-Boot] [PATCH][RFC v2] add pci 64 bit prefechable mem support

2014-02-13 Thread FengHua
> -Original Messages- > From: "Wolfgang Denk" > Sent Time: 2014-02-14 00:30:24 (Friday) > To: feng...@phytium.com.cn > Cc: u-boot@lists.denx.de, tr...@ti.com, albert.u.b...@aribaud.net > Subject: Re: [PATCH][RFC v2] add pci 64 bit prefechable mem support > > Dear feng...@phytium.com.cn

[U-Boot] [PATCH][RFC v2] add pci 64 bit prefechable mem support

2014-02-13 Thread fenghua
From: David Feng u-boot did not program the upper 32 bits of prefetchable base and limit in pci bridge config space. I think it's needed when 64 bit address space is used. Changes for v1: - use lowest bit of prefechable base(or limit) to determine whether the bridge support 64 bit prefechab

[U-Boot] [PATCH][RFC] add pci bridge 64 bit prefechable mem support

2014-02-13 Thread fenghua
From: David Feng u-boot did not program the upper 32 bits of prefetchable base and limit in pci bridge config space. I think it's needed when 64 bit address space is used. Signed-off-by: David Feng --- drivers/pci/pci_auto.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) di

Re: [U-Boot] [PATCH 1/3] armv8/cache: Consolidate setting for MAIR and TCR

2014-02-12 Thread FengHua
hi York, > -Original Messages- > From: "York Sun" > Sent Time: 2014-02-11 05:55:52 (Tuesday) > To: albert.u.b...@aribaud.net > Cc: scottw...@freescale.com, "York Sun" , "David Feng" > > Subject: [PATCH 1/3] armv8/cache: Consolidate setting for MAIR and TCR > > Move setting for MAIR an

Re: [U-Boot] [RFC] Add 64-bit data support for memory commands

2014-02-12 Thread FengHua
> -Original Messages- > From: "Wolfgang Denk" > Sent Time: 2014-02-13 06:11:01 (Thursday) > To: "York Sun" > Cc: scottw...@freescale.com, u-boot@lists.denx.de > Subject: Re: [U-Boot] [RFC] Add 64-bit data support for memory commands > > Dear York Sun, > > In message <1392240023-25205

[U-Boot] [PATCH] fix address of error message in mtest command

2014-02-12 Thread fenghua
From: David Feng This patch deal with error message of mtest command. When test failed, the mtest command will output error information that include memory address and value. But the address field is not correct or misleading. Signed-off-by: David Feng --- common/cmd_mem.c | 14 +

Re: [U-Boot] [PATCH v15 07/10] arm64: core support

2014-01-23 Thread FengHua
Hi Scott, > -Original Messages- > From: "Scott Wood" > Sent Time: 2014-01-23 08:28:06 (Thursday) > To: FengHua > Cc: "bhupesh.sha...@freescale.com" , > "'tr...@ti.com'" , "'u-boot@lists.denx.de'" >

Re: [U-Boot] U-boot for 64bit ARMv8

2014-01-23 Thread FengHua
> -Original Messages- > From: tiger...@viatech.com.cn > Sent Time: 2014-01-23 14:44:36 (Thursday) > To: u-boot@lists.denx.de > Cc: > Subject: [U-Boot] U-boot for 64bit ARMv8 > > Hi, experts: > I found ARMv8/Exceptions.S only created a 8 items vector table. > > But based on ARMv8 Arch

Re: [U-Boot] [PATCH] fdt_support.c: Correct linux, initrd-start/end setting

2014-01-21 Thread FengHua
> -Original Messages- > From: "Tom Rini" > Sent Time: 2014-01-21 06:47:25 (Tuesday) > To: u-boot@lists.denx.de > Cc: > Subject: [U-Boot] [PATCH] fdt_support.c: Correct linux, initrd-start/end > setting > > The change to add 64bit initrd support broke 32bit initrd support as it > always

Re: [U-Boot] [PATCH] arm64 patch: gicv3 support

2014-01-15 Thread FengHua
> -Original Messages- > From: "bhupesh.sha...@freescale.com" > Sent Time: 2014-01-16 11:45:18 (Thursday) > To: 'FengHua' > Cc: "u-boot@lists.denx.de" , "tr...@ti.com" > , "arnab.b...@freescale.com" > Subject: R

Re: [U-Boot] [PATCH] arm64 patch: gicv3 support

2014-01-15 Thread FengHua
hi bhupesh, > -Original Messages- > From: "bhupesh.sha...@freescale.com" > Sent Time: 2014-01-15 22:19:02 (Wednesday) > To: "'feng...@phytium.com.cn'" , > "u-boot@lists.denx.de" > Cc: "tr...@ti.com" , "arnab.b...@freescale.com" > > Subject: RE: [U-Boot] [PATCH] arm64 patch: gicv3 su

[U-Boot] [PATCH] arm64 patch: gicv3 support

2014-01-15 Thread fenghua
From: David Feng This patch add gicv3 support to uboot armv8 platform. Modifications cover 4 source files, as follows: gic.S: gicv3 initialization and sgi interrupt raising. goc.h: gicv3 register definitions. vexpress_aemv8a.h: add CONFIG_GICV2/CONFIG_GICV3 switch. start.S: set SCR_EL3.NS

Re: [U-Boot] how to get u-boot code with arm64: core support

2014-01-14 Thread FengHua
> -Original Messages- > From: tiger...@viatech.com.cn > Sent Time: 2014-01-15 08:45:16 (Wednesday) > To: scottw...@freescale.com, bhupesh.sha...@freescale.com > Cc: feng...@phytium.com.cn, tr...@ti.com, u-boot@lists.denx.de > Subject: Re: [U-Boot] how to get u-boot code with arm64: core su

Re: [U-Boot] [PATCH v15 07/10] arm64: core support

2014-01-13 Thread FengHua
hi bhupesh, > Hi David, > > In reference to my mail above, I see that the transition to EL2 (from EL3) > which occurs very early > in start.S needs to be changed on lines of the ARMv7 code, i.e. the EL2 > transition should happen just > before Linux is booted up by the u-boot. > > The reason fo

Re: [U-Boot] how to get u-boot code with arm64: core support

2014-01-10 Thread FengHua
hi Tiger, Sorry! It's a little late. Albert has merged arm64 patch set. I have tested and it works fine on Foundation Model. So, you could get it from git tree of u-boot-arm branch. Regards, David > Hi, fenghua: > How to get u-boot code with arch/arm/cpu/armv8 director

Re: [U-Boot] [PATCH v16 02/10] cmd_pxe: remove compiling warnings

2013-12-19 Thread FengHua
> On Sat, Dec 14, 2013 at 9:17 AM, wrote: > > From: David Feng > > > > Signed-off-by: David Feng > > --- > > common/cmd_pxe.c |4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/common/cmd_pxe.c b/common/cmd_pxe.c > > index db6b156..c27ec35 100644 > > --- a/c

[U-Boot] [PATCH v16 09/10] arm64: board support of vexpress_aemv8a

2013-12-13 Thread fenghua
From: David Feng Signed-off-by: David Feng Signed-off-by: Bhupesh Sharma --- board/armltd/vexpress64/Makefile |8 ++ board/armltd/vexpress64/vexpress64.c | 56 ++ boards.cfg |1 + include/configs/vexpress_aemv8a.h| 189 ++

[U-Boot] [PATCH v16 06/10] arm64: Make checkarmreloc accept arm64 relocations

2013-12-13 Thread fenghua
From: Scott Wood Signed-off-by: Scott Wood Signed-off-by: David Feng --- Makefile | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 861f31e..e331d35 100644 --- a/Makefile +++ b/Makefile @@ -742,12 +742,16 @@ tools: $(VERSION_FILE) $(

[U-Boot] [PATCH v16 10/10] arm64: MAKEALL, filter armv8 boards from LIST_arm

2013-12-13 Thread fenghua
From: David Feng Signed-off-by: David Feng --- MAKEALL | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/MAKEALL b/MAKEALL index a74f0fc..562071a 100755 --- a/MAKEALL +++ b/MAKEALL @@ -381,6 +381,12 @@ LIST_ARM11="$(targets_by_cpu arm1136) \ LIST_ARMV7="$(

[U-Boot] [PATCH v16 03/10] add weak entry definition

2013-12-13 Thread fenghua
From: David Feng Signed-off-by: David Feng --- include/linux/linkage.h |4 1 file changed, 4 insertions(+) diff --git a/include/linux/linkage.h b/include/linux/linkage.h index 39c712e..7435fcd 100644 --- a/include/linux/linkage.h +++ b/include/linux/linkage.h @@ -48,6 +48,10 @@

[U-Boot] [PATCH v16 04/10] arm64: Add tool to statically apply RELA relocations

2013-12-13 Thread fenghua
From: Scott Wood ARM64 uses the newer RELA-style relocations rather than the older REL. RELA relocations have an addend in the relocation struct, rather than expecting the loader to read a value from the location to be updated. While this is beneficial for ordinary program loading, it's problema

[U-Boot] [PATCH v16 00/10] arm64 patch

2013-12-13 Thread fenghua
From: David Feng Changes for v16: - make the patches work with latest recently u-boot. add rela relocation type to OBJCFLAGS definition at arm/config.mk. Changes for v15: - modify boot process, u-boot will run at the highest exception level until it prepare jump to OS. - Fix a

[U-Boot] [PATCH v16 05/10] arm64: Turn u-boot.bin back into an ELF file after relocate-rela

2013-12-13 Thread fenghua
From: Scott Wood While performing relocations on u-boot.bin should be good enough for booting on real hardware, some simulators insist on booting an ELF file (and yet don't perform ELF relocations), so convert the relocated binary back into an ELF file. This can go away in the future if we chang

[U-Boot] [PATCH v16 08/10] arm64: generic board support

2013-12-13 Thread fenghua
From: David Feng Signed-off-by: David Feng --- common/board_f.c | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/common/board_f.c b/common/board_f.c index f0664bc..d918e4b 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -462,7 +462,7 @@ static

[U-Boot] [PATCH v16 01/10] fdt_support: 64bit initrd start address support

2013-12-13 Thread fenghua
From: David Feng Signed-off-by: David Feng --- common/fdt_support.c | 66 ++ 1 file changed, 34 insertions(+), 32 deletions(-) diff --git a/common/fdt_support.c b/common/fdt_support.c index 1f0d8f5..a3f7442 100644 --- a/common/fdt_support.c +++

[U-Boot] [PATCH v16 02/10] cmd_pxe: remove compiling warnings

2013-12-13 Thread fenghua
From: David Feng Signed-off-by: David Feng --- common/cmd_pxe.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/cmd_pxe.c b/common/cmd_pxe.c index db6b156..c27ec35 100644 --- a/common/cmd_pxe.c +++ b/common/cmd_pxe.c @@ -59,7 +59,7 @@ static int format_mac_pxe(

Re: [U-Boot] Why u-boot relocate from flash to RAM

2013-12-02 Thread FengHua
> Hi, > > I can't understand that why u-boot code relocate itself form flash to RAM? > why it doesn't execute from flash? > Can anybody explain. Plz > First, flash is slow. Second, there are many data structures or variables which should be writable. So, we should copy u-boot to RAM and relocate

Re: [U-Boot] why u-boot relocate it self to RAM from flash?

2013-12-02 Thread FengHua
> Hi, > > I can not understand why u-boot relocate it self to RAM from flash? Why is > it not executing from flash? > Can anybody explain. > First, flash is slow. Second, there are many data structures or variables which should be writable. So, we should copy u-boot to RAM and relocate it. Reg

Re: [U-Boot] [PATCH v15 07/10] arm64: core support

2013-11-29 Thread FengHua
hi Bhupesh, Thank you for reviewing of the patch. > > +/* > > + * Generic timer implementation of timer_read_counter() > > + */ > > +unsigned long timer_read_counter(void) > > +{ > > + unsigned long cntpct; > > + isb(); > > + asm volatile("mrs %0, cntpct_el0" : "=r" (cntpct)); > > + r

[U-Boot] [PATCH v15 09/10] arm64: board support of vexpress_aemv8a

2013-11-14 Thread fenghua
From: David Feng Signed-off-by: David Feng Signed-off-by: Bhupesh Sharma --- board/armltd/vexpress64/Makefile |8 ++ board/armltd/vexpress64/vexpress64.c | 56 ++ boards.cfg |1 + include/configs/vexpress_aemv8a.h| 189 ++

[U-Boot] [PATCH v15 10/10] arm64: MAKEALL, filter armv8 boards from LIST_arm

2013-11-14 Thread fenghua
From: David Feng Signed-off-by: David Feng --- MAKEALL | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/MAKEALL b/MAKEALL index 80cd4f8..213383d 100755 --- a/MAKEALL +++ b/MAKEALL @@ -368,6 +368,12 @@ LIST_ARM11="$(targets_by_cpu arm1136) \ LIST_ARMV7="$(

[U-Boot] [PATCH v15 08/10] arm64: generic board support

2013-11-14 Thread fenghua
From: David Feng Signed-off-by: David Feng --- common/board_f.c | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/common/board_f.c b/common/board_f.c index f0664bc..d918e4b 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -462,7 +462,7 @@ static

[U-Boot] [PATCH v15 06/10] arm64: Make checkarmreloc accept arm64 relocations

2013-11-14 Thread fenghua
From: Scott Wood Signed-off-by: Scott Wood Signed-off-by: David Feng --- Makefile | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 44546ff..01e1268 100644 --- a/Makefile +++ b/Makefile @@ -771,12 +771,16 @@ tools: $(VERSION_FILE) $(

[U-Boot] [PATCH v15 05/10] arm64: Turn u-boot.bin back into an ELF file after relocate-rela

2013-11-14 Thread fenghua
From: Scott Wood While performing relocations on u-boot.bin should be good enough for booting on real hardware, some simulators insist on booting an ELF file (and yet don't perform ELF relocations), so convert the relocated binary back into an ELF file. This can go away in the future if we chang

[U-Boot] [PATCH v15 03/10] add weak entry definition

2013-11-14 Thread fenghua
From: David Feng Signed-off-by: David Feng --- include/linux/linkage.h |4 1 file changed, 4 insertions(+) diff --git a/include/linux/linkage.h b/include/linux/linkage.h index 39c712e..7435fcd 100644 --- a/include/linux/linkage.h +++ b/include/linux/linkage.h @@ -48,6 +48,10 @@

[U-Boot] [PATCH v15 04/10] arm64: Add tool to statically apply RELA relocations

2013-11-14 Thread fenghua
From: Scott Wood ARM64 uses the newer RELA-style relocations rather than the older REL. RELA relocations have an addend in the relocation struct, rather than expecting the loader to read a value from the location to be updated. While this is beneficial for ordinary program loading, it's problema

[U-Boot] [PATCH v15 01/10] fdt_support: 64bit initrd start address support

2013-11-14 Thread fenghua
From: David Feng Signed-off-by: David Feng --- common/fdt_support.c | 66 ++ 1 file changed, 34 insertions(+), 32 deletions(-) diff --git a/common/fdt_support.c b/common/fdt_support.c index 1f0d8f5..a3f7442 100644 --- a/common/fdt_support.c +++

[U-Boot] [PATCH v15 02/10] cmd_pxe: remove compiling warnings

2013-11-14 Thread fenghua
From: David Feng Signed-off-by: David Feng --- common/cmd_pxe.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/cmd_pxe.c b/common/cmd_pxe.c index db6b156..c27ec35 100644 --- a/common/cmd_pxe.c +++ b/common/cmd_pxe.c @@ -59,7 +59,7 @@ static int format_mac_pxe(

[U-Boot] [PATCH v15 00/10] arm64 patch

2013-11-14 Thread fenghua
From: David Feng Changes for v15: - modify boot process, u-boot will run at the highest exception level until it prepare jump to OS. - Fix a few bugs in cache.S.These bug is reported by York Sun and Scott Wood . - when booting, slaves will wait on WFI, master wakeup slaves

[U-Boot] [RESEND PATCH v14 09/10] arm64: board support of vexpress_aemv8a

2013-10-14 Thread fenghua
From: David Feng Signed-off-by: David Feng Signed-off-by: Bhupesh Sharma --- board/armltd/vexpress64/Makefile | 27 + board/armltd/vexpress64/vexpress64.c | 50 + boards.cfg |1 + include/configs/vexpress_aemv8a.h| 191

[U-Boot] [RESEND PATCH v14 02/10] cmd_pxe: remove compiling warnings

2013-10-14 Thread fenghua
From: David Feng Signed-off-by: David Feng --- common/cmd_pxe.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/cmd_pxe.c b/common/cmd_pxe.c index c5f4a22..1df9a8a 100644 --- a/common/cmd_pxe.c +++ b/common/cmd_pxe.c @@ -57,7 +57,7 @@ static int format_mac_pxe(

[U-Boot] [RESEND PATCH v14 07/10] arm64: core support

2013-10-14 Thread fenghua
From: David Feng Relocation code based on a patch by Scott Wood, which is: Signed-off-by: Scott Wood Signed-off-by: David Feng --- arch/arm/config.mk |3 +- arch/arm/cpu/armv8/Makefile | 38 + arch/arm/cpu/armv8/cache.S | 130 ++

[U-Boot] [RESEND PATCH v14 08/10] arm64: generic board support

2013-10-14 Thread fenghua
From: David Feng Signed-off-by: David Feng --- common/board_f.c | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/common/board_f.c b/common/board_f.c index 0ada1af..d821dbe 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -458,7 +458,7 @@ static

[U-Boot] [RESEND PATCH v14 10/10] arm64: MAKEALL, filter armv8 boards from LIST_arm

2013-10-14 Thread fenghua
From: David Feng Signed-off-by: David Feng --- MAKEALL | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/MAKEALL b/MAKEALL index 956f3da..cb414ca 100755 --- a/MAKEALL +++ b/MAKEALL @@ -370,6 +370,12 @@ LIST_ARM11="$(boards_by_cpu arm1136) \ LIST_ARMV7="$(

[U-Boot] [RESEND PATCH v14 01/10] fdt_support: 64bit initrd start address support

2013-10-14 Thread fenghua
From: David Feng Signed-off-by: David Feng --- common/fdt_support.c | 66 ++ 1 file changed, 34 insertions(+), 32 deletions(-) diff --git a/common/fdt_support.c b/common/fdt_support.c index b034c98..9bc5821 100644 --- a/common/fdt_support.c +++

[U-Boot] [RESEND PATCH v14 04/10] arm64: Add tool to statically apply RELA relocations

2013-10-14 Thread fenghua
From: Scott Wood ARM64 uses the newer RELA-style relocations rather than the older REL. RELA relocations have an addend in the relocation struct, rather than expecting the loader to read a value from the location to be updated. While this is beneficial for ordinary program loading, it's problema

[U-Boot] [RESEND PATCH v14 06/10] arm64: Make checkarmreloc accept arm64 relocations

2013-10-14 Thread fenghua
From: Scott Wood Signed-off-by: Scott Wood Signed-off-by: David Feng --- Makefile | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 86464c9..edf52f2 100644 --- a/Makefile +++ b/Makefile @@ -805,12 +805,16 @@ tools: $(VERSION_FILE) $(

[U-Boot] [RESEND PATCH v14 05/10] arm64: Turn u-boot.bin back into an ELF file after relocate-rela

2013-10-14 Thread fenghua
From: Scott Wood While performing relocations on u-boot.bin should be good enough for booting on real hardware, some simulators insist on booting an ELF file (and yet don't perform ELF relocations), so convert the relocated binary back into an ELF file. This can go away in the future if we chang

[U-Boot] [RESEND PATCH v14 03/10] add weak entry definition

2013-10-14 Thread fenghua
From: David Feng Signed-off-by: David Feng --- include/linux/linkage.h |4 1 file changed, 4 insertions(+) diff --git a/include/linux/linkage.h b/include/linux/linkage.h index 9ddf830..2a2848a 100644 --- a/include/linux/linkage.h +++ b/include/linux/linkage.h @@ -49,6 +49,10 @@

[U-Boot] [RESEND PATCH v14 00/10] arm64 pat

2013-10-14 Thread fenghua
From: David Feng The content is same with original v14. 04/05/06 patches is totally provided by scott wood. Them are mistakenly encoded "From: David Feng", so modify its to "From: Scott Wood". Changes for v14: - Merge rela relocation patches from Scott Wood . - Remove all CONFIG_NEED_M

[U-Boot] [PATCH v14 09/10] arm64: board support of vexpress_aemv8a

2013-10-13 Thread fenghua
From: David Feng Signed-off-by: David Feng Signed-off-by: Bhupesh Sharma --- board/armltd/vexpress64/Makefile | 27 + board/armltd/vexpress64/vexpress64.c | 50 + boards.cfg |1 + include/configs/vexpress_aemv8a.h| 191

[U-Boot] [PATCH v14 09/10] arm64: board support of vexpress_aemv8a

2013-10-12 Thread fenghua
From: David Feng Signed-off-by: David Feng --- board/armltd/vexpress64/Makefile | 27 + board/armltd/vexpress64/vexpress64.c | 50 + boards.cfg |1 + include/configs/vexpress_aemv8a.h| 191 ++ 4 files changed

[U-Boot] [PATCH v14 06/10] arm64: Make checkarmreloc accept arm64 relocations

2013-10-12 Thread fenghua
From: David Feng Signed-off-by: Scott Wood Signed-off-by: David Feng --- Makefile | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 86464c9..edf52f2 100644 --- a/Makefile +++ b/Makefile @@ -805,12 +805,16 @@ tools: $(VERSION_FILE) $(

[U-Boot] [PATCH v14 04/10] arm64: Add tool to statically apply RELA relocations

2013-10-12 Thread fenghua
From: David Feng ARM64 uses the newer RELA-style relocations rather than the older REL. RELA relocations have an addend in the relocation struct, rather than expecting the loader to read a value from the location to be updated. While this is beneficial for ordinary program loading, it's problema

[U-Boot] [PATCH v14 07/10] arm64: core support

2013-10-12 Thread fenghua
From: David Feng Relocation code based on a patch by Scott Wood, which is: Signed-off-by: Scott Wood Signed-off-by: David Feng --- arch/arm/config.mk |3 +- arch/arm/cpu/armv8/Makefile | 38 + arch/arm/cpu/armv8/cache.S | 130 ++

[U-Boot] [PATCH v14 05/10] arm64: Turn u-boot.bin back into an ELF file after relocate-rela

2013-10-12 Thread fenghua
From: David Feng While performing relocations on u-boot.bin should be good enough for booting on real hardware, some simulators insist on booting an ELF file (and yet don't perform ELF relocations), so convert the relocated binary back into an ELF file. This can go away in the future if we chang

[U-Boot] [PATCH v14 10/10] arm64: MAKEALL, filter armv8 boards from LIST_arm

2013-10-12 Thread fenghua
From: David Feng Signed-off-by: David Feng --- MAKEALL | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/MAKEALL b/MAKEALL index 956f3da..cb414ca 100755 --- a/MAKEALL +++ b/MAKEALL @@ -370,6 +370,12 @@ LIST_ARM11="$(boards_by_cpu arm1136) \ LIST_ARMV7="$(

[U-Boot] [PATCH v14 02/10] cmd_pxe: remove compiling warnings

2013-10-12 Thread fenghua
From: David Feng Signed-off-by: David Feng --- common/cmd_pxe.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/cmd_pxe.c b/common/cmd_pxe.c index c5f4a22..1df9a8a 100644 --- a/common/cmd_pxe.c +++ b/common/cmd_pxe.c @@ -57,7 +57,7 @@ static int format_mac_pxe(

[U-Boot] [PATCH v14 08/10] arm64: generic board support

2013-10-12 Thread fenghua
From: David Feng Signed-off-by: David Feng --- common/board_f.c | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/common/board_f.c b/common/board_f.c index 0ada1af..d821dbe 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -458,7 +458,7 @@ static

[U-Boot] [PATCH v14 01/10] fdt_support: 64bit initrd start address support

2013-10-12 Thread fenghua
From: David Feng Signed-off-by: David Feng --- common/fdt_support.c | 66 ++ 1 file changed, 34 insertions(+), 32 deletions(-) diff --git a/common/fdt_support.c b/common/fdt_support.c index b034c98..9bc5821 100644 --- a/common/fdt_support.c +++

[U-Boot] [PATCH v14 00/10] arm64 patch

2013-10-12 Thread fenghua
From: David Feng Changes for v14: - Merge rela relocation patches from Scott Wood . - Remove all CONFIG_NEED_MANUAL_RELOC and other fixups due to manual relocation. With rela relocation patches them are not needed. - Fix the bug of MEMORY_ATTRIBUTES definition due to assembl

[U-Boot] [PATCH v14 03/10] add weak entry definition

2013-10-12 Thread fenghua
From: David Feng Signed-off-by: David Feng --- include/linux/linkage.h |4 1 file changed, 4 insertions(+) diff --git a/include/linux/linkage.h b/include/linux/linkage.h index 9ddf830..2a2848a 100644 --- a/include/linux/linkage.h +++ b/include/linux/linkage.h @@ -49,6 +49,10 @@

Re: [U-Boot] [PATCH 1/4] arm64: Add tool to statically apply RELA relocations

2013-10-08 Thread FengHua
> diff --git a/tools/relocate-rela.c b/tools/relocate-rela.c > new file mode 100644 > index 000..47afe0b > --- /dev/null > +++ b/tools/relocate-rela.c > @@ -0,0 +1,185 @@ > +/* > + * Copyright 2013 Freescale Semiconductor, Inc. > + * > + * SPDX-License-Identifier: GPL-2.0+ BSD-2-Clause > + *

Re: [U-Boot] [PATCH 0/4] arm64: rela relocation

2013-10-07 Thread FengHua
> Hi FengHua, > > On Fri, 4 Oct 2013 23:55:01 +0800 (GMT+08:00), FengHua > wrote: > > > > > > > > arm64: rela relocation > > > > > > This lets us remove the manual relocation stuff from the arm64 patchset > > > (the symbol itsel

Re: [U-Boot] [PATCH 3/4] arm64: Non-manual relocation

2013-10-04 Thread FengHua
> This turns off CONFIG_NEEDS_MANUAL_RELOC and turns on -pie. > > The bss part of the linker script is changed to be more like arm32, > as the previous arm64 approach was generating bad relocations (even > readelf didn't like them). > > relocate_64.S is made to look more like relocate.S, and the

Re: [U-Boot] [PATCH 1/4] arm64: Add tool to statically apply RELA relocations

2013-10-04 Thread FengHua
> ARM64 uses the newer RELA-style relocations rather than the older REL. > RELA relocations have an addend in the relocation struct, rather than > expecting the loader to read a value from the location to be updated. > > While this is beneficial for ordinary program loading, it's problematic How

Re: [U-Boot] [PATCH 0/4] arm64: rela relocation

2013-10-04 Thread FengHua
> arm64: rela relocation > > This lets us remove the manual relocation stuff from the arm64 patchset > (the symbol itself is removed by this patchset, but not all the new > manual relocations added by the arm64 patchset). > > I'm not terribly happy with the way relocate-rela is now, versus some

Re: [U-Boot] [PATCH v4 3/4] generic board patch of manual reloc and zero gd_t

2013-10-02 Thread FengHua
> > > > > -原始邮件- > > > 发件人: "Scott Wood" > > > 发送时间: 2013年10月1日 星期二 > > > 收件人: FengHua > > > 抄送: "Simon Glass" , trini , u-boot > > > > > > 主题: Re: Re: [U-Boot] [PATCH v4 3/4] generic board

Re: [U-Boot] [PATCH v4 3/4] generic board patch of manual reloc and zero gd_t

2013-10-01 Thread FengHua
> -原始邮件- > 发件人: "Scott Wood" > 发送时间: 2013年10月1日 星期二 > 收件人: FengHua > 抄送: "Simon Glass" , trini , u-boot > > 主题: Re: Re: [U-Boot] [PATCH v4 3/4] generic board patch of manual reloc and > zero gd_t > > On Tue, 2013-10-01 at 19:

Re: [U-Boot] [PATCH v4 3/4] generic board patch of manual reloc and zero gd_t

2013-10-01 Thread FengHua
> -原始邮件- > 发件人: "Scott Wood" > 发送时间: 2013年10月1日 星期二 > 收件人: "Simon Glass" > 抄送: trini , u-boot , FengHua > > 主题: Re: [U-Boot] [PATCH v4 3/4] generic board patch of manual reloc and zero > gd_t > > On Mon, 2013-09-09 at 20:54 -0500,

  1   2   >