[U-Boot-Users] help:error occured when 'saveenv'

Sughosh Ganu urwithsughosh at gmail.com
Wed Oct 24 04:01:25 CEST 2007


Hi,

> when running the 'saveenv' ,it promted out 
> 
> "Saving Environment to Flash...
> Error: start address not on sector boundary"
> 
> #define PHYS_FLASH_1   0x10000000
> #define PHYS_FLASH_SIZE   0x1000000  /* 16 megs main flash */
> #define CFG_FLASH_BASE   PHYS_FLASH_1
> #define CFG_MAX_FLASH_BANKS  1
> #define CFG_MAX_FLASH_SECT  128
> 
> #define CFG_ENV_IS_IN_FLASH  1
> #ifdef CONFIG_SKIP_LOWLEVEL_INIT
> #define CFG_ENV_ADDR   (PHYS_FLASH_1 + 0x60000)  /* after u-boot.bin */
 
  This seems ok, as the above address is on the sector boundary
  (multiple of 128k).

> #define CFG_ENV_SIZE   0x10000 /* sectors are 64K here */
> #else
> #define CFG_ENV_ADDR   (PHYS_FLASH_1 + 0xe000)  /* between
>  #boot.bin and u-boot.bin.gz */
  
  This seems to be the problem area. Change the offset 0xe000
  so that the address is a multiple of 128k.

-- 
sughosh




More information about the U-Boot mailing list