[U-Boot] Kirkwood / Sheevaplug build failure

Hello everyone;
I'm new to U-Boot, but I hope you can help. I'm trying to build the Sheevaplug board / Kirkwood mach-- an ARM system-- and getting a greviously long list of "undefined reference" errors towards what looks like the end of the build cycle.
I'm attempting to use Emdebian's cross compiler arm-linux-gnueabi-gcc, which is presently version 4.3.2. To do this, I am doing: export CROSS_COMPILE=arm-linux-gnueabi
After that, I do make sheevaplug_config, and then make. After quite a bit of compiling, I get the following:
make[1]: Leaving directory `/home/rektide/projects/u-boot/cpu/arm926ejs' arm-linux-gnueabi-gcc -E -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DTEXT_BASE=0x00600000 -I/home/rektide/projects/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabi/4.3.2/include -pipe -DCONFIG_ARM -D__ARM__ -marm -mabi=aapcs-linux -mno-thumb-interwork -march=armv5te -include /home/rektide/projects/u-boot/include/u-boot/u-boot.lds.h -ansi -D__ASSEMBLY__ -P - </home/rektide/projects/u-boot/cpu/arm926ejs/u-boot.lds >u-boot.lds UNDEF_SYM=`arm-linux-gnueabi-objdump -x board/Marvell/sheevaplug/libsheevaplug.a lib_generic/libgeneric.a lib_generic/lzma/liblzma.a lib_generic/lzo/liblzo.a cpu/arm926ejs/libarm926ejs.a cpu/arm926ejs/kirkwood/libkirkwood.a lib_arm/libarm.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/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/power/libpower.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/rektide/projects/u-boot && arm-linux-gnueabi-ld -Bstatic -T u-boot.lds -Ttext 0x00600000 $UNDEF_SYM cpu/arm926ejs/start.o --start-group lib_generic/libgeneric.a lib_generic/lzma/liblzma.a lib_generic/lzo/liblzo.a cpu/arm926ejs/libarm926ejs.a cpu/arm926ejs/kirkwood/libkirkwood.a lib_arm/libarm.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/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/power/libpower.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/Marvell/sheevaplug/libsheevaplug.a --end-group /home/rektide/projects/u-boot/lib_arm/eabi_compat.o -L /usr/lib/gcc/arm-linux-gnueabi/4.3.2 -lgcc -Map u-boot.map -o u-boot lib_arm/libarm.a(board.o): In function `start_armboot': /home/rektide/projects/u-boot/lib_arm/board.c:365: undefined reference to `nand_init' lib_arm/libarm.a(board.o):(.data+0xc): undefined reference to `env_init' lib_arm/libarm.a(board.o):(.data+0x14): undefined reference to `serial_init' net/libnet.a(eth.o): In function `eth_initialize': /home/rektide/projects/u-boot/net/eth.c:198: undefined reference to `miiphy_init' net/libnet.a(net.o): In function `NetReceive': /home/rektide/projects/u-boot/net/net.c:1473: undefined reference to `nc_input_packet' net/libnet.a(net.o): In function `NetLoop': /home/rektide/projects/u-boot/net/net.c:425: undefined reference to `NcStart' common/libcommon.a(cmd_bootm.o): In function `do_bootm': /home/rektide/projects/u-boot/common/cmd_bootm.c:611: undefined reference to `usb_stop' common/libcommon.a(cmd_load.o): In function `do_load_serial_bin': /home/rektide/projects/u-boot/common/cmd_load.c:470: undefined reference to `serial_setbrg' /home/rektide/projects/u-boot/common/cmd_load.c:508: undefined reference to `serial_setbrg' common/libcommon.a(cmd_nand.o): In function `nand_print_info': /home/rektide/projects/u-boot/common/cmd_nand.c:214: undefined reference to `nand_info' common/libcommon.a(cmd_nand.o): In function `arg_off_size': /home/rektide/projects/u-boot/common/cmd_nand.c:148: undefined reference to `nand_curr_device' common/libcommon.a(cmd_nand.o): In function `nand_load_image': /home/rektide/projects/u-boot/common/cmd_nand.c:534: undefined reference to `nand_read_skip_bad' /home/rektide/projects/u-boot/common/cmd_nand.c:566: undefined reference to `nand_read_skip_bad' common/libcommon.a(cmd_nand.o): In function `do_nandboot': /home/rektide/projects/u-boot/common/cmd_nand.c:683: undefined reference to `nand_info' common/libcommon.a(cmd_nand.o): In function `do_nand': /home/rektide/projects/u-boot/common/cmd_nand.c:348: undefined reference to `nand_erase_opts' /home/rektide/projects/u-boot/common/cmd_nand.c:387: undefined reference to `nand_read_skip_bad' /home/rektide/projects/u-boot/common/cmd_nand.c:390: undefined reference to `nand_write_skip_bad' /home/rektide/projects/u-boot/common/cmd_nand.c:486: undefined reference to `nand_info' /home/rektide/projects/u-boot/common/cmd_nand.c:486: undefined reference to `nand_curr_device' common/libcommon.a(cmd_nvedit.o): In function `do_saveenv': /home/rektide/projects/u-boot/common/cmd_nvedit.c:566: undefined reference to `saveenv' /home/rektide/projects/u-boot/common/cmd_nvedit.c:567: undefined reference to `env_name_spec' common/libcommon.a(cmd_nvedit.o): In function `_do_setenv': /home/rektide/projects/u-boot/common/cmd_nvedit.c:286: undefined reference to `serial_setbrg' common/libcommon.a(console.o): In function `puts': /home/rektide/projects/u-boot/common/console.c:366: undefined reference to `serial_puts' common/libcommon.a(console.o): In function `serial_printf': /home/rektide/projects/u-boot/common/console.c:222: undefined reference to `serial_puts' common/libcommon.a(console.o): In function `putc': /home/rektide/projects/u-boot/common/console.c:345: undefined reference to `serial_putc' common/libcommon.a(console.o): In function `tstc': /home/rektide/projects/u-boot/common/console.c:325: undefined reference to `serial_tstc' common/libcommon.a(console.o): In function `getc': /home/rektide/projects/u-boot/common/console.c:309: undefined reference to `serial_getc' common/libcommon.a(env_common.o): In function `env_get_char_init': /home/rektide/projects/u-boot/common/env_common.c:154: undefined reference to `env_get_char_spec' common/libcommon.a(env_common.o): In function `env_crc_update': /home/rektide/projects/u-boot/common/env_common.c:145: undefined reference to `env_ptr' common/libcommon.a(env_common.o): In function `set_default_env': /home/rektide/projects/u-boot/common/env_common.c:223: undefined reference to `env_ptr' common/libcommon.a(env_common.o): In function `env_relocate': /home/rektide/projects/u-boot/common/env_common.c:259: undefined reference to `env_relocate_spec' /home/rektide/projects/u-boot/common/env_common.c:266: undefined reference to `env_ptr' common/libcommon.a(stdio.o): In function `stdio_init': /home/rektide/projects/u-boot/common/stdio.c:244: undefined reference to `drv_nc_init' /home/rektide/projects/u-boot/common/stdio.c:251: undefined reference to `serial_putc' /home/rektide/projects/u-boot/common/stdio.c:251: undefined reference to `serial_puts' /home/rektide/projects/u-boot/common/stdio.c:251: undefined reference to `serial_getc' /home/rektide/projects/u-boot/common/stdio.c:251: undefined reference to `serial_tstc' /home/rektide/projects/u-boot/board/Marvell/sheevaplug/sheevaplug.c:130: undefined reference to `miiphy_set_current_dev' /home/rektide/projects/u-boot/board/Marvell/sheevaplug/sheevaplug.c:134: undefined reference to `miiphy_read' /home/rektide/projects/u-boot/board/Marvell/sheevaplug/sheevaplug.c:144: undefined reference to `miiphy_write' /home/rektide/projects/u-boot/board/Marvell/sheevaplug/sheevaplug.c:145: undefined reference to `miiphy_read' /home/rektide/projects/u-boot/board/Marvell/sheevaplug/sheevaplug.c:147: undefined reference to `miiphy_write' /home/rektide/projects/u-boot/board/Marvell/sheevaplug/sheevaplug.c:148: undefined reference to `miiphy_write' /home/rektide/projects/u-boot/board/Marvell/sheevaplug/sheevaplug.c:151: undefined reference to `miiphy_reset' cpu/arm926ejs/kirkwood/libkirkwood.a(cpu.o): In function `cpu_eth_init': /home/rektide/projects/u-boot/cpu/arm926ejs/kirkwood/cpu.c:308: undefined reference to `kirkwood_egiga_initialize' cpu/arm926ejs/kirkwood/libkirkwood.a(cpu.o): In function `get_random_hex': /home/rektide/projects/u-boot/cpu/arm926ejs/kirkwood/cpu.c:65: undefined reference to `md5' make: *** [u-boot] Error 1 rektide@thoth:~/projects/u-boot$ rektide@thoth:~/projects/u-boot$ arm-linux-gnueabi-gcc -v Using built-in specs. Target: arm-linux-gnueabi Configured with: ../src/configure -v --with-pkgversion='Debian 4.3.2-1.1' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/arm-linux-gnueabi/include/c++/4.3.2 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --disable-libssp --disable-sjlj-exceptions --enable-checking=release --program-prefix=arm-linux-gnueabi- --includedir=/usr/arm-linux-gnueabi/include --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=arm-linux-gnueabi Thread model: posix gcc version 4.3.2 (Debian 4.3.2-1.1)
Long log dump, yes, sorry, but I feel like theres got to be a missing lynchpin and this will all slide together nicely afterwords.
Thank you for your consideration & attention; -rektide

-----Original Message----- From: u-boot-bounces@lists.denx.de [mailto:u-boot-bounces@lists.denx.de] On Behalf Of rektide Sent: Monday, August 24, 2009 7:00 PM To: u-boot@lists.denx.de Subject: [U-Boot] Kirkwood / Sheevaplug build failure
Hello everyone;
I'm new to U-Boot, but I hope you can help. I'm trying to build the Sheevaplug board / Kirkwood mach-- an ARM system-- and getting a greviously long list of "undefined reference" errors towards what looks like the end of the build cycle.
I'm attempting to use Emdebian's cross compiler arm-linux-gnueabi-gcc, which is presently version 4.3.2. To do this, I am doing: export CROSS_COMPILE=arm-linux-gnueabi
Hi I hope you are referring latest u-boot If it is not typo, then I feel there is small mistake in exporting CROSS_COMPILE ie. arm-linux-gnueabi- (last hyphen was missing) Secondly you need to define following before make $ USE_PRIVATE_LIBGCC=yes $ export USE_PRIVATE_LIBGCC
Regards.. Prafulla . .
participants (2)
-
Prafulla Wadaskar
-
rektide