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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
3,806 次查看
yeah
Contributor II

Hi,

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.denx.de 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: http://releases.linaro.org/14.03/components/toolchain/binaries/

export ARCH=arm

export CROSS_COMPILE=arm-linux-gnueabihf-

make distclean

make mx6dlsabreauto_config

make

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.denx.de 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 <B37916@freescale.com>

Acked-by: Fabio Estevam <fabio.estevam@freescale.com>

So it may need to enlarge again.

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
2,666 次查看
BiyongSUN
NXP Employee
NXP Employee
0 项奖励
回复
4 回复数
2,667 次查看
BiyongSUN
NXP Employee
NXP Employee

please use nxp official git server:

uboot-imx.git - Freescale i.MX u-boot Tree

0 项奖励
回复
2,666 次查看
yeah
Contributor II

Yes, the nxp official works as it produced a image "470016 Jan 27 09:36 u-boot.imx".

Maybe the git.denx.de Git - u-boot.git/commit should be updated to make it work too.

0 项奖励
回复
2,666 次查看
weidong_sun
NXP TechSupport
NXP TechSupport

Hello Yeah,

     Did you solve your questions according to Biyong's suggestion?

     Yes, you should be u-boot source code from NXP git server and patch it.

Regards,

weidong

0 项奖励
回复
2,666 次查看
yeah
Contributor II

Hi Weidong,

There's no need to patch, just because the default built image is bigger than the ENV_OFFSET from DENX git server.

The NXP git server's produced image is not bigger that it.

But I doubt 512KB ENV_OFFSET is still dangerous, may need to enlarge or use other method. But it depends on NXP's enginerring.

BR.

Yeah

0 项奖励
回复