imx6qsabresd saveenv not working

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

imx6qsabresd saveenv not working

834 Views
rakesh3
Contributor V

HI team, 

I am using the imx6sabresd board and trying to save the local uboot environment variable persistent across reboot. But its not able to save the variable after reboot .

example:

>setenv demo 100

> saveenv
Saving Environment to MMC... Writing to MMC(3)... OK

But after reboot when checked ..

> printenv demo
## Error: "demo" not defined

Below is my u-boot configuration .

CONFIG_ENV_SUPPORT=y
CONFIG_SAVEENV=y
CONFIG_CMD_SAVEENV =y

CONFIG_ENV_OFFSET=0xE0000
# CONFIG_CMD_ERASEENV is not set
CONFIG_CMD_TFTPBOOT=y
# CONFIG_ENV_IS_NOWHERE is not set
CONFIG_ENV_IS_IN_MMC=y
CONFIG_SYS_MMC_ENV_DEV=2
CONFIG_SYS_MMC_ENV_PART=0
# CONFIG_SUPPORT_EMMC_BOOT is not set

 

Please suggest me on this issue  what I am missing to make the uboot variable work persistent across reboot .?

I have attached the custom configuration for board. Please have a look for it 

Does it compulsory need the fast boot config for it to work ?

Labels (1)
0 Kudos
Reply
2 Replies

765 Views
JudyJeo
Contributor III

You'd better to check the boot log if the env read from mmc 3 correctly.

0 Kudos
Reply

793 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

Whats suppose to do with demo, you are defined a variable but it do anything uboot simple do nothing.

 

Regards

0 Kudos
Reply