From: Peter Barada <peter.barada@logicpd.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] *** [u-boot] Error 139 when config NAND relative setting
Date: Mon, 16 Sep 2013 09:51:35 -0400 [thread overview]
Message-ID: <52370CE7.5020508@logicpd.com> (raw)
In-Reply-To: <CAC1bqKhEwiOgUcfCoOEcojPyAhvLpBLOaq-ZTTLLZg=aLNxXyg@mail.gmail.com>
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 at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
--
Peter Barada
peter.barada at logicpd.com
prev parent reply other threads:[~2013-09-16 13:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-13 6:54 [U-Boot] *** [u-boot] Error 139 when config NAND relative setting Hsin-Hsiang Tseng
2013-09-16 13:51 ` Peter Barada [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52370CE7.5020508@logicpd.com \
--to=peter.barada@logicpd.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.