[U-Boot] u-boot-2011.12-r3 build fails without CONFIG_CMD_NET
Maxim Podbereznyy
lisarden at gmail.com
Mon Feb 20 19:20:32 CET 2012
Hi!
I found that if CONFIG_CMD_NET is undefined in a config file then the build
is broken. Tested for Beagleboard and Overo.
net/libnet.o: In function `rpc_req':
/home/maxx/OE/setup-scripts/build/tmp-angstrom_2010_x-eglibc/work/beagleboard-angstrom-linux-gnueabi/3.0.17/u-boot-2011.12-r3/git/net/nfs.c:193:
undefined reference to `NetEthHdrSize'
/home/maxx/OE/setup-scripts/build/tmp-angstrom_2010_x-eglibc/work/beagleboard-angstrom-linux-gnueabi/3.0.17/u-boot-2011.12-r3/git/net/nfs.c:202:
undefined reference to `NetSendUDPPacket'
/home/maxx/OE/setup-scripts/build/tmp-angstrom_2010_x-eglibc/work/beagleboard-angstrom-linux-gnueabi/3.0.17/u-boot-2011.12-r3/git/net/nfs.c:203:
undefined reference to `NetTxPacket'
/home/maxx/OE/setup-scripts/build/tmp-angstrom_2010_x-eglibc/work/beagleboard-angstrom-linux-gnueabi/3.0.17/u-boot-2011.12-r3/git/net/nfs.c:203:
undefined reference to `NetServerEther'
net/libnet.o: In function `NfsTimeout':
/home/maxx/OE/setup-scripts/build/tmp-angstrom_2010_x-eglibc/work/beagleboard-angstrom-linux-gnueabi/3.0.17/u-boot-2011.12-r3/git/net/nfs.c:574:
undefined reference to `NetStartAgain'
/home/maxx/OE/setup-scripts/build/tmp-angstrom_2010_x-eglibc/work/beagleboard-angstrom-linux-gnueabi/3.0.17/u-boot-2011.12-r3/git/net/nfs.c:577:
undefined reference to `NetSetTimeout'
net/libnet.o: In function `nfs_read_reply':
/home/maxx/OE/setup-scripts/build/tmp-angstrom_2010_x-eglibc/work/beagleboard-angstrom-linux-gnueabi/3.0.17/u-boot-2011.12-r3/git/net/nfs.c:563:
undefined reference to `NetBootFileXferSize'
net/libnet.o: In function `NfsHandler':
/home/maxx/OE/setup-scripts/build/tmp-angstrom_2010_x-eglibc/work/beagleboard-angstrom-linux-gnueabi/3.0.17/u-boot-2011.12-r3/git/net/nfs.c:656:
undefined reference to `NetSetTimeout'
/home/maxx/OE/setup-scripts/build/tmp-angstrom_2010_x-eglibc/work/beagleboard-angstrom-linux-gnueabi/3.0.17/u-boot-2011.12-r3/git/net/nfs.c:668:
undefined reference to `NetState'
net/libnet.o: In function `NfsStart':
/home/maxx/OE/setup-scripts/build/tmp-angstrom_2010_x-eglibc/work/beagleboard-angstrom-linux-gnueabi/3.0.17/u-boot-2011.12-r3/git/net/nfs.c:717:
undefined reference to `eth_get_name'
/home/maxx/OE/setup-scripts/build/tmp-angstrom_2010_x-eglibc/work/beagleboard-angstrom-linux-gnueabi/3.0.17/u-boot-2011.12-r3/git/net/nfs.c:739:
undefined reference to `NetSetTimeout'
/home/maxx/OE/setup-scripts/build/tmp-angstrom_2010_x-eglibc/work/beagleboard-angstrom-linux-gnueabi/3.0.17/u-boot-2011.12-r3/git/net/nfs.c:740:
undefined reference to `NetSetHandler'
/home/maxx/OE/setup-scripts/build/tmp-angstrom_2010_x-eglibc/work/beagleboard-angstrom-linux-gnueabi/3.0.17/u-boot-2011.12-r3/git/net/nfs.c:752:
undefined reference to `NetServerIP'
/home/maxx/OE/setup-scripts/build/tmp-angstrom_2010_x-eglibc/work/beagleboard-angstrom-linux-gnueabi/3.0.17/u-boot-2011.12-r3/git/net/nfs.c:752:
undefined reference to `BootFile'
/home/maxx/OE/setup-scripts/build/tmp-angstrom_2010_x-eglibc/work/beagleboard-angstrom-linux-gnueabi/3.0.17/u-boot-2011.12-r3/git/net/nfs.c:752:
undefined reference to `NetOurIP'
/home/maxx/OE/setup-scripts/build/tmp-angstrom_2010_x-eglibc/work/beagleboard-angstrom-linux-gnueabi/3.0.17/u-boot-2011.12-r3/git/net/nfs.c:752:
undefined reference to `NetOurGatewayIP'
/home/maxx/OE/setup-scripts/build/tmp-angstrom_2010_x-eglibc/work/beagleboard-angstrom-linux-gnueabi/3.0.17/u-boot-2011.12-r3/git/net/nfs.c:752:
undefined reference to `NetOurSubnetMask'
/home/maxx/OE/setup-scripts/build/tmp-angstrom_2010_x-eglibc/work/beagleboard-angstrom-linux-gnueabi/3.0.17/u-boot-2011.12-r3/git/net/nfs.c:752:
undefined reference to `NetBootFileSize'
/home/maxx/OE/setup-scripts/build/tmp-angstrom_2010_x-eglibc/work/beagleboard-angstrom-linux-gnueabi/3.0.17/u-boot-2011.12-r3/git/net/nfs.c:752:
undefined reference to `NetServerEther'
/home/maxx/OE/setup-scripts/build/tmp-angstrom_2010_x-eglibc/sysroots/i686-linux/usr/bin/armv7a-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-ld:
BFD (GNU Binutils) 2.20.1.20100303 assertion fail
/home/maxx/OE/setup-scripts/build/tmp-angstrom_2010_x-eglibc/work/armv7a-angstrom-linux-gnueabi/binutils-cross-2.20.1-r9/binutils-2.20.1/bfd/elf32-arm.c:12191
/home/maxx/OE/setup-scripts/build/tmp-angstrom_2010_x-eglibc/sysroots/i686-linux/usr/bin/armv7a-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-ld:
BFD (GNU Binutils) 2.20.1.20100303 assertion fail
/home/maxx/OE/setup-scripts/build/tmp-angstrom_2010_x-eglibc/work/armv7a-angstrom-linux-gnueabi/binutils-cross-2.20.1-r9/binutils-2.20.1/bfd/elf32-arm.c:12191
/home/maxx/OE/setup-scripts/build/tmp-angstrom_2010_x-eglibc/sysroots/i686-linux/usr/bin/armv7a-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-ld:
BFD (GNU Binutils) 2.20.1.20100303 assertion fail
/home/maxx/OE/setup-scripts/build/tmp-angstrom_2010_x-eglibc/work/armv7a-angstrom-linux-gnueabi/binutils-cross-2.20.1-r9/binutils-2.20.1/bfd/elf32-arm.c:12191
/home/maxx/OE/setup-scripts/build/tmp-angstrom_2010_x-eglibc/sysroots/i686-linux/usr/bin/armv7a-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-ld:
BFD (GNU Binutils) 2.20.1.20100303 assertion fail
/home/maxx/OE/setup-scripts/build/tmp-angstrom_2010_x-eglibc/work/armv7a-angstrom-linux-gnueabi/binutils-cross-2.20.1-r9/binutils-2.20.1/bfd/elf32-arm.c:12191
/home/maxx/OE/setup-scripts/build/tmp-angstrom_2010_x-eglibc/sysroots/i686-linux/usr/bin/armv7a-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-ld:
BFD (GNU Binutils) 2.20.1.20100303 assertion fail
/home/maxx/OE/setup-scripts/build/tmp-angstrom_2010_x-eglibc/work/armv7a-angstrom-linux-gnueabi/binutils-cross-2.20.1-r9/binutils-2.20.1/bfd/elf32-arm.c:12191
/home/maxx/OE/setup-scripts/build/tmp-angstrom_2010_x-eglibc/sysroots/i686-linux/usr/bin/armv7a-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-ld:
BFD (GNU Binutils) 2.20.1.20100303 assertion fail
/home/maxx/OE/setup-scripts/build/tmp-angstrom_2010_x-eglibc/work/armv7a-angstrom-linux-gnueabi/binutils-cross-2.20.1-r9/binutils-2.20.1/bfd/elf32-arm.c:12191
/home/maxx/OE/setup-scripts/build/tmp-angstrom_2010_x-eglibc/sysroots/i686-linux/usr/bin/armv7a-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-ld:
BFD (GNU Binutils) 2.20.1.20100303 assertion fail
/home/maxx/OE/setup-scripts/build/tmp-angstrom_2010_x-eglibc/work/armv7a-angstrom-linux-gnueabi/binutils-cross-2.20.1-r9/binutils-2.20.1/bfd/elf32-arm.c:12425
/bin/sh: строка 1: 31386 Ошибка сегментирования
/home/maxx/OE/setup-scripts/build/tmp-angstrom_2010_x-eglibc/sysroots/i686-linux/usr/bin/armv7a-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-ld
-pie -T u-boot.lds -Bstatic -Ttext 0x80008000 $UNDEF_SYM
arch/arm/cpu/armv7/start.o --start-group api/libapi.o
arch/arm/cpu/armv7/libarmv7.o
arch/arm/cpu/armv7/omap-common/libomap-common.o
arch/arm/cpu/armv7/omap3/libomap3.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/eth/libusb_eth.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/usb/ulpi/libusb_ulpi.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
lib/zlib/libz.o net/libnet.o post/libpost.o board/overo/libovero.o
--end-group
/home/maxx/OE/setup-scripts/build/tmp-angstrom_2010_x-eglibc/work/beagleboard-angstrom-linux-gnueabi/3.0.17/u-boot-2011.12-r3/git/arch/arm/lib/eabi_compat.o
-L
/home/maxx/OE/setup-scripts/build/tmp-angstrom_2010_x-eglibc/sysroots/beagleboard/usr/lib/arm-angstrom-linux-gnueabi/4.5.4
-lgcc -Map u-boot.map -o u-boot
make: *** [u-boot] Error 139
More information about the U-Boot
mailing list