<?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 How to generate default u-Boot environment variables  ? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-generate-default-u-Boot-environment-variables/m-p/1675398#M208083</link>
    <description>&lt;P&gt;Dear Community,&lt;/P&gt;&lt;P&gt;From the tutorial in attachment, it is said :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fw_setenv_saveenv.png" style="width: 648px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/229136i016E7F98BA0C655E/image-dimensions/648x454?v=v2" width="648" height="454" role="button" title="fw_setenv_saveenv.png" alt="fw_setenv_saveenv.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I would like to know if there's any way to have default u-Boot's environment variables in the storage &lt;STRONG&gt;without &lt;/STRONG&gt;using the &lt;STRONG&gt;saveenv&lt;/STRONG&gt; command once as we plan to remove the serial debug interface and serial download interface (i.e. &lt;STRONG&gt;without&lt;/STRONG&gt; u-Boot access) from an iMX8M Plus based system with SD card as only storage, please ?&lt;/P&gt;&lt;P&gt;Thanks and best regards,&lt;/P&gt;&lt;P&gt;Khang&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 25 Jun 2023 07:37:47 GMT</pubDate>
    <dc:creator>khang_letruong</dc:creator>
    <dc:date>2023-06-25T07:37:47Z</dc:date>
    <item>
      <title>How to generate default u-Boot environment variables  ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-generate-default-u-Boot-environment-variables/m-p/1675398#M208083</link>
      <description>&lt;P&gt;Dear Community,&lt;/P&gt;&lt;P&gt;From the tutorial in attachment, it is said :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fw_setenv_saveenv.png" style="width: 648px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/229136i016E7F98BA0C655E/image-dimensions/648x454?v=v2" width="648" height="454" role="button" title="fw_setenv_saveenv.png" alt="fw_setenv_saveenv.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I would like to know if there's any way to have default u-Boot's environment variables in the storage &lt;STRONG&gt;without &lt;/STRONG&gt;using the &lt;STRONG&gt;saveenv&lt;/STRONG&gt; command once as we plan to remove the serial debug interface and serial download interface (i.e. &lt;STRONG&gt;without&lt;/STRONG&gt; u-Boot access) from an iMX8M Plus based system with SD card as only storage, please ?&lt;/P&gt;&lt;P&gt;Thanks and best regards,&lt;/P&gt;&lt;P&gt;Khang&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jun 2023 07:37:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-generate-default-u-Boot-environment-variables/m-p/1675398#M208083</guid>
      <dc:creator>khang_letruong</dc:creator>
      <dc:date>2023-06-25T07:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate default u-Boot environment variables  ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-generate-default-u-Boot-environment-variables/m-p/1675407#M208084</link>
      <description>&lt;P&gt;It is no difference between under arm linux with real device sdcard/emmc and x86/x64 linux with sdcard mirror(or real sdcard).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The document is just under&amp;nbsp;arm linux with real device sdcard/emmc.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now You just need to compile a x86/64 fw_setenv/fw_printenv.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Others are the exactly the same.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you can use "make u-boot-initial-env" to get the default&amp;nbsp; uboot env. (So far, the yocto use the same way output the env in its deploy)&lt;/P&gt;
&lt;P&gt;Here is one example, yocto deploy.&amp;nbsp;&amp;nbsp;u-boot-imx-initial-env-imx8mmevk-sd-2020.04-r0 is the default env.&lt;/P&gt;
&lt;P&gt;mx8mm-evk-qca-wifi--5.4-r0-imx8mmevk-20210709103222.dtb tee.mx8mmevk.bin&lt;BR /&gt;imx8mm-evk-qca-wifi.dtb u-boot.bin&lt;BR /&gt;imx8mm-evk-qca-wifi-imx8mmevk.dtb u-boot.bin-sd&lt;BR /&gt;imx8mm-evk-revb-qca-wifi--5.4-r0-imx8mmevk-20210709103222.dtb u-boot-imx8mmevk.bin&lt;BR /&gt;imx8mm-evk-revb-qca-wifi.dtb u-boot-imx8mmevk.bin-sd&lt;BR /&gt;imx8mm-evk-revb-qca-wifi-imx8mmevk.dtb u-boot-imx-initial-env-imx8mmevk-sd&lt;BR /&gt;imx8mm-evk-rm67191--5.4-r0-imx8mmevk-20210709103222.dtb u-boot-imx-initial-env-imx8mmevk-sd-2020.04-r0&lt;BR /&gt;imx8mm-evk-rm67191.dtb u-boot-imx-initial-env-sd&lt;BR /&gt;imx8mm-evk-rm67191-imx8mmevk.dtb u-boot-sd-2020.04-r0.bin&lt;BR /&gt;imx8mm-evk-root--5.4-r0-imx8mmevk-20210709103222.dtb u-boot-spl.bin&lt;/P&gt;
&lt;P&gt;If you need a binary env, you can use&amp;nbsp;mkenvimage to convert it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the following document, you can see the&amp;nbsp;fw_setenv apply uboot environment into a sdcard mrrior.&lt;/P&gt;
&lt;P&gt;create sdcard mirror under windows&lt;BR /&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/create-sdcard-mirror-under-windows/ta-p/1472741" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/create-sdcard-mirror-under-windows/ta-p/1472741&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You can see a.sdcard is a mirror not a real device.&lt;/P&gt;
&lt;P&gt;fw_env.config&lt;/P&gt;
&lt;P&gt;#a.sdcard 0x400000 0x4000 #8MQ,8MM, 8MN, 8MP since lf-5.10.52-2.1.0&lt;BR /&gt;#a.sdcard 0x400000 0x2000 #8, 8X,8ULP&lt;BR /&gt;a.sdcard 0x400000 0x1000 #8MQ,8MM, 8MN, 8MP&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and&lt;/P&gt;
&lt;P&gt;fw_setenv&amp;nbsp; has&amp;nbsp; "-f" for the first time, the device has no env yet. The env file is the previous command&amp;nbsp; "make u-boot-initial-env", you got.&lt;/P&gt;
&lt;P&gt;You can use the -f&amp;nbsp; or you can prepare a scard/emmc mirror has env inside(use x86/x64 fw_setenv set it or use &amp;nbsp;mkenvimage get binary env to integrate it).&lt;/P&gt;
&lt;P&gt;fw_setenv (compiled Dec 27 2021)&lt;BR /&gt;Usage fw_setenv [OPTION]&lt;BR /&gt;-h, : print this help&lt;BR /&gt;-c, --config &amp;lt;filename&amp;gt; : configuration file (old fw_env.config)&lt;BR /&gt;-f, --defenv &amp;lt;filename&amp;gt; : default environment if no one found&lt;BR /&gt;-V, : print version and exit&lt;BR /&gt;-s, --script &amp;lt;filename&amp;gt; : read variables to be set from a script&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the document, the swupdate uses the same way for the first time when device has no env.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SWUpdate OTA i.MX8MM EVK / i.MX8QXP MEK&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/SWUpdate-OTA-i-MX8MM-EVK-i-MX8QXP-MEK/ta-p/1307416" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/SWUpdate-OTA-i-MX8MM-EVK-i-MX8QXP-MEK/ta-p/1307416&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lots of ways to achieve your goal.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You also can consider the "uENV.txt" way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jun 2023 09:01:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-generate-default-u-Boot-environment-variables/m-p/1675407#M208084</guid>
      <dc:creator>BiyongSUN</dc:creator>
      <dc:date>2023-06-25T09:01:05Z</dc:date>
    </item>
  </channel>
</rss>

