* Failed to build zImage-initramfs @ 2019-10-13 1:14 JH 2019-10-13 1:24 ` Khem Raj 0 siblings, 1 reply; 7+ messages in thread From: JH @ 2019-10-13 1:14 UTC (permalink / raw) To: openembedded-core Hi, Apologize if it is not right mailing list for helps, please advise which mailing list I should go. I have been trying to build zImage-initramfs, according to the oe-core/meta/classes/kernel.bbclass, I defined following variables in local.conf: INITRAMFS_IMAGE = "zImage-initramfs" INITRAMFS_IMAGE_NAME = "zImage-initramfs" INITRAMFS_IMAGE_BUNDLE = "1" IMAGE_INSTALL_append = "zImage-initramfs" But I had following errors: ERROR: Nothing RPROVIDES 'zImage-initramfs' (but /build/Ramdisk/oe-core/../meta-solar/recipes-core/images/ram-image.bb RDEPENDS on or otherwise requires it) NOTE: Runtime target 'zImage-initramfs' is unbuildable, removing... Missing or unbuildable dependency chain was: ['zImage-initramfs'] ERROR: Required build target 'solar-image' has no buildable providers. Missing or unbuildable dependency chain was: ['ram-image', 'zImage-initramfs'] In my ram-image.bb: inherit core-image IMAGE_ROOTFS_SIZE = "100000" IMAGE_FSTYPES += " ${INITRAMFS_FSTYPES} cpio.gz tar.gz" PACKAGE_INSTALL = "${IMAGE_INSTALL}" What I am missing for "Nothing RPROVIDES" error? Thank you. Kind regards, - jh ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Failed to build zImage-initramfs 2019-10-13 1:14 Failed to build zImage-initramfs JH @ 2019-10-13 1:24 ` Khem Raj 2019-10-13 4:06 ` JH 0 siblings, 1 reply; 7+ messages in thread From: Khem Raj @ 2019-10-13 1:24 UTC (permalink / raw) To: JH, openembedded-core On Sun, 2019-10-13 at 12:14 +1100, JH wrote: > Hi, > > Apologize if it is not right mailing list for helps, please advise > which mailing list I should go. > > I have been trying to build zImage-initramfs, according to the > oe-core/meta/classes/kernel.bbclass, I defined following variables in > local.conf: > > INITRAMFS_IMAGE = "zImage-initramfs" this should be the rootfs image that you want to bundle into kernel and not the name of final kernel as above. Put something like core-image- minimal-initramfs or somesuch here. > INITRAMFS_IMAGE_NAME = "zImage-initramfs" > INITRAMFS_IMAGE_BUNDLE = "1" > IMAGE_INSTALL_append = "zImage-initramfs" > > But I had following errors: > > ERROR: Nothing RPROVIDES 'zImage-initramfs' (but > /build/Ramdisk/oe-core/../meta-solar/recipes-core/images/ram-image.bb > RDEPENDS on or otherwise requires it) > > NOTE: Runtime target 'zImage-initramfs' is unbuildable, removing... > Missing or unbuildable dependency chain was: ['zImage-initramfs'] > > ERROR: Required build target 'solar-image' has no buildable > providers. > Missing or unbuildable dependency chain was: ['ram-image', 'zImage- > initramfs'] > > In my ram-image.bb: > > inherit core-image > > IMAGE_ROOTFS_SIZE = "100000" > IMAGE_FSTYPES += " ${INITRAMFS_FSTYPES} cpio.gz tar.gz" > PACKAGE_INSTALL = "${IMAGE_INSTALL}" > > What I am missing for "Nothing RPROVIDES" error? > > Thank you. > > Kind regards, > > - jh ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Failed to build zImage-initramfs 2019-10-13 1:24 ` Khem Raj @ 2019-10-13 4:06 ` JH 2019-10-13 5:09 ` Khem Raj 0 siblings, 1 reply; 7+ messages in thread From: JH @ 2019-10-13 4:06 UTC (permalink / raw) To: Khem Raj; +Cc: openembedded-core Hi Khem, On 10/13/19, Khem Raj <raj.khem@gmail.com> wrote: > On Sun, 2019-10-13 at 12:14 +1100, JH wrote: >> Hi, >> >> Apologize if it is not right mailing list for helps, please advise >> which mailing list I should go. >> >> I have been trying to build zImage-initramfs, according to the >> oe-core/meta/classes/kernel.bbclass, I defined following variables in >> local.conf: >> >> INITRAMFS_IMAGE = "zImage-initramfs" > > this should be the rootfs image that you want to bundle into kernel and > not the name of final kernel as above. Put something like core-image- > minimal-initramfs or somesuch here. Thanks for the response, could you have more specific what I should change? From kernel.bbclass, without defining INITRAMFS_IMAGE and INITRAMFS_IMAGE_BUNDLE copy_initramfs() and do_bundle_initramfs () won't be called, am wrong about it? Anyway, I followed your instruction to define the rootfs image in local.conf, it did not work, please correct me. $ vi local.conf IMAGE_ROOTFS += " core-image-minimal-initramfs" Thank you very much Khem, Kind regards, - jh ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Failed to build zImage-initramfs 2019-10-13 4:06 ` JH @ 2019-10-13 5:09 ` Khem Raj 2019-10-13 9:10 ` JH 0 siblings, 1 reply; 7+ messages in thread From: Khem Raj @ 2019-10-13 5:09 UTC (permalink / raw) To: JH; +Cc: Patches and discussions about the oe-core layer On Sat, Oct 12, 2019 at 9:06 PM JH <jupiter.hce@gmail.com> wrote: > > Hi Khem, > > On 10/13/19, Khem Raj <raj.khem@gmail.com> wrote: > > On Sun, 2019-10-13 at 12:14 +1100, JH wrote: > >> Hi, > >> > >> Apologize if it is not right mailing list for helps, please advise > >> which mailing list I should go. > >> > >> I have been trying to build zImage-initramfs, according to the > >> oe-core/meta/classes/kernel.bbclass, I defined following variables in > >> local.conf: > >> > >> INITRAMFS_IMAGE = "zImage-initramfs" > > > > this should be the rootfs image that you want to bundle into kernel and > > not the name of final kernel as above. Put something like core-image- > > minimal-initramfs or somesuch here. > > Thanks for the response, could you have more specific what I should > change? From kernel.bbclass, without defining INITRAMFS_IMAGE and > INITRAMFS_IMAGE_BUNDLE copy_initramfs() and do_bundle_initramfs () > won't be called, am wrong about it? > > Anyway, I followed your instruction to define the rootfs image in > local.conf, it did not work, please correct me. > > $ vi local.conf > IMAGE_ROOTFS += " core-image-minimal-initramfs" > INITRAMFS_IMAGE should be an image name. Like core-image-minimal or somesuch > Thank you very much Khem, > > Kind regards, > > - jh ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Failed to build zImage-initramfs 2019-10-13 5:09 ` Khem Raj @ 2019-10-13 9:10 ` JH 2019-10-13 10:32 ` Ferry Toth 0 siblings, 1 reply; 7+ messages in thread From: JH @ 2019-10-13 9:10 UTC (permalink / raw) To: Khem Raj; +Cc: Patches and discussions about the oe-core layer On 10/13/19, Khem Raj <raj.khem@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 Thank you very much Khem, Kind regards, - jh ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Failed to build zImage-initramfs 2019-10-13 9:10 ` JH @ 2019-10-13 10:32 ` Ferry Toth 2019-10-20 9:20 ` JH 0 siblings, 1 reply; 7+ messages in thread From: Ferry Toth @ 2019-10-13 10:32 UTC (permalink / raw) To: openembedded-core; +Cc: Patches and discussions about the oe-core layer Hi Op 13-10-19 om 11:10 schreef JH: > On 10/13/19, Khem Raj <raj.khem@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 > ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Failed to build zImage-initramfs 2019-10-13 10:32 ` Ferry Toth @ 2019-10-20 9:20 ` JH 0 siblings, 0 replies; 7+ messages in thread From: JH @ 2019-10-20 9:20 UTC (permalink / raw) To: Ferry Toth, Khem Raj Cc: Patches and discussions about the oe-core layer, openembedded-core 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@gmail.com> wrote: > Hi > > Op 13-10-19 om 11:10 schreef JH: >> On 10/13/19, Khem Raj <raj.khem@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@lists.openembedded.org > http://lists.openembedded.org/mailman/listinfo/openembedded-core > ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2019-10-20 9:20 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2019-10-13 1:14 Failed to build zImage-initramfs JH 2019-10-13 1:24 ` Khem Raj 2019-10-13 4:06 ` JH 2019-10-13 5:09 ` Khem Raj 2019-10-13 9:10 ` JH 2019-10-13 10:32 ` Ferry Toth 2019-10-20 9:20 ` JH
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.