[meta-freescale] custom image_types bbclass approach and errors

Bryan Fishell bryan.fishell at gmail.com
Sun Nov 18 13:20:21 PST 2018


Is this still recommended even though I am in the Morty branch of yocto where the image_types_fsl.bbclass doesn’t use wic?

Sent from my iPhone

> On Nov 18, 2018, at 4:12 PM, Otavio Salvador <otavio.salvador at ossystems.com.br> wrote:
> 
>> On Tue, Nov 13, 2018 at 6:51 PM Bryan Fishell <bryan.fishell at gmail.com> wrote:
>> I am relatively new to Yocto, but have a need to create a custom image_types_x.bbclass extending the image_types_fsl.bbclass that simply adds two ext4 partitions of size PARTITION_SIZE to the end of an .sdcard image.
>> 
>> The approach I took - created an entirely new image_types_mycustom.bbclass based on the image_types_fsl.bbclass, and overrode the creation of the .sdcard file into a file called .mysdcard.
> 
> This is the wrong approach, instead, make use of 'wic' to generate the
> disk image for you to use.
> 
> For an example of how to make multiple partitions, for i.MX machines,
> look at https://github.com/UpdateHub/meta-updatehub-freescale/tree/master/wic
> 
> -- 
> Otavio Salvador                             O.S. Systems
> http://www.ossystems.com.br        http://code.ossystems.com.br
> Mobile: +55 (53) 9 9981-7854          Mobile: +1 (347) 903-9750


More information about the meta-freescale mailing list