u-boot-1.1.1 ml300 compile problem
----- Forwarded message (env-from root) -----
Quoted 4 lines · In message <[email protected]> you wrote:
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.
Did you try the current version (top of tree in CVS) ?
Quoted 2 lines
Procedure:
copied boot.o crt0.o and libc.a to examples
Don't do that!
Quoted 1 line
IT failes with an undefined reference to main
This is because you added files which don't belong to U-Boot.
Best regards,
Wolfgang Denk
Signature · 5 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
The most difficult thing in the world is to know how to do a thing
and to watch someone else doing it wrong, without commenting.
-- T.H. WhiteQuoted 8 lines
Quoted 4 lines · In message <[email protected]> you wrote:
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.
Did you try the current version (top of tree in CVS) ?
Quoted 9 lines
Quoted 2 lines
Procedure:
copied boot.o crt0.o and libc.a to examplesDon't do that!
Quoted 1 line
IT failes with an undefined reference to main
This is because you added files which don't belong to U-Boot.
ok - then its something else - I actually added these files because of the errors I got with the stock 1.1.1 - which failed with ld not finding boot.o
below is the output from make with the relevant error.
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-ld: cannot find boot.o
make[1]: *** [hello_world] Error 1
make[1]: Leaving directory `/root/u-boot-1.1.1/examples'
make: *** [examples] Error 2
thx !
hofrat
Quoted 5 lines · In message <[email protected]> you wrote:
Quoted 3 lines
This is because you added files which don't belong to U-Boot.
ok - then its something else - I actually added these files because of the errors I got with the stock 1.1.1 - which failed with ld not finding boot.o
Check your toolchain.
Quoted 5 lines
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 -lgccpowerpc-eabi-ld: cannot find boot.o
make[1]: *** [hello_world] Error 1
There is no such object (or source) in U-Boot. I guess it comes though your compiler's library files. Use an approved toolchain instead.
Best regards,
Wolfgang Denk
Signature · 5 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de egrep patterns are full regular expressions; it uses a fast determi- nistic algorithm that sometimes needs exponential space. - unix manuals