[U-Boot-Users] 83xx: fix CFG_ENV_ADDR and CFG_ENV_SECT_SIZE definitions

Jens Gehrlein sew_s at tqs.de
Wed Oct 31 16:47:13 CET 2007


Timur Tabi wrote:
> Fix the definitions of CFG_ENV_ADDR and CFG_ENV_SECT_SIZE for all the 83xx
> boards.  This change guarantees that the environment will be located on
> the first flash sector after the U-Boot image.
> 
> Signed-off-by: Timur Tabi <timur at freescale.com>

> +	#define CFG_ENV_ADDR		(CFG_MONITOR_BASE + CFG_MONITOR_LEN)

Hi Timur,

IMHO this would work only if the sum of
CFG_MONITOR_BASE + CFG_MONITOR_LEN is sector aligned.
Did you set CFG_MONITOR_LEN appropriately?
(Just to avoid unexpected behaviour)

Best regards
   Jens




More information about the U-Boot mailing list