[U-Boot] [PATCH 1/2 V2] mips: add endianness support

Shinya Kuribayashi skuribay at pobox.com
Sat May 23 19:58:21 CEST 2009


Jean-Christophe PLAGNIOL-VILLARD wrote:
> On 00:24 Sun 24 May     , Shinya Kuribayashi wrote:
>> Thanks for resubmitting, but there's one thing I'm warried about.
>> when I gave it a try last time, with almost the same patch you did,
>> I had a GNU make problem.  I'll look closely into it, so please
>> wait for some time.
> which one?

First build attempt failed to complete the final linking because wrong
endianness specifier was passed.  However, one more try and you'll see
it got built where correct specifier (-EL) was there.

---

$ mips-linux-gnu-gcc --version
mips-linux-gnu-gcc (Sourcery G++ Lite 4.3-154) 4.3.3
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ mips-linux-gnu-gcc -dumpmachine
mips-linux-gnu

$ make dbau1550_el_config CROSS_COMPILE=mips-linux-gnu-
Configuring for dbau1x00 board...
$ make  CROSS_COMPILE=mips-linux-gnu-

[...]

make -C examples all
make[1]: Entering directory `/home/skuribay/git/u-boot.git/examples'
mips-linux-gnu-gcc -g  -Os   -D__KERNEL__ -DTEXT_BASE=0xbfc00000 -I/home/skuribay/git/u-boot.git/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/mips-4.3-154/bin/../lib/gcc/mips-linux-gnu/4.3.3/include -pipe  -DCONFIG_MIPS -D__MIPS__ -G 0 -mabicalls -fpic -msoft-float -EL -UMIPSEB -U_MIPSEB -U__MIPSEB -U__MIPSEB__ -UMIPSEL -U_MIPSEL -U__MIPSEL -U__MIPSEL__ -DMIPSEL -D_MIPSEL -D__MIPSEL -D__MIPSEL__ -Wall -Wstrict-prototypes -fno-stack-protector -c -o hello_world.o hello_world.c
mips-linux-gnu-gcc -g  -Os   -D__KERNEL__ -DTEXT_BASE=0xbfc00000 -I/home/skuribay/git/u-boot.git/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/mips-4.3-154/bin/../lib/gcc/mips-linux-gnu/4.3.3/include -pipe  -DCONFIG_MIPS -D__MIPS__ -G 0 -mabicalls -fpic -msoft-float -EL -UMIPSEB -U_MIPSEB -U__MIPSEB -U__MIPSEB__ -UMIPSEL -U_MIPSEL -U__MIPSEL -U__MIPSEL__ -DMIPSEL -D_MIPSEL -D__MIPSEL -D__MIPSEL__ -Wall -Wstrict-prototypes -fno-stack-protector -c -o stubs.o stubs.c
mips-linux-gnu-ar crv libstubs.a stubs.o
a - stubs.o
mips-linux-gnu-ld -g  -G 0 -static -n -nostdlib -EL -Ttext 0x80200000 -T mips.lds \
			-o hello_world -e hello_world hello_world.o libstubs.a \
			-L/opt/mips-4.3-154/bin/../lib/gcc/mips-linux-gnu/4.3.3 -lgcc
mips-linux-gnu-objcopy -O srec hello_world hello_world.srec 2>/dev/null
mips-linux-gnu-objcopy -O binary hello_world hello_world.bin 2>/dev/null
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/examples'

[...]

make -C /home/skuribay/git/u-boot.git/cpu/mips/ u-boot.lds
make[1]: Entering directory `/home/skuribay/git/u-boot.git/cpu/mips'
make[1]: Nothing to be done for `u-boot.lds'.
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/cpu/mips'
UNDEF_SYM=`mips-linux-gnu-objdump -x board/dbau1x00/libdbau1x00.a lib_generic/libgeneric.a lib_generic/lzma/liblzma.a lib_generic/lzo/liblzo.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 fs/yaffs2/libyaffs2.a fs/ubifs/libubifs.a net/libnet.a disk/libdisk.a drivers/bios_emulator/libatibiosemu.a drivers/block/libblock.a drivers/dma/libdma.a drivers/fpga/libfpga.a drivers/gpio/libgpio.a drivers/hwmon/libhwmon.a drivers/i2c/libi2c.a drivers/input/libinput.a drivers/misc/libmisc.a drivers/mmc/libmmc.a drivers/mtd/libmtd.a drivers/mtd/nand/libnand.a drivers/mtd/nand_legacy/libnand_legacy.a drivers/mtd/onenand/libonenand.a drivers/mtd/ubi/libubi.a drivers/mtd/spi/libspi_flash.a drivers/net/libnet.a drivers/net/phy/libphy.a drivers/net/sk98lin/libsk98lin.a drivers/pci/libpci.a drivers/pcmcia/libpcmcia.a drivers/spi/libspi.a drivers/rtc/librtc.a drivers/serial/libserial.
a drivers/twserial/libtws.a drivers/usb/gadget/libusb_gadget.a drivers/usb/host/libusb_host.a drivers/usb/musb/libusb_musb.a drivers/video/libvideo.a drivers/watchdog/libwatchdog.a common/libcommon.a libfdt/libfdt.a api/libapi.a post/libpost.a | \
		sed  -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
		cd /home/skuribay/git/u-boot.git && mips-linux-gnu-ld -Bstatic -T /home/skuribay/git/u-boot.git/cpu/mips/u-boot.lds  -G 0 -static -n -nostdlib -EB -Ttext 0xbfc00000 $UNDEF_SYM cpu/mips/start.o \
			--start-group lib_generic/libgeneric.a lib_generic/lzma/liblzma.a lib_generic/lzo/liblzo.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 fs/yaffs2/libyaffs2.a fs/ubifs/libubifs.a net/libnet.a disk/libdisk.a drivers/bios_emulator/libatibiosemu.a drivers/block/libblock.a drivers/dma/libdma.a drivers/fpga/libfpga.a drivers/gpio/libgpio.a drivers/hwmon/libhwmon.a drivers/i2c/libi2c.a drivers/input/libinput.a drivers/misc/libmisc.a drivers/mmc/libmmc.a drivers/mtd/libmtd.a drivers/mtd/nand/libnand.a drivers/mtd/nand_legacy/libnand_legacy.a drivers/mtd/onenand/libonenand.a drivers/mtd/ubi/libubi.a drivers/mtd/spi/libspi_flash.a drivers/net/libnet.a drivers/net/phy/libphy.a drivers/net/sk98lin/libsk98lin.a drivers/pci/libpci.a drivers/pcmcia/libpcmcia.a drivers/spi/libspi.a drivers/rtc/librtc.a drivers/serial/libserial.a drivers/twserial/libtws.a drivers/usb/gadget/li
busb_gadget.a drivers/usb/host/libusb_host.a drivers/usb/musb/libusb_musb.a drivers/video/libvideo.a drivers/watchdog/libwatchdog.a common/libcommon.a libfdt/libfdt.a api/libapi.a post/libpost.a board/dbau1x00/libdbau1x00.a --end-group -L /opt/mips-4.3-154/bin/../lib/gcc/mips-linux-gnu/4.3.3/soft-float -lgcc \
			-Map u-boot.map -o u-boot
mips-linux-gnu-ld: Warning: size of symbol `cpu_eth_init' changed from 56 in cpu/mips/libmips.a(cpu.o) to 8 in net/libnet.a(eth.o)
mips-linux-gnu-ld: cpu/mips/start.o: compiled for a little endian system and target is big endian
mips-linux-gnu-ld: cpu/mips/start.o: endianness incompatible with that of the selected emulation
mips-linux-gnu-ld: failed to merge target specific data of file cpu/mips/start.o
mips-linux-gnu-ld: cpu/mips/libmips.a(cache.o): compiled for a little endian system and target is big endian
mips-linux-gnu-ld: cpu/mips/libmips.a(cache.o): endianness incompatible with that of the selected emulation
mips-linux-gnu-ld: failed to merge target specific data of file cpu/mips/libmips.a(cache.o)

[...]

mips-linux-gnu-ld: cpu/mips/libmips.a(au1x00_serial.o): endianness incompatible with that of the selected emulation
mips-linux-gnu-ld: failed to merge target specific data of file cpu/mips/libmips.a(au1x00_serial.o)
mips-linux-gnu-ld: lib_mips/libmips.a(bootm.o): compiled for a little endian system and target is big endian
mips-linux-gnu-ld: lib_mips/libmips.a(bootm.o): endianness incompatible with that of the selected emulation
mips-linux-gnu-ld: failed to merge target specific data of file lib_mips/libmips.a(bootm.o)
mips-linux-gnu-ld: drivers/rtc/librtc.a(date.o): compiled for a little endian system and target is big endian
mips-linux-gnu-ld: drivers/rtc/librtc.a(date.o): endianness incompatible with that of the selected emulation
mips-linux-gnu-ld: failed to merge target specific data of file drivers/rtc/librtc.a(date.o)
/bin/bash: line 4: 19904 Segmentation fault      mips-linux-gnu-ld -Bstatic -T /home/skuribay/git/u-boot.git/cpu/mips/u-boot.lds -G 0 -static -n -nostdlib -EB -Ttext 0xbfc00000 $UNDEF_SYM cpu/mips/start.o --start-group lib_generic/libgeneric.a lib_generic/lzma/liblzma.a lib_generic/lzo/liblzo.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 fs/yaffs2/libyaffs2.a fs/ubifs/libubifs.a net/libnet.a disk/libdisk.a drivers/bios_emulator/libatibiosemu.a drivers/block/libblock.a drivers/dma/libdma.a drivers/fpga/libfpga.a drivers/gpio/libgpio.a drivers/hwmon/libhwmon.a drivers/i2c/libi2c.a drivers/input/libinput.a drivers/misc/libmisc.a drivers/mmc/libmmc.a drivers/mtd/libmtd.a drivers/mtd/nand/libnand.a drivers/mtd/nand_legacy/libnand_legacy.a drivers/mtd/onenand/libonenand.a drivers/mtd/ubi/libubi.a drivers/mtd/spi/libspi_flash.a drivers/net/libnet.a drivers/net/phy/libp
hy.a drivers/net/sk98lin/libsk98lin.a drivers/pci/libpci.a drivers/pcmcia/libpcmcia.a drivers/spi/libspi.a drivers/rtc/librtc.a drivers/serial/libserial.a drivers/twserial/libtws.a drivers/usb/gadget/libusb_gadget.a drivers/usb/host/libusb_host.a drivers/usb/musb/libusb_musb.a drivers/video/libvideo.a drivers/watchdog/libwatchdog.a common/libcommon.a libfdt/libfdt.a api/libapi.a post/libpost.a board/dbau1x00/libdbau1x00.a --end-group -L /opt/mips-4.3-154/bin/../lib/gcc/mips-linux-gnu/4.3.3/soft-float -lgcc -Map u-boot.map -o u-boot
make: *** [u-boot] Error 139
$ 
$
$ make  CROSS_COMPILE=mips-linux-gnu-
for dir in tools examples api_examples ; do make -C $dir _depend ; done
make[1]: Entering directory `/home/skuribay/git/u-boot.git/tools'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/tools'
make[1]: Entering directory `/home/skuribay/git/u-boot.git/examples'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/examples'
make[1]: Entering directory `/home/skuribay/git/u-boot.git/api_examples'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/api_examples'
make -C tools all
make[1]: Entering directory `/home/skuribay/git/u-boot.git/tools'
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/tools'
make -C examples all
make[1]: Entering directory `/home/skuribay/git/u-boot.git/examples'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/examples'
make -C api_examples all
make[1]: Entering directory `/home/skuribay/git/u-boot.git/api_examples'
mips-linux-gnu-ar crv libglue.a 
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/api_examples'
make -C cpu/mips start.o
make[1]: Entering directory `/home/skuribay/git/u-boot.git/cpu/mips'
make[1]: `start.o' is up to date.
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/cpu/mips'
make -C lib_generic/
make[1]: Entering directory `/home/skuribay/git/u-boot.git/lib_generic'
make[1]: `libgeneric.a' is up to date.
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/lib_generic'
make -C lib_generic/lzma/
make[1]: Entering directory `/home/skuribay/git/u-boot.git/lib_generic/lzma'
mips-linux-gnu-ar crv liblzma.a 
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/lib_generic/lzma'
make -C lib_generic/lzo/
make[1]: Entering directory `/home/skuribay/git/u-boot.git/lib_generic/lzo'
mips-linux-gnu-ar crv liblzo.a 
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/lib_generic/lzo'
make -C cpu/mips/
make[1]: Entering directory `/home/skuribay/git/u-boot.git/cpu/mips'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/cpu/mips'
make -C lib_mips/
make[1]: Entering directory `/home/skuribay/git/u-boot.git/lib_mips'
mips-linux-gnu-gcc -g  -Os   -D__KERNEL__ -DTEXT_BASE=0xbfc00000 -I/home/skuribay/git/u-boot.git/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/mips-4.3-154/bin/../lib/gcc/mips-linux-gnu/4.3.3/include -pipe  -DCONFIG_MIPS -D__MIPS__ -G 0 -mabicalls -fpic -msoft-float -EL -UMIPSEB -U_MIPSEB -U__MIPSEB -U__MIPSEB__ -UMIPSEL -U_MIPSEL -U__MIPSEL -U__MIPSEL__ -DMIPSEL -D_MIPSEL -D__MIPSEL -D__MIPSEL__ -Wall -Wstrict-prototypes -fno-stack-protector -c -o board.o board.c
mips-linux-gnu-ar crv libmips.a board.o bootm.o time.o
r - board.o
r - bootm.o
r - time.o
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/lib_mips'
make -C fs/cramfs/
make[1]: Entering directory `/home/skuribay/git/u-boot.git/fs/cramfs'
mips-linux-gnu-ar crv libcramfs.a 
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/fs/cramfs'
make -C fs/fat/
make[1]: Entering directory `/home/skuribay/git/u-boot.git/fs/fat'
mips-linux-gnu-ar crv libfat.a 
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/fs/fat'
make -C fs/fdos/
make[1]: Entering directory `/home/skuribay/git/u-boot.git/fs/fdos'
mips-linux-gnu-ar crv libfdos.a 
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/fs/fdos'
make -C fs/jffs2/
make[1]: Entering directory `/home/skuribay/git/u-boot.git/fs/jffs2'
mips-linux-gnu-ar crv libjffs2.a 
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/fs/jffs2'
make -C fs/reiserfs/
make[1]: Entering directory `/home/skuribay/git/u-boot.git/fs/reiserfs'
mips-linux-gnu-ar crv libreiserfs.a 
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/fs/reiserfs'
make -C fs/ext2/
make[1]: Entering directory `/home/skuribay/git/u-boot.git/fs/ext2'
mips-linux-gnu-ar crv libext2fs.a 
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/fs/ext2'
make -C fs/yaffs2/
make[1]: Entering directory `/home/skuribay/git/u-boot.git/fs/yaffs2'
mips-linux-gnu-ar crv libyaffs2.a 
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/fs/yaffs2'
make -C fs/ubifs/
make[1]: Entering directory `/home/skuribay/git/u-boot.git/fs/ubifs'
mips-linux-gnu-ar crv libubifs.a 
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/fs/ubifs'
make -C net/
make[1]: Entering directory `/home/skuribay/git/u-boot.git/net'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/net'
make -C disk/
make[1]: Entering directory `/home/skuribay/git/u-boot.git/disk'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/disk'
make -C drivers/bios_emulator/
make[1]: Entering directory `/home/skuribay/git/u-boot.git/drivers/bios_emulator'
mips-linux-gnu-ar crv libatibiosemu.a 
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/drivers/bios_emulator'
make -C drivers/block/
make[1]: Entering directory `/home/skuribay/git/u-boot.git/drivers/block'
mips-linux-gnu-ar crv libblock.a 
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/drivers/block'
make -C drivers/dma/
make[1]: Entering directory `/home/skuribay/git/u-boot.git/drivers/dma'
mips-linux-gnu-ar crv libdma.a 
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/drivers/dma'
make -C drivers/fpga/
make[1]: Entering directory `/home/skuribay/git/u-boot.git/drivers/fpga'
mips-linux-gnu-ar crv libfpga.a 
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/drivers/fpga'
make -C drivers/gpio/
make[1]: Entering directory `/home/skuribay/git/u-boot.git/drivers/gpio'
mips-linux-gnu-ar crv libgpio.a 
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/drivers/gpio'
make -C drivers/hwmon/
make[1]: Entering directory `/home/skuribay/git/u-boot.git/drivers/hwmon'
mips-linux-gnu-ar crv libhwmon.a 
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/drivers/hwmon'
make -C drivers/i2c/
make[1]: Entering directory `/home/skuribay/git/u-boot.git/drivers/i2c'
mips-linux-gnu-ar crv libi2c.a 
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/drivers/i2c'
make -C drivers/input/
make[1]: Entering directory `/home/skuribay/git/u-boot.git/drivers/input'
mips-linux-gnu-ar crv libinput.a 
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/drivers/input'
make -C drivers/misc/
make[1]: Entering directory `/home/skuribay/git/u-boot.git/drivers/misc'
mips-linux-gnu-ar crv libmisc.a 
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/drivers/misc'
make -C drivers/mmc/
make[1]: Entering directory `/home/skuribay/git/u-boot.git/drivers/mmc'
mips-linux-gnu-ar crv libmmc.a 
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/drivers/mmc'
make -C drivers/mtd/
make[1]: Entering directory `/home/skuribay/git/u-boot.git/drivers/mtd'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/drivers/mtd'
make -C drivers/mtd/nand/
make[1]: Entering directory `/home/skuribay/git/u-boot.git/drivers/mtd/nand'
mips-linux-gnu-ar crv libnand.a 
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/drivers/mtd/nand'
make -C drivers/mtd/nand_legacy/
make[1]: Entering directory `/home/skuribay/git/u-boot.git/drivers/mtd/nand_legacy'
mips-linux-gnu-ar crv libnand_legacy.a 
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/drivers/mtd/nand_legacy'
make -C drivers/mtd/onenand/
make[1]: Entering directory `/home/skuribay/git/u-boot.git/drivers/mtd/onenand'
mips-linux-gnu-ar crv libonenand.a 
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/drivers/mtd/onenand'
make -C drivers/mtd/ubi/
make[1]: Entering directory `/home/skuribay/git/u-boot.git/drivers/mtd/ubi'
mips-linux-gnu-ar crv libubi.a 
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/drivers/mtd/ubi'
make -C drivers/mtd/spi/
make[1]: Entering directory `/home/skuribay/git/u-boot.git/drivers/mtd/spi'
mips-linux-gnu-ar crv libspi_flash.a 
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/drivers/mtd/spi'
make -C drivers/net/
make[1]: Entering directory `/home/skuribay/git/u-boot.git/drivers/net'
mips-linux-gnu-ar crv libnet.a 
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/drivers/net'
make -C drivers/net/phy/
make[1]: Entering directory `/home/skuribay/git/u-boot.git/drivers/net/phy'
mips-linux-gnu-ar crv libphy.a 
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/drivers/net/phy'
make -C drivers/net/sk98lin/
make[1]: Entering directory `/home/skuribay/git/u-boot.git/drivers/net/sk98lin'
mips-linux-gnu-ar crv libsk98lin.a 
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/drivers/net/sk98lin'
make -C drivers/pci/
make[1]: Entering directory `/home/skuribay/git/u-boot.git/drivers/pci'
mips-linux-gnu-ar crv libpci.a 
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/drivers/pci'
make -C drivers/pcmcia/
make[1]: Entering directory `/home/skuribay/git/u-boot.git/drivers/pcmcia'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/drivers/pcmcia'
make -C drivers/spi/
make[1]: Entering directory `/home/skuribay/git/u-boot.git/drivers/spi'
mips-linux-gnu-ar crv libspi.a 
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/drivers/spi'
make -C drivers/rtc/
make[1]: Entering directory `/home/skuribay/git/u-boot.git/drivers/rtc'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/drivers/rtc'
make -C drivers/serial/
make[1]: Entering directory `/home/skuribay/git/u-boot.git/drivers/serial'
mips-linux-gnu-ar crv libserial.a 
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/drivers/serial'
make -C drivers/twserial/
make[1]: Entering directory `/home/skuribay/git/u-boot.git/drivers/twserial'
mips-linux-gnu-ar crv libtws.a 
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/drivers/twserial'
make -C drivers/usb/gadget/
make[1]: Entering directory `/home/skuribay/git/u-boot.git/drivers/usb/gadget'
mips-linux-gnu-ar crv libusb_gadget.a 
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/drivers/usb/gadget'
make -C drivers/usb/host/
make[1]: Entering directory `/home/skuribay/git/u-boot.git/drivers/usb/host'
mips-linux-gnu-ar crv libusb_host.a 
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/drivers/usb/host'
make -C drivers/usb/musb/
make[1]: Entering directory `/home/skuribay/git/u-boot.git/drivers/usb/musb'
mips-linux-gnu-ar crv libusb_musb.a 
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/drivers/usb/musb'
make -C drivers/video/
make[1]: Entering directory `/home/skuribay/git/u-boot.git/drivers/video'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/drivers/video'
make -C drivers/watchdog/
make[1]: Entering directory `/home/skuribay/git/u-boot.git/drivers/watchdog'
mips-linux-gnu-ar crv libwatchdog.a 
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/drivers/watchdog'
make -C common/
make[1]: Entering directory `/home/skuribay/git/u-boot.git/common'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/common'
make -C libfdt/
make[1]: Entering directory `/home/skuribay/git/u-boot.git/libfdt'
mips-linux-gnu-ar crv libfdt.a 
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/libfdt'
make -C api/
make[1]: Entering directory `/home/skuribay/git/u-boot.git/api'
mips-linux-gnu-ar crv libapi.a 
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/api'
make -C post/
make[1]: Entering directory `/home/skuribay/git/u-boot.git/post'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/post'
make -C board/dbau1x00/
make[1]: Entering directory `/home/skuribay/git/u-boot.git/board/dbau1x00'
make[1]: `libdbau1x00.a' is up to date.
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/board/dbau1x00'
make -C /home/skuribay/git/u-boot.git/cpu/mips/ u-boot.lds
make[1]: Entering directory `/home/skuribay/git/u-boot.git/cpu/mips'
make[1]: Nothing to be done for `u-boot.lds'.
make[1]: Leaving directory `/home/skuribay/git/u-boot.git/cpu/mips'
UNDEF_SYM=`mips-linux-gnu-objdump -x board/dbau1x00/libdbau1x00.a lib_generic/libgeneric.a lib_generic/lzma/liblzma.a lib_generic/lzo/liblzo.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 fs/yaffs2/libyaffs2.a fs/ubifs/libubifs.a net/libnet.a disk/libdisk.a drivers/bios_emulator/libatibiosemu.a drivers/block/libblock.a drivers/dma/libdma.a drivers/fpga/libfpga.a drivers/gpio/libgpio.a drivers/hwmon/libhwmon.a drivers/i2c/libi2c.a drivers/input/libinput.a drivers/misc/libmisc.a drivers/mmc/libmmc.a drivers/mtd/libmtd.a drivers/mtd/nand/libnand.a drivers/mtd/nand_legacy/libnand_legacy.a drivers/mtd/onenand/libonenand.a drivers/mtd/ubi/libubi.a drivers/mtd/spi/libspi_flash.a drivers/net/libnet.a drivers/net/phy/libphy.a drivers/net/sk98lin/libsk98lin.a drivers/pci/libpci.a drivers/pcmcia/libpcmcia.a drivers/spi/libspi.a drivers/rtc/librtc.a drivers/serial/libserial.
a drivers/twserial/libtws.a drivers/usb/gadget/libusb_gadget.a drivers/usb/host/libusb_host.a drivers/usb/musb/libusb_musb.a drivers/video/libvideo.a drivers/watchdog/libwatchdog.a common/libcommon.a libfdt/libfdt.a api/libapi.a post/libpost.a | \
		sed  -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
		cd /home/skuribay/git/u-boot.git && mips-linux-gnu-ld -Bstatic -T /home/skuribay/git/u-boot.git/cpu/mips/u-boot.lds  -G 0 -static -n -nostdlib -EL -Ttext 0xbfc00000 $UNDEF_SYM cpu/mips/start.o \
			--start-group lib_generic/libgeneric.a lib_generic/lzma/liblzma.a lib_generic/lzo/liblzo.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 fs/yaffs2/libyaffs2.a fs/ubifs/libubifs.a net/libnet.a disk/libdisk.a drivers/bios_emulator/libatibiosemu.a drivers/block/libblock.a drivers/dma/libdma.a drivers/fpga/libfpga.a drivers/gpio/libgpio.a drivers/hwmon/libhwmon.a drivers/i2c/libi2c.a drivers/input/libinput.a drivers/misc/libmisc.a drivers/mmc/libmmc.a drivers/mtd/libmtd.a drivers/mtd/nand/libnand.a drivers/mtd/nand_legacy/libnand_legacy.a drivers/mtd/onenand/libonenand.a drivers/mtd/ubi/libubi.a drivers/mtd/spi/libspi_flash.a drivers/net/libnet.a drivers/net/phy/libphy.a drivers/net/sk98lin/libsk98lin.a drivers/pci/libpci.a drivers/pcmcia/libpcmcia.a drivers/spi/libspi.a drivers/rtc/librtc.a drivers/serial/libserial.a drivers/twserial/libtws.a drivers/usb/gadget/li
busb_gadget.a drivers/usb/host/libusb_host.a drivers/usb/musb/libusb_musb.a drivers/video/libvideo.a drivers/watchdog/libwatchdog.a common/libcommon.a libfdt/libfdt.a api/libapi.a post/libpost.a board/dbau1x00/libdbau1x00.a --end-group -L /opt/mips-4.3-154/bin/../lib/gcc/mips-linux-gnu/4.3.3/soft-float/el -lgcc \
			-Map u-boot.map -o u-boot
mips-linux-gnu-objcopy -O srec u-boot u-boot.srec
mips-linux-gnu-objcopy --gap-fill=0xff -O binary u-boot u-boot.bin
$ 


More information about the U-Boot mailing list