<?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>i.MX ProcessorsのトピックUse UUU to flash u-boot and u-boot-environment.</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Use-UUU-to-flash-u-boot-and-u-boot-environment/m-p/1629833#M203897</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I’d like flash u-boot and &lt;/SPAN&gt;&lt;STRONG&gt;the corresponding u-boot-environment image&lt;/STRONG&gt;&lt;SPAN&gt; with UUU in the boot0 hardware partition of the eMMC storage of a Verdin iMX8MP SoM.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;As per Toradex documentation I need to write the environment at &lt;/SPAN&gt;&lt;STRONG&gt;offset 0x2200 (8704 bytes) before the end of boot0&lt;/STRONG&gt;&lt;SPAN&gt;. The boot0 hardware partition of this eMMC has size 32MiB.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;For this reason I created a complete image with the size of the boot0.&lt;/P&gt;&lt;P&gt;The image is created using dd and appending the imx-boot image, zeros until the U-Boot environment image.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt; |-imx-boot-|------------|--env---|&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;|&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;   |    zeros &amp;nbsp; |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;|----------|------------|--------|&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;0x0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;  -0x2200   &amp;nbsp; END&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm trying to flash this image into the bootloader partition using the script below.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;uuu_version 1.4.127&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FB: ucmd setenv fastboot_dev mmc&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FB: flash bootloader my_bootloader&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FB: ucmd setenv mmcdev 2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FB: flash -raw2sparse all my_image.wic&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FB: done&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;I can enter correctly in Fastboot mode but I always get the following error message:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;0x40000000image too large for partition1:214&amp;gt;Fail image too large for partition(1.089s)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Looking at the fastboot code in U-Boot it looks like “FB: flash bootloader” does not support writing more than 4MiB.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there any way to perform one or more of the following using UUU?&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;write more than 4MiB on a boot0 hardware partition?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;write at a specified offset on a boot0 hardware partition?&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Apr 2023 16:06:58 GMT</pubDate>
    <dc:creator>Kozmaj</dc:creator>
    <dc:date>2023-04-07T16:06:58Z</dc:date>
    <item>
      <title>Use UUU to flash u-boot and u-boot-environment.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Use-UUU-to-flash-u-boot-and-u-boot-environment/m-p/1629833#M203897</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I’d like flash u-boot and &lt;/SPAN&gt;&lt;STRONG&gt;the corresponding u-boot-environment image&lt;/STRONG&gt;&lt;SPAN&gt; with UUU in the boot0 hardware partition of the eMMC storage of a Verdin iMX8MP SoM.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;As per Toradex documentation I need to write the environment at &lt;/SPAN&gt;&lt;STRONG&gt;offset 0x2200 (8704 bytes) before the end of boot0&lt;/STRONG&gt;&lt;SPAN&gt;. The boot0 hardware partition of this eMMC has size 32MiB.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;For this reason I created a complete image with the size of the boot0.&lt;/P&gt;&lt;P&gt;The image is created using dd and appending the imx-boot image, zeros until the U-Boot environment image.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt; |-imx-boot-|------------|--env---|&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;|&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;   |    zeros &amp;nbsp; |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;|----------|------------|--------|&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;0x0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;  -0x2200   &amp;nbsp; END&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm trying to flash this image into the bootloader partition using the script below.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;uuu_version 1.4.127&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FB: ucmd setenv fastboot_dev mmc&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FB: flash bootloader my_bootloader&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FB: ucmd setenv mmcdev 2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FB: flash -raw2sparse all my_image.wic&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FB: done&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;I can enter correctly in Fastboot mode but I always get the following error message:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;0x40000000image too large for partition1:214&amp;gt;Fail image too large for partition(1.089s)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Looking at the fastboot code in U-Boot it looks like “FB: flash bootloader” does not support writing more than 4MiB.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there any way to perform one or more of the following using UUU?&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;write more than 4MiB on a boot0 hardware partition?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;write at a specified offset on a boot0 hardware partition?&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2023 16:06:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Use-UUU-to-flash-u-boot-and-u-boot-environment/m-p/1629833#M203897</guid>
      <dc:creator>Kozmaj</dc:creator>
      <dc:date>2023-04-07T16:06:58Z</dc:date>
    </item>
  </channel>
</rss>

