Re: [yocto] Simple solution to create a non-root partition image?
Quentin Schulz <[email protected]> Mon, 4 May 2026 15:15:47 +0200
| Newsgroups | org.yoctoproject.lists.yocto |
|---|---|
| Message-ID | <[email protected]> |
Hi Michael, On 5/4/26 3:08 PM, Michael Opdenacker wrote: > Hi Quentin, > > Thanks a lot for the tip! > > On 5/4/26 10:47 AM, Quentin Schulz wrote: >> Do you need to generate an image for that partition or can you simply >> have what will be part of that partition be generated along with the >> "root partition" image? >> >> As far as I remember, wic can split files/directories into a separate >> partition from the rootfs, so that would be an option that doesn't >> require hacking things around. > Interesting! Unfortunately, I'm not using Wic but Toradex Easy Installer > on this project. Therefore I do need to generate a partition image > beforehand. I am not familiar with Toradex Easy Installer but I'm not sure it's relevant here? Isn't that simply a glorified dd/bmaptool/balena-etcher? wic will generate an ISO file if you will. It'll have a partition table and possibly multiple partitions within that ISO file. When you flash a .wic file, you'll flash the partition table and everything else. See in meta-rockchip, we use this Wic KickStart file https://git.yoctoproject.org/meta-rockchip/tree/files/wic/rockchip.wks You can see we declare *many* different partitions, with different context (the example is mostly for flashing specific binaries at specific offset). If wic doesn't already install the filesystem it generates for the partition, I'm assuming you could extract it from the final image if this is really something you need extracted. Cheers, Quentin