AnsweredAssumed Answered

U-boot configuration without parallel flash

Question asked by KenH on Aug 8, 2014
Latest reply on Aug 20, 2014 by Aaronwu

Starting from the bf609-ezkit.h configuration, what is the appropriate approach to remove boot options (in my case, I want to only leave UART and SPI FLASH)?

 

For removing the parallel NOR flash, I had commented out the following #def's in my config file:

#define CONFIG_SYS_FLASH_CFI_WIDTH     2

#define CONFIG_FLASH_CFI_DRIVER

#define CONFIG_SYS_FLASH_BASE          0xb0000000

#define CONFIG_SYS_FLASH_CFI

#define CONFIG_SYS_FLASH_PROTECTION

#define CONFIG_SYS_MAX_FLASH_BANKS     1

#define CONFIG_SYS_MAX_FLASH_SECT      131

#define CONFIG_CFI_FLASH_USE_WEAK_ACCESSORS

 

And added the following:

#define CONFIG_SYS_NO_FLASH

 

However, arch/blackfin/lib/board.c appears to require CONFIG_SYS_FLASH_BASE (wrapped in an #ifdef for __ADSPBF60x__) in order to set up the CPLB table. Adding an appropriate '&& !defined(CONFIG_SYS_NO_FLASH)' appears to fix the issue.

 

Is this all that is required? Nothing else missing? Should I have left CONFIG_SYS_FLASH_BASE defined but commented out the others?

Outcomes