[U-Boot-Users] problem with upgrading u-boot version

Hi All,
I'm currently porting our u-boot implementation that is about 2 years old to the current git repository, and I've hit a snag during linking.
It can't find my 'board_nand_init' function. It defined in my nand.c and it is being compiled. So what could I have missed in reconfiguring my board?
I'm getting this error:
make[1]: Leaving directory `/home/stuart/ArmLinux/u-boot_git/board/mix_evm' UNDEF_SYM=`arm-linux-objdump -x board/mix_evm/libmix_evm.a lib_generic/libgeneric.a cpu/arm920t/libarm920t.a cpu/arm920t/ep93xx/libep93xx.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 net/libnet.a disk/libdisk.a drivers/bios_emulator/libatibiosemu.a drivers/block/libblock.a drivers/dma/libdma.a drivers/hwmon/libhwmon.a drivers/i2c/libi2c.a drivers/input/libinput.a drivers/misc/libmisc.a drivers/mtd/libmtd.a drivers/mtd/nand/libnand.a drivers/mtd/nand_legacy/libnand_legacy.a drivers/mtd/onenand/libonenand.a drivers/net/libnet.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/usb/libusb.a drivers/video/libvideo.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/stuart/ArmLinux/u-boot_git && arm-linux-ld -Bstatic -T /home/stuart/ArmLinux/u-boot_git/board/mix_evm/u-boot.lds -Ttext 0xE5400000 $UNDEF_SYM cpu/arm920t/start.o \ --start-group lib_generic/libgeneric.a cpu/arm920t/libarm920t.a cpu/arm920t/ep93xx/libep93xx.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 net/libnet.a disk/libdisk.a drivers/bios_emulator/libatibiosemu.a drivers/block/libblock.a drivers/dma/libdma.a drivers/hwmon/libhwmon.a drivers/i2c/libi2c.a drivers/input/libinput.a drivers/misc/libmisc.a drivers/mtd/libmtd.a drivers/mtd/nand/libnand.a drivers/mtd/nand_legacy/libnand_legacy.a drivers/mtd/onenand/libonenand.a drivers/net/libnet.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/usb/libusb.a drivers/video/libvideo.a common/libcommon.a libfdt/libfdt.a api/libapi.a post/libpost.a board/mix_evm/libmix_evm.a --end-group -L /opt/buildroot/lib/gcc/arm-linux-uclibc/3.4.6 -lgcc \ -Map u-boot.map -o u-boot drivers/mtd/nand/libnand.a(nand.o): In function `nand_init_chip': /home/stuart/ArmLinux/u-boot_git/drivers/mtd/nand/nand.c:50: undefined reference to `board_nand_init' make: *** [u-boot] Error 1
Thanks

On Thu, 22 May 2008 09:23:44 -0400 "Stuart Wood" stuart.wood@labxtechnologies.com wrote:
Hi All,
I'm currently porting our u-boot implementation that is about 2 years old to the current git repository, and I've hit a snag during linking.
It can't find my 'board_nand_init' function. It defined in my nand.c and it is being compiled. So what could I have missed in reconfiguring my board?
I'm getting this error:
make[1]: Leaving directory `/home/stuart/ArmLinux/u-boot_git/board/mix_evm' UNDEF_SYM=`arm-linux-objdump -x board/mix_evm/libmix_evm.a lib_generic/libgeneric.a cpu/arm920t/libarm920t.a cpu/arm920t/ep93xx/libep93xx.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 net/libnet.a disk/libdisk.a drivers/bios_emulator/libatibiosemu.a drivers/block/libblock.a drivers/dma/libdma.a drivers/hwmon/libhwmon.a drivers/i2c/libi2c.a drivers/input/libinput.a drivers/misc/libmisc.a drivers/mtd/libmtd.a drivers/mtd/nand/libnand.a drivers/mtd/nand_legacy/libnand_legacy.a drivers/mtd/onenand/libonenand.a drivers/net/libnet.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/usb/libusb.a drivers/video/libvideo.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/stuart/ArmLinux/u-boot_git && arm-linux-ld -Bstatic -T /home/stuart/ArmLinux/u-boot_git/board/mix_evm/u-boot.lds -Ttext 0xE5400000 $UNDEF_SYM cpu/arm920t/start.o \ --start-group lib_generic/libgeneric.a cpu/arm920t/libarm920t.a cpu/arm920t/ep93xx/libep93xx.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 net/libnet.a disk/libdisk.a drivers/bios_emulator/libatibiosemu.a drivers/block/libblock.a drivers/dma/libdma.a drivers/hwmon/libhwmon.a drivers/i2c/libi2c.a drivers/input/libinput.a drivers/misc/libmisc.a drivers/mtd/libmtd.a drivers/mtd/nand/libnand.a drivers/mtd/nand_legacy/libnand_legacy.a drivers/mtd/onenand/libonenand.a drivers/net/libnet.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/usb/libusb.a drivers/video/libvideo.a common/libcommon.a libfdt/libfdt.a api/libapi.a post/libpost.a board/mix_evm/libmix_evm.a --end-group -L /opt/buildroot/lib/gcc/arm-linux-uclibc/3.4.6 -lgcc \ -Map u-boot.map -o u-boot drivers/mtd/nand/libnand.a(nand.o): In function `nand_init_chip': /home/stuart/ArmLinux/u-boot_git/drivers/mtd/nand/nand.c:50: undefined reference to `board_nand_init' make: *** [u-boot] Error 1
How big is your nand.o? Do you have an ifdef in the file which is not defined and perhaps preventing the code from being compiled?
--- Gary Jennejohn

Hi Gary,
Thanks! It was an old #if that was breaking because the definition was not being used any more.
Bye the way, is anyone supporting the Cirrus Logic EP93xx family?
Stuart
How big is your nand.o? Do you have an ifdef in the file which is not defined and perhaps preventing the code from being compiled?
Gary Jennejohn
participants (2)
-
Gary Jennejohn
-
Stuart Wood