<?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 rootfs size for IMX8mini Yocto Linux in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/rootfs-size-for-IMX8mini-Yocto-Linux/m-p/1083205#M158900</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I have to raise this question here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[My case]&lt;/STRONG&gt; :&lt;/P&gt;&lt;P&gt;IMX8mini,8G emmc, running Yocto Linux, Linux 4.14.98 BSP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[Problem]:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;By default, the Yocto Linux build rootfs is about 1.3GB, when I flashed it to EVK, the whole system showed just 1.3GB, that's definitely unreasonable as my emmc is 8GB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[The Solution I got so far]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;After googling with Yocto, I knew that I can either use IMAGE_ROOTFS_EXTRA_SPACE=" xxxxxx" or&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;IMAGE_ROOTFS_SIZE= "xxx"&amp;nbsp;&lt;/SPAN&gt; to extend the whole size.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[My Problem]:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But, if I do that, I found my rootfs would also be forcely enlarged to above file size.&lt;/P&gt;&lt;P&gt;e,g, If I set&amp;nbsp;&lt;SPAN&gt;&lt;EM&gt;IMAGE_ROOTFS_EXTRA_SPACE=" xxxxxx"&lt;/EM&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;as 8GB, then the build out rootfs image size is also 8GB!!!!!!!!!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's really bad, as so many useless ZERO-padding for the rootfs, the real rootfs is noly 800MB, why are you padding so many useless data to forcely enlarge to a useless 8GB?????!!!!!!!!!!! That caused me&amp;nbsp;took too much useless time to flash the useless 8GB data to EMMC!!!!!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a waste of both flash image time and my hard-disk storage!!!!!!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why Yocto had such bad design???????&lt;/P&gt;&lt;P&gt;Why not use the Android's smart way????? For Android. the whole system.img is only about 800MB,&amp;nbsp; after it flashed to EVK, the whole system(/) still show 8GB emmc instead of 800MB.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone help me about this frustrating issue? Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Apr 2020 00:29:13 GMT</pubDate>
    <dc:creator>13614278</dc:creator>
    <dc:date>2020-04-10T00:29:13Z</dc:date>
    <item>
      <title>rootfs size for IMX8mini Yocto Linux</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/rootfs-size-for-IMX8mini-Yocto-Linux/m-p/1083205#M158900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I have to raise this question here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[My case]&lt;/STRONG&gt; :&lt;/P&gt;&lt;P&gt;IMX8mini,8G emmc, running Yocto Linux, Linux 4.14.98 BSP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[Problem]:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;By default, the Yocto Linux build rootfs is about 1.3GB, when I flashed it to EVK, the whole system showed just 1.3GB, that's definitely unreasonable as my emmc is 8GB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[The Solution I got so far]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;After googling with Yocto, I knew that I can either use IMAGE_ROOTFS_EXTRA_SPACE=" xxxxxx" or&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;IMAGE_ROOTFS_SIZE= "xxx"&amp;nbsp;&lt;/SPAN&gt; to extend the whole size.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[My Problem]:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But, if I do that, I found my rootfs would also be forcely enlarged to above file size.&lt;/P&gt;&lt;P&gt;e,g, If I set&amp;nbsp;&lt;SPAN&gt;&lt;EM&gt;IMAGE_ROOTFS_EXTRA_SPACE=" xxxxxx"&lt;/EM&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;as 8GB, then the build out rootfs image size is also 8GB!!!!!!!!!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's really bad, as so many useless ZERO-padding for the rootfs, the real rootfs is noly 800MB, why are you padding so many useless data to forcely enlarge to a useless 8GB?????!!!!!!!!!!! That caused me&amp;nbsp;took too much useless time to flash the useless 8GB data to EMMC!!!!!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a waste of both flash image time and my hard-disk storage!!!!!!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why Yocto had such bad design???????&lt;/P&gt;&lt;P&gt;Why not use the Android's smart way????? For Android. the whole system.img is only about 800MB,&amp;nbsp; after it flashed to EVK, the whole system(/) still show 8GB emmc instead of 800MB.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone help me about this frustrating issue? Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2020 00:29:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/rootfs-size-for-IMX8mini-Yocto-Linux/m-p/1083205#M158900</guid>
      <dc:creator>13614278</dc:creator>
      <dc:date>2020-04-10T00:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: rootfs size for IMX8mini Yocto Linux</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/rootfs-size-for-IMX8mini-Yocto-Linux/m-p/1083206#M158901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; In any case, using Yocto approach for Linux system generation&amp;nbsp; requires&lt;/P&gt;&lt;P&gt;significant host computer resources. Customers can build file system once &lt;BR /&gt;and - if needed - to recompile U-boot&amp;nbsp; and or kernel without Yocto environment,&lt;BR /&gt;as described in NXP Linux documentation. Also it is possible to build small size&amp;nbsp;&lt;BR /&gt;file system and resize part, using such utility as parted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yuri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2020 02:43:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/rootfs-size-for-IMX8mini-Yocto-Linux/m-p/1083206#M158901</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2020-04-10T02:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: rootfs size for IMX8mini Yocto Linux</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/rootfs-size-for-IMX8mini-Yocto-Linux/m-p/1083207#M158902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yuri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help. But for&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Also it is possible to build small size&amp;nbsp;&lt;BR /&gt;file system and resize part, using such utility as parted.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;How to do this? It's difficult for me to get the point. Does it mean there is a tools whose name is "parted" to do this? or something else?&amp;nbsp; I can't get any useful info after I google with "Yocto + parted"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2020 09:32:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/rootfs-size-for-IMX8mini-Yocto-Linux/m-p/1083207#M158902</guid>
      <dc:creator>13614278</dc:creator>
      <dc:date>2020-04-10T09:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: rootfs size for IMX8mini Yocto Linux</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/rootfs-size-for-IMX8mini-Yocto-Linux/m-p/1083208#M158903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/13614278@qq.com"&gt;13614278@qq.com&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; below is document, describing to build and use the parted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.gnu.org/software/parted/manual/parted.html" title="https://www.gnu.org/software/parted/manual/parted.html"&gt;Parted User’s Manual&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Perhaps it would be easier just to use big size images :-(&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yuri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2020 03:14:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/rootfs-size-for-IMX8mini-Yocto-Linux/m-p/1083208#M158903</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2020-04-13T03:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: rootfs size for IMX8mini Yocto Linux</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/rootfs-size-for-IMX8mini-Yocto-Linux/m-p/2261800#M242872</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/1941"&gt;@Yuri&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;4. How to load rootfs.img from QSPI flash on I.MX8MP?&lt;/P&gt;</description>
      <pubDate>Sat, 13 Dec 2025 15:12:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/rootfs-size-for-IMX8mini-Yocto-Linux/m-p/2261800#M242872</guid>
      <dc:creator>NXP_USER_05</dc:creator>
      <dc:date>2025-12-13T15:12:36Z</dc:date>
    </item>
  </channel>
</rss>

