Re: [U-Boot] [PATCH 12/26] ARM: add relocation support

2010-09-17 Thread Albert ARIBAUD
Le 16/09/2010 23:26, Wolfgang Denk a écrit : Dear Albert ARIBAUD, In message4c927c0c.1080...@free.fr you wrote: I did not write 'the goal of using fPIC in u-boot', I wrote 'the goal of fPIC', and as such, I think I read it right. I do agree though (and I think I made it clear further in my

[U-Boot] BCM 8727

2010-09-17 Thread MArunKumar
Whether the latest u-boot supports BCM8727 10GbE SFI-to-XAUI PHY. -- View this message in context: http://old.nabble.com/BCM-8727-tp29735532p29735532.html Sent from the Uboot - Users mailing list archive at Nabble.com. ___ U-Boot mailing list

Re: [U-Boot] [PATCH] lib_arm: fix build error with gcc 4.4 and above

2010-09-17 Thread Alexander Stein
Hello, On Thursday 16 September 2010, 19:44:20 you wrote: This patch fixes lib_arm/board.c build errors. The combination of weak alias and inline attributes lead to a compile time error when using gcc version 4.4 and above. Signed-off-by: Stanislav O. Bezzubtsev

[U-Boot] RE : Davinci DM365 custom design : Problem when reading uBoot environment variables

2010-09-17 Thread Reda MIMOUNE
Hi Scott; Again thank you for the answer. My expense request for a time machine was denied, so we can't go back and put new features in old versions. :-) Please upgrade, or backport the features yourself. Have a question about it, if I upgrade to a new version of uBoot. Is it guaranteed that

Re: [U-Boot] P4080 Reset Vector

2010-09-17 Thread Tony Wang
Liu Dave-R63238 r63238 at freescale.com writes: For that reset address question, I think because p4080ds's FPGA can do this address decode and map 0xefff to 0x setting by SW7, is it right? No. FPGA doesn't matter with it. The e500mc core boot start address(0x_FFFC)

Re: [U-Boot] P4080 Reset Vector

2010-09-17 Thread Liu Dave-R63238
It look same as other PQ2/3 which using BR0/OR0 to set boot vecror base address. just confirm, do you know CPU will read RCW data before it jump to 0x_FFFC? Yes. CPU reset module must fetch RCW and configure CPU itself. then reset to 0x_FFFC, it is also same as PQ3. Thanks, Dave

Re: [U-Boot] Multiple binaries built through u-boot source

2010-09-17 Thread Premi, Sanjeev
-Original Message- From: Scott Wood [mailto:scottw...@freescale.com] Sent: Thursday, September 16, 2010 11:30 PM To: Premi, Sanjeev Cc: Kyungmin Park; Stefan Roese; u-boot@lists.denx.de; Shiraz HASHIM Subject: Re: [U-Boot] Multiple binaries built through u-boot source On Thu, 16

Re: [U-Boot] Multiple binaries built through u-boot source

2010-09-17 Thread Premi, Sanjeev
-Original Message- From: Mike Frysinger [mailto:vap...@gentoo.org] Sent: Friday, September 17, 2010 12:02 AM To: u-boot@lists.denx.de Cc: Premi, Sanjeev; Kyungmin Park; Stefan Roese; Shiraz HASHIM Subject: Re: [U-Boot] Multiple binaries built through u-boot source On Thursday,

Re: [U-Boot] [PATCH 12/26] ARM: add relocation support

2010-09-17 Thread Wolfgang Denk
Dear Albert ARIBAUD, In message 4c9307c4.40...@free.fr you wrote: Things do change indeed, hence my attempt à 1) making sure I detect the change, 2) design things so that they are as resilient to change as possible. One example of such a resilience is making sure the u-boot code designed

[U-Boot] [PATCH 03/26 v2][NEXT] ARM (ARM926ejs): add data cache support, tested on magnesium and tx25 board

2010-09-17 Thread Heiko Schocher
Enable cache command on tx25 and magnesium board and test performance. Test 1: Loading 127 MB of data from NAND flash into RAM: Instr. Cacheoff on on Data Cacheoff off on -- magnesium

[U-Boot] [PATCH 07/26 v2][NEXT] common: move TOTAL_MALLOC_LEN to include/common.h

2010-09-17 Thread Heiko Schocher
Portions of this work were supported by funding from the CE Linux Forum. Signed-off-by: Heiko Schocher h...@denx.de --- arch/m68k/lib/board.c|8 arch/mips/lib/board.c|8 arch/powerpc/lib/board.c | 10 -- include/common.h |9 + 4

[U-Boot] [PATCH 05/26 v2][NEXT] ARM (ARM11): add data cache support, test on Qong board

2010-09-17 Thread Heiko Schocher
Add data cache support for arm1136 systems. Enable cache command on Qong board and test performance. Test 1: Loading 127 MB of data from NAND flash into RAM: Instr. Cacheoff on on Data Cacheoff off on

[U-Boot] [PATCH 04/26 v2][NEXT] ARM V7 (OMAP): add data cache support, test on Beagle board

2010-09-17 Thread Heiko Schocher
Add data cache support for ARM V7 systems. Used cache flush functions from linux:arch/arm/mm/cache-v7.S developed from Catalin Marinas. Enable cache command on Beagle board and test performance. Test 1: Loading 127 MB of data from NAND flash into RAM: Instr. Cacheoff on

[U-Boot] [PATCH 11/26 v2][NEXT] nand_boot_fsl_nfc.c: make nfc a static const pointer

2010-09-17 Thread Heiko Schocher
With -fPIC enabled, this variable needs an entry in the GOT, which causes the image size to exceed 2 KiB which is the maximum allowed for some systems. Making it a static const avoids the GOT entry and thus reduces the image size to 2 KiB. Portions of this work were supported by funding from the

[U-Boot] [PATCH 10/26 v2][NEXT] i2c, omap24xx: set bus_initialized only after relocation.

2010-09-17 Thread Heiko Schocher
Portions of this work were supported by funding from the CE Linux Forum. Signed-off-by: Heiko Schocher h...@denx.de --- drivers/i2c/omap24xx_i2c.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/i2c/omap24xx_i2c.c b/drivers/i2c/omap24xx_i2c.c index

[U-Boot] [PATCH 21/26 v2][NEXT] ARM: implement relocation for sa1100

2010-09-17 Thread Heiko Schocher
Change the implementation for sa1100 to relocate the code to an arbitrary address in RAM. Portions of this work were supported by funding from the CE Linux Forum. Signed-off-by: Heiko Schocher h...@denx.de --- arch/arm/cpu/sa1100/start.S| 162

[U-Boot] [PATCH 06/26 v2][NEXT] relocation: fixup cmdtable

2010-09-17 Thread Heiko Schocher
fixup_cmdtable() did all work for fixing up the cmdtable, if CONFIG_RELOC_FIXUP_WORKS is not defined. CONFIG_RELOC_FIXUP_WORKS is missing for i386! I talked with Graeme Russ, and he will fix this soon. Portions of this work were supported by funding from the CE Linux Forum. Signed-off-by: Heiko

[U-Boot] [PATCH 16/26 v2][NEXT] ARM: implement relocation for ARM920

2010-09-17 Thread Heiko Schocher
Change the implementation for arm920 to relocate the code to an arbitrary address in RAM. Portions of this work were supported by funding from the CE Linux Forum. Signed-off-by: Heiko Schocher h...@denx.de --- arch/arm/cpu/arm920t/start.S| 225 ++-

[U-Boot] [PATCH 23/26 v2][NEXT] ARM: implement relocation for lh7a40x

2010-09-17 Thread Heiko Schocher
Change the implementation for lh7a40x to relocate the code to an arbitrary address in RAM. Portions of this work were supported by funding from the CE Linux Forum. Signed-off-by: Heiko Schocher h...@denx.de --- arch/arm/cpu/lh7a40x/start.S| 187 ++-

[U-Boot] [PATCH 26/26 v2][NEXT] ARM: implement relocation for arm1176

2010-09-17 Thread Heiko Schocher
Change the implementation for arm1176 to relocate the code to an arbitrary address in RAM. Portions of this work were supported by funding from the CE Linux Forum. Signed-off-by: Heiko Schocher h...@denx.de --- arch/arm/cpu/arm1176/start.S| 286 +++

[U-Boot] [PATCH 22/26 v2][NEXT] ARM: implement relocation for s3c44b0

2010-09-17 Thread Heiko Schocher
Change the implementation for s3c44b0 to relocate the code to an arbitrary address in RAM. Portions of this work were supported by funding from the CE Linux Forum. Signed-off-by: Heiko Schocher h...@denx.de --- arch/arm/cpu/s3c44b0/start.S| 174 +++

[U-Boot] [PATCH 01/26 v2][NEXT] arm: get rid of bi_env

2010-09-17 Thread Heiko Schocher
bi_env is nowhere used, so delete it! Portions of this work were supported by funding from the CE Linux Forum. Signed-off-by: Heiko Schocher h...@denx.de similar patch posted from Dirk Behme Tue Jul 27 18:36:09 CEST 2010 http://lists.denx.de/pipermail/u-boot/2010-July/074542.html so this patch

[U-Boot] [PATCH 02/26 v2][NEXT] ARM: cp15: setup mmu and enable dcache

2010-09-17 Thread Heiko Schocher
This has been tested on at91sam9263 and STN8815. Again, I didn't check if it has bad effects on non-arm926 cores. Initially I had a done bit to only set up page tables at the beginning. However, since the aligmnent requirement was for the whole object file, this extra integer tool 16kB in BSS, so

[U-Boot] [PATCH 08/26 v2][NEXT] i2c: fix command usage help

2010-09-17 Thread Heiko Schocher
Portions of this work were supported by funding from the CE Linux Forum. Signed-off-by: Heiko Schocher h...@denx.de --- common/cmd_i2c.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/common/cmd_i2c.c b/common/cmd_i2c.c index 1283c82..a7b65ed 100644 ---

[U-Boot] [PATCH 25/26 v2][NEXT] ARM: implement relocation for arm720t

2010-09-17 Thread Heiko Schocher
Change the implementation for arm720t to relocate the code to an arbitrary address in RAM. Portions of this work were supported by funding from the CE Linux Forum. Signed-off-by: Heiko Schocher h...@denx.de --- arch/arm/cpu/arm720t/start.S| 170 +++

[U-Boot] [PATCH 09/26 v2][NEXT] disk/part.c: fix relocation fixup

2010-09-17 Thread Heiko Schocher
Portions of this work were supported by funding from the CE Linux Forum. Signed-off-by: Heiko Schocher h...@denx.de --- disk/part.c | 11 +-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/disk/part.c b/disk/part.c index 3ba88c7..8bcf2f8 100644 --- a/disk/part.c +++

[U-Boot] [PATCH 19/26 v2][NEXT] ARM: implement relocation for pxa

2010-09-17 Thread Heiko Schocher
Change the implementation for pxa to relocate the code to an arbitrary address in RAM. Portions of this work were supported by funding from the CE Linux Forum. Signed-off-by: Heiko Schocher h...@denx.de --- arch/arm/cpu/pxa/start.S| 168 +++

[U-Boot] [PATCH 13/26 v2][NEXT] ARM: implement relocation for ARM11

2010-09-17 Thread Heiko Schocher
Change the implementation for ARM11 to relocate the code to an arbitrary address in RAM. Tested on the qong board. Portions of this work were supported by funding from the CE Linux Forum. Signed-off-by: Heiko Schocher h...@denx.de --- arch/arm/cpu/arm1136/start.S| 201

[U-Boot] [PATCH 18/26 v2][NEXT] ARM: implement relocation for ARM946

2010-09-17 Thread Heiko Schocher
Change the implementation for arm946 to relocate the code to an arbitrary address in RAM. Portions of this work were supported by funding from the CE Linux Forum. Signed-off-by: Heiko Schocher h...@denx.de --- arch/arm/cpu/arm946es/start.S| 168 +-

[U-Boot] [PATCH 24/26 v2][NEXT] ARM: implement relocation for arm_intcm

2010-09-17 Thread Heiko Schocher
Change the implementation for arm_intcm to relocate the code to an arbitrary address in RAM. Portions of this work were supported by funding from the CE Linux Forum. Signed-off-by: Heiko Schocher h...@denx.de --- arch/arm/cpu/arm_intcm/start.S| 166 +

[U-Boot] [PATCH 00/26 v2][NEXT] arm: add full relocation / cache support

2010-09-17 Thread Heiko Schocher
This patch series add full relocation and cache support for arm based boards. I test this for arm1136, arm_cortexa8 and arm926ejs based boards. Relocation support: !! This change is not compatible to old code !! If you want to compile in old style, you can set CONFIG_SYS_ARM_WITHOUT_RELOC but

[U-Boot] [PATCH 20/26 v2][NEXT] ARM: implement relocation for ixp

2010-09-17 Thread Heiko Schocher
Change the implementation for ixp to relocate the code to an arbitrary address in RAM. Portions of this work were supported by funding from the CE Linux Forum. Signed-off-by: Heiko Schocher h...@denx.de --- arch/arm/cpu/ixp/start.S| 280 +++

[U-Boot] [PATCH 17/26 v2][NEXT] ARM: implement relocation for ARM925

2010-09-17 Thread Heiko Schocher
Change the implementation for arm925 to relocate the code to an arbitrary address in RAM. Portions of this work were supported by funding from the CE Linux Forum. Signed-off-by: Heiko Schocher h...@denx.de --- arch/arm/cpu/arm925t/start.S| 204 ++-

[U-Boot] [PATCH 14/26 v2][NEXT] ARM: implement relocation for ARM V7 (OMAP)

2010-09-17 Thread Heiko Schocher
Change the implementation for ARM V7 to relocate the code to an arbitrary address in RAM. Adapt the Beagle board (Cortex A8) to test the changes. Portions of this work were supported by funding from the CE Linux Forum. Signed-off-by: Heiko Schocher h...@denx.de ---

[U-Boot] [PATCH 12/26 v2][NEXT] ARM: add relocation support

2010-09-17 Thread Heiko Schocher
!! This breaks support for all arm boards !! To compile in old style, you must define CONFIG_SYS_ARM_WITHOUT_RELOC or you can compile with CONFIG_SYS_ARM_WITHOUT_RELOC=1 ./MAKEALL board !! This define will be removed soon, so convert your board to use relocation support Portions of this work

Re: [U-Boot] RE : Davinci DM365 custom design : Problem when reading uBoot environment variables

2010-09-17 Thread Wolfgang Denk
Dear Reda MIMOUNE, In message 1918f436c366b34bb245dd28389e039453adfaa...@mars.easii.fr you wrote: Have a question about it, if I upgrade to a new version of uBoot. Is it guaranteed that mkimage will wrap the uboot binary the same way. Is mkimage the same version ? Of course mkimage is not

[U-Boot] RE : RE : Davinci DM365 custom design : Problem when reading uBoot environment variables

2010-09-17 Thread Reda MIMOUNE
Hello Wolfgang Thanks for answering. Good to see that mkimage would be ok with both versions. What do I fear ? I traditionnaly saw many problems of version coherence between binaries and tools generating them. Now I prefer to ask. Concerning the #define, I made a mistake when recopying. this

Re: [U-Boot] [PATCH 12/26] ARM: add relocation support

2010-09-17 Thread Albert ARIBAUD
Le 17/09/2010 13:05, Wolfgang Denk a écrit : Dear Albert ARIBAUD, In message4c9307c4.40...@free.fr you wrote: Things do change indeed, hence my attempt à 1) making sure I detect the change, 2) design things so that they are as resilient to change as possible. One example of such a

Re: [U-Boot] [PATCH 12/26 v2][NEXT] ARM: add relocation support

2010-09-17 Thread Albert ARIBAUD
Hi Heiko, Le 17/09/2010 13:10, Heiko Schocher a écrit : diff --git a/arch/arm/lib/board.c b/arch/arm/lib/board.c index 54519b0..88c6427 100644 --- a/arch/arm/lib/board.c +++ b/arch/arm/lib/board.c @@ -234,6 +246,7 @@ typedef int (init_fnc_t) (void); int print_cpuinfo (void); +#if

Re: [U-Boot] RE : RE : Davinci DM365 custom design : Problem when reading uBoot environment variables

2010-09-17 Thread Wolfgang Denk
Dear Reda MIMOUNE, In message 1918f436c366b34bb245dd28389e039453adfaa...@mars.easii.fr you wrote: reading the README file, here is what I read: Note: CFG_ENV_OFFSET and CFG_ENV_OFFSET_REDUND must be aligned to a block boundary, and CFG_ENV_SIZE must be a multiple of the

[U-Boot] U-boot support for Strataflash NOR

2010-09-17 Thread Brent Bartson
Hello, Does u-boot support Numonyx StrataFlash (P30) NOR flash devices? I understand it supports NOR flash but does that imply **all** NOR flash? Regards, Brent Bartson __ Information from ESET NOD32 Antivirus, version of virus signature database 5458 (20100917

Re: [U-Boot] RE : RE : Davinci DM365 custom design : Problem when reading uBoot environment variables

2010-09-17 Thread Reda MIMOUNE
Thank you No Davinci did not mess it up. I read 0x4000 (16KB) instead of 0x4 (256KB). So if I understand you I can swap the values in my first email: CONFIG_ENV_SECT_SIZE= 128KB CFG_ENV_SIZE= 16KB Thanks for help. Cordialement, Reda MIMOUNE Reda MIMOUNE Ingénieur Software

Re: [U-Boot] [PATCH 12/26] ARM: add relocation support

2010-09-17 Thread Wolfgang Denk
Dear Albert ARIBAUD, In message 4c9365e7.50...@free.fr you wrote: - You need a way to detect if you are running on a virgin CPU fresh out of reset or on a pre-initialized system. - You need to isolate parts in the initialization sequence that must not be repeated. - You must make

Re: [U-Boot] [PATCH 12/26 v2][NEXT] ARM: add relocation support

2010-09-17 Thread Wolfgang Denk
Dear Albert ARIBAUD, In message 4c936823.1060...@free.fr you wrote: init_fnc_t *init_sequence[] = { init_sequence is a constant, not an initialized variable, and thus should have the 'const' qualifier. Actually it _is_ an initialized variable (which still may take a const). Best

Re: [U-Boot] RE : RE : Davinci DM365 custom design : Problem when reading uBoot environment variables

2010-09-17 Thread Wolfgang Denk
Dear Reda MIMOUNE, In message 1918f436c366b34bb245dd28389e039453ade8b...@mars.easii.fr you wrote: No Davinci did not mess it up. I read 0x4000 (16KB) instead of 0x4 (256KB). Actually I do think Davinci is messed up. Many boards define CONFIG_ENV_SIZE as 256 or 128 KiB, which makes no

Re: [U-Boot] [PATCH 12/26] ARM: add relocation support

2010-09-17 Thread Albert ARIBAUD
Le 17/09/2010 16:52, Wolfgang Denk a écrit : Dear Albert ARIBAUD, In message4c9365e7.50...@free.fr you wrote: - You need a way to detect if you are running on a virgin CPU fresh out of reset or on a pre-initialized system. - You need to isolate parts in the initialization sequence that

Re: [U-Boot] [PATCH 12/26 v2][NEXT] ARM: add relocation support

2010-09-17 Thread Albert ARIBAUD
Le 17/09/2010 16:54, Wolfgang Denk a écrit : Dear Albert ARIBAUD, In message4c936823.1060...@free.fr you wrote: init_fnc_t *init_sequence[] = { init_sequence is a constant, not an initialized variable, and thus should have the 'const' qualifier. Actually it _is_ an initialized

[U-Boot] request for ubifs recovery support

2010-09-17 Thread Eric Cooper
I've configured my device (a Seagate DockStar) with just two NAND flash partitions -- one for u-boot and one for the Linux rootfs. This has some nice advantages: it maximizes the available flash space, and allows the Linux distribution's own tools to install new kernel and initramfs files without

Re: [U-Boot] U-boot support for Strataflash NOR

2010-09-17 Thread Stefan Roese
Hi Brent, On Friday 17 September 2010 16:40:13 Brent Bartson wrote: Does u-boot support Numonyx StrataFlash (P30) NOR flash devices? I understand it supports NOR flash but does that imply **all** NOR flash? Yes, U-Boot supports the StrataFlash chips via the common CFI flash driver. Many

Re: [U-Boot] u-boot USB status

2010-09-17 Thread Marcel
Hi Damien, Thanks for the info. I will check it out. I'm also not sure if the SAM9 USB device support is available. I actually did some work a while ago to make USB work for the SAM9 but had to leave it in non-working condition at the time. If SAM9 USB is not supported yet, I guess I best fix

Re: [U-Boot] RE : Davinci DM365 custom design : Problem when reading uBoot environment variables

2010-09-17 Thread Scott Wood
On Fri, 17 Sep 2010 16:32:04 +0200 Wolfgang Denk w...@denx.de wrote: Dear Reda MIMOUNE, In message 1918f436c366b34bb245dd28389e039453adfaa...@mars.easii.fr you wrote: reading the README file, here is what I read: Note: CFG_ENV_OFFSET and CFG_ENV_OFFSET_REDUND must be aligned

Re: [U-Boot] [PATCH v1] e300: increase CONFIG_SYS_BOOTMAPSZ to allow booting large kernels

2010-09-17 Thread Ira W. Snyder
On Fri, Sep 10, 2010 at 03:42:32PM -0700, Ira W. Snyder wrote: Newer Linux kernels can overrun the initial memory window used for booting with their BSS area. When this happens, they overwrite the FDT and silently fail to boot. On e300 CPUs, the Linux kernel uses an initial BAT covering the

Re: [U-Boot] [PATCH 12/26] ARM: add relocation support

2010-09-17 Thread Wolfgang Denk
Dear Albert ARIBAUD, In message 4c9399a7.5020...@free.fr you wrote: Depends on the processor I guess; but still, my point is that start at any location does not require that you detect whether you are fresh out of reset or not. OK. I've repeated that often enough now, I will not iterate

Re: [U-Boot] [u-boot-release] [PATCH] [v3] p1022ds: use weak CFI flash accessorswhen DIU is enabled

2010-09-17 Thread Scott Wood
On Thu, 16 Sep 2010 19:51:33 -0700 Tabi Timur-B04825 b04...@freescale.com wrote: Jaggi Manish-B10520 wrote: Most of the read/write functions do this way 0:+ int sw = set_mux_to_lbc(); 1:+ 2:+ ret = __raw_readl(addr); 3:+ if (sw) 4:+ set_mux_to_diu();

Re: [U-Boot] [PATCH 12/26 v2][NEXT] ARM: add relocation support

2010-09-17 Thread Wolfgang Denk
Dear Albert ARIBAUD, In message 4c939add.5090...@free.fr you wrote: init_fnc_t *init_sequence[] = { init_sequence is a constant, not an initialized variable, and thus should have the 'const' qualifier. Actually it _is_ an initialized variable (which still may take a const).

[U-Boot] [PATCH] README: Add new NAND env features

2010-09-17 Thread Scott Wood
CONFIG_ENV_SIZE only needs page alignment, not block Document CONFIG_ENV_RANGE and CONFIG_ENV_OFFSET_OOB. Signed-off-by: Scott Wood scottw...@freescale.com --- README | 22 +++--- 1 files changed, 19 insertions(+), 3 deletions(-) diff --git a/README b/README index

Re: [U-Boot] [PATCH] README: Add new NAND env features

2010-09-17 Thread Ben Gardiner
On Fri, Sep 17, 2010 at 3:43 PM, Scott Wood scottw...@freescale.com wrote: CONFIG_ENV_SIZE only needs page alignment, not block Document CONFIG_ENV_RANGE and CONFIG_ENV_OFFSET_OOB. Signed-off-by: Scott Wood scottw...@freescale.com +       - CONFIG_ENV_OFFSET_OOB (optional): + +        

Re: [U-Boot] [PATCH] README: Add new NAND env features

2010-09-17 Thread Wolfgang Denk
Dear Scott Wood, In message 20100917194327.ga17...@udp111988uds.am.freescale.net you wrote: CONFIG_ENV_SIZE only needs page alignment, not block Document CONFIG_ENV_RANGE and CONFIG_ENV_OFFSET_OOB. I appreciate your efforts, but I think we should also fix the code. For me it seems important

Re: [U-Boot] [PATCH] README: Add new NAND env features

2010-09-17 Thread Scott Wood
On Fri, 17 Sep 2010 22:47:04 +0200 Wolfgang Denk w...@denx.de wrote: For example, on NOR flash we might see an erase block size of 256 KiB (resulting in a #define CONFIG_ENV_SECT_SIZE (256 10) or similar). But normally we don't need so much space for the environment, so we set

[U-Boot] [PATCH v2] README: Add new NAND env features

2010-09-17 Thread Scott Wood
CONFIG_ENV_SIZE does not need block alignment. Document CONFIG_ENV_RANGE and CONFIG_ENV_OFFSET_OOB. Signed-off-by: Scott Wood scottw...@freescale.com --- CONFIG_ENV_SIZE doesn't even need page alignment. README | 32 +++- 1 files changed, 23 insertions(+), 9

Re: [U-Boot] [PATCH 1/5] mpc83xx/pcie: make it compile with PCIE2 unconfigured

2010-09-17 Thread Ilya Yanok
Hi Kim, On 17.09.2010 03:54, Kim Phillips wrote: +#if defined(CONFIG_SYS_PCIE2_CFG_BASE) defined(CONFIG_SYS_PCIE2_SIZE) #define PCIE_MAX_BUSES 2 +#else +#define PCIE_MAX_BUSES 1 +#endif Technically this should be an indirect function of MPC8308, but what's the problem with

Re: [U-Boot] [PATCH 14/26 v2][NEXT] ARM: implement relocation for ARM V7 (OMAP)

2010-09-17 Thread John Rigby
On Fri, Sep 17, 2010 at 5:10 AM, Heiko Schocher h...@denx.de wrote: Change the implementation for ARM V7 to relocate the code to an arbitrary address in RAM. Adapt the Beagle board (Cortex A8) to test the changes. Heiko, I'm running -next on a Beagle board (first version of arm reloc not

[U-Boot] [PATCH 1/5] mpc83xx/pcie: make it compile with PCIE2 unconfigured

2010-09-17 Thread Ilya Yanok
MPC8308 has only one PCIE host controller so we want it to compile without CONFIG_SYS_PCIE2_CFG_{BASE,SIZE} defined. Signed-off-by: Ilya Yanok ya...@emcraft.com --- arch/powerpc/cpu/mpc83xx/pcie.c | 38 +- 1 files changed, 25 insertions(+), 13 deletions(-)

[U-Boot] [PATCH 2/5] mpc83xx: add support for setting PCIE clocks

2010-09-17 Thread Ilya Yanok
This patch adds support for setting PCIE clocks in cpu_init.c by providing CONFIG_SYS_SCCR_PCIEXP{1,2} in configuration. Signed-off-by: Ilya Yanok ya...@emcraft.com --- arch/powerpc/cpu/mpc83xx/cpu_init.c | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git

[U-Boot] [PATCH 4/5] MPC8308RDB: various clean ups

2010-09-17 Thread Ilya Yanok
This patch cleans up the Freescale MPC8308RDB Development board support. Things fixed: - Removed unused PCIE2 definitions from configuration - SICR{L,H} defines used for System I/O Configuration Registers values instead of hardcoding - CONFIG_SYS_SCCR_PCIEXP1CM used to enable PCIE clock

[U-Boot] [PATCH 5/5] mpc8308_p1m: support for MPC8308 P1M board

2010-09-17 Thread Ilya Yanok
This patch provides support for MPC8308 P1M board with the following set of features: Dual UART is supported NOR flash is supported Both TSEC Ethernet controllers are supported PCI Express initialization is supported Both I2C controllers are supported Signed-off-by: Ilya Yanok

[U-Boot] [PATCH 3/5] mpc8308: add SICR{L,H} fields definitions

2010-09-17 Thread Ilya Yanok
This patch adds defines to set supported fields in System I/O Configuration Registers High and Low on Freescale MPC8308 CPU. Signed-off-by: Ilya Yanok ya...@emcraft.com --- include/mpc83xx.h | 48 1 files changed, 48 insertions(+), 0

Re: [U-Boot] [PATCH 14/26 v2][NEXT] ARM: implement relocation for ARM V7 (OMAP)

2010-09-17 Thread Wolfgang Denk
Dear John, In message aanlktims+909jaf1ho41+wazbh1qmondg8aohpm04...@mail.gmail.com you wrote: I noticed that when I wrote to ram in the range where u-boot runs before being relocated sometimes the board hangs. I then narrowed it Stupid question: how did you write to that RAM location? And

Re: [U-Boot] [PATCH 12/26] ARM: add relocation support

2010-09-17 Thread Albert ARIBAUD
Le 17/09/2010 21:04, Wolfgang Denk a écrit : Dear Albert ARIBAUD, Reminder: here we're talking about fitting a64 KB u-boot in flash, with _start at the reset vector (0x on orion5x), without wasting the space above the reset vector (64 KB on orion5x) and with minimal waste in the rest

Re: [U-Boot] [PATCH 12/26] ARM: add relocation support

2010-09-17 Thread Wolfgang Denk
Dear Albert ARIBAUD, In message 4c93e978.9010...@free.fr you wrote: u-boot.map for this board shows: ... arch/powerpc/lib/cache.o(.text) .text 0x40007c20 0x64 arch/powerpc/lib/cache.o 0x40007c20flush_cache

Re: [U-Boot] [PATCH 12/26 v2][NEXT] ARM: add relocation support

2010-09-17 Thread Albert ARIBAUD
Le 17/09/2010 21:22, Wolfgang Denk a écrit : Dear Albert ARIBAUD, In message4c939add.5090...@free.fr you wrote: init_fnc_t *init_sequence[] = { init_sequence is a constant, not an initialized variable, and thus should have the 'const' qualifier. Actually it _is_ an initialized

Re: [U-Boot] [PATCH 12/26] ARM: add relocation support

2010-09-17 Thread Albert ARIBAUD
Le 18/09/2010 00:42, Wolfgang Denk a écrit : Dear Albert ARIBAUD, In message4c93e978.9010...@free.fr you wrote: u-boot.map for this board shows: ... arch/powerpc/lib/cache.o(.text) .text 0x40007c20 0x64 arch/powerpc/lib/cache.o 0x40007c20