I'm trying to place our U-Boot environment variables at the end of phsyical eMMC memory (this is mostly so they don't get erased each time a board is re-flashed with a .wic file).
My eMMC memory size is 4GB.
In the UBoot defconfig I set the following:
CONFIG_ENV_SIZE=0x1000
CONFIG_ENV_OFFSET=0xFFFFE000
CONFIG_ENV_OFFSET_REDUND=0xFFFFF000
In my fw_env.config file I set the same
# MTD Device Offset Length Erase Sector Size
/dev/mmcblk2 0xFFFFE000 0x1000 0x200
/dev/mmcblk2 0xFFFFF000 0x1000 0x200
When I try to use fw_printenv I get an error saying it can't read the environment.
I also see my environment variables in the /dev/mmcblk2, but they are at offset 0xE3FFF000. I've tried to set that as the offset in fw_env.config but still no luck.
Any ideas?
P.S. Everything works as expected if I set the offset to 0x400000 in both the UBoot defconfig and fw_env.config