
Hi Rubini
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 Can you please help me.
NOR Flash: CONFIG_SYS_FLASH_BASE 0x10000000 CONFIG_ENV_ADDR 0x10040000 CONFIG_SYS_MAX_FLASH_SECT 512 // Maximum number sectors CONFIG_SYS_MAX_FLASH_BANKS 1 CONFIG_SYS_MONITOR_LEN SZ_256K NOR_SIZE SZ_128M //128MB NOR SECTOR_SIZE SZ_256K // 256KB sector size
When I set all the environment variable and try to save on flash , I am getting Error: end address not on sector boundary.
Check the settings in your config file. The environment must live in an integer number of sectors, and sector size depends on the flash chip (usually 64k or 128k).
But still my kernel boots with the env setting I made,
saveenv failed, but in-memory env has been modified.
but on restart these enviroment settings are lost.
That's because saveenv failed, next time you read environment from flash (or, most likely, compile defaults).
Regards Naveen