[OE-core] Failed to build zImage-initramfs

JH jupiter.hce at gmail.com
Sun Oct 20 09:20:14 UTC 2019


Thanks Ferry and Khem,

Finally built the zImage-initramfs, but it does not bundle the rootfs,
how can I included the rootfs to the zImage?

There is n old style link in  kernel.bbclass:
use_alternate_initrd=CONFIG_INITRAMFS_SOURCE=${B}/usr/${INITRAMFS_IMAGE_NAME}.cpio

I think there is some new way to do it, what relevent kernel setup
variables need be defined?

Thank you.

Kind regards,

- jh

On 10/13/19, Ferry Toth <fntoth at gmail.com> wrote:
> Hi
>
> Op 13-10-19 om 11:10 schreef JH:
>> On 10/13/19, Khem Raj <raj.khem at gmail.com> wrote:
>>
>>>> $ vi local.conf
>>>> IMAGE_ROOTFS += " core-image-minimal-initramfs"
>>>>
>>>
>>> INITRAMFS_IMAGE should be an image name. Like core-image-minimal or
>>> somesuch
>>
>> Hmm, change it to my image, the name is solar-image.bb (bitbake
>> solar-image), is it correct to change it in my local.conf as per your
>> instruction?
>>
>> $ vi local.conf
>> INITRAMFS_IMAGE = "solar-image"
>>
>> That caused circular dependecies. Without specifying INITRAMFS_IMAGE,
>> my build was all fine, as soon as add INITRAMFS_IMAGE, it's first
>> error was "Nothing RPROVIDES", I must miss things here.
>>
>> ERROR: These are usually caused by circular dependencies and any
>> circular dependency chains found will be printed below. Increase the
>> debug level to see a list of unbuildable tasks.
>> ERROR:
>> Dependency loop #1 found:
>>    Task
>> /build/Ramdisk/oe-core/../meta-solar/recipes-core/images/solar-image.bb:do_image_complete
>> (dependent Tasks ['solar-image.bb:do_image_cpio',
>> 'solar-image.bb:do_image_wic', 'solar-image.bb:do_image',
>> 'solar-image.bb:do_image_tar'])
>>    Task
>> /build/Ramdisk/oe-core/../meta-solar/recipes-kernel/linux/linux-solar_4.19.bb:do_bundle_initramfs
>> (dependent Tasks ['solar-image.bb:do_image_complete',
>> 'linux-solar_4.19.bb:do_install'])
>>    Task
>> /build/Ramdisk/oe-core/../meta-solar/recipes-kernel/linux/linux-solar_4.19.bb:do_deploy
>> (dependent Tasks ['linux-solar_4.19.bb:do_packagedata',
>> 'depmodwrapper-cross_1.0.bb:do_populate_sysroot',
>> 'linux-solar_4.19.bb:do_bundle_initramfs',
>> 'linux-solar_4.19.bb:do_populate_sysroot',
>> 'linux-solar_4.19.bb:do_assemble_fitimage_initramfs'])
>>    Task
>> /build/Ramdisk/oe-core/../meta-solar/recipes-core/images/solar-image.bb:do_image_wic
>> (dependent Tasks ['linux-solar_4.19.bb:do_deploy',
>> 'u-boot-imx_2017.03.bb:do_deploy',
>> 'gptfdisk_1.0.4.bb:do_populate_sysroot',
>> 'dosfstools_4.1.bb:do_populate_sysroot',
>> 'mtools_4.0.18.bb:do_populate_sysroot',
>> 'solar-image.bb:do_rootfs_wicenv', 'solar-image.bb:do_image',
>> 'parted_3.2.bb:do_populate_sysroot'])
>>
>>
>> ERROR: Command execution failed: 1
>
> As an example you might want to look at my repo, I have 2 images minimal
> and initramfs:
> https://github.com/edison-fw/meta-intel-edison/tree/master/meta-intel-edison-distro/recipes-core/images
>
>
>>
>> Thank you very much Khem,
>>
>> Kind regards,
>>
>>   - jh
>>
>
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>


More information about the Openembedded-core mailing list