<?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: Downloading u-boot, dtb, kernel and rootfs to eMMC using uboot commands in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Downloading-u-boot-dtb-kernel-and-rootfs-to-eMMC-using-uboot/m-p/1818353#M220564</link>
    <description>&lt;P&gt;Hi NXP Team,&lt;/P&gt;&lt;P&gt;Our end product cannot be flashed via USB using uuu tool. Thus to support future firmware upgrades, our &lt;STRONG&gt;only option is to boot the device from SD Card, from SD card bootloader, download the new firmware (uboot, kernel, dtb and rootfs) to eMMC&lt;/STRONG&gt; and put the device back to eMMC boot mode (default boot mode is via eMMC)&lt;/P&gt;&lt;P&gt;Hope this clarifies the queries&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 29 Feb 2024 05:29:11 GMT</pubDate>
    <dc:creator>ssuresh</dc:creator>
    <dc:date>2024-02-29T05:29:11Z</dc:date>
    <item>
      <title>Downloading u-boot, dtb, kernel and rootfs to eMMC using uboot commands</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Downloading-u-boot-dtb-kernel-and-rootfs-to-eMMC-using-uboot/m-p/1812425#M220219</link>
      <description>&lt;P&gt;Hi NXP,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[REQUIREMENT]&lt;/P&gt;&lt;P&gt;We will boot the imx8mplus board using SD Card.&lt;/P&gt;&lt;P&gt;From SD Card bootloader, we need to load&amp;nbsp; uboot, dtb, kernel and rootfs to RAM using tftp and then write it to the eMMC.&lt;/P&gt;&lt;P&gt;We were successful in loading kernel and dtb. Commands used are:&lt;/P&gt;&lt;P&gt;tftp 0x40400000 Image&lt;/P&gt;&lt;P&gt;tftp 0x43000000 imx8mp-evk-revb4.dtb&lt;/P&gt;&lt;P&gt;fatwrite mmc 2:1 0x40400000 Image 1e82a00&lt;/P&gt;&lt;P&gt;fatwrite mmc 2:1 0x43000000 imx8mp-evk-revb4.dtb 15d94&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But stuck with uboot and rootfs. Can you please share the steps to achieve this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 04:40:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Downloading-u-boot-dtb-kernel-and-rootfs-to-eMMC-using-uboot/m-p/1812425#M220219</guid>
      <dc:creator>ssuresh</dc:creator>
      <dc:date>2024-02-21T04:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: Downloading u-boot, dtb, kernel and rootfs to eMMC using uboot commands</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Downloading-u-boot-dtb-kernel-and-rootfs-to-eMMC-using-uboot/m-p/1812479#M220225</link>
      <description>&lt;P&gt;pls refer to the chapter 4.4.1.2 Downloading an image to MMC/SD of enclosed file&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 06:09:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Downloading-u-boot-dtb-kernel-and-rootfs-to-eMMC-using-uboot/m-p/1812479#M220225</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2024-02-21T06:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: Downloading u-boot, dtb, kernel and rootfs to eMMC using uboot commands</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Downloading-u-boot-dtb-kernel-and-rootfs-to-eMMC-using-uboot/m-p/1812540#M220228</link>
      <description>&lt;P&gt;Referred the doc but could'nt see the steps to flash uboot and rootfs to emmc from uboot prompt.&lt;/P&gt;&lt;P&gt;From the docs, it says the uboot image is u-boot.imx, but cant find such an image after the compilation of sdk.&lt;/P&gt;&lt;P&gt;Also, can you please give us some more clarity on the blk and cnt parameter calculation? mmc write command is not working properly and leading to crash.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 07:02:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Downloading-u-boot-dtb-kernel-and-rootfs-to-eMMC-using-uboot/m-p/1812540#M220228</guid>
      <dc:creator>ssuresh</dc:creator>
      <dc:date>2024-02-21T07:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: Downloading u-boot, dtb, kernel and rootfs to eMMC using uboot commands</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Downloading-u-boot-dtb-kernel-and-rootfs-to-eMMC-using-uboot/m-p/1817296#M220518</link>
      <description>&lt;P&gt;what's your detailed demands? do you need download images to your board via network? do you need download to SD card or emmc?&amp;nbsp; why do you need download images via network? just for easy to download or your board couldn't support uuu tools?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 08:51:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Downloading-u-boot-dtb-kernel-and-rootfs-to-eMMC-using-uboot/m-p/1817296#M220518</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2024-02-28T08:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: Downloading u-boot, dtb, kernel and rootfs to eMMC using uboot commands</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Downloading-u-boot-dtb-kernel-and-rootfs-to-eMMC-using-uboot/m-p/1818353#M220564</link>
      <description>&lt;P&gt;Hi NXP Team,&lt;/P&gt;&lt;P&gt;Our end product cannot be flashed via USB using uuu tool. Thus to support future firmware upgrades, our &lt;STRONG&gt;only option is to boot the device from SD Card, from SD card bootloader, download the new firmware (uboot, kernel, dtb and rootfs) to eMMC&lt;/STRONG&gt; and put the device back to eMMC boot mode (default boot mode is via eMMC)&lt;/P&gt;&lt;P&gt;Hope this clarifies the queries&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 05:29:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Downloading-u-boot-dtb-kernel-and-rootfs-to-eMMC-using-uboot/m-p/1818353#M220564</guid>
      <dc:creator>ssuresh</dc:creator>
      <dc:date>2024-02-29T05:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: Downloading u-boot, dtb, kernel and rootfs to eMMC using uboot commands</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Downloading-u-boot-dtb-kernel-and-rootfs-to-eMMC-using-uboot/m-p/1818539#M220578</link>
      <description>&lt;P&gt;firstly you can use dd command to download the images to the sd card(you can find the detailed command from user guide I sent to you before), then refer to the link as below, which tell you how to flash the images from sd card to emmc&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/Guide-to-flash-an-eMMC-from-SD-Card-on-i-MX6Q-SABRE-SD/ta-p/1123021" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/Guide-to-flash-an-eMMC-from-SD-Card-on-i-MX6Q-SABRE-SD/ta-p/1123021&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 08:54:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Downloading-u-boot-dtb-kernel-and-rootfs-to-eMMC-using-uboot/m-p/1818539#M220578</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2024-02-29T08:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: Downloading u-boot, dtb, kernel and rootfs to eMMC using uboot commands</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Downloading-u-boot-dtb-kernel-and-rootfs-to-eMMC-using-uboot/m-p/1826878#M221189</link>
      <description>&lt;P&gt;Thanks NXP for the detailed reply!&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 07:00:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Downloading-u-boot-dtb-kernel-and-rootfs-to-eMMC-using-uboot/m-p/1826878#M221189</guid>
      <dc:creator>ssuresh</dc:creator>
      <dc:date>2024-03-13T07:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Downloading u-boot, dtb, kernel and rootfs to eMMC using uboot commands</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Downloading-u-boot-dtb-kernel-and-rootfs-to-eMMC-using-uboot/m-p/2261847#M242874</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/39586"&gt;@joanxie&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 can load rootfs.img from QSPI Flash ?&lt;/P&gt;</description>
      <pubDate>Sun, 14 Dec 2025 07:11:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Downloading-u-boot-dtb-kernel-and-rootfs-to-eMMC-using-uboot/m-p/2261847#M242874</guid>
      <dc:creator>NXP_USER_05</dc:creator>
      <dc:date>2025-12-14T07:11:54Z</dc:date>
    </item>
  </channel>
</rss>

