[U-Boot] link error with uboot-2010-12
xiao jizhong
xiaojizhong183 at gmail.com
Sun Jan 23 15:58:48 CET 2011
Hi all:
I am trying porting the latest uboot (u-boot-2010.12.tar.bz2) to my
arm board.When coming to the link stage,I got a strange link
error,following is the output,
make[1]: Leaving directory `/home/uboot/u-boot-2010.12/board/zx/BoardOne'
UNDEF_SYM=`arm-linux-objdump -x board/zx/BoardOne/libBoardOne.o
api/libapi.o arch/arm/cpu/sep4020/libsep4020.o arch/arm/lib/libarm.o
common/libcommon.o disk/libdisk.o
drivers/bios_emulator/libatibiosemu.o drivers/block/libblock.o
drivers/dma/libdma.o drivers/fpga/libfpga.o drivers/gpio/libgpio.o
drivers/hwmon/libhwmon.o drivers/i2c/libi2c.o drivers/input/libinput.o
drivers/misc/libmisc.o drivers/mmc/libmmc.o drivers/mtd/libmtd.o
drivers/mtd/nand/libnand.o drivers/mtd/onenand/libonenand.o
drivers/mtd/spi/libspi_flash.o drivers/mtd/ubi/libubi.o
drivers/net/libnet.o drivers/net/phy/libphy.o drivers/pci/libpci.o
drivers/pcmcia/libpcmcia.o drivers/power/libpower.o
drivers/rtc/librtc.o drivers/serial/libserial.o drivers/spi/libspi.o
drivers/twserial/libtws.o drivers/usb/gadget/libusb_gadget.o
drivers/usb/host/libusb_host.o drivers/usb/musb/libusb_musb.o
drivers/usb/phy/libusb_phy.o drivers/video/libvideo.o
drivers/watchdog/libwatchdog.o fs/cramfs/libcramfs.o
fs/ext2/libext2fs.o fs/fat/libfat.o fs/fdos/libfdos.o
fs/jffs2/libjffs2.o fs/reiserfs/libreiserfs.o fs/ubifs/libubifs.o
fs/yaffs2/libyaffs2.o lib/libfdt/libfdt.o lib/libgeneric.o
lib/lzma/liblzma.o lib/lzo/liblzo.o net/libnet.o post/libpost.o | sed
-n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`; cd
/home/uboot/u-boot-2010.12 &&
#####################################################################
arm-linux-ld -Bstatic -T
/home/uboot/u-boot-2010.12/board/zx/BoardOne/u-boot.lds -pie
$UNDEF_SYM arch/arm/cpu/sep4020/start.o
#########################################################################
--start-group api/libapi.o arch/arm/cpu/sep4020/libsep4020.o
arch/arm/lib/libarm.o common/libcommon.o disk/libdisk.o
drivers/bios_emulator/libatibiosemu.o drivers/block/libblock.o
drivers/dma/libdma.o drivers/fpga/libfpga.o drivers/gpio/libgpio.o
drivers/hwmon/libhwmon.o drivers/i2c/libi2c.o drivers/input/libinput.o
drivers/misc/libmisc.o drivers/mmc/libmmc.o drivers/mtd/libmtd.o
drivers/mtd/nand/libnand.o drivers/mtd/onenand/libonenand.o
drivers/mtd/spi/libspi_flash.o drivers/mtd/ubi/libubi.o
drivers/net/libnet.o drivers/net/phy/libphy.o drivers/pci/libpci.o
drivers/pcmcia/libpcmcia.o drivers/power/libpower.o
drivers/rtc/librtc.o drivers/serial/libserial.o drivers/spi/libspi.o
drivers/twserial/libtws.o drivers/usb/gadget/libusb_gadget.o
drivers/usb/host/libusb_host.o drivers/usb/musb/libusb_musb.o
drivers/usb/phy/libusb_phy.o drivers/video/libvideo.o
drivers/watchdog/libwatchdog.o fs/cramfs/libcramfs.o
fs/ext2/libext2fs.o fs/fat/libfat.o fs/fdos/libfdos.o
fs/jffs2/libjffs2.o fs/reiserfs/libreiserfs.o fs/ubifs/libubifs.o
fs/yaffs2/libyaffs2.o lib/libfdt/libfdt.o lib/libgeneric.o
lib/lzma/liblzma.o lib/lzo/liblzo.o net/libnet.o post/libpost.o
board/zx/BoardOne/libBoardOne.o --end-group -L
/home/uboot/arm/3.3.2/bin/../lib/gcc-lib/arm-linux/3.3.2 -lgcc -Map
u-boot.map -o u-boot
arm-linux-ld: cannot open cpu/sep4020/start.o: No such file or directory
make: *** [u-boot] Error 1
arm-linux-ld -Bstatic -T
/home/uboot/u-boot-2010.12/board/zx/BoardOne/u-boot.lds -pie
$UNDEF_SYM arch/arm/cpu/sep4020/start.o
here we can see that path of start.o is :arch/arm/cpu/sep4020/
so why the path has been changed into cup/sep4020 and arm-linux-ld
give me an error "cannot open cpu/sep4020/start.o: No such file or
directory?"
Thanks in advance
More information about the U-Boot
mailing list