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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

578 Views
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,

Labels (1)
0 Kudos
2 Replies

447 Views
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 Kudos

447 Views
tuyenth
Contributor I

Hi,

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

Thank you!

0 Kudos