u-boot(1.1.6) for adm5120 problem
i want to compile bootloader for my board(adm5120).
i use buildroot to build a cross-toolchain.
(some tools is:
binutils-2.16.91.0.2.tar.bz2 gcc-3.4.4.tar.bz2 uClibc-0.9.27.tar.bz2...), and i can use the cross-toolchain to compile my kernel, and is ok! so, i use it to compile the u-boot(the patch for adm5120
[http://www.nerdclub.nl/u-boot/adm5120-support.txt] is ok), but i got some error:
.
.
. /root/adm5120/buildroot/build_mipsel/staging_dir/bin/mipsel-linux-ld:
common/libcommon.a(memsize.o): compiled for a big endian system and target is little endian /root/adm5120/buildroot/build_mipsel/staging_dir/bin/mipsel-linux-ld:
common/libcommon.a(memsize.o): endianness incompatible with that of the selected emulation /root/adm5120/buildroot/build_mipsel/staging_dir/bin/mipsel-linux-ld: failed to merge target specific data of file common/libcommon.a(memsize.o) cpu/mips/start.o: In function `reset':
start.S:(.text+0x42c): undefined reference to `_GLOBAL_OFFSET_TABLE_'
/bin/sh: line 1: 13348 segment error
/root/adm5120/buildroot/build_mipsel/staging_dir/bin/mipsel-linux-ld -Bstatic -T /root/u-boot-1.1.6/board/adm5120/u-boot.lds -Ttext 0xA0010000 $UNDEF_SYM cpu/mips/start.o --start-group lib_generic/libgeneric.a board/adm5120/libadm5120.a cpu/mips/libmips.a lib_mips/libmips.a fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a net/libnet.a disk/libdisk.a rtc/librtc.a dtt/libdtt.a drivers/libdrivers.a drivers/nand/libnand.a drivers/nand_legacy/libnand_legacy.a drivers/sk98lin/libsk98lin.a post/libpost.a post/cpu/libcpu.a common/libcommon.a --end-group
-L /root/adm5120/buildroot/build_mipsel/staging_dir/lib/gcc/mipsel-linux-uclibc/3.4.4 -lgcc -Map u-boot.map -o u-boot
make: *** [u-boot] error 139
anybody can tell me , where is wrong?
Signature · 1 line
xfwolf
Quoted 2 lines · In message <[email protected]> you wrote:
common/libcommon.a(memsize.o): compiled for a big endian system and target is little endian
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Quoted 1 line
anybody can tell me , where is wrong?
Why don't you just read the error messages?
Best regards,
Wolfgang Denk
Signature · 4 lines
DENX Software Engineering GmbH, HRB 165235 Munich, CEO: Wolfgang Denk Office: Kirchenstr. 5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Two wrongs don't make a right, but three rights make a left.
Hello XWolf,
Quoted 4 lines
i want to compile bootloader for my board(adm5120). i use buildroot to build a cross-toolchain. (some tools is:
binutils-2.16.91.0.2.tar.bz2 gcc-3.4.4.tar.bz2
uClibc-0.9.27.tar.bz2...), and
Quoted 3 lines
i can use the cross-toolchain to compile my kernel, and is ok! so, i use it to compile the u-boot(the patch for adm5120
[http://www.nerdclub.nl/u-boot/adm5120-support.txt] is ok), but i got
some
Quoted 7 lines
error:
snip<
make: *** [u-boot] error 139
anybody can tell me , where is wrong?
I have made that patch you're using. Always use the ELDK tool set for building U-Boot, especially for the MIPS platform because there's some trickery in makefiles to determine the endianity of the compiler by it's name.
Good luck!
Robert.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20070511/8a65588d/attachment.htm