Do not know who should fix this issue:
The default CONFIG_ENV_OFFSET in mx6sabre_common.h of U-Boot 201601 is not correct as below:
211 #if defined(CONFIG_ENV_IS_IN_MMC)
212 #define CONFIG_ENV_OFFSET (8 * 64 * 1024)
It is 512KB, while I compiled as below:
gcc: gcc-linaro-arm-linux-gnueabihf-4.8-2014.03_linux.tar.xz from: http://releases.linaro.org/14.03/components/toolchain/binaries/
The produced image for i.MX6DL SabreAuto is: 535 KB (547,840 bytes) and has conflict with the env offset.
So when saveenv, the U-Boot cannot boot up again.
I also searched an old commit here:
imx: mx6q/dl sabre_common: Move MMC ENV offset to 512KB position
Set the CONFIG_ENV_OFFSET from 384KB to 512KB offset, so we will have larger space
for u-boot image.
When enabling NAND flash support feature, the u-boot image size has exceeded the
384KB, which causes overlay to the environment variables storage.
Signed-off-by: Ye.Li <B37916@freescale.com>
Acked-by: Fabio Estevam <email@example.com>
So it may need to enlarge again.