Not change u-boot environment from user-space with custom board based on iMX7DSABRESD

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Not change u-boot environment from user-space with custom board based on iMX7DSABRESD

655件の閲覧回数
tuyenth
Contributor I

Hi,

We are using a customized board based on iMX7DSABRESD with emmc(usdhc3) .I used imx usb loader to flash u-boot for a customized board ( i do not use MFG tool). I am using u-boot u-boot-imx version 2017.03. It worked fine. When we change u-boot environment from kernel (user-space) by fw_setenv ( building from u-boot-imx version 2017.03) after using fw_printenv , I see u-boot environment is changed, but after reboot it is NOT be changed.

in file include/configs/myboard.h I set :

/* environment organization */
#define CONFIG_ENV_SIZE            SZ_8K
#define CONFIG_ENV_OFFSET        (14 * SZ_64K)

--> I must be to set in file /etc/fw_env.config

/dev/mmcblk2            0xE0000         0x2000

We don't know why. Please give us some advice.

Thanks & Regards,

ラベル(1)
0 件の賞賛
2 返答(返信)

524件の閲覧回数
art
NXP Employee
NXP Employee

After doing fw_setenv, you have to do saveenv somehow to keep the changes in place for the next reboot(s).

0 件の賞賛

524件の閲覧回数
tuyenth
Contributor I

Hi,

Please let me know, does this issue occur on iMX7DSABRESD board?

Thank you!

0 件の賞賛