All of lore.kernel.org
 help / color / mirror / Atom feed
* Building two initramfs images
@ 2018-09-05 13:21 Amol Lad
  2018-09-05 14:05 ` Tom Rini
  0 siblings, 1 reply; 2+ messages in thread
From: Amol Lad @ 2018-09-05 13:21 UTC (permalink / raw)
  To: yocto

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

Hi,

I want to build two initramfs images when building core-image-minimal. First initramfs gets bundled with kernel and available after build. This is all good.

Now, how to include second initramfs image also in core-image-minimal? It will be standalone initramfs image i.e. it won't be bundled with kernel. If I specify this recipe in local.conf in CORE_IMAGE_EXTRA_INSTALL or IMAGE_INSTALL_append then I get below error:

"Task do_populate_sdk in core-image-minimal.bb rdepends upon non-existent task do_package_write_rpm in second-initramfs-image.bb"

I can build second-initramfs-image.bb with command "bitbake second-initramfs-image" but I want this to get build automatically when I build core-image-minimal. Please advise

second-initramfs-image.bb:

DESCRIPTION = "Second initramfs"

PACKAGE_INSTALL = " \
        base-files \
        base-passwd \
        busybox \
        sysvinit \
        initscripts \
        ${ROOTFS_BOOTSTRAP_INSTALL} \
    "
# Do not pollute the initrd image with rootfs features
# Enable 'debug-tweaks'. This provides empty root password
IMAGE_FEATURES = "debug-tweaks"

export IMAGE_BASENAME = "second-initramfs-image"
IMAGE_LINGUAS = ""

LICENSE = "MIT"

IMAGE_FSTYPES = "cpio.gz"
inherit core-image

IMAGE_ROOTFS_SIZE = "8192"
IMAGE_ROOTFS_EXTRA_SPACE = "0"

BAD_RECOMMENDATIONS += "busybox-syslog"
________________________________
The information in this email communication (inclusive of attachments) is confidential to 4RF Limited and the intended recipient(s). If you are not the intended recipient(s), please note that any use, disclosure, distribution or copying of this information or any part thereof is strictly prohibited and that the author accepts no liability for the consequences of any action taken on the basis of the information provided. If you have received this email in error, please notify the sender immediately by return email and then delete all instances of this email from your system. 4RF Limited will not accept responsibility for any consequences associated with the use of this email (including, but not limited to, damages sustained as a result of any viruses and/or any action or lack of action taken in reliance on it).

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

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

* Re: Building two initramfs images
  2018-09-05 13:21 Building two initramfs images Amol Lad
@ 2018-09-05 14:05 ` Tom Rini
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2018-09-05 14:05 UTC (permalink / raw)
  To: Amol Lad; +Cc: yocto

On Wed, Sep 05, 2018 at 01:21:18PM +0000, Amol Lad wrote:

> Hi,
> 
> I want to build two initramfs images when building core-image-minimal. First initramfs gets bundled with kernel and available after build. This is all good.
> 
> Now, how to include second initramfs image also in core-image-minimal? It will be standalone initramfs image i.e. it won't be bundled with kernel. If I specify this recipe in local.conf in CORE_IMAGE_EXTRA_INSTALL or IMAGE_INSTALL_append then I get below error:
> 
> "Task do_populate_sdk in core-image-minimal.bb rdepends upon non-existent task do_package_write_rpm in second-initramfs-image.bb"
> 
> I can build second-initramfs-image.bb with command "bitbake second-initramfs-image" but I want this to get build automatically when I build core-image-minimal. Please advise

What is your end goal for first-initramfs and second-initramfs?  Are you
trying to have first-initramfs be the bundled initramfs for the system
and the second one be the initrd that's the main rootfs?  Something
else?

-- 
Tom


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

end of thread, other threads:[~2018-09-05 14:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-05 13:21 Building two initramfs images Amol Lad
2018-09-05 14:05 ` Tom Rini

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.