Re: [yocto] Creating multiple filesystem images
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 Sent: Tuesday, 14 August 2018 11:58 PM To: Amol Lad Cc: yocto@yoctoproject.org Subject: Re: [yocto] Creating multiple filesystem images On Mon, Aug 13, 2018 at 8:23 AM, Amol Lad 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. -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Creating multiple filesystem images
On Mon, Aug 13, 2018 at 8:23 AM, Amol Lad 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. -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Creating multiple filesystem images
On Mon, Aug 13, 2018 at 03:23:09PM +, Amol Lad wrote: 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 An image is just a recipe. When you do: bitbake my-image you are asking bitbake to build that particular recipe. What you are saying is that you want two recipes: my-image.bb and my-image-boot.bb. If you have that, you can do this: bitbake my-image my-image-boot To simplify that, you could have another recipe (say "my-build.bb"), with DEPENDS on the two images, so you could call: bitbake my-build and that would create the two images. Marcelo -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
[yocto] Creating multiple filesystem images
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 Thanks in advance Amol 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). -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto