2009-06-16 10:28:19     Board with SPI Flash and no parallel flash

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

2009-06-16 10:28:19     Board with SPI Flash and no parallel flash

JF Duval (CANADA)

Message: 75821   

 

Hello,

 

On my board I have an Atmel AT45DB321D SPI Flash, 4MB.  I'm able to detect it (eeprom info) with U-boot.  As I don't have any parallel flash, I would like to remove this from the u-boot program.  I inserted:

 

#define CFG_NO_FLASH

 

in <myboardname>.h and I have

 

#define CONFIG_BFIN_COMMANDS \

    ( CFG_BFIN_CMD_CPLBINFO | \

      CFG_CMD_EEPROM)

 

But the problem is that I can't compile:

 

bfin-uclinux-gcc -g  -Os   -ffixed-P5 -fomit-frame-pointer -mcpu=bf532-0.5 -D__KERNEL__ -I/home/user/Desktop/u-boot-1.1.6-2008R1.5/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/uClinux/bfin-uclinux/lib/gcc/bfin-uclinux/4.1.2/include -pipe  -DCONFIG_BLACKFIN -Wall -Wstrict-prototypes -c -o cmd_bootm.o cmd_bootm.c

cmd_bootm.c:93: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘flash_info’

cmd_bootm.c: In function ‘do_imls’:

cmd_bootm.c:1256: error: ‘flash_info_t’ undeclared (first use in this function)

cmd_bootm.c:1256: error: (Each undeclared identifier is reported only once

cmd_bootm.c:1256: error: for each function it appears in.)

cmd_bootm.c:1256: error: ‘info’ undeclared (first use in this function)

cmd_bootm.c:1261: error: ‘flash_info’ undeclared (first use in this function)

cmd_bootm.c:1261: error: ‘CFG_MAX_FLASH_BANKS’ undeclared (first use in this function)

cmd_bootm.c:1262: error: ‘FLASH_UNKNOWN’ undeclared (first use in this function)

make[1]: *** [cmd_bootm.o] Error 1

make[1]: Leaving directory `/home/user/Desktop/u-boot-1.1.6-2008R1.5/common'

make: *** [common/libcommon.a] Error 2

debian:/home/user/Desktop/u-boot-1.1.6-2008R1.5#

 

 

Does defining No_Flash only remove the // flash? Does it affect my SPI flash?  How can I make it compile with a SPI flash (that I will boot from) and no parallel flash?

 

Thanks for your support,

 

JFDuval

QuoteReplyEditDelete

 

 

2009-06-16 10:43:35     Re: Board with SPI Flash and no parallel flash

Mike Frysinger (UNITED STATES)

Message: 75824   

 

did you read the documentation ?

 

http://docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:parallel-flash#disabling_support

QuoteReplyEditDelete

 

 

2009-06-18 10:10:12     Re: Board with SPI Flash and no parallel flash

JF Duval (CANADA)

Message: 75973   

 

Hello Mike,

 

 

 

Yes, I consulted the doc before asking my question.  I was confused by the CONFIG_COMMANDS and the CONFIG_BFIN_COMMANDS.

QuoteReplyEditDelete

 

 

2009-06-30 21:35:16     Re: Board with SPI Flash and no parallel flash

Ben Corrado (UNITED STATES)

Message: 76553   

 

For example I have:

 

 

 

 

 

#define CONFIG_COMMANDS        (( CONFIG_BFIN_CMD| \

                 CFG_CMD_ELF    | \

                 CFG_CMD_I2C    | \

                 CFG_CMD_CACHE  | \

                 /* CFG_CMD_JFFS2 | */ \

                 CFG_CMD_EEPROM | \

                 /* ADD_IDE_CMD    | */ \

                 CFG_CMD_DATE ) \

                 & \

                 /* no image ls */ ~(CFG_CMD_IMLS | CFG_CMD_FLASH) \

                 )

 

 

 

 

Note the                  /* no image ls */ ~(CFG_CMD_IMLS | CFG_CMD_FLASH) \

Attachments

    Outcomes