Skip to contentSkip to conversation

Building uboot image for panda board

U-Boot charlesKAO 3 participants 4 messages Mar 8, 2012 – Mar 20, 2012

lore
Share & tools
lore

charlesKAO

author
#0 lore raw

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~

Signature · 2 lines
View this message in context: http://old.nabble.com/Building-uboot-image-for-panda-board-tp33464297p33464297.html
Sent from the Uboot - Users mailing list archive at Nabble.com.
#1 lore raw

Hi Charles,

Quoted 37 lines · charlesKAO

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

(quoted diff) +0 -4
-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

(quoted diff) +0 -4
-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
Quoted 10 lines

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

I believe you are trying an older version. The current HEAD of master doesn't have gpio functions in clocks.c?

br,
Aneesh

#3 lore raw
In reply to charlesKAO

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.

Quoted 52 lines · charlesKAO

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

(quoted diff) +0 -4
-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

(quoted diff) +0 -4
-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~

Signature · 2 lines
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.
#2 lore raw
In reply to Aneesh V

Hi Aneesh

Can you show me where to get the new version uboot code for panda ICS ?

Thanks.
Charles

Quoted 74 lines · Aneesh V

Hi Charles,

Quoted 50 lines · charlesKAO

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

(quoted diff) +0 -5
-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

(quoted diff) +0 -4
-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/
Quoted 13 lines

**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

I believe you are trying an older version. The current HEAD of master doesn't have gpio functions in clocks.c?

br,
Aneesh