Hi,
I have followed the SWupdate article from Kknowladge base.
https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/SWUpdate-OTA-i-MX8MM-EVK-i-MX8QXP-MEK/ta...
modified it to IMX8MN based on imx8mn-ddr4-evk
I was able to create demo image containing imx-boot, rescue image (kernel,device tree, and ramsidk rootfs) boot partition with kernel and device tree, operational rootfs partition.
also created a swu image with boot partition and rootfs and was able to upgrade using mongoose.
I am using a single image strategy.
I am experiasing few problems:
1. fw_setenv is not working from operational rootfs although /etc/fw_env.config exists and directs to the expected address. the error message is:
Cannot read environment, using default
it works well from ramdisk image. but the goal is to run it from operational rootfs (for user to initiate). can you sugget why is it not working from operational rootfs ?
2. single image full demo has capababilty to replace the imx-boot image also. it uses emmc_bootpart.sh
and wants to write to /dev/mmcblk1boot0 partition in offset of 32k. when tried this version it failed to find this partition. maybe its something related to imx8mm-evk only? in my bsp there is no partition for the imx-boot it is located on known offset. how can I replace the imx-boot image located on /dev/mmcblk1 offset 32K ? will swupdate support it ?