2008-10-29 13:54:31     enabling only SPI flash

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

2008-10-29 13:54:31     enabling only SPI flash

Kyle Schlansker (UNITED STATES)

Message: 64374   

 

Our board only has SPI flash which we would like to use to hold uboot as well as the kernel.  I'm working off of the bf548 ezkit u-boot configuration and am trying to eliminate the traces of NAND flash since we don't have it.

 

I've removed all of the defines under the 'Flash Setting' section and replaced them with:

 

#define CFG_ENV_OFFSET  0x4000

#define CFG_ENV_SIZE    0x2000

#define ENV_IS_EMBEDDED_CUSTOM

 

I've also defined CFG_NO_FLASH as it seems to control the nand flash detection (which we don't need and which crashes for me).

 

 

 

When compiling, I end up getting the following error:

 

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

 

 

 

 

Could someone give me some tips on how I'm supposed to configure uboot to only expect SPI flash?

QuoteReplyEditDelete

 

 

2008-10-29 14:01:06     Re: enabling only SPI flash

Mike Frysinger (UNITED STATES)

Message: 64375   

 

have you reviewed the docs for flash configuration ?

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

QuoteReplyEditDelete

 

 

2008-10-29 14:05:01     Re: enabling only SPI flash

Kyle Schlansker (UNITED STATES)

Message: 64376   

 

Yes, I've read through all of them many times.  I guess I'm just not clear on exactly what set of #defines are needed for SPI flash, and on exactly what #defines to add/remove in order to get rid of NAND flash.

QuoteReplyEditDelete

 

 

2008-10-29 14:19:35     Re: enabling only SPI flash

Kyle Schlansker (UNITED STATES)

Message: 64380   

 

Let's forget everything I said earlier, and start of small and build up from there.

 

To eliminate checking for parallel flash, I defined CFG_NO_FLASH in include/configs/bf548-ezkit.h.

 

I get compilation errors after this.

 

Questions:

 

1) Is this the correct way to tell uboot not too support/look for parallel flash?

 

2) If not, what is?

 

Thanks.

 

 

 

P.S. I know I mentioned NAND in earlier posts, but omitted the parallel flash comments -- I know that they are two separate things.

QuoteReplyEditDelete

 

 

2008-10-29 14:22:21     Re: enabling only SPI flash

Mike Frysinger (UNITED STATES)

Message: 64381   

 

i asked about the documentation because it already explicitly documents how to disable parallel flash ...

QuoteReplyEditDelete

 

 

2008-10-29 14:28:58     Re: enabling only SPI flash

Kyle Schlansker (UNITED STATES)

Message: 64383   

 

well, don't I feel like an idiot -- as usual.  Thanks for putting up with my newb questions    and I'm sure there will be many more to come.

Attachments

    Outcomes