<?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: How to load kernel and rootfs into QSPI Flash in I.MX8MPLUS in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-load-kernel-and-rootfs-into-QSPI-Flash-in-I-MX8MPLUS/m-p/2304656#M243762</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/34846"&gt;@Bio_TICFSL&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/203368"&gt;@Manuel_Salas&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on an &lt;STRONG&gt;i.MX8M Plus DDR4 custom board&lt;/STRONG&gt; and I am able to successfully boot the system entirely from &lt;STRONG&gt;QSPI flash (32MB).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;My current boot components are:&lt;/P&gt;&lt;P&gt;flash.bin (U-Boot)&lt;/P&gt;&lt;P&gt;Image.gz (Linux kernel)&lt;/P&gt;&lt;P&gt;imx8mp-ddr4-evk.dtb&lt;/P&gt;&lt;P&gt;core-image-minimal-initramfs.cpio.gz&lt;/P&gt;&lt;P&gt;Since my board does not have &lt;STRONG&gt;SD card or eMMC,&lt;/STRONG&gt; I am using &lt;STRONG&gt;initramfs&lt;/STRONG&gt; as the root filesystem.&lt;/P&gt;&lt;P&gt;Now I want to include &lt;STRONG&gt;gcc&lt;/STRONG&gt; inside&lt;STRONG&gt; core-image-minimal-initramfs.cpio.gz,&lt;/STRONG&gt; so that I can compile applications directly on the target without relying on any external storage.&lt;/P&gt;&lt;P&gt;Changed the &lt;STRONG&gt;conf/local.conf&lt;/STRONG&gt; and then build using command&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;STRONG&gt; &amp;nbsp; $bitbake core-image-minimal-initramfs&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Also attached the &lt;STRONG&gt;local.conf&lt;/STRONG&gt; file for your reference.&lt;/P&gt;&lt;P&gt;It generated &lt;STRONG&gt;core-image-minimal-initramfs.cpio.gz&lt;/STRONG&gt; but in &lt;STRONG&gt;bin/ and usr/bin&lt;/STRONG&gt; respective folders &lt;STRONG&gt;gcc&lt;/STRONG&gt; is not present and getting like below after booting kernel and cpio.gz.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;~ # gcc&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;/bin/sh: gcc: not found&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;~ # ls&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;bin dev home init.d media proc run sys usr&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;boot etc init lib mnt root sbin tmp var&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Could you please advise:&lt;/P&gt;&lt;P&gt;What is the correct Yocto method to include &lt;STRONG&gt;gcc&lt;/STRONG&gt; in an initramfs image?&lt;/P&gt;&lt;P&gt;Are there any recommended configurations or limitations when using &lt;STRONG&gt;gcc&lt;/STRONG&gt; inside &lt;STRONG&gt;initramfs&lt;/STRONG&gt; (RAM usage, image size, etc.)?&lt;/P&gt;&lt;P&gt;Any guidance or reference to&lt;STRONG&gt; NXP-supported Yocto&lt;/STRONG&gt; practices would be very helpful.&lt;/P&gt;&lt;P&gt;Thank You.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 02 Feb 2026 12:55:19 GMT</pubDate>
    <dc:creator>NXP_USER_05</dc:creator>
    <dc:date>2026-02-02T12:55:19Z</dc:date>
    <item>
      <title>How to load kernel and rootfs into QSPI Flash in I.MX8MPLUS</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-load-kernel-and-rootfs-into-QSPI-Flash-in-I-MX8MPLUS/m-p/2254333#M242609</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We are Using I.MX8MPLUS Custom board. In our board we have QSPI flash with 32MB size. Up to u-boot Successfully booted in QSPI mode .&lt;/P&gt;&lt;P&gt;1. How to load kernel and rootfs into QSPI Flash in i.MX8MPLUS.&lt;/P&gt;&lt;P&gt;2. In our i.MX8MPLUS Custom board we don't have supported devices like eMMC, SD ,Nand and USB. without all these how can we load the kernel and rootfs.&lt;/P&gt;&lt;P&gt;3. Is there any Procedure for loading kernel and rootfs into QSPI flash without the SD card and eMMC.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Dec 2025 15:46:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-load-kernel-and-rootfs-into-QSPI-Flash-in-I-MX8MPLUS/m-p/2254333#M242609</guid>
      <dc:creator>NXP_USER_05</dc:creator>
      <dc:date>2025-12-03T15:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to load kernel and rootfs into QSPI Flash in I.MX8MPLUS</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-load-kernel-and-rootfs-into-QSPI-Flash-in-I-MX8MPLUS/m-p/2255334#M242642</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;# How to Load Kernel and RootFS into QSPI Flash on i.MX8MPLUS Custom Board&lt;BR /&gt;&lt;BR /&gt;Based on your custom board configuration with a 32MB QSPI flash and no eMMC, SD, NAND or USB devices, here are the recommended approaches:&lt;BR /&gt;&lt;BR /&gt;## QSPI Flash Boot Solution&lt;BR /&gt;&lt;BR /&gt;While your U-Boot has successfully booted from QSPI, there are important limitations to consider:&lt;BR /&gt;&lt;BR /&gt;1. The 32MB QSPI flash is typically not large enough to hold a complete Linux rootFS. QSPI flash on i.MX8M Plus is primarily designed for storing U-Boot/bootloader components.&lt;BR /&gt;&lt;BR /&gt;2. A practical approach is to implement a hybrid solution:&lt;BR /&gt;- Store U-Boot in QSPI flash (already accomplished)&lt;BR /&gt;- Store the kernel and device tree blob (DTB) in QSPI flash&lt;BR /&gt;- Implement a minimal initramfs for basic functionality&lt;BR /&gt;&lt;BR /&gt;## Implementation Steps&lt;BR /&gt;&lt;BR /&gt;1. Generate the QSPI bootable image using the imx-mkimage tool:&lt;BR /&gt;```&lt;BR /&gt;make SOC=iMX8MP flash_evk_flexspi&lt;BR /&gt;```&lt;BR /&gt;&lt;BR /&gt;2. Create partitions in QSPI flash with approximate sizes:&lt;BR /&gt;- U-Boot: 512KB (already flashed)&lt;BR /&gt;- Linux kernel: ~9MB&lt;BR /&gt;- Device tree blob: ~64KB&lt;BR /&gt;- U-Boot environment: ~64KB&lt;BR /&gt;- InitramFS (minimal rootFS): ~22MB&lt;BR /&gt;&lt;BR /&gt;3. Configure U-Boot to load kernel and DTB from QSPI flash:&lt;BR /&gt;```&lt;BR /&gt;sf probe&lt;BR /&gt;sf read ${loadaddr} 0x80000 0x900000 # Read kernel from QSPI&lt;BR /&gt;sf read ${fdt_addr} 0x980000 0x10000 # Read DTB from QSPI&lt;BR /&gt;```&lt;BR /&gt;&lt;BR /&gt;4. Create a minimal initramfs with essential tools and utilities that will fit within the available space.&lt;BR /&gt;&lt;BR /&gt;5. For more complex applications, consider implementing network boot support (NFS) for a full rootFS.&lt;BR /&gt;&lt;BR /&gt;This approach provides a viable solution for booting your system with the existing hardware constraints.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Dec 2025 13:40:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-load-kernel-and-rootfs-into-QSPI-Flash-in-I-MX8MPLUS/m-p/2255334#M242642</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2025-12-04T13:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to load kernel and rootfs into QSPI Flash in I.MX8MPLUS</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-load-kernel-and-rootfs-into-QSPI-Flash-in-I-MX8MPLUS/m-p/2255346#M242644</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/255591"&gt;@NXP_USER_05&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can check the following link, it might help you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I have sent you about this in &lt;STRONG&gt;private message&lt;/STRONG&gt; to you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/all-bootloader-device-tree-Linux-kernel-rootfs-in-spi-nor-demo/ta-p/1663994" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/all-bootloader-device-tree-Linux-kernel-rootfs-in-spi-nor-demo/ta-p/1663994&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Dec 2025 13:56:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-load-kernel-and-rootfs-into-QSPI-Flash-in-I-MX8MPLUS/m-p/2255346#M242644</guid>
      <dc:creator>Adele</dc:creator>
      <dc:date>2025-12-04T13:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to load kernel and rootfs into QSPI Flash in I.MX8MPLUS</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-load-kernel-and-rootfs-into-QSPI-Flash-in-I-MX8MPLUS/m-p/2261735#M242870</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/34846"&gt;@Bio_TICFSL&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;As You said Upto 3rd point able to&amp;nbsp; done, but 4th point not getting.&lt;/P&gt;&lt;P&gt;We are working with the i.MX8M Plus EVK, which has 32 MB QSPI flash.&lt;BR /&gt;Our goal is to boot U-Boot, Linux kernel, device tree, and initramfs (rootfs.img ) entirely from QSPI flash.&lt;/P&gt;&lt;P&gt;We are able to successfully boot:&lt;/P&gt;&lt;P&gt;U-Boot (from flash.bin)&lt;/P&gt;&lt;P&gt;Linux kernel (Image.gz)&lt;/P&gt;&lt;P&gt;Device Tree (imx8mp-evk.dtb)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, we are facing issues when loading and using the initramfs/rootfs image from QSPI flash. The kernel starts successfully, but the kernel hangs at Waiting for removable media....&amp;nbsp; &amp;nbsp;## see the below attached Log&lt;/P&gt;&lt;P&gt;-----Flash Layout and Image Sizes----------------&lt;/P&gt;&lt;P&gt;QSPI flash size: 32 MB&lt;/P&gt;&lt;P&gt;flash.bin (U-Boot + SPL) ~2.3 MB&lt;BR /&gt;Image.gz (Kernel) ~13.5 MB&lt;BR /&gt;imx8mp-evk.dtb ~86 KB&lt;BR /&gt;rootfs.img ~12.6 MB&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;----QSPI Offset Layout----------&lt;BR /&gt;flash.bin @ 0x00000000&lt;BR /&gt;Image.gz @ 0x00240000&lt;BR /&gt;imx8mp-evk.dtb @ 0x01000000&lt;BR /&gt;rootfs.img @ 0x01080000&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;------Programming files into QSPI (from SD card)---------&lt;BR /&gt;sf probe 0&lt;BR /&gt;sf erase 0x0 0x2000000&lt;/P&gt;&lt;P&gt;fatload mmc 1 ${loadaddr} flash.bin&lt;BR /&gt;sf write ${loadaddr} 0x0 ${filesize}&lt;/P&gt;&lt;P&gt;fatload mmc 1 ${loadaddr} Image.gz&lt;BR /&gt;sf write ${loadaddr} 0x240000 ${filesize}&lt;/P&gt;&lt;P&gt;fatload mmc 1 ${loadaddr} imx8mp-evk.dtb&lt;BR /&gt;sf write ${loadaddr} 0x1000000 ${filesize}&lt;/P&gt;&lt;P&gt;fatload mmc 1 ${loadaddr} rootfs.img # initramfs (cpio.gz)&lt;BR /&gt;sf write ${loadaddr} 0x1080000 ${filesize}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;------After flashing,power-cycle the board--------------&lt;/P&gt;&lt;P&gt;After boot from u-boot,setting the env variables for Linux kernel (Image.gz),Device Tree (imx8mp-evk.dtb),rootfs.img.&lt;/P&gt;&lt;P&gt;sf probe 0&lt;BR /&gt;setenv loadaddr 0x40480000 // kernel&lt;BR /&gt;setenv fdt_addr 0x43000000 //dtb&lt;BR /&gt;setenv initrd_addr 0x43800000 //rootfs&lt;BR /&gt;setenv kernel_comp_addr_r 0x50000000&lt;BR /&gt;setenv kernel_comp_size 0x04000000&lt;BR /&gt;&lt;BR /&gt;sf read ${loadaddr} 0x240000 0xCD3CE2&lt;BR /&gt;&lt;BR /&gt;sf read ${fdt_addr} 0x1000000 0x14360&lt;BR /&gt;&lt;BR /&gt;sf read ${initrd_addr} 0x1080000 0xC04DB0&lt;/P&gt;&lt;P&gt;setenv bootargs "console=ttymxc1,115200 root=/dev/ram0 rw"&lt;/P&gt;&lt;P&gt;setenv bootcmd 'sf probe 0; sf read ${loadaddr} 0x240000 0xCD3CE2; sf read ${fdt_addr} 0x1000000 0x14360; sf read ${initrd_addr} 0x1080000 0xC04DB0; booti ${loadaddr} ${initrd_addr} ${fdt_addr}'&lt;/P&gt;&lt;P&gt;saveenv&lt;/P&gt;&lt;P&gt;-----------------------Question 1------------------------------------&lt;BR /&gt;1.With SD card Wic file working fine with partitions (Boot/Root).&lt;BR /&gt;2.We genarated Two yocto images&lt;BR /&gt;==&amp;gt; 1.bitbake core-image-minimal-initramfs (generated initramfs.cpio.gz) this cpio.gx converted into rootfs.img by using this cmd mkimage -A arm -O linux -T ramdisk -d &amp;lt;gzipped_rootfs&amp;gt; &amp;lt;Ramdisk_name&amp;gt; (from linux user guide)&lt;BR /&gt;==&amp;gt;2.Also generated tiny rootfs from yocto generated using bitbake core-image-tiny. core-image-tiny-imx8mp-evk.tar.zst this tar extracted into EXT4 partition in SD card succussfully loading tiny rootfs .&lt;BR /&gt;3.But as said in 2nd point rootfs.img also put into EXT4 root partition in SD card but not loading the rootfs.&lt;/P&gt;&lt;P&gt;-----------------------Question 2------------------------------------&lt;BR /&gt;1.Is this the correct approach to boot an initramfs (rootfs.img) directly from QSPI on i.MX8M Plus EVK?&lt;/P&gt;&lt;P&gt;-----------------------Question 3------------------------------------&lt;BR /&gt;3.Is there any recommended NXP reference image for booting kernel and initramfs entirely from QSPI on i.MX8MP(Linux kernel (Image.gz),Device Tree (imx8mp-evk.dtb),rootfs.img) ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Dec 2025 11:04:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-load-kernel-and-rootfs-into-QSPI-Flash-in-I-MX8MPLUS/m-p/2261735#M242870</guid>
      <dc:creator>NXP_USER_05</dc:creator>
      <dc:date>2025-12-13T11:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to load kernel and rootfs into QSPI Flash in I.MX8MPLUS</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-load-kernel-and-rootfs-into-QSPI-Flash-in-I-MX8MPLUS/m-p/2265691#M242956</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/254926"&gt;@Adele&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;We are working with the i.MX8M Plus EVK, which has 32 MB QSPI flash.&lt;BR /&gt;Our goal is to boot U-Boot, Linux kernel, device tree, and initramfs (rootfs.img ) entirely from QSPI flash.&lt;/P&gt;&lt;P&gt;We are able to successfully boot:&lt;/P&gt;&lt;P&gt;U-Boot (from flash.bin)&lt;/P&gt;&lt;P&gt;Linux kernel (Image.gz)&lt;/P&gt;&lt;P&gt;Device Tree (imx8mp-evk.dtb)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, we are facing issues when loading and using the initramfs/rootfs image from QSPI flash. The kernel starts successfully, but the kernel hangs at Waiting for removable media.... see the below log attached.&lt;/P&gt;&lt;P&gt;-----Flash Layout and Image Sizes----------------&lt;/P&gt;&lt;P&gt;QSPI flash size: 32 MB&lt;/P&gt;&lt;P&gt;flash.bin (U-Boot + SPL) ~2.3 MB&lt;BR /&gt;Image.gz (Kernel) ~13.5 MB&lt;BR /&gt;imx8mp-evk.dtb ~86 KB&lt;BR /&gt;rootfs.img ~12.6 MB&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;----QSPI Offset Layout----------&lt;BR /&gt;flash.bin @ 0x00000000&lt;BR /&gt;Image.gz @ 0x00240000&lt;BR /&gt;imx8mp-evk.dtb @ 0x01000000&lt;BR /&gt;rootfs.img @ 0x01080000&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;------Programming files into QSPI (from SD card)---------&lt;BR /&gt;sf probe 0&lt;BR /&gt;sf erase 0x0 0x2000000&lt;/P&gt;&lt;P&gt;fatload mmc 1 ${loadaddr} flash.bin&lt;BR /&gt;sf write ${loadaddr} 0x0 ${filesize}&lt;/P&gt;&lt;P&gt;fatload mmc 1 ${loadaddr} Image.gz&lt;BR /&gt;sf write ${loadaddr} 0x240000 ${filesize}&lt;/P&gt;&lt;P&gt;fatload mmc 1 ${loadaddr} imx8mp-evk.dtb&lt;BR /&gt;sf write ${loadaddr} 0x1000000 ${filesize}&lt;/P&gt;&lt;P&gt;fatload mmc 1 ${loadaddr} rootfs.img # initramfs (cpio.gz)&lt;BR /&gt;sf write ${loadaddr} 0x1080000 ${filesize}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;------After flashing,power-cycle the board--------------&lt;/P&gt;&lt;P&gt;After boot from u-boot,setting the env variables for Linux kernel (Image.gz),Device Tree (imx8mp-evk.dtb),rootfs.img.&lt;/P&gt;&lt;P&gt;sf probe 0&lt;BR /&gt;setenv loadaddr 0x40480000 // kernel&lt;BR /&gt;setenv fdt_addr 0x43000000 //dtb&lt;BR /&gt;setenv initrd_addr 0x43800000 //rootfs&lt;BR /&gt;setenv kernel_comp_addr_r 0x50000000&lt;BR /&gt;setenv kernel_comp_size 0x04000000&lt;BR /&gt;&lt;BR /&gt;sf read ${loadaddr} 0x240000 0xCD3CE2&lt;BR /&gt;&lt;BR /&gt;sf read ${fdt_addr} 0x1000000 0x14360&lt;BR /&gt;&lt;BR /&gt;sf read ${initrd_addr} 0x1080000 0xC04DB0&lt;/P&gt;&lt;P&gt;setenv bootargs "console=ttymxc1,115200 root=/dev/ram0 rw"&lt;/P&gt;&lt;P&gt;setenv bootcmd 'sf probe 0; sf read ${loadaddr} 0x240000 0xCD3CE2; sf read ${fdt_addr} 0x1000000 0x14360; sf read ${initrd_addr} 0x1080000 0xC04DB0; booti ${loadaddr} ${initrd_addr} ${fdt_addr}'&lt;/P&gt;&lt;P&gt;saveenv&lt;/P&gt;&lt;P&gt;-----------------------Question 1------------------------------------&lt;BR /&gt;1.With SD card Wic file working fine with partitions (Boot/Root).&lt;BR /&gt;2.We genarated Two yocto images&lt;BR /&gt;==&amp;gt; 1.bitbake core-image-minimal-initramfs (generated initramfs.cpio.gz) this cpio.gx converted into rootfs.img by using this cmd mkimage -A arm -O linux -T ramdisk -d &amp;lt;gzipped_rootfs&amp;gt; &amp;lt;Ramdisk_name&amp;gt; (from linux user guide)&lt;BR /&gt;==&amp;gt;2.Also generated tiny rootfs from yocto generated using bitbake core-image-tiny. core-image-tiny-imx8mp-evk.tar.zst this tar extracted into EXT4 partition in SD card succussfully loading tiny rootfs .&lt;BR /&gt;3.But as said in 2nd point rootfs.img also put into EXT4 root partition in SD card but not loading the rootfs.&lt;/P&gt;&lt;P&gt;-----------------------Question 2------------------------------------&lt;BR /&gt;1.Is this the correct approach to boot an initramfs (rootfs.img) directly from QSPI on i.MX8M Plus EVK?&lt;/P&gt;&lt;P&gt;-----------------------Question 3------------------------------------&lt;BR /&gt;3.Is there any recommended NXP reference image for booting kernel and initramfs entirely from QSPI on i.MX8MP(Linux kernel (Image.gz),Device Tree (imx8mp-evk.dtb),rootfs.img) ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Dec 2025 05:32:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-load-kernel-and-rootfs-into-QSPI-Flash-in-I-MX8MPLUS/m-p/2265691#M242956</guid>
      <dc:creator>NXP_USER_05</dc:creator>
      <dc:date>2025-12-18T05:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to load kernel and rootfs into QSPI Flash in I.MX8MPLUS</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-load-kernel-and-rootfs-into-QSPI-Flash-in-I-MX8MPLUS/m-p/2304656#M243762</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/34846"&gt;@Bio_TICFSL&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/203368"&gt;@Manuel_Salas&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on an &lt;STRONG&gt;i.MX8M Plus DDR4 custom board&lt;/STRONG&gt; and I am able to successfully boot the system entirely from &lt;STRONG&gt;QSPI flash (32MB).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;My current boot components are:&lt;/P&gt;&lt;P&gt;flash.bin (U-Boot)&lt;/P&gt;&lt;P&gt;Image.gz (Linux kernel)&lt;/P&gt;&lt;P&gt;imx8mp-ddr4-evk.dtb&lt;/P&gt;&lt;P&gt;core-image-minimal-initramfs.cpio.gz&lt;/P&gt;&lt;P&gt;Since my board does not have &lt;STRONG&gt;SD card or eMMC,&lt;/STRONG&gt; I am using &lt;STRONG&gt;initramfs&lt;/STRONG&gt; as the root filesystem.&lt;/P&gt;&lt;P&gt;Now I want to include &lt;STRONG&gt;gcc&lt;/STRONG&gt; inside&lt;STRONG&gt; core-image-minimal-initramfs.cpio.gz,&lt;/STRONG&gt; so that I can compile applications directly on the target without relying on any external storage.&lt;/P&gt;&lt;P&gt;Changed the &lt;STRONG&gt;conf/local.conf&lt;/STRONG&gt; and then build using command&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;STRONG&gt; &amp;nbsp; $bitbake core-image-minimal-initramfs&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Also attached the &lt;STRONG&gt;local.conf&lt;/STRONG&gt; file for your reference.&lt;/P&gt;&lt;P&gt;It generated &lt;STRONG&gt;core-image-minimal-initramfs.cpio.gz&lt;/STRONG&gt; but in &lt;STRONG&gt;bin/ and usr/bin&lt;/STRONG&gt; respective folders &lt;STRONG&gt;gcc&lt;/STRONG&gt; is not present and getting like below after booting kernel and cpio.gz.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;~ # gcc&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;/bin/sh: gcc: not found&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;~ # ls&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;bin dev home init.d media proc run sys usr&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;boot etc init lib mnt root sbin tmp var&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Could you please advise:&lt;/P&gt;&lt;P&gt;What is the correct Yocto method to include &lt;STRONG&gt;gcc&lt;/STRONG&gt; in an initramfs image?&lt;/P&gt;&lt;P&gt;Are there any recommended configurations or limitations when using &lt;STRONG&gt;gcc&lt;/STRONG&gt; inside &lt;STRONG&gt;initramfs&lt;/STRONG&gt; (RAM usage, image size, etc.)?&lt;/P&gt;&lt;P&gt;Any guidance or reference to&lt;STRONG&gt; NXP-supported Yocto&lt;/STRONG&gt; practices would be very helpful.&lt;/P&gt;&lt;P&gt;Thank You.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Feb 2026 12:55:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-load-kernel-and-rootfs-into-QSPI-Flash-in-I-MX8MPLUS/m-p/2304656#M243762</guid>
      <dc:creator>NXP_USER_05</dc:creator>
      <dc:date>2026-02-02T12:55:19Z</dc:date>
    </item>
  </channel>
</rss>

