[U-Boot-Users] u-boot-1.1.1 ml300 compile problem

Der Herr Hofrat der.herr at hofr.at
Tue Aug 31 11:56:51 CEST 2004


----- Forwarded message (env-from root) -----

>From root Sun Aug 29 16:10:11 2004
Subject: u-boot-1.1.1 ml300 compile problem
To: u-boot-users at lists-sourceforge.net
Date: Sun, 29 Aug 2004 16:10:11 +0200 (CEST)
X-Mailer: ELM [version 2.4ME+ PL60 (25)]


HI !

 The mails in the archive on ml300 I found say to "compile u-boot first" or
 state that it compiles successfully, the problem I have is that this step
 fails.

Platform: Debian 
Xilinx:   EDK 6.2

Procedure:
copied boot.o crt0.o and libc.a to examples
export CROSS_COMPILE=powerpc-eabi-
make ml300_config
make

IT failes with an undefined reference to main 
As I just ran this on the unmodified download version of u-boot to 
check the procedure before making any modifications for my board, I asume I'm
doing somthing wrong in the procedure/setup - any hint to what I'm doing wrong
or what the proper procedure would be ?


make[1]: Entering directory `/root/u-boot-1.1.1/tools'
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/root/u-boot-1.1.1/tools'
make[1]: Entering directory `/root/u-boot-1.1.1/examples'
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/root/u-boot-1.1.1/examples'
make[1]: Entering directory `/root/u-boot-1.1.1/post'
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/root/u-boot-1.1.1/post'
make[1]: Entering directory `/root/u-boot-1.1.1/post/cpu'
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/root/u-boot-1.1.1/post/cpu'
make -C tools all
make[1]: Entering directory `/root/u-boot-1.1.1/tools'
make[1]: Leaving directory `/root/u-boot-1.1.1/tools'
make -C examples all
make[1]: Entering directory `/root/u-boot-1.1.1/examples'
powerpc-eabi-ld -g  -Ttext 0x40000 \
	-o hello_world -e hello_world hello_world.o libstubs.a \
	-L/root/EDK/gnu/powerpc-eabi/lin/bin/../lib/gcc-lib/powerpc-eabi/2.95.3-4 -lgcc
powerpc-eabi-objcopy -O srec hello_world hello_world.srec 2>/dev/null
powerpc-eabi-gcc -g  -Os   -fPIC -ffixed-r14 -meabi -D__KERNEL__ -DTEXT_BASE=0x04000000 -I/root/u-boot-1.1.1/include -fno-builtin -ffreestanding -nostdinc -isystem /root/EDK/gnu/powerpc-eabi/lin/bin/../lib/gcc-lib/powerpc-eabi/2.95.3-4/include -pipe  -DCONFIG_PPC -D__powerpc__ -DCONFIG_4xx -ffixed-r2 -ffixed-r29 -mstring -Wa,-m405 -mcpu=405 -msoft-float -Wall -Wstrict-prototypes -c -o sched.o sched.c
powerpc-eabi-ld -g  -Ttext 0x40000 \
	-o sched -e sched sched.o libstubs.a \
	-L/root/EDK/gnu/powerpc-eabi/lin/bin/../lib/gcc-lib/powerpc-eabi/2.95.3-4 -lgcc
libxil.a(crt0.o): In function `_start':
crt0.o(.text+0x78): undefined reference to `main'
make[1]: *** [sched] Error 1
make[1]: Leaving directory `/root/u-boot-1.1.1/examples'
make: *** [examples] Error 2

thx !
hofrat




More information about the U-Boot mailing list