<?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 Re: mmcroot env variable is not persistent after reboot when other variables are persistent. in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/mmcroot-env-variable-is-not-persistent-after-reboot-when-other/m-p/1475920#M191599</link>
    <description>&lt;P&gt;The i.MX8MM can not support two OS, so the setting is not available.&lt;BR /&gt;It work at default one&lt;STRONG&gt; /dev/mmcblk2p2.&lt;BR /&gt;&lt;/STRONG&gt;Just use the default value, do not recommend you to modify.&lt;BR /&gt;Hope this can do help for you.&lt;/P&gt;</description>
    <pubDate>Fri, 17 Jun 2022 09:49:24 GMT</pubDate>
    <dc:creator>Rita_Wang</dc:creator>
    <dc:date>2022-06-17T09:49:24Z</dc:date>
    <item>
      <title>mmcroot env variable is not persistent after reboot when other variables are persistent.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/mmcroot-env-variable-is-not-persistent-after-reboot-when-other/m-p/1472406#M191370</link>
      <description>&lt;P&gt;I am running an i.MX 8M Mini processor and have partitioned the eMMC to 4 user partitions so that I can update the OS remotely with swupdate.&amp;nbsp;&lt;/P&gt;&lt;P&gt;/dev/mmcblk2p1 &amp;lt;--OS1 boot&lt;BR /&gt;/dev/mmcblk2p2 &amp;lt;--OS1 Filesystem&lt;BR /&gt;/dev/mmcblk2p3 &amp;lt;--OS2 boot&lt;BR /&gt;/dev/mmcblk2p4 &amp;lt;--OS2 Filesystem&lt;/P&gt;&lt;P&gt;In U-Boot I can set:&lt;BR /&gt;mmcpart=1 and mmcroot=/dev/mmcblk2p2 and it will boot OS1 or&lt;BR /&gt;mmcpart=3 and mmcroot=/dev/mmcblk2p4 and it will boot OS2&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;However, every time the board restarts mmcroot gets reset to /dev/mmcblk2p2.&lt;/STRONG&gt;&amp;nbsp; I can setenv mmcpart to be either 1 or 3 and it is persistent everytime I reboot.&amp;nbsp; But mmcroot is always overwritten to /dev/mmcblk2p2.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When Uboot loads or I saveenv, it also seems to load and properly.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;MMC: FSL_SDHC: 1, FSL_SDHC: 2&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Loading Environment from MMC... Run CMD11 1.8V switch&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;OK&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;u-boot=&amp;gt; saveenv&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Saving Environment to MMC... Writing to MMC(2)... OK&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I am saving my environment to eMMC and my config looks like this:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;CONFIG_ENV_IS_IN_MMC=y&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;CONFIG_SYS_MMC_ENV_DEV=2&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;CONFIG_SYS_MMC_ENV_PART=2&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;CONFIG_ENV_SIZE=0x1000&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;CONFIG_ENV_SECT_SIZE=0x10000&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;CONFIG_ENV_OFFSET=0x400000&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I also have at /etc/fw_env.confg&lt;BR /&gt;&lt;EM&gt;# device name, Device offset, Env. size, Flash sector size &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/dev/mmcblk2 0x400000 0x1000 0x10000&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I can use fw_setenv to set mmcpart and it works properly and is read when in Uboot, but the same thing happens when I tried to set mmcroot where it always reverts back to /dev/mmcblk2p2.&lt;/P&gt;&lt;P&gt;How can I make mmcroot be persistent across reboots?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2022 20:31:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/mmcroot-env-variable-is-not-persistent-after-reboot-when-other/m-p/1472406#M191370</guid>
      <dc:creator>DougR</dc:creator>
      <dc:date>2022-06-10T20:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: mmcroot env variable is not persistent after reboot when other variables are persistent.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/mmcroot-env-variable-is-not-persistent-after-reboot-when-other/m-p/1475920#M191599</link>
      <description>&lt;P&gt;The i.MX8MM can not support two OS, so the setting is not available.&lt;BR /&gt;It work at default one&lt;STRONG&gt; /dev/mmcblk2p2.&lt;BR /&gt;&lt;/STRONG&gt;Just use the default value, do not recommend you to modify.&lt;BR /&gt;Hope this can do help for you.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 09:49:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/mmcroot-env-variable-is-not-persistent-after-reboot-when-other/m-p/1475920#M191599</guid>
      <dc:creator>Rita_Wang</dc:creator>
      <dc:date>2022-06-17T09:49:24Z</dc:date>
    </item>
  </channel>
</rss>

