For software updates, I want to have what would have gone into the boot partition of the WIC image as a separate file.

If I want to have the contents of the rootfs as an ext4 image, I can just specify IMAGE_TYPES="ext4" in my image recipe.

This image I can feed to SWUdate and write to the rootfs storage.

But I also want to be able to update the boot partition (for example, the raspberrypi has the annoying property that devicetree and kernel reside here).

If I create a WIC image, the boot partition is in there with the proper files (from IMAGE_BOOT_FILES) so I would really like to re-use that code. I could create the wic image and then cut out the part I want, but that doesn't seem particularly nice.

What I want to do at update time is to write the new boot partition to another location on disk, and then adjust the partition table to make the first partition entry point to the new copy. That way, in case of unexpected failure (power loss for example), the device remains bootable.


--
Mike Looijmans


Met vriendelijke groet / kind regards,

Mike Looijmans
System Expert


TOPIC Embedded Products B.V.
Materiaalweg 4, 5681 RJ Best
The Netherlands

T: +31 (0) 499 33 69 69
E: [email protected]
W: www.topicproducts.com

Please consider the environment before printing this e-mail
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#149458): 
https://lists.openembedded.org/g/openembedded-core/message/149458
Mute This Topic: https://lists.openembedded.org/mt/81348440/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to