[OE-core] How to include fitImage-initramfs in rootfs image
Robert Yang
liezhi.yang at windriver.com
Thu Jan 24 08:15:39 UTC 2019
On 1/24/19 3:56 PM, Richard Leitner wrote:
>
> On 24/01/2019 08:52, Robert Yang wrote:
>>
>>
>> On 1/24/19 3:31 PM, 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.
>>
>>
>> I think that set both INITRAMFS_IMAGE and INITRAMFS_IMAGE_BUNDLE should work,
>> you have set INITRAMFS_IMAGE, so also set:
>>
>> INITRAMFS_IMAGE_BUNDLE = "1"
>
> That was also my first thought, but unfortunately this doesn't work. There's
> still one fitImage and one fitImage-initramfs-mine in the deploy dir and the one
> included in the rootfs image has the same checksum and size as the fitImage
> without the initramfs.
Try:
$ bitbake virtual/kernel -e >kernel.py
And check INITRAMFS_IMAGE_NAME in kernel.py, make sure it contains
initramfs-mine, and try:
$ bitbake virtual/kernel <your image> -ccleansstate
$ bitbake <your image>
// Robert
>
>>
>> // Robert
>>
>>
>>>>
>>>> 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.
>>>
>>> // 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