<?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 ??? howto flash custom built yocto image to the eMMC? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/howto-flash-custom-built-yocto-image-to-the-eMMC/m-p/909262#M136996</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;With yocto we can create a custom sdcard image. Then boot it on iMX8MMini EVK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. How to compile the bootloader (u-boot) which is compatible with UUU?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I try to execute &lt;STRONG&gt;uuu -v -b emmc my_freshly_backed_u-boot.bin&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;I get: Fail Can find validate IVT header,&lt;/P&gt;&lt;P&gt;and only bootloader bin files supplied with &lt;STRONG&gt;imx-yocto-L4.14.98_2.0.0_ga&lt;/STRONG&gt; package can be flashed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. How to flash the bootloader from the userspace???&lt;/P&gt;&lt;P&gt;echo 0 &amp;gt; /sys/block/mmcblk2boot0/force_ro&lt;/P&gt;&lt;P&gt;dd if=/tmp/_flash.bin of=/dev/mmc2boot0 bs=1K seek=32&lt;/P&gt;&lt;P&gt;echo 1 &amp;gt; /sys/block/mmcblk2boot0/force_ro&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what else???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 May 2019 10:03:13 GMT</pubDate>
    <dc:creator>pavel_</dc:creator>
    <dc:date>2019-05-27T10:03:13Z</dc:date>
    <item>
      <title>??? howto flash custom built yocto image to the eMMC?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/howto-flash-custom-built-yocto-image-to-the-eMMC/m-p/909262#M136996</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;With yocto we can create a custom sdcard image. Then boot it on iMX8MMini EVK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. How to compile the bootloader (u-boot) which is compatible with UUU?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I try to execute &lt;STRONG&gt;uuu -v -b emmc my_freshly_backed_u-boot.bin&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;I get: Fail Can find validate IVT header,&lt;/P&gt;&lt;P&gt;and only bootloader bin files supplied with &lt;STRONG&gt;imx-yocto-L4.14.98_2.0.0_ga&lt;/STRONG&gt; package can be flashed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. How to flash the bootloader from the userspace???&lt;/P&gt;&lt;P&gt;echo 0 &amp;gt; /sys/block/mmcblk2boot0/force_ro&lt;/P&gt;&lt;P&gt;dd if=/tmp/_flash.bin of=/dev/mmc2boot0 bs=1K seek=32&lt;/P&gt;&lt;P&gt;echo 1 &amp;gt; /sys/block/mmcblk2boot0/force_ro&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what else???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 May 2019 10:03:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/howto-flash-custom-built-yocto-image-to-the-eMMC/m-p/909262#M136996</guid>
      <dc:creator>pavel_</dc:creator>
      <dc:date>2019-05-27T10:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: ??? howto flash custom built yocto image to the eMMC?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/howto-flash-custom-built-yocto-image-to-the-eMMC/m-p/909263#M136997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The UUU utility follows a two-step approach to program something into flash memory:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;First step is the download of a&amp;nbsp; secondary loader firmware&lt;/LI&gt;&lt;LI&gt;In a second step this firmware manages the download and programming of binaries/images/data into flash memory&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;uuu&amp;nbsp; &amp;lt;commands&amp;gt;&amp;nbsp; &amp;lt;secondary loader firmware&amp;gt;&amp;nbsp; &amp;lt;binary&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have prepared&amp;nbsp; the secondary loader firmware for different use cases, they can be found in the demo image package from our website here:&amp;nbsp; &lt;A class="link-titled" href="https://www.nxp.com/webapp/Download?colCode=L4.14.98_2.0.0_MX8MM&amp;amp;appType=license" title="https://www.nxp.com/webapp/Download?colCode=L4.14.98_2.0.0_MX8MM&amp;amp;appType=license"&gt;https://www.nxp.com/webapp/Download?colCode=L4.14.98_2.0.0_MX8MM&amp;amp;appType=license&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The name of the file describes rather well what it's used for:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;imx-boot-imx8mmddr4evk-nand.bin-flash_ddr4_evk &amp;nbsp; &amp;nbsp; (for the EVK board with DDR4 memory)&lt;/LI&gt;&lt;LI&gt;imx-boot-imx8mmddr4evk-sd.bin-flash_ddr4_evk&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; (for the EVK board with DDR4 memory)&lt;/LI&gt;&lt;LI&gt;imx-boot-imx8mmevk-fspi.bin-flash_evk_flexspi&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; (for the EVK board with LPDDR4 memory)&lt;/LI&gt;&lt;LI&gt;imx-boot-imx8mmevk-sd.bin-flash_evk&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (for the EVK board with LPDDR4 memory)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you flash something into eMMC, then most likely it should be something bootable. This means you have to create a bootable image, u-boot is just one component in this bootable image. So you don't flash just a bootloader, you flash a complete boot image, which contains several components required for booting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The utility mkimage is used to create such a bootable image:&amp;nbsp; &lt;A class="link-titled" href="https://github.com/Freescale/imx-mkimage" title="https://github.com/Freescale/imx-mkimage"&gt;GitHub - Freescale/imx-mkimage: FSLC Community fork of i.MX MkImage (original code in https://source.codeaurora.org/exte…&lt;/A&gt;&amp;nbsp;&amp;nbsp; (please use the project on the CodeAurora server)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bernhard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 May 2019 10:37:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/howto-flash-custom-built-yocto-image-to-the-eMMC/m-p/909263#M136997</guid>
      <dc:creator>bernhardfink</dc:creator>
      <dc:date>2019-05-28T10:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: ??? howto flash custom built yocto image to the eMMC?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/howto-flash-custom-built-yocto-image-to-the-eMMC/m-p/909264#M136998</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;Thank you for the answer.&lt;/P&gt;&lt;P&gt;And is there a yocto recipe, that creates the bootable eMMC image?&lt;/P&gt;&lt;P&gt;(seems like&lt;STRONG&gt; imx-boot&lt;/STRONG&gt; or &lt;STRONG&gt;virtual/bootloader&lt;/STRONG&gt; targets are creating &lt;STRONG&gt;imx-boot-imx8mmevk-sd.bin-flash_evk&lt;/STRONG&gt; file in deploy folder)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second question remains:&lt;/P&gt;&lt;P&gt;How to flash a bootloader image into eMMC when booted from the SDCard, and not using the UUU tool?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I have an answer for this too:&lt;/P&gt;&lt;P&gt;the bootable image &lt;STRONG&gt;imx-boot-imx8mmevk-sd.bin-flash_evk&lt;/STRONG&gt; has to be located at &lt;STRONG&gt;/dev/mmcblkXboot0&lt;/STRONG&gt; with offset of 0x8400 (33K) as stated in IMX8MMRM Table 6-25.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The command sequence is, assuming that the board has booted from the SDCard:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;echo 0 &amp;gt; /sys/block/mmcblk&lt;STRONG&gt;2&lt;/STRONG&gt;boot0/force_ro&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;dd if=&lt;STRONG&gt;imx-boot-imx8mmevk-sd.bin-flash_evk&lt;/STRONG&gt; of /dev/mmcblk&lt;STRONG&gt;2&lt;/STRONG&gt;boot0 bs=1K seek=33&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;echo 1 &amp;gt; /sys/block/mmcblk&lt;STRONG&gt;2&lt;/STRONG&gt;boot0/force_ro&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Pauli&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2019 05:42:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/howto-flash-custom-built-yocto-image-to-the-eMMC/m-p/909264#M136998</guid>
      <dc:creator>pavel_</dc:creator>
      <dc:date>2019-05-29T05:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: ??? howto flash custom built yocto image to the eMMC?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/howto-flash-custom-built-yocto-image-to-the-eMMC/m-p/909265#M136999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please follow the attached documents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Artur&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2019 11:27:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/howto-flash-custom-built-yocto-image-to-the-eMMC/m-p/909265#M136999</guid>
      <dc:creator>art</dc:creator>
      <dc:date>2019-05-29T11:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: ??? howto flash custom built yocto image to the eMMC?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/howto-flash-custom-built-yocto-image-to-the-eMMC/m-p/1245600#M170862</link>
      <description>&lt;P&gt;Flashing this with proper seek was not enough to get it working to boot from boot0. I changed partconf too. But no sign of life.&lt;/P&gt;&lt;P&gt;How can I know it starts reading data from boot0? Is there maybe something to change/configure in spl?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 09:22:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/howto-flash-custom-built-yocto-image-to-the-eMMC/m-p/1245600#M170862</guid>
      <dc:creator>s_arendt</dc:creator>
      <dc:date>2021-03-15T09:22:25Z</dc:date>
    </item>
  </channel>
</rss>

