[U-Boot-Users] Uboot compiling problem...
Stephan Magnier
smagnier at hitex.co.uk
Tue Jun 22 12:35:12 CEST 2004
Hello there,
I have some problems with the generation of the U-boot
I am using the following version :
Uboot is 1.0.2
ELDK 3.0
>[root at linux-three u-boot]# make TQM823L_config
>rm -f include/config.h include/config.mk
>Configuring for TQM823L board...
Seems to be OK
"Make all" gives me this :
>make[1]: Entering directory `/opt/u-boot/examples'
>ppc_8xx-gcc -g -Os -fPIC -ffixed-r14 -meabi -D__KERNEL__ -DTEXT_BASE= -I
/
>opt/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem
>/opt/ELDK/usr/bin/../lib/gcc-lib/ppc-linux/3.2.2/include -pipe -DCONFIG_PP
C
> -D__powerpc__ -DCONFIG_8xx -ffixed-r2 -ffixed-r29 -mstring -mcpu=860 -msof
t
>-float -Wall -Wstrict-prototypes -g -Os -fPIC -ffixed-r14 -meabi -D__KER
N
>EL__ -DTEXT_BASE= -I/opt/u-boot/include -fno-builtin -ffreestanding -nostdi
n
>c -isystem
>opt/ELDK/usr/bin/../lib/gcc-lib/ppc-linux/3.2.2/include -pipe -DCONFIG_PPC
>-D__powerpc__ -DCONFIG_8xx -ffixed-r2 -ffixed-r29 -mstring -mcpu=860 -msoft
-
>float -I.. -Bstatic -T /opt/u-boot/board/tqm8xx/u-boot.lds -Ttext -n
>hello_world.c
> -o hello_world
>/opt/ELDK/usr/bin/../lib/gcc-lib/ppc-linux/3.2.2/../../../../ppc-linux/bin/
a
>s: option `-n' is ambiguous
>make[1]: *** [hello_world] Error 2
>make[1]: Leaving directory `/opt/u-boot/examples'
>make: *** [examples] Error 2
>[root at linux-three u-boot]#
I think this must be an older (much older) version of U-Boot. It
cannot be compiled with the newer versions of the GNU toolchain as
included with ELDK-3.0.
[WD]
Please make sure to use a more recent version of U-Boot, for example
the one that is included with the ELDK (see for example directory
/opt/eldk/ppc_8xx/usr/src/u-boot-1.0.2).
My installation of U-boot-1.0.2 (downloaded separtely from the "Leo"
website) is placed at the same level of the ELDK... but I don't think that
could be a real problem.... isn't it ? (path seems to be also recognised? )
But could you please tell me why, the make file is referring to the
Hello_world file ??
AFAIK, there is no "hello_world.c" file installed by default with the ELDK
???
regards,
Stephane
More information about the U-Boot
mailing list