From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id B1DA1E00968; Sun, 21 May 2017 15:22:45 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_05,HTML_MESSAGE, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [141.138.168.154 listed in list.dnswl.org] * 0.0 HTML_MESSAGE BODY: HTML included in message * -0.5 BAYES_05 BODY: Bayes spam probability is 1 to 5% * [score: 0.0124] X-Greylist: delayed 1014 seconds by postgrey-1.32 at yocto-www; Sun, 21 May 2017 15:22:40 PDT Received: from s198.webhostingserver.nl (s198.webhostingserver.nl [141.138.168.154]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 53B4CE00349 for ; Sun, 21 May 2017 15:22:40 -0700 (PDT) Received: from [145.132.48.198] (helo=chromium.localnet) by s198.webhostingserver.nl with esmtpa (Exim 4.87) (envelope-from ) id 1dCYyu-000c14-8g for yocto@yoctoproject.org; Mon, 22 May 2017 00:05:44 +0200 From: Ferry Toth To: yocto@yoctoproject.org Date: Mon, 22 May 2017 00:05:41 +0200 Message-ID: <3320411.ypKkNcmLs6@chromium> MIME-Version: 1.0 X-Authenticated-Id: ferry.toth@elsinga.info Subject: How to build initramfs with modules but without bzImage X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 May 2017 22:22:45 -0000 Content-Type: multipart/alternative; boundary="nextPart5734177.MFWAQaduux" Content-Transfer-Encoding: 7Bit --nextPart5734177.MFWAQaduux Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" I am building 2 images. One has my rootfs, the other builds a kernel with builtin initramfs. To build the initramfs I did the following: In the .../conf directory, I create a file named initramfs.conf and add the following: INITRAMFS_IMAGE = "core-image-minimal-initramfs" INITRAMFS_IMAGE_BUNDLE = "1" IMAGE_FSTYPES = "cpio.gz" Then to build the initramfs based on the core-image-base recipe, I execute the following bitbake command: bitbake -R conf/initramfs.conf core-image-minimal-initramfs When it completes, there is a kernel + initramfs file in the .../tmp/ deploy/images/..../ directory. This image boots to the init script, but then hangs as the mmc drivers have not been included. Now I create a core-image-minimal-initramfs.bbappend file and PACKAGE_INSTALL the modules I need (also tried kernel-modules). Unfortunately this also installs the kernel bzImage in the /boot directory, that appears to be a dependancy. This adds another 6MB to my initramfs, which is now to load. I expect it should be possible to add the modules without adding the kernel, but haven't been able to find a way to do that. Or it should be possible to remove the contents of /boot after do_rootfs. But I have no clue how to do that. Or am I just generating the initramfs in the wrong way? Ferry --nextPart5734177.MFWAQaduux Content-Transfer-Encoding: 7Bit Content-Type: text/html; charset="us-ascii"

I am building 2 images. One has my rootfs, the other builds a kernel with

builtin initramfs.

 

To build the initramfs I did the following:

In the .../conf directory, I create a file named initramfs.conf and add

the following:

INITRAMFS_IMAGE = "core-image-minimal-initramfs"

INITRAMFS_IMAGE_BUNDLE = "1"

IMAGE_FSTYPES = "cpio.gz"

Then to build the initramfs based on the core-image-base recipe, I execute

the following bitbake command:

bitbake -R conf/initramfs.conf core-image-minimal-initramfs

When it completes, there is a kernel + initramfs file in the .../tmp/

deploy/images/..../ directory.

This image boots to the init script, but then hangs as the mmc drivers

have not been included.

 

Now I create a core-image-minimal-initramfs.bbappend file and

PACKAGE_INSTALL the modules I need (also tried kernel-modules).

 

Unfortunately this also installs the kernel bzImage in the /boot

directory, that appears to be a dependancy. This adds another 6MB to my

initramfs, which is now to load.

 

I expect it should be possible to add the modules without adding the

kernel, but haven't been able to find a way to do that. Or it should be

possible to remove the contents of /boot after do_rootfs.

 

But I have no clue how to do that.

 

Or am I just generating the initramfs in the wrong way?

 

Ferry

--nextPart5734177.MFWAQaduux--