[OE-core] How to include fitImage-initramfs in rootfs image

André Draszik git at andred.net
Thu Jan 24 10:33:17 UTC 2019


On Thu, 2019-01-24 at 08:29 +0100, Richard Leitner wrote:
> 
> On 24/01/2019 08:31, Robert Yang wrote:
> > Hi Richard.L,
> > 
> > On 1/24/19 3:09 PM, Richard Leitner wrote:
> > > Hi,
> > > I'm currently facing issues on how to include a fitImage with 
> > > devicetrees and a INITRAMFS_IMAGE in my rootfs image.
> > > 
> > > My config is something like:
> > > 
> > > KERNEL_IMAGETYPE = "fitImage"
> > > KERNEL_CLASSES  = "kernel-fitimage"
> > > KERNEL_DEVICETREE = "a.dtb b.dtb c.dtb"
> > > INITRAMFS_IMAGE = "initramfs-mine"
> > > 
> > > To include the "normal" fitImage without the initramfs in the rootfs 
> > > the following works:
> > > 
> > > IMAGE_INSTALL_append += " kernel-image"
> > > 
> > > 
> > > When digging around a little bit I found that the 
> > > fitImage-initramfs-mine is
> > > deployed to tmp/deploy/images but there's no package including that
> > > file.
> > 
> > fitImage-initramfs-mine is an image, so it is not in any package, it is
> > handled by kernel.bbclass, you can check it for more info.
> 
> Ok. I saw how it's generated in the kernel-fitimage.bbclass and 
> kernel.bbclass... But is there any "clean" way of adding it to my rootfs 
> image like the fitImage?

I usually just add the fitImage manually in a ROOTFS_POSTINSTALL_COMMAND,
either via a specific project's bbclass that all actual images inherit, or
directly in the actual image recipe.

Cheers,
Andre'

> 
> > // Robert
> > 
> > > Therefore I'm unable to include it via IMAGE_INSTALL.
> > > 
> > > Am I missing something?
> > > Is anybody of you aware of a solution?
> > > Does kernel-fitimage and kernel.bbclass offer this at all?
> > > 
> > > Any help would be greatly appreciated! Thanks!
> > > 
> > > regards;Richard.L



More information about the Openembedded-core mailing list