[U-Boot] REQ: advice regarding u-boot config

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Sat Jun 27 00:07:33 CEST 2009


On 21:52 Fri 26 Jun     , Darius Augulis wrote:
> Hi all on the list,
> 
> I need some help with optimizing board config:
> 
> 1. What is the best practice to configure environment? I have unified 
> sector NOR flash. It has 128 sectors size of 128 KB, total 16Mbytes 
> flash memory. U-boot is stored at 0x0. Where to put ENV?
personnaly I prefer to put them at the end of the flash so evenif the u-boot
size increase you will not overwrite them
> 
> 2. What is optimal ENV size? If all sectors are 128 KB size, ENV should 
> be 128Kb too?
Depend on your need 8k is good IMHO
> 
> 3. Now my ENV configuration is follows:
> 
> #define CONFIG_ENV_IS_IN_FLASH		1
> #define CONFIG_ENV_OFFSET		(2 * 128 * 1024)
> #define CONFIG_ENV_ADDR			(CONFIG_SYS_FLASH_BASE + CONFIG_ENV_OFFSET)
> #define CONFIG_ENV_SIZE			(8 * 1024)
> #define CONFIG_ENV_SECT_SIZE		(128 * 1024)
> 

> *** Warning - bad CRC, using default environment
> 
> In:    serial
> Out:   serial
> Err:   serial
> ### main_loop entered: bootdelay=30
> 
> ### main_loop: bootcmd="bootm"
> Hit any key to stop autoboot: 30
> NAS4220$ printenv
the Icy box :)

Best Regards,
J.


More information about the U-Boot mailing list