I am trying to access u-boot from user space of imx8qmmek and for that I have compiled u-boot-fslc-fw-utils recipes in my yocto image. I could see that fw_printenv binary is successfully generated. I flashed my image on the target and test fw_printenv command from user space but it always prints default environment variable instead of updated environment variable on boot. I could see that environment variable printed from u-boot is different from user space.
Please guide me to resolve this issue.
Thank you.
Solved! Go to Solution.
You also need to confirm whether this partition is read-only:
echo 0> /sys/block/mmcblk0boot0/force_ro
[I don't confirm this path of i.MX8QM, you can try or check it. ]
weidong
You also need to confirm whether this partition is read-only:
echo 0> /sys/block/mmcblk0boot0/force_ro
[I don't confirm this path of i.MX8QM, you can try or check it. ]
weidong
Did you try config file like this:
/dev/mmcblk0boot0
weidong
Yes. But issue did not get resolved.
Thank you.
Hi,
When using fw_printenv and fw_setenv, fw_env.config is a very important configuration file.
When using fw_printenv and fw_setenv, fw_env.config is a very important configuration file. Only the correct configuration of offset position and size can display and set u-boot environment variables correctly. You can modify this configuration file by the value of CONFIG_ENV_OFFSET.
Try it, please!
Have a nice day!
B.R,
Weidong
Hi @weidong_sun
Yes, I have modified the value of fw_env.config file with the value of CONFIG_ENV_OFFSET and CONFIG_ENV_SIZE as per the value given in the imx8qm_mek_defconfig file for option "/dev/mmcblk0". But facing the same issue. fw_printenv command always prints default environment variable.
Thank you.