<?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: can't make bootcmd save in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/can-t-make-bootcmd-save/m-p/949046#M141941</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you compiling U-Boot yourself or using yocto for the job? If you are using yocto then the changes you make may get lost during consecutive builds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the bootcmd variable, if I remember correctly it takes the value of CONFIG_BOOTCOMMAND on startup. So check that definition for your board. Other than that you could try to find out if bootcmd variable is overridden in some other place. You can search the source code for an expression like&lt;EM&gt; env_set("bootcmd", ... &lt;/EM&gt;in order to do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should also tell us which version of U-Boot you are using and which board you are working on.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Aug 2019 20:29:07 GMT</pubDate>
    <dc:creator>turker</dc:creator>
    <dc:date>2019-08-21T20:29:07Z</dc:date>
    <item>
      <title>can't make bootcmd save</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/can-t-make-bootcmd-save/m-p/949045#M141940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't seem to overwrite the bootcmd variable in u-boot and have it stay the save after rebooting. I can set it fine, see it's changed with printenv, and saveenv goes ok. But, when I reset it goes back to this&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;bootcmd=ext2load mmc 1:1 ${loadaddr} boot.scr; source; boota mmc0 boot_a;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I guess the first question, is there a way to override this variable and have it stick?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried modifying u-boot code to remove that line (i'm on an imx8mq) but that didn't seem to do anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there something that feeds this variable prior to u-boot? I'm not that familiar with these parts yet. Is there a first stage bootloader that is handing this environment variable to u-boot?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2019 23:04:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/can-t-make-bootcmd-save/m-p/949045#M141940</guid>
      <dc:creator>richc128</dc:creator>
      <dc:date>2019-08-20T23:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: can't make bootcmd save</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/can-t-make-bootcmd-save/m-p/949046#M141941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you compiling U-Boot yourself or using yocto for the job? If you are using yocto then the changes you make may get lost during consecutive builds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the bootcmd variable, if I remember correctly it takes the value of CONFIG_BOOTCOMMAND on startup. So check that definition for your board. Other than that you could try to find out if bootcmd variable is overridden in some other place. You can search the source code for an expression like&lt;EM&gt; env_set("bootcmd", ... &lt;/EM&gt;in order to do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should also tell us which version of U-Boot you are using and which board you are working on.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2019 20:29:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/can-t-make-bootcmd-save/m-p/949046#M141941</guid>
      <dc:creator>turker</dc:creator>
      <dc:date>2019-08-21T20:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: can't make bootcmd save</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/can-t-make-bootcmd-save/m-p/949047#M141942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it's for the google coral board. Basically it looks if it's an sd boot and then overrides the bootcmd env variable&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://coral.googlesource.com/uboot-imx/+/7a25dce4d8789bfcbd9ed0b75fb749df5f3e13a1/board/freescale/imx8mq_phanbell/imx8m_phanbell.c#295" title="https://coral.googlesource.com/uboot-imx/+/7a25dce4d8789bfcbd9ed0b75fb749df5f3e13a1/board/freescale/imx8mq_phanbell/imx8m_phanbell.c#295"&gt;board/freescale/imx8mq_phanbell/imx8m_phanbell.c - uboot-imx - Git at Google&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i'm not sure of the best fix but just commenting out the lines is my fix.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2019 21:01:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/can-t-make-bootcmd-save/m-p/949047#M141942</guid>
      <dc:creator>richc128</dc:creator>
      <dc:date>2019-08-21T21:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: can't make bootcmd save</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/can-t-make-bootcmd-save/m-p/949048#M141943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi richardcagley&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can look how uboot stores variables&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://stackoverflow.com/questions/20525704/how-u-boot-bootloader-reads-saves-its-environment-variables" title="https://stackoverflow.com/questions/20525704/how-u-boot-bootloader-reads-saves-its-environment-variables"&gt;linux - How u-boot bootloader reads/saves its environment Variables? - Stack Overflow&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for example&amp;nbsp; define&amp;nbsp; "CONFIG_ENV_IS_IN_MMC"&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://source.codeaurora.org/external/imx/uboot-imx/tree/include/configs/imx8mm_evk.h?h=imx_v2018.03_4.14.98_2.1.0" title="https://source.codeaurora.org/external/imx/uboot-imx/tree/include/configs/imx8mm_evk.h?h=imx_v2018.03_4.14.98_2.1.0"&gt;imx8mm_evk.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;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2019 01:10:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/can-t-make-bootcmd-save/m-p/949048#M141943</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2019-08-22T01:10:45Z</dc:date>
    </item>
  </channel>
</rss>

