<?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のトピックRe: dd'ing u-boot doesn't wipe u-boot variables?</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/dd-ing-u-boot-doesn-t-wipe-u-boot-variables/m-p/1850736#M222751</link>
    <description>&lt;P&gt;dd if=/dev/zero of=/dev/&lt;SPAN&gt;mmcblk0&amp;nbsp;bs=16k seek=256 count=1&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 19 Apr 2024 13:16:13 GMT</pubDate>
    <dc:creator>roke</dc:creator>
    <dc:date>2024-04-19T13:16:13Z</dc:date>
    <item>
      <title>dd'ing u-boot doesn't wipe u-boot variables?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/dd-ing-u-boot-doesn-t-wipe-u-boot-variables/m-p/1849336#M222668</link>
      <description>&lt;P&gt;Working with an iMX8M Plus Quad.&lt;/P&gt;&lt;P&gt;Looking at this manual on ~page 11: i.MX_Linux_Users_Guide_Rev_LF6.6.3_1.0.0_2024-03-29.pdf (&lt;A href="https://www.nxp.com/docs/en/user-guide/IMX_LINUX_USERS_GUIDE.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/user-guide/IMX_LINUX_USERS_GUIDE.pdf&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;Issuing: dd if=imx-boot of=/dev/mmcblk0 bs=1k seek=32 conv=fsync&lt;/P&gt;&lt;P&gt;Plenty of normal-looking output.&lt;/P&gt;&lt;P&gt;But when I reboot and interrupt to get back into u-boot, my test env variable is still present! Shouldn't it be blown away? What am I doing wrong?&lt;/P&gt;&lt;P&gt;I've also tried with /dev/mmcblk0boot0 and zero'ing it out before the dd and same thing! The only thing that's managed to blow away my test variable is using uuu.exe to blast on u-boot and the .wic image.&lt;/P&gt;&lt;P&gt;I'm sure I'm missing something fundamental here...any thoughts?&lt;/P&gt;&lt;P&gt;Thank you for your time!&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2024 22:50:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/dd-ing-u-boot-doesn-t-wipe-u-boot-variables/m-p/1849336#M222668</guid>
      <dc:creator>entropyro</dc:creator>
      <dc:date>2024-04-17T22:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: dd'ing u-boot doesn't wipe u-boot variables?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/dd-ing-u-boot-doesn-t-wipe-u-boot-variables/m-p/1849579#M222685</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/232387"&gt;@entropyro&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tested same behavior on i.MX8MM, below steps can work, Uboot 2022 can be replaced by Uboot2023. You can refer it.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;echo 0 &amp;gt; /sys/block/mmcblk2boot0/force_ro
dd if=imx-boot-imx8mm-lpddr4-evk-sd.bin-flash_evk of=/dev/mmcblk2boot0 bs=1k seek=33 conv=fsync
echo 1 &amp;gt; /sys/block/mmcblk2boot0/force_ro&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 06:42:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/dd-ing-u-boot-doesn-t-wipe-u-boot-variables/m-p/1849579#M222685</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2024-04-18T06:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: dd'ing u-boot doesn't wipe u-boot variables?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/dd-ing-u-boot-doesn-t-wipe-u-boot-variables/m-p/1849983#M222710</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/151788"&gt;@Zhiming_Liu&lt;/a&gt;, OK this is strange, that's basically exactly what we are doing, but our test u-boot variable persists after flashing it and power-cycling the system!&amp;nbsp; Any idea what I'm missing?&lt;/P&gt;&lt;P&gt;What seek offset should I use for an i.MX8 Plus Quad?&amp;nbsp; I've tried both with no change, but it'd be good to know.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 15:40:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/dd-ing-u-boot-doesn-t-wipe-u-boot-variables/m-p/1849983#M222710</guid>
      <dc:creator>entropyro</dc:creator>
      <dc:date>2024-04-18T15:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: dd'ing u-boot doesn't wipe u-boot variables?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/dd-ing-u-boot-doesn-t-wipe-u-boot-variables/m-p/1850227#M222722</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/151788"&gt;@Zhiming_Liu&lt;/a&gt;, thank you for your help.&amp;nbsp; I figured out what was going on - after a saveenv my u-boot environment variables were being written to an area of the disk not touched by re-blasting the u-boot image.&amp;nbsp; I am actually compiling my own u-boot environment variables into the u-boot image, so I didn't want this feature.&amp;nbsp; I am working around it by blasting 0s into the section of memory where the u-boot environment variables are stored, then loading the image so that the "default variables" are always from the binary.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 23:32:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/dd-ing-u-boot-doesn-t-wipe-u-boot-variables/m-p/1850227#M222722</guid>
      <dc:creator>entropyro</dc:creator>
      <dc:date>2024-04-18T23:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: dd'ing u-boot doesn't wipe u-boot variables?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/dd-ing-u-boot-doesn-t-wipe-u-boot-variables/m-p/1850736#M222751</link>
      <description>&lt;P&gt;dd if=/dev/zero of=/dev/&lt;SPAN&gt;mmcblk0&amp;nbsp;bs=16k seek=256 count=1&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 13:16:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/dd-ing-u-boot-doesn-t-wipe-u-boot-variables/m-p/1850736#M222751</guid>
      <dc:creator>roke</dc:creator>
      <dc:date>2024-04-19T13:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: dd'ing u-boot doesn't wipe u-boot variables?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/dd-ing-u-boot-doesn-t-wipe-u-boot-variables/m-p/1850806#M222762</link>
      <description>&lt;P&gt;Where are you pulling the &lt;SPAN class=""&gt;4096000&lt;/SPAN&gt; (16k*256) number?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 14:35:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/dd-ing-u-boot-doesn-t-wipe-u-boot-variables/m-p/1850806#M222762</guid>
      <dc:creator>entropyro</dc:creator>
      <dc:date>2024-04-19T14:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: dd'ing u-boot doesn't wipe u-boot variables?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/dd-ing-u-boot-doesn-t-wipe-u-boot-variables/m-p/1850846#M222768</link>
      <description>&lt;P&gt;&lt;A href="https://github.com/nxp-imx/uboot-imx/blob/lf-5.15.71-2.2.2/configs/imx8mp_evk_defconfig" target="_blank"&gt;https://github.com/nxp-imx/uboot-imx/blob/lf-5.15.71-2.2.2/configs/imx8mp_evk_defconfig&lt;/A&gt;&lt;/P&gt;&lt;P&gt;CONFIG_ENV_SIZE=0x4000&lt;BR /&gt;CONFIG_ENV_OFFSET=0x400000&lt;BR /&gt;CONFIG_ENV_SECT_SIZE=0x10000&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 15:47:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/dd-ing-u-boot-doesn-t-wipe-u-boot-variables/m-p/1850846#M222768</guid>
      <dc:creator>roke</dc:creator>
      <dc:date>2024-04-19T15:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: dd'ing u-boot doesn't wipe u-boot variables?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/dd-ing-u-boot-doesn-t-wipe-u-boot-variables/m-p/1850848#M222769</link>
      <description>&lt;P&gt;&lt;SPAN&gt;16k*256 =16*1024*256 =&amp;nbsp;4194304&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://man7.org/linux/man-pages/man1/dd.1.html" target="_blank"&gt;https://man7.org/linux/man-pages/man1/dd.1.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; N and BYTES may be followed by the following multiplicative
       suffixes: c=1, w=2, b=512, &lt;STRONG&gt;kB=1000&lt;/STRONG&gt;, &lt;STRONG&gt;K=1024&lt;/STRONG&gt;, MB=1000*1000,
       M=1024*1024, xM=M, GB=1000*1000*1000, G=1024*1024*1024, and so on
       for T, P, E, Z, Y, R, Q.  Binary prefixes can be used, too:
       KiB=K, MiB=M, and so on.  If N ends in 'B', it counts bytes not
       blocks.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 15:53:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/dd-ing-u-boot-doesn-t-wipe-u-boot-variables/m-p/1850848#M222769</guid>
      <dc:creator>roke</dc:creator>
      <dc:date>2024-04-19T15:53:03Z</dc:date>
    </item>
  </channel>
</rss>

