[U-Boot] Building uboot image for panda board
old000
Qiao.HelloWorld at gmail.com
Wed Mar 14 10:55:47 CET 2012
Hi Charles,
I have encountered similar problems before.
The error might happen while compiling MLO for OMAP platforms.
Check the Makefile under "u-boot/spl/board/" or other spl-related Makefiles.
There might be some unnecessary .o files outside the
#ifndef CONFIG_SPL_BUILD
obj-(CONFIG_BLABLABLA...) += <something>.o
obj-(CONFIG_BLABLABLA...) += <something>.o
......
#endif
put the .o files which necessary for u-boot.img but not for MLO inside.
charlesKAO wrote:
>
> Hi i am charles.
> I am building the panda uboot image, but something wrong.
>
> make[1]: Leaving directory
> `/home/charles/Work_100G/PandaBoard/U_boot/u-boot/arch/arm/cpu/armv7'
> make -C tools all
> make[1]: Entering directory
> `/home/charles/Work_100G/PandaBoard/U_boot/u-boot/tools'
> make[1]: Leaving directory
> `/home/charles/Work_100G/PandaBoard/U_boot/u-boot/tools'
> make -C spl/board/ti/panda all
> make[1]: Entering directory
> `/home/charles/Work_100G/PandaBoard/U_boot/u-boot/spl/board/ti/panda'
> /home/charles/Work_100G/PandaBoard/ICS4.0/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc
> -g -Os -fno-common -ffixed-r8 -msoft-float -D__KERNEL__
> -DCONFIG_SYS_TEXT_BASE=0x80e80000
> -I/home/charles/Work_100G/PandaBoard/U_boot/u-boot/include -fno-builtin
> -ffreestanding -nostdinc -isystem
> /home/charles/Work_100G/PandaBoard/ICS4.0/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/include
> -pipe -DCONFIG_ARM -D__ARM__ -marm -mno-thumb-interwork
> -mabi=aapcs-linux -march=armv5 -march=armv7-a -Wall -Wstrict-prototypes
> -fno-stack-protector -DCONFIG_PRELOADER -Os -ffixed-r8 -ffunction-sections
> -fdata-sections -march=armv7-a -mthumb -c -o spl-omap.o spl-omap.c
> cd /home/charles/Work_100G/PandaBoard/U_boot/u-boot/spl/board/ti/panda &&
> /home/charles/Work_100G/PandaBoard/ICS4.0/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-ld
> -Bstatic -T
> /home/charles/Work_100G/PandaBoard/U_boot/u-boot/spl/u-boot-spl-generated.lds
> --gc-sections start.o reset.o lowlevel_init.o serial.o ns16550.o
> string.o vsprintf.o console.o stdio.o ctype.o eabi_compat.o div64.o
> omap_hsmmc.o omap24xx_i2c.o mmc.o time.o part.o part_dos.o fat.o syslib.o
> utils.o timer.o spl-omap.o board.o clocks.o emif.o sdram_elpida.o \
> -L
> /home/charles/Work_100G/PandaBoard/ICS4.0/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/thumb
> -lgcc \
> -Map /home/charles/Work_100G/PandaBoard/U_boot/u-boot/spl/u-boot-spl.map
> \
> -o /home/charles/Work_100G/PandaBoard/U_boot/u-boot/spl/u-boot-spl
> clocks.o: In function `prcm_init':
> clocks.c:(.text.prcm_init+0x8a): undefined reference to
> `omap_set_gpio_direction'
> clocks.c:(.text.prcm_init+0x92): undefined reference to
> `omap_set_gpio_dataout'
> make[1]: ***
> [/home/charles/Work_100G/PandaBoard/U_boot/u-boot/spl/u-boot-spl] Error 1
> make[1]: Leaving directory
> `/home/charles/Work_100G/PandaBoard/U_boot/u-boot/spl/board/ti/panda'
> make: *** [SPL] Error 2
>
> Does anyone know what's wrong?
> Thanks~
>
--
View this message in context: http://old.nabble.com/Building-uboot-image-for-panda-board-tp33464297p33500685.html
Sent from the Uboot - Users mailing list archive at Nabble.com.
More information about the U-Boot
mailing list