[yocto] Creating multiple filesystem images

Amol Lad Amol.Lad at 4rf.com
Wed Aug 15 23:54:26 PDT 2018


Thanks Andre!

That's a gem of an idea. It's working now.

Thanks again


The information in this email communication (inclusive of attachments) is confidential to 4RF Limited and the intended recipient(s). If you are not the intended recipient(s), please note that any use, disclosure, distribution or copying of this information or any part thereof is strictly prohibited and that the author accepts no liability for the consequences of any action taken on the basis of the information provided. If you have received this email in error, please notify the sender immediately by return email and then delete all instances of this email from your system. 4RF Limited will not accept responsibility for any consequences associated with the use of this email (including, but not limited to, damages sustained as a result of any viruses and/or any action or lack of action taken in reliance on it).-----Original Message-----
From: Andre McCurdy <armccurdy at gmail.com>
Sent: Tuesday, 14 August 2018 11:58 PM
To: Amol Lad <Amol.Lad at 4rf.com>
Cc: yocto at yoctoproject.org
Subject: Re: [yocto] Creating multiple filesystem images

On Mon, Aug 13, 2018 at 8:23 AM, Amol Lad <Amol.Lad at 4rf.com> wrote:
> Hi,
>
> Currently when we build say core-image-minimal, we get a root file
> system image (say ext4) after the build. However, I also need to
> create an ext4 image for /boot partition (which contains zImage and
> dtb). I do not want wic image. How I can do this? i.e. I want two ext4
> images after build: one root file system and another with content of
> /boot folder. Please advise

This isn't supported directly. However, if you look in meta/classes/image_types.bbclass -> oe_mkext234fs() you will find the commands which are run for the ext4 image type.

By copying and extending that code, you can define your own custom image type (e.g. "ext4-split") which creates two ext4 images from the rootfs instead of one.


More information about the yocto mailing list