On 09/13/2013 02:54 AM, Hsin-Hsiang Tseng wrote: > Hello, nice to meet everyone. I am new to U-boot development world. > > i have a s5pv310 soc dk board, and i config. it as origen board. > i want to use nand command in u-boot, so i add blow setting in origen.h > /*enable nand command*/ > #define CONFIG_CMD_NAND > #define CONFIG_SYS_MAX_NAND_DEVICE 1 > #define CONFIG_SYS_NAND_MAX_CHIPS 1 > #define CONFIG_SYS_NAND_SELF_INIT > #define CONFIG_SYS_NAND_BASE 0x0CE00000 > > but i got error message about ***[U-boot] Error 139. After searched some > solution, > some said that Error 139 is the cross compile version is too low. > but my cross compile is gcc-arm-none-eabi-4_6-2012q2, i think it is not the > version problem. No, its not a version problem.
If you look at the output from the link command, you'll see: "/usr/v310/uboot_linaro/u-boot-linaro/drivers/mtd/nand/nand.c:104: undefined reference to `board_nand_init'" You're missing "board_nand_init" function... > > without the nand relative config before i could build u-boot without any > problem. > > could somebody give me some points to fix this error. thanks. > > ps. i don't know if i could consult building problem here. If u-boot > mail-list is not proper to receive > building problem please let me know. thanks again. > > > drivers/mtd/nand/libnand.o: In function `nand_init': > /usr/v310/uboot_linaro/u-boot-linaro/drivers/mtd/nand/nand.c:104: undefined > reference to `board_nand_init' > /usr/v310/toolchain/gcc-arm-none-eabi-4_6-2012q2/bin/arm-none-eabi-ld.bfd: > BFD (GNU Tools for ARM Embedded Processors) 2.21.1.20120613 assertion fail > /home/build/work/jenkins-daily-build/src/binutils/bfd/elf32-arm.c:12274 > /usr/v310/toolchain/gcc-arm-none-eabi-4_6-2012q2/bin/arm-none-eabi-ld.bfd: > BFD (GNU Tools for ARM Embedded Processors) 2.21.1.20120613 assertion fail > /home/build/work/jenkins-daily-build/src/binutils/bfd/elf32-arm.c:12511 > /bin/bash: line 1: 3818 Segmentation fault > /usr/v310/toolchain/gcc-arm-none-eabi-4_6-2012q2/bin/arm-none-eabi-ld.bfd > -pie -T u-boot.lds -Bstatic -Ttext 0x43E00000 $UNDEF_LST > arch/arm/cpu/armv7/start.o --start-group api/libapi.o > arch/arm/cpu/armv7/exynos/libexynos.o arch/arm/cpu/armv7/libarmv7.o > arch/arm/cpu/armv7/s5p-common/libs5p-common.o arch/arm/lib/libarm.o > board/samsung/common/libsamsung.o common/libcommon.o disk/libdisk.o > drivers/bios_emulator/libatibiosemu.o drivers/block/libblock.o > drivers/dfu/libdfu.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/cbfs/libcbfs.o fs/cramfs/libcramfs.o > fs/ext4/libext4fs.o fs/fat/libfat.o fs/fdos/libfdos.o fs/jffs2/libjffs2.o > fs/libfs.o fs/reiserfs/libreiserfs.o fs/ubifs/libubifs.o > fs/yaffs2/libyaffs2.o fs/zfs/libzfs.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 test/libtest.o board/samsung/origen/liborigen.o --end-group > /usr/v310/uboot_linaro/u-boot-linaro/arch/arm/lib/eabi_compat.o -L > /usr/v310/toolchain/gcc-arm-none-eabi-4_6-2012q2/bin/../lib/gcc/arm-none-eabi/4.6.2 > -lgcc -Map u-boot.map -o u-boot > make[1]: *** [u-boot] Error 139 > > > > _______________________________________________ > U-Boot mailing list > U-Boot@lists.denx.de > http://lists.denx.de/mailman/listinfo/u-boot -- Peter Barada peter.bar...@logicpd.com
_______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot