All of lore.kernel.org
 help / color / mirror / Atom feed
* Initramfs with OpenSBI for a RISCV SoC
@ 2021-04-12 17:28 sathishmls
  2021-04-12 19:44 ` [OE-core] " Khem Raj
  0 siblings, 1 reply; 5+ messages in thread
From: sathishmls @ 2021-04-12 17:28 UTC (permalink / raw)
  To: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 2069 bytes --]

Hi,

i pulled openembedded-core, meta-openembedded, meta-riscv layers
In build/local/auto.conf, added INITRAMFS_IMAGE = "core-image-minimal-initramfs" and INITRAMFS_IMAGE_BUNDLE = "1"
I created core-image-minimal-initramfs.bbappend with adding riscv to COMPATIBLE_HOST

trying to build with "bitbake riscv-initramfs-image"

(without adding INITRAMFS_IMAGE in build/local/auto.conf, able to get successfully the kernel Image files, dtbs, riscv-initramfs-image-mach1-???????.rootfs.cpio.gz, except initramfs is NOT bundled along with the kernel Image which i want)

getting the following circular dependency error

Identifying dependency loops (this may take a short while)...

ERROR:
Dependency loop #1 found:
Task /media/meta-mach1/recipes-kernel/linux/linux-mainline_5.11.bb:do_bundle_initramfs (dependent Tasks ['linux-mainline_5.11.bb:do_install', 'core-image-minimal-initramfs.bb:do_image_complete'])
Task /media/meta-mach1/recipes-kernel/linux/linux-mainline_5.11.bb:do_deploy (dependent Tasks ['linux-mainline_5.11.bb:do_bundle_initramfs', 'pigz_2.6.bb:do_populate_sysroot', 'linux-mainline_5.11.bb:do_packagedata', 'depmodwrapper-cross_1.0.bb:do_populate_sysroot', 'linux-mainline_5.11.bb:do_populate_sysroot'])
Task /media/openembedded-core/meta/recipes-bsp/opensbi/opensbi_0.9.bb:do_compile (dependent Tasks ['linux-mainline_5.11.bb:do_deploy', 'opensbi_0.9.bb:do_configure'])
Task /media/openembedded-core/meta/recipes-bsp/opensbi/opensbi_0.9.bb:do_install (dependent Tasks ['opensbi_0.9.bb:do_compile', 'pseudo_git.bb:do_populate_sysroot'])
Task /media/openembedded-core/meta/recipes-bsp/opensbi/opensbi_0.9.bb:do_populate_sysroot (dependent Tasks ['opensbi_0.9.bb:do_install', 'binutils-cross_2.36.bb:do_populate_sysroot'])
Task /media/openembedded-core/meta/recipes-core/images/core-image-minimal-initramfs.bb:do_image_complete (dependent Tasks ['opensbi_0.9.bb:do_populate_sysroot', 'core-image-minimal-initramfs.bb:do_image_cpio', 'core-image-minimal-initramfs.bb:do_image'])

ERROR: Command execution failed: 1

Please suggest

[-- Attachment #2: Type: text/html, Size: 2218 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [OE-core] Initramfs with OpenSBI for a RISCV SoC
  2021-04-12 17:28 Initramfs with OpenSBI for a RISCV SoC sathishmls
@ 2021-04-12 19:44 ` Khem Raj
  2021-04-15  3:12   ` sathishmls
  0 siblings, 1 reply; 5+ messages in thread
From: Khem Raj @ 2021-04-12 19:44 UTC (permalink / raw)
  To: sathishmls; +Cc: Patches and discussions about the oe-core layer

On Mon, Apr 12, 2021 at 10:28 AM sathishmls via lists.openembedded.org
<sathishmls=yahoo.com@lists.openembedded.org> wrote:
>
> Hi,
>
> i pulled openembedded-core, meta-openembedded, meta-riscv layers
> In build/local/auto.conf, added INITRAMFS_IMAGE = "core-image-minimal-initramfs" and INITRAMFS_IMAGE_BUNDLE = "1"
> I created core-image-minimal-initramfs.bbappend with adding riscv to COMPATIBLE_HOST
>
> trying to build with "bitbake riscv-initramfs-image"
>
> (without adding INITRAMFS_IMAGE in build/local/auto.conf, able to get successfully the kernel Image files, dtbs, riscv-initramfs-image-mach1-???????.rootfs.cpio.gz, except initramfs is NOT bundled along with the kernel Image which i want)
>

you can try to build just the kernel which should build the initramfs
image too or build any other image than 'core-image-minimal-initramfs.

bitbake core-image-minimal

e.g.

> getting the following circular dependency error
>
> Identifying dependency loops (this may take a short while)...
>
> ERROR:
> Dependency loop #1 found:
>   Task /media/meta-mach1/recipes-kernel/linux/linux-mainline_5.11.bb:do_bundle_initramfs (dependent Tasks ['linux-mainline_5.11.bb:do_install', 'core-image-minimal-initramfs.bb:do_image_complete'])
>   Task /media/meta-mach1/recipes-kernel/linux/linux-mainline_5.11.bb:do_deploy (dependent Tasks ['linux-mainline_5.11.bb:do_bundle_initramfs', 'pigz_2.6.bb:do_populate_sysroot', 'linux-mainline_5.11.bb:do_packagedata', 'depmodwrapper-cross_1.0.bb:do_populate_sysroot', 'linux-mainline_5.11.bb:do_populate_sysroot'])
>   Task /media/openembedded-core/meta/recipes-bsp/opensbi/opensbi_0.9.bb:do_compile (dependent Tasks ['linux-mainline_5.11.bb:do_deploy', 'opensbi_0.9.bb:do_configure'])
>   Task /media/openembedded-core/meta/recipes-bsp/opensbi/opensbi_0.9.bb:do_install (dependent Tasks ['opensbi_0.9.bb:do_compile', 'pseudo_git.bb:do_populate_sysroot'])
>   Task /media/openembedded-core/meta/recipes-bsp/opensbi/opensbi_0.9.bb:do_populate_sysroot (dependent Tasks ['opensbi_0.9.bb:do_install', 'binutils-cross_2.36.bb:do_populate_sysroot'])
>   Task /media/openembedded-core/meta/recipes-core/images/core-image-minimal-initramfs.bb:do_image_complete (dependent Tasks ['opensbi_0.9.bb:do_populate_sysroot', 'core-image-minimal-initramfs.bb:do_image_cpio', 'core-image-minimal-initramfs.bb:do_image'])
>
>
> ERROR: Command execution failed: 1
>
> Please suggest
> 
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Initramfs with OpenSBI for a RISCV SoC
  2021-04-12 19:44 ` [OE-core] " Khem Raj
@ 2021-04-15  3:12   ` sathishmls
  2021-04-15  4:30     ` [OE-core] " Khem Raj
  0 siblings, 1 reply; 5+ messages in thread
From: sathishmls @ 2021-04-15  3:12 UTC (permalink / raw)
  To: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 361 bytes --]

I found the issue.
The issue was that i have added "opensbi" using EXTRA_IMAGEDEPENDS through conf/machine/<machine>.conf file and that has made "opensbi" as dependency for initramfs image also.
This has created the circular dependency.

I added a EXTRA_IMAGEDEPENDS = "" to the core-image-minimal-initramfs.bb

This fixed the circular dependency issue.

[-- Attachment #2: Type: text/html, Size: 391 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [OE-core] Initramfs with OpenSBI for a RISCV SoC
  2021-04-15  3:12   ` sathishmls
@ 2021-04-15  4:30     ` Khem Raj
  2021-04-16 13:20       ` Sathish Kumar
  0 siblings, 1 reply; 5+ messages in thread
From: Khem Raj @ 2021-04-15  4:30 UTC (permalink / raw)
  To: sathishmls; +Cc: Patches and discussions about the oe-core layer

On Wed, Apr 14, 2021 at 8:12 PM sathishmls via lists.openembedded.org
<sathishmls=yahoo.com@lists.openembedded.org> wrote:
>
> I found the issue.
> The issue was that i have added "opensbi" using EXTRA_IMAGEDEPENDS through conf/machine/<machine>.conf file and that has made "opensbi" as dependency for initramfs image also.
> This has created the circular dependency.
>
> I added a EXTRA_IMAGEDEPENDS = "" to the core-image-minimal-initramfs.bb
>
> This fixed the circular dependency issue.

good, I think this could be a patch for
core-image-minimal-initramfs.bb that you can submit to oe-core ml.
Since we use opensbi in qemu machines its highly likely to be copied
into BSPs
would you mind submitting such a patch?

> 
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Initramfs with OpenSBI for a RISCV SoC
  2021-04-15  4:30     ` [OE-core] " Khem Raj
@ 2021-04-16 13:20       ` Sathish Kumar
  0 siblings, 0 replies; 5+ messages in thread
From: Sathish Kumar @ 2021-04-16 13:20 UTC (permalink / raw)
  To: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 111 bytes --]

Khem,

Thanks. I have submitted the patch https://lists.openembedded.org/g/openembedded-core/message/150584

[-- Attachment #2: Type: text/html, Size: 230 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-04-16 13:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-12 17:28 Initramfs with OpenSBI for a RISCV SoC sathishmls
2021-04-12 19:44 ` [OE-core] " Khem Raj
2021-04-15  3:12   ` sathishmls
2021-04-15  4:30     ` [OE-core] " Khem Raj
2021-04-16 13:20       ` Sathish Kumar

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.