[U-Boot-Users] u-boot(1.1.6) for adm5120 problem

xfwolf xfdbse at 163.com
Thu Apr 19 05:07:56 CEST 2007

i want to compile bootloader for my board(adm5120).
i use buildroot to build a cross-toolchain.
(some tools is:
binutils- 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 
common/libcommon.a(memsize.o): compiled for a big endian system and target is 
little endian
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?

More information about the U-Boot mailing list