I would like to use SWUpdate on Colibri iMX7D to update rootfs. Unfortunately I am not able to get it working (resulting rootfs does not boot properly) with images based on tdx-image-fstype.
I have successfully added swupdate package into the image, defined
sw-description file which basically tells where are which data supposed to go and swupdate itself is working as expected. Unfortunately it works only with UBIFS file obtained manually from Toradex specific
.tar.bz2 archive (by extracting it and running
update.sh with root privileges). I am unable to get it working either with UBIFS obtained directly from bitbake (it does produce
.rootfs.ubifs file by default) nor with UBIFS extracted from
.tar.bz2 archive in custom recipe using
fakeroot. This makes me believe that the issue is related to permissions, but I am not sure what exactly happens here.
I have tested behavior using different UBIFS as shortly described above:
- UBIFS produced by bitbake directly (
deploy/images/colibri-imx7directory) - boot fails (boot log)
- UBIFS manually extracted from
.tar.bz2archive (using Toradex specific
update.shscript) - boot proceeds as expected, system is working in same way as updating using
run updatein U-Boot (boot log)
- UBIFS automatically extracted from
.tar.bz2archive (using custom recipe with function running in
fakerootto avoid using
sudo) - boot fails (boot log)
To be sure that it is not caused by
swupdate or anything else in the update process, I have replaced
ubifs.img produced by
update.sh run manually with the files directly from bitbake and produced automatically by custom recipe, and updating with
run update in U-Boot leads to same results (the machine will not boot properly), so I believe that it is safe to rule this out.
Main question: Can anyone point out what exactly is being done in
update.sh that cannot be properly done using
fakeroot environment but instead requires running it using
Also, if there is some convenient way to compare different UBIFS files and show differences between then, please let me know.
Thanks a lot for any ideas.