[U-Boot] Flash Errors in Building u-boot.2009.03 for mx31ads
Yong Yang
yangyong79 at gmail.com
Thu Jun 11 17:32:43 CEST 2009
I ran into a bunch of errors related to Flash and Net (e.g. undefined
reference to 'flash_init'), when building u-boot for mx31ads.
lib_arm/libarm.a(board.o)(.text+0x1d8): In function `start_armboot':
/home/yong/cross-compile/u-boot-2009.03/lib_arm/board.c:211: undefined
reference to `flash_init'
lib_arm/libarm.a(board.o)(.text+0x2c4):/home/yong/cross-compile/u-boot-2009.03/lib_arm/board.c:442:
undefined reference to `cs8900_get_enetaddr'
lib_arm/libarm.a(board.o)(.data+0xc): In function `sbrk':
/home/yong/cross-compile/u-boot-2009.03/lib_arm/board.c:111: undefined
reference to `env_init'
net/libnet.a(net.o)(.text+0x1dc): In function `ArpRequest':
/home/yong/cross-compile/u-boot-2009.03/net/net.c:254: undefined reference
to `eth_send'
I checked include/configs/mx31ads.h, and it does use CFI flash
configuration. Does anyone have ideas what might go wrong? Thanks
*/*-----------------------------------------------------------------------**
* CFI FLASH driver setup** */*#define CONFIG_SYS_FLASH_CFI 1 /*
Flash memory is CFI compliant */#define CONFIG_FLASH_CFI_DRIVER 1 /*
Use drivers/cfi_flash.c */#define CONFIG_FLASH_SPANSION_S29WS_N 1 /* A
non-standard buffered write algorithm */#define
CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1 /* Use buffered writes (~10x
faster) */#define CONFIG_SYS_FLASH_PROTECTION 1 /* Use hardware
sector protection */
Settings:
cross compiler arm-elf-gcc from http://www.gnuarm.org/
Configured with: ../gcc-3.4.3/configure --target=arm-elf
--prefix=/srv/shared/gnuarm/gnuarm-3.4.3 --enable-interwork
--enable-multilib --with-newlib
--with-headers=../newlib-1.12.0/newlib/libc/include
--enable-languages=c,c++,java --disable-libgcj
Thread model: single
gcc version 3.4.3
Thanks a lot
Yong
More information about the U-Boot
mailing list