From: "Mike Looijmans" <mike.looijmans@topic.nl>
To: openembedded-core@lists.openembedded.org
Subject: Re: [OE-core] Build the "boot" partition image (just like the rootfs)
Date: Thu, 18 Mar 2021 14:48:33 +0100 [thread overview]
Message-ID: <0d5a12b2-c486-787a-3c1c-49536ee944a8@topic.nl> (raw)
In-Reply-To: <166C8D08E44901C2.29251@lists.openembedded.org>
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: mike.looijmans@topicproducts.com
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/
prev parent reply other threads:[~2021-03-18 13:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1b153bce-a66a-45ee-a5c6-963ea6fb1c82.949ef384-8293-46b8-903f-40a477c056ae.8fe74b17-765d-490b-bd80-d5971d41488f@emailsignatures365.codetwo.com>
[not found] ` <1b153bce-a66a-45ee-a5c6-963ea6fb1c82.0d2bd5fa-15cc-4b27-b94e-83614f9e5b38.1e9416a1-3cc9-4dc0-8334-9bfb06079d86@emailsignatures365.codetwo.com>
2021-03-15 13:13 ` Build the "boot" partition image (just like the rootfs) Mike Looijmans
2021-03-15 13:47 ` [OE-core] " Stefano Babic
2021-03-15 14:46 ` Mike Looijmans
2021-03-15 14:58 ` Stefano Babic
2021-03-15 15:17 ` Mike Looijmans
[not found] ` <166C8D08E44901C2.29251@lists.openembedded.org>
2021-03-18 13:48 ` Mike Looijmans [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0d5a12b2-c486-787a-3c1c-49536ee944a8@topic.nl \
--to=mike.looijmans@topic.nl \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.