AnsweredAssumed Answered

The default CONFIG_ENV_OFFSET is not enough for i.MX6 SabreAuto board on U-Boot 201601

Question asked by yeah ni on Jan 25, 2016
Latest reply on Jan 27, 2016 by yeah ni


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: Git - u-boot.git/blob - include/configs/mx6sabre_common.h


211 #if defined(CONFIG_ENV_IS_IN_MMC)

212 #define CONFIG_ENV_OFFSET               (8 * 64 * 1024)

213 #endif


It is 512KB, while I compiled as below:

gcc: gcc-linaro-arm-linux-gnueabihf-4.8-2014.03_linux.tar.xz from:


export ARCH=arm

export CROSS_COMPILE=arm-linux-gnueabihf-

make distclean

make mx6dlsabreauto_config



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: Git - u-boot.git/commit

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 <>

Acked-by: Fabio Estevam <>


So it may need to enlarge again.