<?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: How to program uboot environment in emmc</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-program-uboot-environment-in-emmc/m-p/1444789#M189407</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/196424"&gt;@vin_imd&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, you can&amp;nbsp;&lt;SPAN&gt;create a separate partition for uboot environment in the wks.in meta-freescale/wic/.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Apr 2022 02:08:08 GMT</pubDate>
    <dc:creator>Zhiming_Liu</dc:creator>
    <dc:date>2022-04-18T02:08:08Z</dc:date>
    <item>
      <title>How to program uboot environment in emmc</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-program-uboot-environment-in-emmc/m-p/1444267#M189340</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I'm trying to figure out how to program uboot environment parameters in emmc when programming the board for the first time. I'm using "UUU" tool to program the image. The build system is YOCTO. This is a custom board based on i.MX8mp.&lt;/P&gt;&lt;P&gt;This is required for integrating SWUpdate using the dual copy strategy. I'm planning to update the "mmcroot" parameter in Uboot environment once the update is successful. Previously uboot was configured with&amp;nbsp;CONFIG_ENV_IS_NOWHERE=y setting, and it was using default environment on every powerup. Now I have made the following changes to uboot defconfig -&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;-CONFIG_ENV_IS_NOWHERE=y
+# CONFIG_ENV_IS_NOWHERE is not set
+CONFIG_ENV_IS_IN_MMC=y
+CONFIG_SYS_MMC_ENV_DEV=2
+CONFIG_SYS_MMC_ENV_PART=0
+CONFIG_ENV_SIZE=0x4000
+CONFIG_ENV_OFFSET=0x400000
+CONFIG_ENV_SECT_SIZE=0x10000&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After the build, I have "u-boot-imx-initial-env-sd" file getting created which will be programmed to the emmc. I can't figure out how to do this using the UUU tool.&lt;/P&gt;&lt;P&gt;I'm wondering if I have to create a separate partition for uboot environment in emmc device and provide the below command in wks.in file of meta-freescale/wic/&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;part u-boot-env --source rawcopy --sourceparams="file=u-boot-imx-initial-env-sd" --ondisk mmcblk --no-table --align 8192&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if anybody has looked into this or the best way to get this done.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 17:08:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-program-uboot-environment-in-emmc/m-p/1444267#M189340</guid>
      <dc:creator>vin_imd</dc:creator>
      <dc:date>2022-04-14T17:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to program uboot environment in emmc</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-program-uboot-environment-in-emmc/m-p/1444789#M189407</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/196424"&gt;@vin_imd&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, you can&amp;nbsp;&lt;SPAN&gt;create a separate partition for uboot environment in the wks.in meta-freescale/wic/.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2022 02:08:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-program-uboot-environment-in-emmc/m-p/1444789#M189407</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2022-04-18T02:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to program uboot environment in emmc</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-program-uboot-environment-in-emmc/m-p/1626889#M203626</link>
      <description>&lt;P&gt;Did this technique work out? Were you able to save the environment variables?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2023 13:15:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-program-uboot-environment-in-emmc/m-p/1626889#M203626</guid>
      <dc:creator>dhanasekar</dc:creator>
      <dc:date>2023-04-03T13:15:20Z</dc:date>
    </item>
  </channel>
</rss>

