Re: [U-Boot] [PATCH 1/2] arm: implement ELF relocations

2010-10-05 Thread Reinhard Meyer
Dear Albert ARIBAUD, > Indeed, CONFIG_SYS_ARM_WITHOUT_RELOC should disappear eventually -- it's > still there only to give board maintainers a way to build with and > without relocation e.g. for testing purposes, and it was announced that > it would disappear when relocation makes it into an offic

Re: [U-Boot] [PATCH 1/2] arm: implement ELF relocations

2010-10-05 Thread Albert ARIBAUD
Le 06/10/2010 08:01, Reinhard Meyer a écrit : > To me it looks now like we have dangling use of > > CONFIG_SKIP_RELOCATE_UBOOT and CONFIG_SYS_ARM_WITHOUT_RELOC > all over the source, but it appears to me that they can't really > work anymore (I have not tested that). Indeed, CONFIG_SYS_ARM_WITHOUT

Re: [U-Boot] [PATCH 1/2] arm: implement ELF relocations

2010-10-05 Thread Reinhard Meyer
Dear Albert Aribaud, Heiko Schocher, >> ELF relocation tables generated with linker option -pie can >> be used to fixup code and data in a single loop at relocation, >> removing the need for manual fixups anywhere else in the code. To me it looks now like we have dangling use of CONFIG_SKIP_RELOC

Re: [U-Boot] [PATCH 2/2] edminiv2: add support for ELF relocations

2010-10-05 Thread Albert ARIBAUD
Le 06/10/2010 07:30, Heiko Schocher a écrit : >> +#define CONFIG_RELOC_FIXUP_WORKS > > Instead defining this in every board-config.h we should > define it in arch/arm/include/asm/config.h, as it is valid > with this relocation version for every arm board. > > Can you add this to your 1/2 patch ? >

Re: [U-Boot] [PATCH 1/2] arm: implement ELF relocations

2010-10-05 Thread Albert ARIBAUD
Le 06/10/2010 07:37, Heiko Schocher a écrit : > Hello albert, > We no longer need this __datarel* vars with your version > of relocation, please delete! Thanks for pointing this out. > Thanks! > > bye, > Heiko Amicalement, -- Albert. ___ U-Boot mail

Re: [U-Boot] [PATCH] orion5x: optimize window size computation

2010-10-05 Thread Albert ARIBAUD
Le 05/10/2010 23:40, Chris Moore a écrit : > Hi Prafulla, > > Le 05/10/2010 07:57, Prafulla Wadaskar a écrit : >> >> >>> -Original Message- >>> From: u-boot-boun...@lists.denx.de >>> [mailto:u-boot-boun...@lists.denx.de] On Behalf Of Albert Aribaud >>> Sent: Tuesday, October 05, 2010 3:52 A

Re: [U-Boot] [PATCH 1/2] arm: implement ELF relocations

2010-10-05 Thread Heiko Schocher
Hello albert, Albert Aribaud wrote: > ELF relocation tables generated with linker option -pie can > be used to fixup code and data in a single loop at relocation, > removing the need for manual fixups anywhere else in the code. > > Signed-off-by: Albert Aribaud > --- > arch/arm/config.mk

Re: [U-Boot] [PATCH] smc91111: add write_hwaddr

2010-10-05 Thread Thomas Chou
Mike Frysinger wrote: > On Tuesday, October 05, 2010 21:16:10 Thomas Chou wrote: >> Add smc_write_hwaddr() to set mac address. >> Clear dev before use. > > how is this different from the one sent earlier today ? when re-submitting, > you should note what changed. > -mike Sorry. It is the same pa

Re: [U-Boot] [PATCH 2/2] edminiv2: add support for ELF relocations

2010-10-05 Thread Heiko Schocher
Hello Albert, Albert Aribaud wrote: > Signed-off-by: Albert Aribaud > --- > board/LaCie/edminiv2/config.mk |4 ++-- > include/configs/edminiv2.h |7 +++ > 2 files changed, 9 insertions(+), 2 deletions(-) > > diff --git a/board/LaCie/edminiv2/config.mk b/board/LaCie/edminiv2/conf

Re: [U-Boot] [PATCH] logodl: : remove code for yet another corpse

2010-10-05 Thread Reinhard Meyer
Dear Graeme Russ, > On Wed, Oct 6, 2010 at 2:32 PM, Marek Vasut wrote: >> Dne Út 5. října 2010 22:03:23 Wolfgang Denk napsal(a): >>> The logodl board has long been unmaintained and left broken. >>> As obviously nobody is interestedin that code any more, we may as well >>> remove it. >> >> I'd like

[U-Boot] [PATCH] board/mpl: Remove mpl-specific memory test command

2010-10-05 Thread Peter Tyser
The mpl-specfic memory test is only documented for one board, doesn't compile cleanly, uses improper coding style, and overlaps functionality with U-Boot's common 'mtest' command, so lets get rid of it. Signed-off-by: Peter Tyser CC: d.pe...@mpl.ch CC: d.muel...@elsoft.ch CC: wd...@denx.de --- Th

Re: [U-Boot] [PATCH] logodl: : remove code for yet another corpse

2010-10-05 Thread Marek Vasut
Dne St 6. října 2010 05:41:12 Graeme Russ napsal(a): > On Wed, Oct 6, 2010 at 2:32 PM, Marek Vasut wrote: > > Dne Út 5. října 2010 22:03:23 Wolfgang Denk napsal(a): > >> The logodl board has long been unmaintained and left broken. > >> As obviously nobody is interestedin that code any more, we may

Re: [U-Boot] [PATCH] logodl: : remove code for yet another corpse

2010-10-05 Thread Graeme Russ
On Wed, Oct 6, 2010 at 2:32 PM, Marek Vasut wrote: > Dne Út 5. října 2010 22:03:23 Wolfgang Denk napsal(a): >> The logodl board has long been unmaintained and left broken. >> As obviously nobody is interestedin that code any more, we may as well >> remove it. > > I'd like to NACK it as it's sad to

Re: [U-Boot] [PATCH] smc91111: add write_hwaddr

2010-10-05 Thread Mike Frysinger
On Tuesday, October 05, 2010 21:16:10 Thomas Chou wrote: > Add smc_write_hwaddr() to set mac address. > Clear dev before use. how is this different from the one sent earlier today ? when re-submitting, you should note what changed. -mike signature.asc Description: This is a digitally signed me

[U-Boot] [PATCH] smc91111: add write_hwaddr

2010-10-05 Thread Thomas Chou
Add smc_write_hwaddr() to set mac address. Clear dev before use. Signed-off-by: Thomas Chou --- drivers/net/smc9.c | 40 1 files changed, 24 insertions(+), 16 deletions(-) diff --git a/drivers/net/smc9.c b/drivers/net/smc9.c index 54a1bfb..

[U-Boot] [PATCH] sh: Add support load and boot of Initrd.

2010-10-05 Thread Nobuhiro Iwamatsu
Signed-off-by: Nobuhiro Iwamatsu --- arch/sh/lib/bootm.c | 66 ++- 2 files changed, 66 insertions(+), 2 deletions(-) diff --git a/arch/sh/lib/bootm.c b/arch/sh/lib/bootm.c index 9c58ed7..fb7e2d0 100644 --- a/arch/sh/lib/bootm.c +++ b/arch/sh/lib/

Re: [U-Boot] [PATCH v7 2/2] APM821xx: Add bluestone board support

2010-10-05 Thread Tirumala Marri
> > Applied to u-boot-ppc4xx/master. Thanks. Thanks Marri ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH] schmoogie: fix build error due to removal of forceenv()

2010-10-05 Thread Paulraj, Sandeep
> > On Tue, 5 Oct 2010, Wolfgang Denk wrote: > > Ack-by: Sergey Kubushyn > --- > > > commit 6d014adf dropped support for the forceenv() function, but failed > > to remove references to it from board/davinci/schmoogie/schmoogie.c > > > > Replace forceenv() by setenv() and set CONFIG_ENV_OVERWR

Re: [U-Boot] ARMV7: OMAP3: Fix bug in get_sdr_cs_offset()

2010-10-05 Thread Steve Sakoman
On Tue, Oct 5, 2010 at 3:57 PM, Steve Sakoman wrote: > ARMV7: OMAP3: Fix bug in get_sdr_cs_offset() Sorry! Sent this one out again by mistake. You can ignore. Steve ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-

Re: [U-Boot] [PATCH] schmoogie: fix build error due to removal of forceenv()

2010-10-05 Thread Sergey Kubushyn
On Tue, 5 Oct 2010, Wolfgang Denk wrote: Ack-by: Sergey Kubushyn --- > commit 6d014adf dropped support for the forceenv() function, but failed > to remove references to it from board/davinci/schmoogie/schmoogie.c > > Replace forceenv() by setenv() and set CONFIG_ENV_OVERWRITE instead in > the bo

[U-Boot] ARMV7: OMAP3: Fix bug in get_sdr_cs_offset()

2010-10-05 Thread Steve Sakoman
ARMV7: OMAP3: Fix bug in get_sdr_cs_offset() This patch fixes a typo in the routine to calculate the cs offset based upon the contents of the SDRC cs_cfg register. This function mistakenly shifts the CS1STARTLOW field 17 bits right instead of 17 bits left. This hasn't been an issue to date becau

[U-Boot] env_mmc: Fix broken build due to set_default_env() change

2010-10-05 Thread Steve Sakoman
Previously the function was set_default_env(void), it is now set_default_env(const char *s). This patch adds the required parameter. This fixes a broken build on OMAP4430 SDP. Signed-off-by: Steve Sakoman --- diff --git a/common/env_mmc.c b/common/env_mmc.c index 14203b6..cc288d4 100644 --- a/co

[U-Boot] [PATCH] guruplug: Add support for various file systems and features

2010-10-05 Thread Ludovic Courtès
Add support for various file systems and features, as found in `sheevaplug.h'. In addition, increase the malloc area size to allow compilation of UbiFS. Signed-off-by: Ludovic Courtès --- include/configs/guruplug.h | 16 +++- 1 files changed, 15 insertions(+), 1 deletions(-) diff

Re: [U-Boot] [PATCH] orion5x: optimize window size computation

2010-10-05 Thread Chris Moore
Hi Prafulla, Le 05/10/2010 07:57, Prafulla Wadaskar a écrit : > > >> -Original Message- >> From: u-boot-boun...@lists.denx.de >> [mailto:u-boot-boun...@lists.denx.de] On Behalf Of Albert Aribaud >> Sent: Tuesday, October 05, 2010 3:52 AM >> To: u-boot@lists.denx.de >> Subject: [U-Boot] [

[U-Boot] [PATCH v2] usb: Add support for multiple-LUN mass storage devices

2010-10-05 Thread Ludovic Courtès
This patch changes `usb_stor_scan' to scan all the LUNs of each mass storage device. It also fixes the various commands to correctly set the LUN field. Notably, it allows each LUN of GuruPlug's microSD card reader to be accessed. Signed-off-by: Ludovic Courtès Acked-by: Prafulla Wadaskar --- C

[U-Boot] [PATCH] logodl: : remove code for yet another corpse

2010-10-05 Thread Wolfgang Denk
The logodl board has long been unmaintained and left broken. As obviously nobody is interestedin that code any more, we may as well remove it. Signed-off-by: Wolfgang Denk Cc: August Hoeraendl Cc: Robert Schwebel Cc: Marek Vasut --- CREDITS |6 +- board/logodl/Makefil

Re: [U-Boot] [PATCH] smc91111: add write_hwaddr

2010-10-05 Thread Mike Frysinger
On Tuesday, October 05, 2010 03:30:33 Thomas Chou wrote: > Add smc_write_hwaddr() to set mac address. > Clear dev before use. Acked-by: Mike Frysinger -mike signature.asc Description: This is a digitally signed message part. ___ U-Boot mailing list U-

[U-Boot] [PATCH 2/2] edminiv2: add support for ELF relocations

2010-10-05 Thread Albert Aribaud
Signed-off-by: Albert Aribaud --- board/LaCie/edminiv2/config.mk |4 ++-- include/configs/edminiv2.h |7 +++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/board/LaCie/edminiv2/config.mk b/board/LaCie/edminiv2/config.mk index 3dec1aa..942c4e5 100644 --- a/board/La

[U-Boot] [PATCH 1/2] arm: implement ELF relocations

2010-10-05 Thread Albert Aribaud
ELF relocation tables generated with linker option -pie can be used to fixup code and data in a single loop at relocation, removing the need for manual fixups anywhere else in the code. Signed-off-by: Albert Aribaud --- arch/arm/config.mk| 10 +- arch/arm/cpu/arm926ejs/start.S

Re: [U-Boot] [PATCH] Fix define for MPC5121 ADS board.

2010-10-05 Thread Wolfgang Denk
Dear Mark Vels, In message <4cab7a77.1090...@team-embedded.nl> you wrote: > > Hehe, well there is at least the one rev 2 board that I got from the customer > on my desk at the moment. That's why I > tried to build and execute this config. OK. What you have is an obvious bug fix. It does not hur

Re: [U-Boot] [PATCH] futile c relocation attempt

2010-10-05 Thread Albert ARIBAUD
Le 05/10/2010 19:41, Reinhard Meyer a écrit : > Dear Albert ARIBAUD, >>> include/configs/top9000_9xe.h | 1 + > That's my board. Not in mainstream yet. Just sets the define there. > >>> +#ifdef CONFIG_USE_C_RELOCATION >>> + /* TODO: check for identical source and destination */ >>> + /* TODO: check

Re: [U-Boot] [PATCH] usb: Add support for multiple-LUN mass storage devices

2010-10-05 Thread Ludovic Courtès
Hi Prafulla, Prafulla Wadaskar writes: > This works for guruplug, I can detect filesystems on both the uSD card on > guruplug Great, thanks for testing. > The patch could not be applied cleanly on latest u-boot, pls redo it > and post it to mailing list (Not as attachment) I posted an update

[U-Boot] [PATCH] pm9g45: fix compile warning

2010-10-05 Thread Wolfgang Denk
Fix warning: pm9g45.c: In function 'pm9g45_macb_hw_init': pm9g45.c:99: warning: unused variable 'pio' Signed-off-by: Wolfgang Denk Cc: Ilko Iliev --- board/ronetix/pm9g45/pm9g45.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/board/ronetix/pm9g45/pm9g

[U-Boot] [PATCH] pm9263: fix compile warning

2010-10-05 Thread Wolfgang Denk
Fix warning: pm9263.c: In function 'pm9263_macb_hw_init': pm9263.c:99: warning: unused variable 'pio' Signed-off-by: Wolfgang Denk Cc: Ilko Iliev --- board/ronetix/pm9263/pm9263.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/board/ronetix/pm9263/pm92

Re: [U-Boot] [PATCH] Fix define for MPC5121 ADS board.

2010-10-05 Thread Mark Vels
Dear Wolfgang, On 05/10/10 20:21, Wolfgang Denk wrote: > Dear mark.v...@team-embedded.nl, > > In message <1286293579-26587-1-git-send-email-mark.v...@team-embedded.nl> you > wrote: >> Originally the Makefile defines CONFIG_ADS5121_REV2 when configuring >> for board mpc5121ads_rev2. The config in

Re: [U-Boot] [RFC PATCH 1/2 v2] nand: allow delayed initialization

2010-10-05 Thread Scott Wood
On Tue, 5 Oct 2010 20:27:43 +0200 Wolfgang Denk wrote: > If possible, I would like to see this the default setting for all new > board to be added. Existing boards should have the option to select > this behaviour, too. > > What I do not want to do (if it can be avoided) is change the default >

[U-Boot] [PATCH] schmoogie: fix build error due to removal of forceenv()

2010-10-05 Thread Wolfgang Denk
commit 6d014adf dropped support for the forceenv() function, but failed to remove references to it from board/davinci/schmoogie/schmoogie.c Replace forceenv() by setenv() and set CONFIG_ENV_OVERWRITE instead in the board config file to allow overwriting the serial number. Signed-off-by: Wolfgang

[U-Boot] VCMA9 build fails: ARM board references PPC4xx header

2010-10-05 Thread Wolfgang Denk
Dear David & Peter, since Stefan's ppc4xx reorganization patches (commit b36df561: "ppc4xx: Move ppc4xx headers to powerpc include directory") the building of the VCMA9 breaks with this error message: ../common/memtst.c:51:28: error: asm/ppc4xx-i2c.h: No such file or directory The problem comes

Re: [U-Boot] [PATCH] [NEXT]arm: Make jadecpu use relocation

2010-10-05 Thread Wolfgang Denk
Dear Matthias Weisser, In message <1285076264-13219-1-git-send-email-weiss...@arcor.de> you wrote: > This patch modifies jadecpu board so that it is usable > with the relocation patches by Heiko Schocher > > Signed-off-by: Matthias Weisser > --- > board/syteco/jadecpu/config.mk |2 +- > boa

Re: [U-Boot] [RFC PATCH 1/2 v2] nand: allow delayed initialization

2010-10-05 Thread Wolfgang Denk
Dear Scott Wood, In message <20101005113126.215b5...@udp111988uds.am.freescale.net> you wrote: > On Tue, 5 Oct 2010 04:08:12 -0400 > Mike Frysinger wrote: > > > On Monday, October 04, 2010 13:36:14 Scott Wood wrote: > > > I'm wondering if we should just make this the default behavior. We > > >

Re: [U-Boot] [PATCH] Fix define for MPC5121 ADS board.

2010-10-05 Thread Wolfgang Denk
Dear mark.v...@team-embedded.nl, In message <1286293579-26587-1-git-send-email-mark.v...@team-embedded.nl> you wrote: > Originally the Makefile defines CONFIG_ADS5121_REV2 when configuring > for board mpc5121ads_rev2. The config in include/configs/mpc5121ads.h > expects a define CONFIG_MPC5121ADS

Re: [U-Boot] packed attribute problem

2010-10-05 Thread Scott Wood
On Tue, 5 Oct 2010 13:43:01 +0200 Detlev Zundel wrote: > Hi Reinhard, > > [...] > > >> Note that this is with GCC 4.2.2. Even GCC 4.0.0 behaves the same, so > >> this is *not* an issue with very recent tool chains. > > > > OK, for directly adressing elements inside a packed struct; > > but the

Re: [U-Boot] [PATCH] futile c relocation attempt

2010-10-05 Thread Reinhard Meyer
Dear Albert ARIBAUD, >> include/configs/top9000_9xe.h |1 + That's my board. Not in mainstream yet. Just sets the define there. >> +#ifdef CONFIG_USE_C_RELOCATION >> +/* TODO: check for identical source and destination */ >> +/* TODO: check for overlapping */ >> +/* copy image, i

Re: [U-Boot] [RFC PATCH 1/2 v2] nand: allow delayed initialization

2010-10-05 Thread Scott Wood
On Tue, 5 Oct 2010 04:08:12 -0400 Mike Frysinger wrote: > On Monday, October 04, 2010 13:36:14 Scott Wood wrote: > > I'm wondering if we should just make this the default behavior. We > > already deferred the bad block scanning, perhaps this could replace > > that. > > i would like that, but Wo

Re: [U-Boot] [PATCH] futile c relocation attempt

2010-10-05 Thread Albert ARIBAUD
Le 05/10/2010 16:48, Reinhard Meyer a écrit : > include/configs/top9000_9xe.h |1 + Can't find this one in my u-boot tree. Did I miss something? > +#ifdef CONFIG_USE_C_RELOCATION > + /* TODO: check for identical source and destination */ > + /* TODO: check for overlapping */ > +

[U-Boot] [PATCH] Fix define for MPC5121 ADS board.

2010-10-05 Thread mark . vels
Originally the Makefile defines CONFIG_ADS5121_REV2 when configuring for board mpc5121ads_rev2. The config in include/configs/mpc5121ads.h expects a define CONFIG_MPC5121ADS_REV2 for this. Therefore there are two defines used but only 1 is defined. This patch renames references to CONFIG_ADS5121_RE

Re: [U-Boot] [PATCH] rules.mk: make sure we always create a .depend file

2010-10-05 Thread Detlev Zundel
Hi Wolfgang, > There are some cases where "make depend" would always run when > entering a directory. This happened when both the $(SRCS) and > $(HOSTSRCS) lists were empty (which is for example typical for the > examples/api/ directory). Avoid this by making sure that a ".depend" > file gets al

[U-Boot] [PATCH V5 1/2] MTD/SPI: introduce table driven probing

2010-10-05 Thread Reinhard Meyer
for JEDEC devices without and with extension bytes for non JEDEC devices Signed-off-by: Reinhard Meyer --- drivers/mtd/spi/spi_flash.c | 137 +-- 1 files changed, 93 insertions(+), 44 deletions(-) diff --git a/drivers/mtd/spi/spi_flash.c b/drivers/mtd/spi

[U-Boot] [PATCH V5 2/2] MTD/SPI: add support for Ramtron FRAMs

2010-10-05 Thread Reinhard Meyer
Supports most types that support Read-Id and the FM25H20. Signed-off-by: Reinhard Meyer --- drivers/mtd/spi/Makefile |1 + drivers/mtd/spi/ramtron.c| 319 ++ drivers/mtd/spi/spi_flash.c |8 + drivers/mtd/spi/spi_flash_inte

[U-Boot] [PATCH V5 0/2] Patches to support Ramtron FRAMs

2010-10-05 Thread Reinhard Meyer
Patch 1 adds generalisation to spi_flash.c to allow for table driven probing of JEDEC and NON-JEDEC conformant devices Patch 2 adds the actual Ramtron support Patch 2 requires Patch 1 to be applied first. Signed-off-by: Reinhard Meyer ___ U-Boot maili

[U-Boot] Please pull u-boot-atmel/at91

2010-10-05 Thread Reinhard Meyer
Dear Wolfgang, The following changes since commit d6288664743cdd4824cb877ca424619c827c1256: Wolfgang Denk (1): Merge branch 'master' of git://git.denx.de/u-boot-blackfin are available in the git repository at: git://git.denx.de/u-boot-atmel at91 Alexander Stein (1): at91: Add

[U-Boot] [PATCH V2] arm: bugfix: replace ble with blo in start.S files

2010-10-05 Thread Albert Aribaud
Generalized misuse of ble within relocation and bss initialization loops caused one iteration too many. Instead of ble ('branch if lower or equal'), use blo ('branch if lower'). While we're at it, fix all 'addreee' typos. Signed-off-by: Albert Aribaud --- V1 Initial submission V2 Fixed

Re: [U-Boot] [RFC] [PATCH V2] arm: arm926ejs: use ELF relocations

2010-10-05 Thread Reinhard Meyer
Dear Albert ARIBAUD, >>> - pure ELF format (8 bytes per relocation plus .dynsym) >>> >>> ... already there, and then to be done: >>> >>> - unified 32-bit format (half the size of pure ELF) >>> >>> - unified 16-bit delta format (a fourth of the size of pure ELF) >> >> Even an 8-bit delta format is p

Re: [U-Boot] [RFC] [PATCH V2] arm: arm926ejs: use ELF relocations

2010-10-05 Thread Albert ARIBAUD
Le 05/10/2010 15:18, Reinhard Meyer a écrit : > Dear Albert ARIBAUD, >> Le 05/10/2010 13:17, Reinhard Meyer a écrit : >>> Dear All ;) > Umm... is my understanding correct that we can drop the whole > CONFIG_SYS_ARM_WITHOUT_RELOC stuff then, too? I believe we're just changing the r

[U-Boot] [PATCH] AT91 clock/timer: move static data to global_data struct

2010-10-05 Thread Reinhard Meyer
clock.c / timer.c used static data and are called before relocation. Move all static variables into global_data structure. Also cleanup timer.c from unused stubs and make it truly use 64 bit tick values. Signed-off-by: Reinhard Meyer --- arch/arm/cpu/arm926ejs/at91/clock.c | 55 +++

Re: [U-Boot] [PATCH] futile c relocation attempt

2010-10-05 Thread Reinhard Meyer
Reinhard Meyer schrieb: > --- > arch/arm/cpu/arm926ejs/start.S |8 - > arch/arm/lib/board.c | 57 > +++- > include/configs/top9000_9xe.h |1 + > 3 files changed, 63 insertions(+), 3 deletions(-) PLEASE - this is only for study, not to b

[U-Boot] USB: EHCI reports EHCI fail timeout STD_ASS reset

2010-10-05 Thread Stefano Babic
Hi all, I am adding EHCI support to the MX.31 Soc. I got an error from the ehci-hcd controller, that seems (apparently!) to not depend by the Soc I am using. "usb start" works as expected: CPU: Freescale i.MX31 at 398 MHz Board: DAVE/DENX Qong DRAM: 256 MiB FLASH: 128 MiB NAND: 128 MiB In:

[U-Boot] [PATCH] futile c relocation attempt

2010-10-05 Thread Reinhard Meyer
--- arch/arm/cpu/arm926ejs/start.S |8 - arch/arm/lib/board.c | 57 +++- include/configs/top9000_9xe.h |1 + 3 files changed, 63 insertions(+), 3 deletions(-) diff --git a/arch/arm/cpu/arm926ejs/start.S b/arch/arm/cpu/arm926ejs/start.S

Re: [U-Boot] [RFC] [PATCH V2] arm: arm926ejs: use ELF relocations

2010-10-05 Thread Graeme Russ
On 06/10/10 00:18, Reinhard Meyer wrote: > Dear Albert ARIBAUD, [snip] > PS: I finished the "C" relocation, but it does not work :( > having problems with setting the stack or calling of board_init_r(), > I am not sure. Because of otther work I cannot continue there right now. > If you want to lo

Re: [U-Boot] [RFC] [PATCH V2] arm: arm926ejs: use ELF relocations

2010-10-05 Thread Reinhard Meyer
Dear Albert ARIBAUD, > Le 05/10/2010 13:17, Reinhard Meyer a écrit : >> Dear All ;) Umm... is my understanding correct that we can drop the whole CONFIG_SYS_ARM_WITHOUT_RELOC stuff then, too? >>> >>> I believe we're just changing the relocation solution, but we're not >>> changing the ove

Re: [U-Boot] [PATCH] arm: bugfix: replace ble with blo in start.S files

2010-10-05 Thread Albert ARIBAUD
Le 05/10/2010 14:57, Albert Aribaud a écrit : > initialization loops caused one iiteration too many. s/ii/i Amicalement, -- Albert. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [PATCH] arm: bugfix: replace ble with blo in start.S files

2010-10-05 Thread Albert Aribaud
Generalized misuse of ble within relocation and bss initialization loops caused one iiteration too many. Instead of ble ('branch if lower or equal'), use blo ('branch if lower'). Signed-off-by: Albert Aribaud --- arch/arm/cpu/arm1136/start.S |4 ++-- arch/arm/cpu/arm1176/start.S |6 +

[U-Boot] at91sam9260 resets if booted automatically

2010-10-05 Thread Dennis Borgmann
Hello u-boot list! I am using an Eddy-CPU V2.1 from embeddedmodule.com The u-boot version is 2008.10-rc3: U-Boot> version U-Boot 2008.10-rc3 (Sep 3 2009 - 18:30:12) It is basically an AT91SAM9260 with a complete development kit. I am running buildroot-2010.08 on it with linux 2.6.34.3. Everyth

Re: [U-Boot] [RFC] [PATCH V2] arm: arm926ejs: use ELF relocations

2010-10-05 Thread Heiko Schocher
Hello Albert, Albert Aribaud wrote: > HISTORY: > > V1Initial patch > V2Rebased on latest mainline master > > This patch is *not* a submission for master! Following patch works on the beagle (ARMv7) board, with booting from mmc. diff --git a/arch/arm/cpu/armv7/start.S b/arch/arm/cpu/arm

Re: [U-Boot] Pull request u-boot-blackfin.git

2010-10-05 Thread Wolfgang Denk
Dear Mike Frysinger, In message <1286213633-8304-1-git-send-email-vap...@gentoo.org> you wrote: > The following changes since commit 2e6e1772c0e34871769be4aef79748fe3e47d953: > > Merge branch 'next' of /home/wd/git/u-boot/next (2010-09-28 23:30:47 +0200) > > are available in the git repository

Re: [U-Boot] Please pull u-boot-ppc4xx/master

2010-10-05 Thread Wolfgang Denk
Dear Stefan Roese, In message <201010041127.48077...@denx.de> you wrote: > The following changes since commit dd09985499ac95484974eb0f832fe47b33369952: > > hmi1001, mucmc52, uc100, uc101: move boards to vendor directory (2010-10-04 > 10:58:38 > +0200) > > are available in the git repository

Re: [U-Boot] denx/master is not building for OMAP3 platforms except Beagle

2010-10-05 Thread Bas Mevissen
On Mon, 04 Oct 2010 08:40:36 +0200, Rogan Dawes wrote: > For what it is worth, would it be possible to have a more verbose error > message that actually provides a reference to what needs to be done, > rather than simply failing with an obscure message about DRAM configuration? > Maybe somethin

Re: [U-Boot] Please pull u-boot-video/next

2010-10-05 Thread Wolfgang Denk
Dear Anatolij Gustschin, In message <20100927212457.4051a...@wker> you wrote: > Dear Wolfgang, > > The following changes since commit 6aa3d3bfaa986f1aff5e21a9b9f68d087715b1a9: > Peter Tyser (1): > 83xx: Remove warmboot parameter from PCI init functions > > are available in the git repo

Re: [U-Boot] ppc4xx:DDR SDRAM test

2010-10-05 Thread Stefan Roese
Hi Tim, On Tuesday 05 October 2010 12:12:19 Tim Rachman wrote: > I ported u-boot-2009-11 to my custom board using ppc440EP processor. Hmmm. Already nearly one year old. I suggest to update to the latest release. > I > changed amcc/bamboo BSP to run u-boot on my board. Autsch. You should never

[U-Boot] [PATCH v2] env: fix cmd_env_sub fct pointers if CONFIG_RELOC_FIXUP_WORKS is not defined

2010-10-05 Thread Heiko Schocher
commit ea882baf9c17cd142c99e3ff640d3ab01daa5cec introduces a command_sub_table for the "env" command. On arm, avr32, m68k, mips and sparc architectures, relocation needs manual fixups, so add these fixups for this sub command table too. Tested on arm/qong board. mips board (Ben NanoNote)

[U-Boot] [PATCH] rules.mk: make sure we always create a .depend file

2010-10-05 Thread Wolfgang Denk
There are some cases where "make depend" would always run when entering a directory. This happened when both the $(SRCS) and $(HOSTSRCS) lists were empty (which is for example typical for the examples/api/ directory). Avoid this by making sure that a ".depend" file gets always created, even if em

Re: [U-Boot] [RFC] [PATCH V2] arm: arm926ejs: use ELF relocations

2010-10-05 Thread Heiko Schocher
Hello Albert, Heiko Schocher wrote: > Albert Aribaud wrote: >> HISTORY: >> >> V1 Initial patch >> V2 Rebased on latest mainline master >> >> This patch is *not* a submission for master! >> >> It is a proof of concept of ELF relocations for ARM, hastily done >> in a day's work time for people o

Re: [U-Boot] [PATCH 1/2] USB: Make non-bulk delay longer in OHCI

2010-10-05 Thread Detlev Zundel
Hi Wolfgang, [...] > The message I received through the list did not contain any such Cc: > > | Subject: Re: [U-Boot] [PATCH 1/2] USB: Make non-bulk delay longer in OHCI > | From: Marek Vasut > | Date: Mon, 4 Oct 2010 01:36:27 +0200 > | To: u-boot@lists.denx.de > | Cc: wd...@denx.de > > But I r

Re: [U-Boot] denx/master is not building for OMAP3 platforms except Beagle

2010-10-05 Thread Detlev Zundel
Hi Heiko, > Hello Detlev, > > Detlev Zundel wrote: >> Hi Heiko, >> >> [...] >> Surely having e.g. #if (not fixed config) #error See http://blah/blah/blah for information about how to fix your board #endif would be more beneficial than an obscure compiler

Re: [U-Boot] [RFC] [PATCH V2] arm: arm926ejs: use ELF relocations

2010-10-05 Thread Albert ARIBAUD
Le 05/10/2010 13:17, Reinhard Meyer a écrit : > Dear All ;) >>> Umm... is my understanding correct that we can drop the whole >>> CONFIG_SYS_ARM_WITHOUT_RELOC stuff then, too? >> >> I believe we're just changing the relocation solution, but we're not >> changing the overall strategy regarding CONFI

Re: [U-Boot] [RFC] [PATCH V2] arm: arm926ejs: use ELF relocations

2010-10-05 Thread Wolfgang Denk
Dear Albert ARIBAUD, In message <4cab0793.4000...@free.fr> you wrote: > > Rather than submitting a patch set for mainline, I'll submit a single > ELF patch that you will put on a specific branch (let's call it > elf_reloc here for the sake of clarity) Please submit 2 patches: - ELF patch - edm

Re: [U-Boot] packed attribute problem

2010-10-05 Thread Detlev Zundel
Hi Reinhard, [...] >> Note that this is with GCC 4.2.2. Even GCC 4.0.0 behaves the same, so >> this is *not* an issue with very recent tool chains. > > OK, for directly adressing elements inside a packed struct; > but the original post said: > > "struct xyz { > int x; > int y;

[U-Boot] [PATCH v2 20/20] x86: Implement fully relocatable image

2010-10-05 Thread Graeme Russ
u-boot.bin can be loaded at any 4-byte aligned memory location and directly 'jumped' to using the 'go' command using the load address as the start address. Doing so performs a 'warm boot' which skips memory initialisation and other low-level initialisations, relocates U-Boot to upper memory and sta

[U-Boot] [PATCH v2 16/20] x86: Set cold/warm boot flag

2010-10-05 Thread Graeme Russ
Signed-off-by: Graeme Russ --- arch/i386/cpu/start.S | 19 ++- arch/i386/cpu/start16.S |7 --- arch/i386/include/asm/global_data.h |3 +++ 3 files changed, 13 insertions(+), 16 deletions(-) diff --git a/arch/i386/cpu/start.S b/arch/i386/cp

[U-Boot] [PATCH v2 19/20] x86: Use loops instead of memcpy/memset in board_init_f

2010-10-05 Thread Graeme Russ
Provides a small speed increase and prepares for fully relocatable image. Downside is the TEXT_BASE, bss, load address etc must ALL be aligned on a a 4-byte boundary which is not such a terrible restriction as everything is already 4-byte aligned anyway Signed-off-by: Graeme Russ --- arch/i386/l

[U-Boot] [PATCH v2 15/20] x86: Place global data below stack before entering C

2010-10-05 Thread Graeme Russ
By reserving space for the Global Data immediately below the stack during assembly level initialisation, the C declaration of the static global data can be removed, along with the 'RAM Bootstrap' function. This results in cleaner code, and the ability to pass boot-up flags from assembler into C Si

[U-Boot] [PATCH v2 18/20] x86: Rearrange linker script

2010-10-05 Thread Graeme Russ
Tidy up the linker script and discard some sections to save space Signed-off-by: Graeme Russ --- arch/i386/lib/board.c |5 +++-- board/eNET/u-boot.lds | 39 ++- 2 files changed, 21 insertions(+), 23 deletions(-) diff --git a/arch/i386/lib/board.c b/arch

[U-Boot] [PATCH v2 17/20] x86: Rename linker script symbols

2010-10-05 Thread Graeme Russ
Create more generic names for the symbols exported from the linker script Signed-off-by: Graeme Russ --- arch/i386/lib/bios_setup.c | 14 +++--- arch/i386/lib/board.c | 20 ++-- arch/i386/lib/realmode.c | 14 +++--- board/eNET/u-boot.lds | 21 +

[U-Boot] [PATCH v2 13/20] x86: Don't clobber %ebx

2010-10-05 Thread Graeme Russ
%ebx will hold low-level boot flags and must be preserved Signed-off-by: Graeme Russ --- arch/i386/cpu/sc520/sc520_asm.S | 15 ++- arch/i386/cpu/start.S |4 ++-- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/arch/i386/cpu/sc520/sc520_asm.S b/arch/i38

[U-Boot] [PATCH v2 14/20] x86: Dont clobber %eax after getting memory size

2010-10-05 Thread Graeme Russ
By using another register, reduce code size by one instruction Signed-off-by: Graeme Russ --- arch/i386/cpu/start.S |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/i386/cpu/start.S b/arch/i386/cpu/start.S index 63f7334..66ff4f3 100644 --- a/arch/i386/cpu/start.S

[U-Boot] [PATCH v2 12/20] x86: Remove usage of %ebp as a return pointer

2010-10-05 Thread Graeme Russ
Using %ebp as a return pointer prevents creating 'load anywhere' images Signed-off-by: Graeme Russ --- arch/i386/cpu/sc520/sc520_asm.S |6 +++--- arch/i386/cpu/start.S | 12 ++-- arch/i386/cpu/start16.S |2 +- board/eNET/eNET_start.S |2 +- board/e

[U-Boot] [PATCH v2 10/20] x86: Remove progress indication in low-level init

2010-10-05 Thread Graeme Russ
Progress indication is not relocation friendly so remove it in preperation for full relocatability support Signed-off-by: Graeme Russ --- arch/i386/cpu/start.S | 44 ++-- board/eNET/eNET_start.S | 12 2 files changed, 2 insertions(+), 54

[U-Boot] [PATCH v2 11/20] x86: Move ECC initialisation outside RAM initialisation

2010-10-05 Thread Graeme Russ
To allow for 'load anywhere' images, the %ebp return pointer 'hack' must be removed, so we cannot have two 'calls' to get_mem_size Signed-off-by: Graeme Russ --- arch/i386/cpu/sc520/sc520_asm.S | 17 +++-- arch/i386/cpu/start.S | 11 +++ 2 files changed, 14 inse

[U-Boot] [PATCH v2 09/20] x86: Fix %ss and %esp in register structure for interrupts

2010-10-05 Thread Graeme Russ
Signed-off-by: Graeme Russ --- arch/i386/cpu/interrupts.c| 23 +++ arch/i386/include/asm/interrupt.h |2 ++ arch/i386/include/asm/ptrace.h| 24 3 files changed, 45 insertions(+), 4 deletions(-) diff --git a/arch/i386/cpu/interrupt

[U-Boot] [PATCH v2 07/20] x86: Coding Style Cleanup

2010-10-05 Thread Graeme Russ
Perform some basic code cleanups of the x86 files Signed-off-by: Graeme Russ --- arch/i386/cpu/sc520/sc520.c | 54 ++-- arch/i386/cpu/sc520/sc520_asm.S | 642 +++ arch/i386/cpu/start.S | 30 +- arch/i386/cpu/start16.S |9 +- 4 fi

[U-Boot] [PATCH v2 03/20] x86: Use TEXT_BASE in linker scripts

2010-10-05 Thread Graeme Russ
Use TEXT_BASE rather than a hard-coded base address on x86 linker scripts. This will allow any board to define its base link address without having to modify the linker script Signed-off-by: Graeme Russ --- board/eNET/u-boot.lds |8 1 files changed, 4 insertions(+), 4 deletions(-)

[U-Boot] [PATCH v2 08/20] x86: Change compiler options

2010-10-05 Thread Graeme Russ
Change to: - reparam=3 - no-from-pointer - no-stack-protector - preferred-stack-boundary=2 - no-top-level-reorder These options make the code a little smaller and faster Signed-off-by: Graeme Russ --- arch/i386/config.mk |8 arch/i386/cpu/interrupts.c|

[U-Boot] [PATCH v2 06/20] x86: Move loading of GTD to C code

2010-10-05 Thread Graeme Russ
Linux has C macros and code to load the GTD after switching to Protected Mode. Using these greatly simplifies the assembler code Signed-off-by: Graeme Russ --- arch/i386/cpu/cpu.c | 57 + arch/i386/cpu/start.S | 96 ---

[U-Boot] [PATCH v2 05/20] x86: use gc sections to reduce image size

2010-10-05 Thread Graeme Russ
Follow the discussion of Charles Manning and Mike Frysinger. Using gc_sections helps reduce image size. Signed-off-by: Graeme Russ --- arch/i386/config.mk |3 +++ board/eNET/u-boot.lds | 10 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/arch/i386/config.mk b/a

[U-Boot] [PATCH v2 04/20] x86: zboot update

2010-10-05 Thread Graeme Russ
The header of recent Linux Kernels includes the size of the image, and therefore is not needed to be passed to zboot. Still process the third parameter (size of image) in the event that an older kernel is being loaded Signed-off-by: Graeme Russ --- arch/i386/lib/zimage.c | 18 +

[U-Boot] [PATCH v2 02/20] x86: Make CONFIG_RELOC_FIXUP_WORKS generic for all x86 boards

2010-10-05 Thread Graeme Russ
Relocation is not board-specific for the x86 architectrure, so CONFIG_RELOC_FIXUP_WORKS can be defined globally in the config.h Signed-off-by: Graeme Russ --- arch/i386/include/asm/config.h |2 ++ include/configs/eNET.h |2 -- 2 files changed, 2 insertions(+), 2 deletions(-) dif

[U-Boot] [PATCH v2 01/20] x86: Remove bi_env from do_bdinfo

2010-10-05 Thread Graeme Russ
Commit 55e97429d1e6cf0976711e4e0f29ea924b7e5917 removed the definition from /arch/i386/include/asm/u-boot.h but not its usage in do_bdinfo() Signed-off-by: Graeme Russ --- common/cmd_bdinfo.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/common/cmd_bdinfo.c b/common/cm

[U-Boot] [PATCH v2 00/20] x86: Create fully relocatable U-Boot image

2010-10-05 Thread Graeme Russ
Version 2 adds an additional patch to fix a breakage which I did not pick up after rebasing against master ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [RFC] [PATCH V2] arm: arm926ejs: use ELF relocations

2010-10-05 Thread Albert ARIBAUD
Le 05/10/2010 13:01, Reinhard Meyer a écrit : > Dear Graeme Russ, >>> .globl _rel_dyn_start_ofs >>> _rel_dyn_start_ofs: >>> .word __rel_dyn_start - _start >>> .globl _rel_dyn_end_ofs >>> _rel_dyn_end_ofs: >>> .word __rel_dyn_end - _start >>> .globl _dynsym_start_ofs >>> _dynsym_start_ofs: >

Re: [U-Boot] [RFC] [PATCH V2] arm: arm926ejs: use ELF relocations

2010-10-05 Thread Reinhard Meyer
Dear All ;) >> Umm... is my understanding correct that we can drop the whole >> CONFIG_SYS_ARM_WITHOUT_RELOC stuff then, too? > > I believe we're just changing the relocation solution, but we're not > changing the overall strategy regarding CONFIG_SYS_ARM_WITHOUT_RELOC. We should not forget that

  1   2   >