[U-Boot] A Problem of u-boot on TI PandaBoard porting

Qiao.HelloWorld at gmail.com Qiao.HelloWorld at gmail.com
Mon Jan 9 04:27:00 CET 2012


Thanks for your reply, I modified the comment of
include/configs/panda_test.h to C-style, and the problem solved!

However, I encountered another problem...I can build u-boot.img,
u-boot.bin, u-boot.srec, but still NOT MLO

the error message is as below:
==============================================================
/arm-2010q1/bin/arm-none-eabi-gcc -E -g  -Os   -fno-common -ffixed-r8
-msoft-float  -D__KERNEL__ -ffunction-sections -fdata-sections
-DCONFIG_SYS_TEXT_BASE=0x80E80000 -DCONFIG_SPL_TEXT_BASE=0x40304350
-DCONFIG_SPL_BUILD -I/home/qian/Desktop/SVN/OMAP4/u-boot_panda/include
-fno-builtin -ffreest            anding -nostdinc -isystem
/arm-2010q1/bin/../lib/gcc/arm-none-eabi/4.4.1/include -pipe  -DCONFIG_ARM
-D__ARM__ -marm -mabi=aapcs-linux -mno-thumb-interwork -march=armv5
-include
/home/qian/Desktop/SVN/OMAP4/u-boot_panda/include/u-boot/u-boot.lds.h
-include /home/qian/Desktop/SVN/OMAP4/u-boot_panda/include/config.h  -ansi
-D__ASSEMBLY__ -P - <
/home/qian/Desktop/SVN/OMAP4/u-boot_panda/arch/arm/cpu/armv7/omap-common/u-boot-spl.lds
> /home/qian/Desktop/SVN/OMAP4/u-boot_panda/spl/u-boot-spl.lds
UNDEF_SYM=`/arm-2010q1/bin/arm-none-eabi-objdump -x /
 home/qian/Desktop/SVN/OMAP4/u-boot_panda/spl/arch/arm/cpu/armv7/libarmv7.o
/home/qian/Desktop/SVN/OMAP4/u-boot_panda/spl/arch/arm/cpu/armv7/omap-common/libomap-common.o
/home/qian/Desktop/SVN/OMAP4/u-boot_panda/spl/arch/arm/cpu/armv7/omap4/libomap4.o
/home/qian/Desktop/SVN/OMAP4/u-boot_panda/spl/arch/arm/lib/libarm.o /
     home/qian/Desktop/SVN/OMAP4/u-boot_panda/spl/board/ti/panda/libpanda.o
/home/qian/Desktop/SVN/OMAP4/u-boot_panda/spl/common/libcommon.o
/home/qian/Desktop/SVN/OMAP4/u-boot_panda/spl/disk/libdisk.o
/home/qian/Desktop/SVN/OMAP4/u-boot_panda/spl/drivers/i2c/libi2c.o
/home/qian/Desktop/SVN/OMAP4/u-boot_panda/spl/drivers/mm
 c/libmmc.o
/home/qian/Desktop/SVN/OMAP4/u-boot_panda/spl/drivers/power/libpower.
     o
/home/qian/Desktop/SVN/OMAP4/u-boot_panda/spl/drivers/serial/libserial.o
/home            /qian/Desktop/SVN/OMAP4/u-boot_panda/spl/fs/fat/libfat.o
/home/qian/Desktop/SVN/            OMAP4/u-boot_panda/spl/lib/libgeneric.o
| sed  -n -e 's/.*\(__u_boot_cmd_.*\)/-u            \1/p'|sort|uniq`; cd
/home/qian/Desktop/SVN/OMAP4/u-boot_panda/spl/ && /home/qia
 n/Desktop/Sourcery/arm-2010q1/bin/arm-none-eabi-ld  -T
/home/qian/Desktop/SVN/OMAP4/u-boot_panda/spl/u-boot-spl.lds --gc-sections
-Bstatic -Ttext 0x40304350 $UNDEF_SYM arch/arm/cpu/armv7/start.o
--start-group arch/arm/cpu/armv7/libarmv7.o
arch/arm/cpu/armv7/omap-common/libomap-common.o
arch/arm/cpu/armv7/omap4/libomap4.o arch/arm/lib/libarm.o
board/ti/panda/libpanda.o common/libcommon.o disk/libdisk.o
drivers/i2c/libi2c.o drivers/mmc/libmmc.o drivers/power/libpower.o
drivers/serial/libserial.o fs/fat/libfat.o lib/libgeneric.o --end-group
/home/qian/Desktop/SVN/OMAP4/u-boot_panda/spl/arch/arm/lib/eabi_compat.o -L
/home/qian/Desktop/Sourcery/arm-2010q1/bin/../lib/gcc/arm-none-eabi/4.4.1
-lgcc -Map u-boot-spl.map -o u-boot-spl
common/libcommon.o: In function `do_gpioTest':
/home/qian/Desktop/SVN/OMAP4/u-boot_panda/common/panda_test/cmd_gpioTest.c:108:
undefined reference to `cmd_usage'
common/libcommon.o: In function `pmic_dump':
/home/qian/Desktop/SVN/OMAP4/u-boot_panda/common/panda_test/cmd_pmicTest.c:80:
undefined reference to `twl6030_i2c_read_u8'
common/libcommon.o: In function
`do_pmic': /home/qian/Desktop/SVN/OMAP4/u-boot_panda/common/panda_test/cmd_pmicTest.c:123:
undefined reference to `twl6030_i2c_read_u8'
/home/qian/Desktop/SVN/OMAP4/u-boot_panda/common/panda_test/cmd_pmicTest.c:135:
undefined reference to `cmd_usage'
/home/qian/Desktop/SVN/OMAP4/u-boot_panda/common/panda_test/cmd_pmicTest.c:141:
undefined reference to `twl6030_i2c_write_u8'
common/libcommon.o: In function `do_ramTest':
/home/qian/Desktop/SVN/OMAP4/u-boot_panda/common/panda_test/cmd_ramTest.c:33:
undefined reference to `cmd_usage'
make[1]: *** [/home/qian/Desktop/SVN/OMAP4/u-boot_panda/spl/u-boot-spl]
Error 1
make[1]: Leaving directory `/home/qian/Desktop/SVN/OMAP4/u-boot_panda/spl'
make: *** [spl/u-boot-spl.bin] Error 2
==============================================================

I'm wondering why these errors didn't appear while building 'u-boot.img'
but appeared while building MLO? Is there any other things I need to do for
SPL?

thanks!

>
> > *u-boot/spl/u-boot-spl.lds:1: syntax error
> > make[1]: *** [/home/qian/Desktop/u-boot/spl/u-boot-spl] Error 1
> > make[1]: Leaving directory `/home/qian/Desktop/u-boot/spl'
> > make: *** [spl/u-boot-spl.bin] Error 2*
> >
> > I’ve check the file ‘spl/u-boot-spl.lds’, the first line is a comment as
> > below:
> > *// add PandaTest Configuration*
>


More information about the U-Boot mailing list