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.topic.nl
Please consider the environment before printing this e-mail
On 15-03-2021 16:17, Mike Looijmans via lists.openembedded.org wrote:
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.
You can add vfat support for IMAGE_FSTYPES, and then you can build an
image (you can just take the files you have in IMAGE_BOOT_FILES).
But that's *exactly* my problem: How do I get these IMAGE_BOOT_FILES into
an image of sorts? Just setting IMAGE_FSTYPE="vfat" will put the rootfs
contents in there, not the bootfiles I'm after.
rpi-bootfiles inherit nopackage, so you should write a recipe that instead
of simply deploying the files as this recipe does, install them. You should
then install it into /, as this is where they are put on the VFAT partition.
If they are in the package, you can write an image recipe to install it via
IMAGE_INSTALL, and via post process command you drop what is not necessary
(/etc,...).
Anyway, as far as I know, an IMAGE_FSTYPES += "vfat" is not supported, you
have also to add support for it.
rpi-bootfiles provides only part of the file set. The issue is that
IMAGE_BOOT_FILES, which lists much more than what rpi-bootfiles provides, can
be modified in the image recipe itself. It contains the kernel, devicetrees
and configuration files as well.
What I did for now was just insert a task before swuimage that depends on the
wic image, and just extracts the FAT partition using "dd". I'm not
particularly proud of that, but it works/
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#149635):
https://lists.openembedded.org/g/openembedded-core/message/149635
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]]
-=-=-=-=-=-=-=-=-=-=-=-