[U-Boot] [PATCH v3] TQM85xx: enable partition support, sort commands

Kumar Gala galak at kernel.crashing.org
Thu Sep 10 04:02:11 CEST 2009


On Sep 8, 2009, at 3:29 PM, Wolfgang Denk wrote:

> Signed-off-by: Wolfgang Denk <wd at denx.de>
>
> ---
> v2: Fix building for TQM8548_BE
>
>    On TQM8548_BE, building failed like that:
> 	Configuring for TQM85xx board...
> 	common/libcommon.a(cmd_mtdparts.o): In function  
> `part_validate_eraseblock':
> 	/home/wd/git/u-boot/work/common/cmd_mtdparts.c:316: undefined  
> reference to `get_mtd_device_nm'
> 	common/libcommon.a(cmd_mtdparts.o): In function  
> `mtd_device_validate':
> 	/home/wd/git/u-boot/work/common/cmd_mtdparts.c:706: undefined  
> reference to `get_mtd_device_nm'
> 	make: *** [u-boot] Error 1
>
>    This was because CONFIG_CMD_MTDPARTS was defined after it was
>    used. Move the part that uses it after the #define.
> v3: Fix "undefined reference to `get_mtd_device_nm'" errors for
>    non-8548 boards; build-tested with ELDK 4.2 on TQM8540, TQM8541,
>    TQM8548, TQM8548_AG, TQM8548_BE, TQM8555 and TQM8560
>
> include/configs/TQM85xx.h |   51 +++++++++++++++++++++++ 
> +--------------------
> 1 files changed, 28 insertions(+), 23 deletions(-)

Did this build ok w/o any warnings on TQM8540?

I'm seeing:

[galak at komodo u-boot-85xx]$ ./MAKEALL TQM8540
... TQM8540 (MPC8540)
Configuring for TQM85xx board...
/opt/eldk/4.2/ppc-linux-x86/usr/bin/ppc_85xxDP-ld: u-boot:  
section .text lma 0xfffc0000 overlaps previous sections
/opt/eldk/4.2/ppc-linux-x86/usr/bin/ppc_85xxDP-ld: u-boot:  
section .rodata lma 0xffff13a4 overlaps previous sections
/opt/eldk/4.2/ppc-linux-x86/usr/bin/ppc_85xxDP-ld: u-boot:  
section .reloc lma 0xffffc400 overlaps previous sections
/opt/eldk/4.2/ppc-linux-x86/usr/bin/ppc_85xxDP-ld: u-boot:  
section .data lma 0xffffdc30 overlaps previous sections
/opt/eldk/4.2/ppc-linux-x86/usr/bin/ppc_85xxDP-ld: u-boot:  
section .data.rel.ro.local lma 0xffffe964 overlaps previous sections
/opt/eldk/4.2/ppc-linux-x86/usr/bin/ppc_85xxDP-ld: u-boot:  
section .data.rel lma 0xffffe9e4 overlaps previous sections
/opt/eldk/4.2/ppc-linux-x86/usr/bin/ppc_85xxDP-ld: u-boot:  
section .data.rel.local lma 0xfffff380 overlaps previous sections
    text	   data	    bss	    dec	    hex	filename
  247104	  16992	  35304	 299400	  49188	./u-boot

Which effective says to me we've run out of space in the image.

- k


More information about the U-Boot mailing list