[U-Boot] Flash Errors in Building u-boot.2009.03 for mx31ads

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

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

Dear Yong Yang,
In message 737b0be30906150750j28387c06u3a7ba7ffea73682f@mail.gmail.com you wrote:
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.
I cannot reproduce any such errors:
-> git checkout v2009.03 ... HEAD is now at e60beb1... Prepare 2009.03 -> ./MAKEALL mx31ads Configuring for mx31ads board... text data bss dec hex filename 179720 4560 25228 209508 33264 ./u-boot
Ditto for the current version:
-> git checkout v2009.06 ... HEAD is now at 6b1f78a... Prepare v2009.06 -> ./MAKEALL mx31ads Configuring for mx31ads board... env_embedded.c:187: warning: string length '592' is greater than the length '509' ISO C90 compilers are required to support text data bss dec hex filename 180440 4584 25228 210252 3354c ./u-boot
I checked include/configs/mx31ads.h, and it does use CFI flash configuration. Does anyone have ideas what might go wrong? Thanks
Are you soure your source tree is OK, and your tool chain is working?
Best regards,
Wolfgang Denk

I downloaded the source tar files from the FTP site, instead of from git. My cross-compiler is arm-elf-gcc from http://www.gnuarm.org/ It seems my tool chain works, since I maked images for omap5112osk successfully.
:((( On Mon, Jun 15, 2009 at 4:16 PM, Wolfgang Denk wd@denx.de wrote:
Dear Yong Yang,
In message 737b0be30906150750j28387c06u3a7ba7ffea73682f@mail.gmail.com you wrote:
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.
I cannot reproduce any such errors:
-> git checkout v2009.03 ... HEAD is now at e60beb1... Prepare 2009.03 -> ./MAKEALL mx31ads Configuring for mx31ads board... text data bss dec hex filename 179720 4560 25228 209508 33264 ./u-boot
Ditto for the current version:
-> git checkout v2009.06 ... HEAD is now at 6b1f78a... Prepare v2009.06 -> ./MAKEALL mx31ads Configuring for mx31ads board... env_embedded.c:187: warning: string length '592' is greater than the
length '509' ISO C90 compilers are required to support text data bss dec hex filename 180440 4584 25228 210252 3354c ./u-boot
I checked include/configs/mx31ads.h, and it does use CFI flash configuration. Does anyone have ideas what might go wrong? Thanks
Are you soure your source tree is OK, and your tool chain is working?
Best regards,
Wolfgang Denk
-- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de An age is called Dark not because the light fails to shine, but because people refuse to see it. -- James Michener, "Space"

Error was fixed by using another tool chain.
On Mon, Jun 15, 2009 at 4:51 PM, Yong Yang yangyong79@gmail.com wrote:
I downloaded the source tar files from the FTP site, instead of from git. My cross-compiler is arm-elf-gcc from http://www.gnuarm.org/ It seems my tool chain works, since I maked images for omap5112osk successfully.
:((( On Mon, Jun 15, 2009 at 4:16 PM, Wolfgang Denk wd@denx.de wrote:
Dear Yong Yang,
In message 737b0be30906150750j28387c06u3a7ba7ffea73682f@mail.gmail.com you wrote:
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.
I cannot reproduce any such errors:
-> git checkout v2009.03 ... HEAD is now at e60beb1... Prepare 2009.03 -> ./MAKEALL mx31ads Configuring for mx31ads board... text data bss dec hex filename 179720 4560 25228 209508 33264 ./u-boot
Ditto for the current version:
-> git checkout v2009.06 ... HEAD is now at 6b1f78a... Prepare v2009.06 -> ./MAKEALL mx31ads Configuring for mx31ads board... env_embedded.c:187: warning: string length '592' is greater than
the length '509' ISO C90 compilers are required to support text data bss dec hex filename 180440 4584 25228 210252 3354c ./u-boot
I checked include/configs/mx31ads.h, and it does use CFI flash configuration. Does anyone have ideas what might go wrong? Thanks
Are you soure your source tree is OK, and your tool chain is working?
Best regards,
Wolfgang Denk
-- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de An age is called Dark not because the light fails to shine, but because people refuse to see it. -- James Michener, "Space"
participants (2)
-
Wolfgang Denk
-
Yong Yang