Please, read carefully thru this yocto @ thread. https://www.yoctoproject.org/pipermail/yocto/2018-July/041680.html
I hope this does help. Zee _______ On Wed, Dec 6, 2023 at 10:47 PM <mattwood2...@gmail.com> wrote: > > Hi, > > I'm trying to create a custom initramfs to handle some things before > switching root to my actual filesystem. I followed the docs and have been > able to use INITRAMFS_IMAGE = "custom-image" and INITRAMFS_IMAGE_BUNDLE = "1" > to generate a zImage for my ARM platform. > > The custom-image.bb recipe is based on the core-image-minimal-initramfs > recipe and is in a meta-layer that has another image recipe for the actual > eMMC filesystem image. Both the eMMC image and initramfs bundle are created. > > In custom-image.bb, PACKAGE_INSTALL includes INITRAMFS_SCRIPTS which seem to > be geared towards live-image things but that's not what I want. > > The image boots but hangs waiting for removable media. I figured out that > /init is not pointing to systemd but the live-image script from > recipes-core/initrdscripts. > > For testing I manually symlinked systemd to /init and the board boots but it > wants a login password which was never created, I'm guessing its not > inheriting debug-tweaks from my local.conf? > > So my question is, what is the correct way to create a minimal initramfs > image along side the real recipe/image within a meta-layer? > > Does anyone have an example of doing this? > > Thanks, Matt. > > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#61823): https://lists.yoctoproject.org/g/yocto/message/61823 Mute This Topic: https://lists.yoctoproject.org/mt/103022933/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-