[U-Boot] [U-BOOT] error: end address not on sector boundary when I use saveenv cmd

Alessandro Rubini rubini-list at gnudd.com
Wed Aug 5 17:46:03 CEST 2009


>   I already looked at my  config file, but couldn't root cause the problem
>   Here are some of the definitions from my configs, incase anything wrong

>      CONFIG_SYS_FLASH_BASE  0x10000000
>      CONFIG_ENV_ADDR        0x10040000

Ok. But you'd better copy whole lines from config file instead of
choosing words from them. Sometimes the error is in the details.

>                 SECTOR_SIZE SZ_256K  // 256KB sector size

(the comment is redundant here)

so the environment is in the second sector (it starts at the
beginning of a sector). You problem is with the end, so
CFG_ENV_SIZE must be wrong in your config. It should be
256k as well. 

/alessandro


More information about the U-Boot mailing list