Re: Adding firmware to initramfs

Bryan Evenson


-----Original Message-----
From: yocto-bounces@... [mailto:yocto-
bounces@...] On Behalf Of Chris Tapp
Sent: Sunday, November 30, 2014 6:09 PM
To: ChenQi
Cc: yocto@...
Subject: Re: [yocto] Adding firmware to initramfs

On 30 Nov 2014, at 08:06, ChenQi <Qi.Chen@...> wrote:

Create a bbappend file for core-image-minimal-initramfs, and add the
following line to the bbappend file.

PACKAGE_INSTALL += "linux-firmware"
Thanks, PACKAGE_INSTALL works great :-)

I've gone with the following in my local.conf:

PACKAGE_INSTALL_append_pn-core-image-minimal-initramfs = " linux-
For future management, you may be better off using a .bbappend for the image instead of adding this to your local.conf. If you have your own layer in which you have your own recipes, placing a .bbappend for the image in this layer makes it easy to keep track of everything you changed to customize the image. If you need to start a new build setup from scratch (new developer starts working on the project, hard drive crashes, etc.) you can get a copy of your layer and have all your image customizations ready.

Specifically for your case, adding the file recipes-core/images/core-image-minimal-initramfs.bbappend to your layer with the contents:

PACKAGE_INSTALL += "linux-firmware"

should get you the same results but be easier to maintain.


On 11/28/2014 08:37 PM, Chris Tapp wrote:
I'm network booting a system using iPXE. The process uses a core-image-
minimal-initramfs image to select the final rootfs that gets loaded.

This generally works fine, but I need to be able to install linux-firmware in
the initramfs image (specifically for the NIC that gets used to load the final

How do I get linux-firmware to install in core-image-minimal-initramfs?
I've tried adding the following into local.conf, but with no luck:

IMAGE_INSTALL_append = " linux-firmware"
CORE_IMAGE_EXTRA_INSTALL += " linux-firmware"

Chris Tapp

You can tell you're getting older when your car insurance gets real cheap!

yocto mailing list

Join { to automatically receive all group messages.