Hi all,
I am playing rauc. there are two rootfs to boot.
so need to change uboot environment variables to switch boot between the first rootfs and redundant rootfs.
so need to add IMAGE_INSTALL_append +="u-boot-fw-utils " in yocto local file to enable fw_printenv, fw_setenv.
but bitbake can not pass build u-boot-fw-utils. it shows can find maaxboard_defconfig. so I use imx8mq_evk_defconfig to instead it.
it can pass building. but after bootup, I run fw_printenv , it shows error : can not find /dev/mtd1. and can not find /dev/mtd either
before I did not add IMAGE_INSTALL_append +="u-boot-fw-utils " , of course, there was not command fw_printenv. but it could find /dev/mtd ,only no content.
My questions are :
1.
I want to know do I can use fw_printenv ? or Can I use uEnv.txt to change uboot environment variables to switch boot the two rootfs' ?
2. because there is no file "maaxboard_defconfig" in "u-boot-fw-utils " to fit maaxboard, but there is a file imx8mq_evk_defconfig , how can I modify the file imx8mq_evk_defconfig to maaxboard_defconfig to make u-boot-fw-utils can be built and make fw_printenv to work? what are the porting points?
any help?
Thank you very much.
Hi
Please refer this knowledge base:
Hi
I can build u-boot-fw-utils successfully.Thank you very much.
I have one more question here:
uboot environment variable should be written in which partition on sdcard?
please have a look.
Thank you.