<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Bundle a core-image-tiny-initramfs to a core-image-minimal .wic image file in my &amp;quot;zeus&amp;amp;quot in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Bundle-a-core-image-tiny-initramfs-to-a-core-image-minimal-wic/m-p/1653269#M206125</link>
    <description>&lt;P&gt;I am currently running into the same issue on Zeus (5.4.70-2.3.11 release). Is there a quick resolution for this issue that anyone has found? I would rather not dive in if I don't have to, but since this is the last hurdle for my build I may not have much of a choice.&lt;/P&gt;</description>
    <pubDate>Thu, 18 May 2023 17:38:09 GMT</pubDate>
    <dc:creator>abible</dc:creator>
    <dc:date>2023-05-18T17:38:09Z</dc:date>
    <item>
      <title>Bundle a core-image-tiny-initramfs to a core-image-minimal .wic image file in my "zeus" yocto-Linux project</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Bundle-a-core-image-tiny-initramfs-to-a-core-image-minimal-wic/m-p/1045654#M154022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have problems to get an initramfs work which should be bundled to the kernel via &lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;INITRAMFS_IMAGE_BUNDLE&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;I switched to "zeus" as yocto version to be able to work with .wic files. I have an i.MX8mm evalboard where I boot Linux from SD card.&lt;/P&gt;&lt;P&gt;That's why I configured the build with: &lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;DISTRO=fsl-imx-wayland MACHINE=imx8mmevk source imx-setup-release.sh -b build&lt;/SPAN&gt; which results to the following variables in local.conf:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;MACHINE&amp;nbsp; ??= 'imx8mmevk'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;DISTRO ?= 'fsl-imx-wayland'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The rest is as it comes by default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What did I do?:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;First, I added the following lines to my yocto/build/conf/local.conf of yocto:&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;INITRAMFS_IMAGE = "core-image-tiny-initramfs"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;INITRAMFS_IMAGE_BUNDLE = "1"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;VIRTUAL-RUNTIME_dev_manager = "busybox-mdev"&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;Second, for a fast trial, I also changed a line in yocto/sources/poky/meta/recipes-core/images/core-image-tiny-initramfs.bb to add aarch64 support:&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;COMPATIBLE_HOST = "(i.86|x86_64|aarch64).*-linux"&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;and I commented out a line in yocto/sources/meta-imx/meta-bsp/conf/layer.conf this way:&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;#IMAGE_CLASSES += "image_types_create_sdcard_symlink"&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;Now I was able to build the whole thing with &lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;bitbake core-image-minimal&lt;/SPAN&gt; without errors. I think, the resulting key files in yocto/build/tmp/deploy/images/imx8mmevk are the following, and I also extracted the wic.bz2 already here:&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;core-image-minimal-imx8mmevk-[timestamp].rootfs.wic.bz2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 42,3 MiB&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;core-image-minimal-imx8mmevk-[timestamp].rootfs.wic&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 271,2 MiB&lt;/SPAN&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;core-image-tiny-initramfs.imx8mmevk-[timestamp].rootfs.cpio.gz 11,8&lt;/SPAN&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt; MiB&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;core-image-tiny-initramfs.imx8mmevk.cpio.gz&amp;nbsp;&amp;nbsp;&amp;nbsp; (link to file above)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Next I wrote that .wic file to my SD card with dd (as described in the NXP docs).&lt;/LI&gt;&lt;LI&gt;I plugged that SD card into my eval board, switched on and typed on u-boot command line this one:&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;setenv mmcroot /dev/ram0 rootwait rw&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;boot&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Now the Linux boots properly but hangs with: &lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;Waiting for root device /dev/ram0...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;When I keep the mmcroot in u-boot to /dev/mmcblk1p2, Linux boots without problems! But in that case I cannot see it boots via initramfs. It uses the common rootfs of core-image-minimal.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems to me a &lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;core-image-minimal&lt;/SPAN&gt; image without bundled initramfs image is just 200KB smaller. So I suspect the bundling does not properly work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What goes wrong? What must be changed to let the Linux kernel use the bundled initramfs RAM filesystem??? Is there a problem with the scripts which bundle the initramfs to the wic file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The actual thing I want to do is to setup my Linux with an overlayfs over the whole rootfs, and I can see core-image-tiny-initramfs is exactly doing that as it is configured so via its yocto/sources/poky/meta/recipes-core/initrdscripts/files/init-live.sh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx in advance for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2020 13:08:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Bundle-a-core-image-tiny-initramfs-to-a-core-image-minimal-wic/m-p/1045654#M154022</guid>
      <dc:creator>fbre</dc:creator>
      <dc:date>2020-08-19T13:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: Bundle a core-image-tiny-initramfs to a core-image-minimal .wic image file in my "zeus" yocto-Linux project</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Bundle-a-core-image-tiny-initramfs-to-a-core-image-minimal-wic/m-p/1045655#M154023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello F B,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried to generate the core-image-minimal-initramfs? The image is used for minimal RAM based rootfs. Let me know more details about the issue - how it can be reproduced ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2020 13:00:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Bundle-a-core-image-tiny-initramfs-to-a-core-image-minimal-wic/m-p/1045655#M154023</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2020-08-20T13:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: Bundle a core-image-tiny-initramfs to a core-image-minimal .wic image file in my "zeus" yocto-Linux project</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Bundle-a-core-image-tiny-initramfs-to-a-core-image-minimal-wic/m-p/1045656#M154024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Meanwhile I found out I also have to do 2 things more to really boot with that bundled initramfs:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;It is also necessary to add this &lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;IMAGE_BOOT_FILES_append = " ${KERNEL_IMAGETYPE}-initramfs-${MACHINE}.bin"&lt;/SPAN&gt; to conf/local.conf. This let the build system put the file &lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;Image-initramfs-imx8mmevk.bin&lt;/SPAN&gt; to the boot partition of the SD card also. Now we have 2 kernel images, Image is the default one and that new &lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;Image-initramfs-imx8mmevk.bin&lt;/SPAN&gt; which is the kernel with the bundled initramfs.&lt;/LI&gt;&lt;LI&gt;Now when I stop in u-boot on command line I have to call the following command to tell u-boot to use the other Linux kernel on &lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;boot:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; setenv image Image-initramfs-imx8mmevk.bin&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN lang="de"&gt;Well, now it boots the kernel with the bundled initramfs but stops now here:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="de" style="font-family: terminal, monaco, monospace;"&gt;&lt;SPAN lang="de"&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 3.806081] mmc1: new ultra high speed SDR104 SDHC card at address 0001 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN lang="de"&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 3.813856] mmcblk1: mmc1:0001 EB1QT 29.8 GiB &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN lang="de"&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 3.820328]&amp;nbsp; mmcblk1: p1 p2 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN lang="de"&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 4.131276] imx6q-pcie 33800000.pcie: Phy link never came up &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN lang="de"&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 4.136983] imx6q-pcie 33800000.pcie: failed to initialize host &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN lang="de"&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 4.142921] imx6q-pcie 33800000.pcie: unable to add pcie port. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN lang="de"&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 4.161500] Freeing unused kernel memory: 40640K &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN lang="de"&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 4.166205] Run /init as init process &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN lang="de"&gt;Starting version 243.2+ &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN lang="de"&gt;Waiting for removable media... &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="de" style="font-family: terminal, monaco, monospace;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="de"&gt;&lt;SPAN lang="de"&gt;&lt;SPAN&gt;I've searched the internet for this problem and found this one: &lt;A class="link-titled" href="https://yocto.yoctoproject.narkive.com/lopzGJgw/waiting-for-removable-media" title="https://yocto.yoctoproject.narkive.com/lopzGJgw/waiting-for-removable-media"&gt;Waiting for removable media ...&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="de"&gt;&lt;SPAN lang="de"&gt;&lt;SPAN&gt;So the cool thing is I realise my &lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;core-image-tiny-initramfs&lt;/SPAN&gt; has started up. :-) I just need to tweak the script &lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;recipes-core/initrdscripts/files/init-live.sh&lt;/SPAN&gt; a bit, and I must remove the script part with the loop of waiting for plugging in a live-CD to get over that hang on "Waiting for removable media". I must set my own &lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;/dev/mmcblk1p2&lt;/SPAN&gt; partition to be the lower layer for the overlayfs. Just look at script function &lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;mount_and_boot()&lt;/SPAN&gt; in &lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;init-live.sh&lt;/SPAN&gt;...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="de"&gt;&lt;SPAN lang="de"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="de"&gt;&lt;SPAN lang="de"&gt;&lt;SPAN&gt;I hope this answer may help other people, too. It took me lots of hours, and I have to thank the yocto guys at freenode chat irc for their incredible help to solve this problem.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="de"&gt;&lt;SPAN lang="de"&gt;&lt;SPAN&gt;-- Cheers, F.B.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2020 13:50:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Bundle-a-core-image-tiny-initramfs-to-a-core-image-minimal-wic/m-p/1045656#M154024</guid>
      <dc:creator>fbre</dc:creator>
      <dc:date>2020-08-20T13:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: Bundle a core-image-tiny-initramfs to a core-image-minimal .wic image file in my "zeus" yocto-Linux project</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Bundle-a-core-image-tiny-initramfs-to-a-core-image-minimal-wic/m-p/1045657#M154025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I also tried &lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;INITRAMFS_IMAGE = core-image-minimal-initramfs&lt;/SPAN&gt; instead of &lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;INITRAMFS_IMAGE = core-image-tiny-initramfs&lt;/SPAN&gt;. Also here, I had to add &lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;aarch64&lt;/SPAN&gt; to the .bb file of this image. But in the end I get a strange bitbake error on generating the rootfs:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;"Some packages could not be installed....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;The following packages have unmet dependencies:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;initramfs-module-install : Depends: grub but it is not installable"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I haven't tried to go this path further since my actual aim was to have that overlayfs stuff of init-live.sh which is not in the scripts of core-image-minimal-initramfs, you know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This all can be reproduced with a fresh git checkout of the current zeus branch. Just follow the instructions of &lt;A class="link-titled" href="https://www.nxp.com/docs/en/user-guide/IMX_YOCTO_PROJECT_USERS_GUIDE.pdf" title="https://www.nxp.com/docs/en/user-guide/IMX_YOCTO_PROJECT_USERS_GUIDE.pdf"&gt;https://www.nxp.com/docs/en/user-guide/IMX_YOCTO_PROJECT_USERS_GUIDE.pdf&lt;/A&gt;&amp;nbsp;A.1Quick Start, and additionally do the things described in this posting.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2020 06:29:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Bundle-a-core-image-tiny-initramfs-to-a-core-image-minimal-wic/m-p/1045657#M154025</guid>
      <dc:creator>fbre</dc:creator>
      <dc:date>2020-08-21T06:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: Bundle a core-image-tiny-initramfs to a core-image-minimal .wic image file in my "zeus&amp;quot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Bundle-a-core-image-tiny-initramfs-to-a-core-image-minimal-wic/m-p/1337765#M179844</link>
      <description>&lt;P&gt;OK, in the end I switched to yocto-version "dunfell" and it works there pretty easy with these settings:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;INITRAMFS_IMAGE = "core-image-tiny-initramfs"
INITRAMFS_IMAGE_BUNDLE = "1"
INITRAMFS_KERNEL_IMAGE="${KERNEL_IMAGETYPE}-initramfs-${MACHINE}.bin"
VIRTUAL-RUNTIME_dev_manager = "busybox-mdev"
IMAGE_BOOT_FILES_append = " ${INITRAMFS_KERNEL_IMAGE};${KERNEL_IMAGETYPE}"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 13:45:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Bundle-a-core-image-tiny-initramfs-to-a-core-image-minimal-wic/m-p/1337765#M179844</guid>
      <dc:creator>fbre</dc:creator>
      <dc:date>2021-09-09T13:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: Bundle a core-image-tiny-initramfs to a core-image-minimal .wic image file in my "zeus&amp;quot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Bundle-a-core-image-tiny-initramfs-to-a-core-image-minimal-wic/m-p/1447835#M189586</link>
      <description>&lt;P&gt;Hi F.B.,&lt;/P&gt;&lt;P&gt;Have you managed to tweak&amp;nbsp;&lt;SPAN&gt;init-live.sh script so that your rootfs starts from&amp;nbsp;/dev/mmcblk1p2?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Adde&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2022 12:15:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Bundle-a-core-image-tiny-initramfs-to-a-core-image-minimal-wic/m-p/1447835#M189586</guid>
      <dc:creator>adde_ado</dc:creator>
      <dc:date>2022-04-22T12:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Bundle a core-image-tiny-initramfs to a core-image-minimal .wic image file in my "zeus&amp;</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Bundle-a-core-image-tiny-initramfs-to-a-core-image-minimal-wic/m-p/1449988#M189772</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;u-boot should set a command-line parameter flash_device=/dev/mmcblk1p2. Parse that in your script:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#
#early setup
#
mkdir -p /proc /sys /run /var/run
mount -t proc proc /proc
mount -t sysfs sysfs /sys
mount -t devtmpfs none /dev

# parse u-boot parameters
CMDLINE=$(cat /proc/cmdline)
for x in $CMDLINE
do
    case $x in
        flash_device*)
        FLASHDEVICE="${x//flash_device=}"
        ;;
    esac
done&lt;/LI-CODE&gt;&lt;P&gt;Next, create a directory and mount the partition to that created dir.&lt;/P&gt;&lt;P&gt;Finally, switch to root of your filesystem to that mounted dir (here I assign it to a variable ROOT_MOUNT):&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# Watches the udev event queue, and exits if all current events are handled
udevadm settle --timeout=3

# Don't run systemd-update-done on systemd-based live systems
# because it triggers a slow rebuild of ldconfig caches.
touch ${ROOT_MOUNT}/etc/.updated ${ROOT_MOUNT}/var/.updated

mount -n --move /proc ${ROOT_MOUNT}/proc
mount -n --move /sys ${ROOT_MOUNT}/sys
mount -n --move /dev ${ROOT_MOUNT}/dev

cd $ROOT_MOUNT

# busybox switch_root supports -c option
exec switch_root -c /dev/console $ROOT_MOUNT /sbin/init $CMDLINE ||
    fatal "Couldn't switch_root, dropping to shell"&lt;/LI-CODE&gt;&lt;P&gt;I hope this helps &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 15:28:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Bundle-a-core-image-tiny-initramfs-to-a-core-image-minimal-wic/m-p/1449988#M189772</guid>
      <dc:creator>fbre</dc:creator>
      <dc:date>2022-04-27T15:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Bundle a core-image-tiny-initramfs to a core-image-minimal .wic image file in my "zeus&amp;</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Bundle-a-core-image-tiny-initramfs-to-a-core-image-minimal-wic/m-p/1450113#M189776</link>
      <description>&lt;P&gt;Thank you so much fbre for you help! It works like a charm.:)&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Adde&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 19:57:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Bundle-a-core-image-tiny-initramfs-to-a-core-image-minimal-wic/m-p/1450113#M189776</guid>
      <dc:creator>adde_ado</dc:creator>
      <dc:date>2022-04-27T19:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: Bundle a core-image-tiny-initramfs to a core-image-minimal .wic image file in my "zeus&amp;quot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Bundle-a-core-image-tiny-initramfs-to-a-core-image-minimal-wic/m-p/1653269#M206125</link>
      <description>&lt;P&gt;I am currently running into the same issue on Zeus (5.4.70-2.3.11 release). Is there a quick resolution for this issue that anyone has found? I would rather not dive in if I don't have to, but since this is the last hurdle for my build I may not have much of a choice.&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 17:38:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Bundle-a-core-image-tiny-initramfs-to-a-core-image-minimal-wic/m-p/1653269#M206125</guid>
      <dc:creator>abible</dc:creator>
      <dc:date>2023-05-18T17:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: Bundle a core-image-tiny-initramfs to a core-image-minimal .wic image file in my "zeus&amp;quot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Bundle-a-core-image-tiny-initramfs-to-a-core-image-minimal-wic/m-p/1743974#M214522</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Update 22 Oct 2023: If you are building from Yocto honister (3.4) and above (ie. honister, kirkstone etc) you may get this error message:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"ERROR: Variable IMAGE_BOOT_FILES_append file: [you base folder]/imx-linux-kirkstone/build/conf/local.conf line: 31 contains an operation using the old override syntax. Please convert this layer/metadata before attempting to use with a newer bitbake."&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;To fix this, you may need to replace the "_" to ":" due to syntax change to override from honister onwards (i built in kirkstone, didn't verify on newer releases though).&lt;/P&gt;&lt;P&gt;IMAGE_BOOT_FILES&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;_&lt;/FONT&gt;&lt;/STRONG&gt;append = " ${INITRAMFS_KERNEL_IMAGE};${KERNEL_IMAGETYPE}"&lt;/P&gt;&lt;P&gt;needs to be changed to&lt;/P&gt;&lt;P&gt;IMAGE_BOOT_FILES&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;:&lt;/STRONG&gt;&lt;/FONT&gt;append = " ${INITRAMFS_KERNEL_IMAGE};${KERNEL_IMAGETYPE}"&lt;/P&gt;&lt;P&gt;due to change in syntax for override documented here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.yoctoproject.org/next/migration-guides/migration-3.4.html" target="_blank"&gt;https://docs.yoctoproject.org/next/migration-guides/migration-3.4.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Oct 2023 02:33:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Bundle-a-core-image-tiny-initramfs-to-a-core-image-minimal-wic/m-p/1743974#M214522</guid>
      <dc:creator>mcuboot</dc:creator>
      <dc:date>2023-10-22T02:33:33Z</dc:date>
    </item>
  </channel>
</rss>

