Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id A900BC47DAF for ; Mon, 22 Jan 2024 18:17:34 +0000 (UTC) Subject: initramfs is isn't trying to mount the actual rootfs and is not doing switch_root #kernel #yocto To: yocto@lists.yoctoproject.org From: "greymattr" X-Originating-Location: Temecula, California, US (47.181.149.216) X-Originating-Platform: Linux Chrome 120 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Mon, 22 Jan 2024 10:17:25 -0800 Message-ID: <0jSC.1705947445084193330.SNVv@lists.yoctoproject.org> Content-Type: multipart/alternative; boundary="gHwX4xKTGYED6ghCkY4X" List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 22 Jan 2024 18:17:34 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto/message/62224 --gHwX4xKTGYED6ghCkY4X Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable I am using the kirkstone yocto build to build a firmware image that has a k= ernel with initramfs, and a ext4 root file system on an emmc partition. After booting up the kernel doesn't mount the device passed to the kernel a= s the "root=3D" parameter and doesn't switch_root, it just mounts everythin= g to ram. In my initramfs image recipe I have set: PACKAGE_INSTALL =3D "util-linux udev busybox base-passwd ${VIRTUAL-RUNTIME_= base-utils} ${VIRTUAL-RUNTIME_dev_manager} ${ROOTFS_BOOTSTRAP_INSTALL}" and I was under the impression that the ${ROOTFS_BOOTSTRAP_INSTALL} should = handle the switch_root portion of the boot after the initramfs loads, but t= hat is not happening. Is there a different package I need to add to the PACKAGE_INSTALL to allow = the real root partition to be mounted, and switch_root to occur? --gHwX4xKTGYED6ghCkY4X Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable

I am using the kirkstone yocto build to build a firmware image that has = a kernel with initramfs, and a ext4 root file system on an emmc partition.<= /p>

After booting up the kernel doesn't mount the device passed to the kerne= l as the "root=3D" parameter and doesn't switch_root, it just mounts everyt= hing to ram.

 

In my initramfs image recipe I have set:

 PACKAGE_IN= STALL =3D "util-linux udev busybox base-passwd ${VIRTUA= L-RUNTIME_base-utils} ${VIRTUAL-RUNTIME_dev_manager} ${ROOTFS_BOOTSTRAP_INS= TALL}"

and I was under the impression that the ${ROOTFS_BOOTSTRAP= _INSTALL} should handle the switch_root portion of the boot after the initr= amfs loads, but that is not happening.

Is there a different package I need to a= dd to the PACKAGE_INSTALL to allow the real root partition to be mounted, a= nd switch_root to occur?



--gHwX4xKTGYED6ghCkY4X--