<?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: i.MX8MM QSPI booting and partition in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8MM-QSPI-booting-and-partition/m-p/1662978#M207035</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201299"&gt;@Dhruvit&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the input. its working for us.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if Anyone facing same issue. This is because of the SPI mode selecting during Sf probe.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 03 Jun 2023 14:00:59 GMT</pubDate>
    <dc:creator>vignesh-baskaran</dc:creator>
    <dc:date>2023-06-03T14:00:59Z</dc:date>
    <item>
      <title>i.MX8MM QSPI booting and partition</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8MM-QSPI-booting-and-partition/m-p/1661476#M206909</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We having Custom board based on iMX8MM-EVk,&lt;/P&gt;&lt;P&gt;We replaced Qspi memory chip&amp;nbsp;mt25qu02g. No issues in detecting in u-boot and linux.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We were trying to do porting Images and booting from QSPI, Please refer below images.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 04:45:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8MM-QSPI-booting-and-partition/m-p/1661476#M206909</guid>
      <dc:creator>vignesh-baskaran</dc:creator>
      <dc:date>2023-06-01T04:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX8MM QSPI booting and partition</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8MM-QSPI-booting-and-partition/m-p/1662002#M206959</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone please look into this?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 16:06:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8MM-QSPI-booting-and-partition/m-p/1662002#M206959</guid>
      <dc:creator>vignesh-baskaran</dc:creator>
      <dc:date>2023-06-01T16:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX8MM QSPI booting and partition</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8MM-QSPI-booting-and-partition/m-p/1662552#M206992</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/209908"&gt;@vignesh-baskaran&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I hope you are doing well.&lt;/P&gt;
&lt;P&gt;Errors in the attached image suggest that the device tree is not loaded correctly. Please make sure that you have used the correct offset and size.&lt;/P&gt;
&lt;P&gt;Instead of using dd , one can flash Image and fdt using the sf write command in u-boot.&lt;/P&gt;
&lt;P&gt;Please provide me with an output of the &lt;STRONG&gt;printenv&lt;/STRONG&gt; command.&lt;/P&gt;
&lt;P&gt;Please share the output of&amp;nbsp; the below-mentioned commands after loading device tree (using sf read )&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;=&amp;gt;&amp;nbsp; fdt addr ${fdt_addr_r}&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;=&amp;gt;&amp;nbsp; fdt print&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Dhruvit Vasavada&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 09:05:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8MM-QSPI-booting-and-partition/m-p/1662552#M206992</guid>
      <dc:creator>Dhruvit</dc:creator>
      <dc:date>2023-06-02T09:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX8MM QSPI booting and partition</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8MM-QSPI-booting-and-partition/m-p/1662606#M207005</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201299"&gt;@Dhruvit&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;1) Please refer the attachment for&amp;nbsp;&lt;STRONG&gt;printenv .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2)&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;u-boot=&amp;gt;  fdt addr ${fdt_addr_r} 
libfdt fdt_check_header(): FDT_ERR_BADMAGIC

u-boot=&amp;gt; fdt print               
No FDT memory address configured. Please configure
the FDT address via "fdt addr &amp;lt;address&amp;gt;" command.
Aborting!&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3)&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Instead of using dd , one can flash Image and fdt using the sf write command in u-boot.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You suggested Sf write for writing to qspi,&lt;/P&gt;&lt;P&gt;Let assume i have images from SD card and want to copy to&amp;nbsp; QSPi, How can i do that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let us know how to do it. it will be helpful.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 10:11:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8MM-QSPI-booting-and-partition/m-p/1662606#M207005</guid>
      <dc:creator>vignesh-baskaran</dc:creator>
      <dc:date>2023-06-02T10:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX8MM QSPI booting and partition</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8MM-QSPI-booting-and-partition/m-p/1662689#M207016</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/209908"&gt;@vignesh-baskaran&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I hope you are doing well.&lt;/P&gt;
&lt;P&gt;One can follow below-mentioned steps to load images in QSPI Flash in u-boot.&lt;/P&gt;
&lt;P&gt;1. Load Image and dtb in RAM using fatload command.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;#fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}

#fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr_r} ${fdtfile}&lt;/LI-CODE&gt;
&lt;P&gt;2. Flash the Image and dtb in flash using sf write.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;#sf write ${loadaddr} &amp;lt;offset&amp;gt; &amp;lt;len&amp;gt;
# sf write ${fdt_addr_r} &amp;lt;offset&amp;gt; &amp;lt;len&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;- Please make sure to use correct offset and length while writing Image and dtb to flash &amp;amp; make sure that they don't overwrite each other.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; One can find the correct length (size) using the below command&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;# fatls mmc ${mmcdev}:${mmcpart}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;Please share the output of the above command.&lt;/P&gt;
&lt;P&gt;Please try after erasing flash memory.&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Dhruvit Vasavada&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 13:13:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8MM-QSPI-booting-and-partition/m-p/1662689#M207016</guid>
      <dc:creator>Dhruvit</dc:creator>
      <dc:date>2023-06-02T13:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX8MM QSPI booting and partition</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8MM-QSPI-booting-and-partition/m-p/1662790#M207021</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201299"&gt;@Dhruvit&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We believe somehow sf read and sf write is not working as we expected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We load the image from SD to RAM and check&amp;nbsp;&lt;/P&gt;&lt;P&gt;=&amp;gt; fdt addr&amp;nbsp;${fdt_addr}&lt;BR /&gt;=&amp;gt; fdt print&amp;nbsp;${fdt_addr}.&lt;/P&gt;&lt;P&gt;it is working perfectly.&lt;/P&gt;&lt;P&gt;But when We try to load from QSPI to RAM&amp;nbsp;&lt;/P&gt;&lt;P&gt;We getting error.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;libfdt fdt_check_header(): FDT_ERR_BADMAGIC&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We thought this could be issue with size we loading. We cross verified it, its not the issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: We tried erase operation before the sf write.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please let us know about the issue?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 16:39:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8MM-QSPI-booting-and-partition/m-p/1662790#M207021</guid>
      <dc:creator>vignesh-baskaran</dc:creator>
      <dc:date>2023-06-02T16:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX8MM QSPI booting and partition</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8MM-QSPI-booting-and-partition/m-p/1662978#M207035</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201299"&gt;@Dhruvit&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the input. its working for us.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if Anyone facing same issue. This is because of the SPI mode selecting during Sf probe.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Jun 2023 14:00:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8MM-QSPI-booting-and-partition/m-p/1662978#M207035</guid>
      <dc:creator>vignesh-baskaran</dc:creator>
      <dc:date>2023-06-03T14:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX8MM QSPI booting and partition</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8MM-QSPI-booting-and-partition/m-p/1663909#M207137</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/209908"&gt;@vignesh-baskaran&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I hope you are doing well.&lt;/P&gt;
&lt;P&gt;Glad to know that issue is resolved.&lt;/P&gt;
&lt;P&gt;Can I mark this case as close?&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Dhruvit Vasavada&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2023 05:03:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8MM-QSPI-booting-and-partition/m-p/1663909#M207137</guid>
      <dc:creator>Dhruvit</dc:creator>
      <dc:date>2023-06-06T05:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX8MM QSPI booting and partition</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8MM-QSPI-booting-and-partition/m-p/1663919#M207140</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201299"&gt;@Dhruvit&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the support.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2023 05:19:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8MM-QSPI-booting-and-partition/m-p/1663919#M207140</guid>
      <dc:creator>vignesh-baskaran</dc:creator>
      <dc:date>2023-06-06T05:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX8MM QSPI booting and partition</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8MM-QSPI-booting-and-partition/m-p/2261775#M242871</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201299"&gt;@Dhruvit&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;Thank You&lt;/P&gt;</description>
      <pubDate>Sat, 13 Dec 2025 11:56:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8MM-QSPI-booting-and-partition/m-p/2261775#M242871</guid>
      <dc:creator>NXP_USER_05</dc:creator>
      <dc:date>2025-12-13T11:56:13Z</dc:date>
    </item>
  </channel>
</rss>

