<?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 change enviroment variables in FSPI U-Boot? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-change-enviroment-variables-in-FSPI-U-Boot/m-p/1019356#M150741</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, what am trying to achive is to have the bootloader in the SPI Flash and the root file system at eMMC:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already created the bootloader and my&amp;nbsp;i.MX 8QuadXPlus MEK boots from the SPI Flash, see this &lt;A _jive_internal="true" href="https://community.nxp.com/thread/521964" rel="nofollow noopener noreferrer" target="_blank"&gt;post &lt;/A&gt;for additional detalis, and now when my board boots it tries to find and SD card to continue te boot process, but my intention is to have the root file system at the eMMC memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I modify the next enviroment variables:&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;setenv mmcdev '0'
setenv mmcroot '/dev/mmcblk0p2 rootwait rw'
‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And doing a:&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;saveenv‍‍
boot&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;the board continue booting with Linux from eMMC but after restarting my system, the&amp;nbsp;values of mmcdev and mmcroot are lost even when I did the saveenv, so the board tries to find again the SD card for booting Linux&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my questions:&lt;/P&gt;&lt;P&gt;* is this is the correct way to achieve to ha&lt;SPAN&gt;ve the bootloader in the SPI Flash and the root file system at eMMC?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;* If so, the how I can modify my envorment variables to have the correct values and not lost at every restart?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jan 2020 23:08:58 GMT</pubDate>
    <dc:creator>q325mg</dc:creator>
    <dc:date>2020-01-15T23:08:58Z</dc:date>
    <item>
      <title>How to change enviroment variables in FSPI U-Boot?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-change-enviroment-variables-in-FSPI-U-Boot/m-p/1019356#M150741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, what am trying to achive is to have the bootloader in the SPI Flash and the root file system at eMMC:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already created the bootloader and my&amp;nbsp;i.MX 8QuadXPlus MEK boots from the SPI Flash, see this &lt;A _jive_internal="true" href="https://community.nxp.com/thread/521964" rel="nofollow noopener noreferrer" target="_blank"&gt;post &lt;/A&gt;for additional detalis, and now when my board boots it tries to find and SD card to continue te boot process, but my intention is to have the root file system at the eMMC memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I modify the next enviroment variables:&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;setenv mmcdev '0'
setenv mmcroot '/dev/mmcblk0p2 rootwait rw'
‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And doing a:&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;saveenv‍‍
boot&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;the board continue booting with Linux from eMMC but after restarting my system, the&amp;nbsp;values of mmcdev and mmcroot are lost even when I did the saveenv, so the board tries to find again the SD card for booting Linux&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my questions:&lt;/P&gt;&lt;P&gt;* is this is the correct way to achieve to ha&lt;SPAN&gt;ve the bootloader in the SPI Flash and the root file system at eMMC?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;* If so, the how I can modify my envorment variables to have the correct values and not lost at every restart?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2020 23:08:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-change-enviroment-variables-in-FSPI-U-Boot/m-p/1019356#M150741</guid>
      <dc:creator>q325mg</dc:creator>
      <dc:date>2020-01-15T23:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to change enviroment variables in FSPI U-Boot?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-change-enviroment-variables-in-FSPI-U-Boot/m-p/1019357#M150742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Isaias&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can look at #define CONFIG_SYS_MMC_ENV_DEV&amp;nbsp;&amp;nbsp;&amp;nbsp; in&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://source.codeaurora.org/external/imx/uboot-imx/tree/include/configs/imx8qxp_mek.h?h=imx_v2019.04_4.19.35_1.1.0" title="https://source.codeaurora.org/external/imx/uboot-imx/tree/include/configs/imx8qxp_mek.h?h=imx_v2019.04_4.19.35_1.1.0"&gt;imx8qxp_mek.h\configs\include - uboot-imx - i.MX U-Boot&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2020 05:45:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-change-enviroment-variables-in-FSPI-U-Boot/m-p/1019357#M150742</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-01-16T05:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to change enviroment variables in FSPI U-Boot?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-change-enviroment-variables-in-FSPI-U-Boot/m-p/1019358#M150743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;In case any one needs, these instructions:&amp;nbsp;&lt;A class="link-titled" href="https://wiki.yoctoproject.org/wiki/TipsAndTricks/Patching_the_source_for_a_recipe" title="https://wiki.yoctoproject.org/wiki/TipsAndTricks/Patching_the_source_for_a_recipe"&gt;TipsAndTricks/Patching the source for a recipe - Yocto Project&lt;/A&gt;&amp;nbsp;made easier to modify and compile the recipe and code inside the Yocto enviroment&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2020 23:46:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-change-enviroment-variables-in-FSPI-U-Boot/m-p/1019358#M150743</guid>
      <dc:creator>q325mg</dc:creator>
      <dc:date>2020-01-16T23:46:21Z</dc:date>
    </item>
  </channel>
</rss>

