iMX93 evk boot environment not persist after reboot and how to change boot environment in rootfs

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

iMX93 evk boot environment not persist after reboot and how to change boot environment in rootfs

403 Views
Akash_Shinde25
Contributor II

we are multiple changes in u-boot 
1.In imx93_11x11_evk_defconfig this configs already present 

    CONFIG_ENV_IS_IN_MMC=y
    CONFIG_ENV_IS_NOWHERE=y
    CONFIG_ENV_SIZE=0x4000
    CONFIG_ENV_OFFSET=0x400000
    CONFIG_ENV_SECT_SIZE=0x10000
    CONFIG_SYS_MMC_ENV_DEV=1

2.We are removing CONFIG_ENV_IS_NOWHERE=y then u-boot not flash using UUU utility. This is one issue.
3. We are adding CONFIG_SYS_REDUNDAND_ENVIRONMENT=y observing booting issue. added screenshot please check 

As1_0-1702554230817.png

3.In rootfs for boot environment change added IMAGE_INSTALL += "u-boot-fw-utils" then observe 
   fw_printenv and fw_setenv utility but /etc/fw_env.config not present in this location.

4.Manualy we create fw_env.config and added dev mmcblk0 0x400000 0x4000 we read environment and set environment but this environment not replicate in u-boot.

how to resolve this issue. please help 

Thank you 

0 Replies