[iMX6 - Yocto ] Update U-BOOT environment from user space

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

[iMX6 - Yocto ] Update U-BOOT environment from user space

1,685 Views
zakariazh
Contributor I

Hello,


I've been trying to update uboot's environment variables from user space for a while (to be able to boot from another partition).

I tried with fw_printenv/_setenv, but I still have: "Cannot read environment, using default"

in my /etc/fw_env.config I have:

/dev/mmcblk0            0x00f00000         0x2000

i also configure u boot to save to save environment like this:

CONFIG_ENV_IS_IN_MMC=y 
CONFIG_SYS_MMC_ENV_PART=1
CONFIG_ENV_OFFSET=0x00f00000
CONFIG_ENV_SIZE=0x2000

Do you have any ideas ?

Thank you 

0 Kudos
Reply
1 Reply

1,677 Views
igorpadykov
NXP Employee
NXP Employee
0 Kudos
Reply