2009-11-04 14:12:52     u-boot build problem when use CFG_NAND_SELECT_DEVICE

Document created by Aaronwu Employee on Sep 24, 2013
Version 1Show Document
  • View in full screen mode

2009-11-04 14:12:52     u-boot build problem when use CFG_NAND_SELECT_DEVICE

Randy Young (UNITED STATES)

Message: 82061   

 

I am trying to build u-boot-2008.10-2009R1-rc3 for the bf527-ezkit board with the configuration settings set to allow booting u-boot from NAND.  I have followed the instructions that tell me to add the following lines to my config file:

 

#define CFG_BFIN_NFC_BOOTROM_ECC

#define CFG_NAND_SELECT_DEVICE  1

 

However, once I do this and a 'make clean' and a 'make bf527-ezkit', I get the following errors:

 

drivers/mtd/nand/libnand.a(nand.o): In function `nand_init':

/home/CSD/ryoung/blackfin/bootloader/u-boot-2008.10-2009R1-rc3/drivers/mtd/nand/nand.c:74: undefined reference to `board_nand_select_device'

/home/CSD/ryoung/blackfin/bootloader/u-boot-2008.10-2009R1-rc3/drivers/mtd/nand/nand.c:74: relocation truncated to fit: R_pcrel24_jump_l against undefined symbol `board_nand_select_device'

common/libcommon.a(cmd_nand.o): In function `do_nand':

/home/CSD/ryoung/blackfin/bootloader/u-boot-2008.10-2009R1-rc3/common/cmd_nand.c:226: undefined reference to `board_nand_select_device'

/home/CSD/ryoung/blackfin/bootloader/u-boot-2008.10-2009R1-rc3/common/cmd_nand.c:226: relocation truncated to fit: R_pcrel24 against undefined symbol `board_nand_select_device'

make[1]: *** [u-boot] Error 1

make[1]: Leaving directory `/home/CSD/ryoung/blackfin/bootloader/u-boot-2008.10-2009R1-rc3'

make: *** [bf527-ezkit] Error 2

 

 

Is there a bug here, or am I doing something wrong?

 

Thanks, Randy

 

u-boot-nand-build-error.txt

QuoteReplyEditDelete

 

 

2009-11-04 15:14:09     Re: u-boot build problem when use CFG_NAND_SELECT_DEVICE

Mike Frysinger (UNITED STATES)

Message: 82063   

 

i dont think we've ever tested a BF527 booting out of NAND because the bootroms dont support it until 0.2, and i didnt get one of those until recently

 

however, you dont need to define the CFG_NAND_SELECT_DEVICE option anymore.  it was a kludge around an old mtd layer which no longer exists in 2008.10+.

QuoteReplyEditDelete

 

 

2009-11-12 12:47:25     Re: u-boot build problem when use CFG_NAND_SELECT_DEVICE

Mike Frysinger (UNITED STATES)

Message: 82326   

 

i updated the docs a while ago, and i lied -- i didnt actually have any bf527-0.2-ezkits.  i was thinking of newer bf526-ezbrds.

 

at any rate, i tried one today and it worked fine like the documentation showed.

 

U-Boot 2008.10-svn2082 (ADI-2009R1-rc3) (Nov 12 2009 - 11:35:25)

 

CPU:   ADSP bf527-0.0 (Detected Rev: 0.2) (nand flash boot)

Board: ADI BF527 EZ-Kit board

       Support: http://blackfin.uclinux.org/

Clock: VCO: 525 MHz, Core: 525 MHz, System: 131.250 MHz

RAM:   64 MB

Flash:  4 MB

NAND:  512 MiB

In:    serial

Out:   serial

Err:   serial

Hit any key to stop autoboot:  0

Outcomes