<?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のトピックChange u-Boot variable from user-space</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Change-u-Boot-variable-from-user-space/m-p/1479902#M191899</link>
    <description>&lt;P&gt;Dear Community,&lt;/P&gt;&lt;P&gt;I would like to know if there's simple wait to change the &lt;STRONG&gt;fdtfile&lt;/STRONG&gt; variable from user-space, please ? My user-case is that I would like to switch the &lt;STRONG&gt;dtb&lt;/STRONG&gt; for the selected camera sensor without entering u-Boot's prompt.&lt;/P&gt;&lt;P&gt;I saw the method of using&lt;EM&gt; fw_printenv/fw_setenv&lt;/EM&gt; and it seems that one needs to append the &lt;STRONG&gt;u-boot-fw-utils&lt;/STRONG&gt; into image's rootfs :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;IMAGE_INSTALL_append  += " u-boot-fw-utils"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is that the correct and enough way?&lt;/P&gt;&lt;P&gt;Thanks in advance and best regards,&lt;/P&gt;&lt;P&gt;Khang&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jun 2022 15:39:53 GMT</pubDate>
    <dc:creator>khang_letruong</dc:creator>
    <dc:date>2022-06-24T15:39:53Z</dc:date>
    <item>
      <title>Change u-Boot variable from user-space</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Change-u-Boot-variable-from-user-space/m-p/1479902#M191899</link>
      <description>&lt;P&gt;Dear Community,&lt;/P&gt;&lt;P&gt;I would like to know if there's simple wait to change the &lt;STRONG&gt;fdtfile&lt;/STRONG&gt; variable from user-space, please ? My user-case is that I would like to switch the &lt;STRONG&gt;dtb&lt;/STRONG&gt; for the selected camera sensor without entering u-Boot's prompt.&lt;/P&gt;&lt;P&gt;I saw the method of using&lt;EM&gt; fw_printenv/fw_setenv&lt;/EM&gt; and it seems that one needs to append the &lt;STRONG&gt;u-boot-fw-utils&lt;/STRONG&gt; into image's rootfs :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;IMAGE_INSTALL_append  += " u-boot-fw-utils"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is that the correct and enough way?&lt;/P&gt;&lt;P&gt;Thanks in advance and best regards,&lt;/P&gt;&lt;P&gt;Khang&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2022 15:39:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Change-u-Boot-variable-from-user-space/m-p/1479902#M191899</guid>
      <dc:creator>khang_letruong</dc:creator>
      <dc:date>2022-06-24T15:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Change u-Boot variable from user-space</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Change-u-Boot-variable-from-user-space/m-p/1479951#M191904</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello.... In order to modify the uboot environment variables from user space we will need a program called fw_setenv, we can compile this program ourselves from the u-boot sources, follow the instructions in this wiki page and then proceed to compile with (don't modify the .h file as it says in the tools/env/README file):&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2022 17:46:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Change-u-Boot-variable-from-user-space/m-p/1479951#M191904</guid>
      <dc:creator>chinnnu</dc:creator>
      <dc:date>2022-06-24T17:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Change u-Boot variable from user-space</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Change-u-Boot-variable-from-user-space/m-p/1479953#M191905</link>
      <description>&lt;P data-unlink="true"&gt;&lt;SPAN&gt;Hello.... In order to modify the uboot environment variables from user space we will need a program called fw_setenv, we can compile this program ourselves from the u-boot sources, follow the instructions in this wiki page and then proceed to compile with (don't modify the .h file as it says in the tools/env/README file): regards mrtv&amp;nbsp;technical team.&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;make env &lt;/PRE&gt;
&lt;PRE&gt;cp fw_printenv fw_setenv&lt;/PRE&gt;
&lt;P&gt;The next thing we will need is the fw_env.config file with the appropiate settings for our board. Here comes the confusion In this file you have to specify: MTD device name Device Offset Environment Size Flash sector size Number of sectors (ignored in NOR)&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2022 17:07:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Change-u-Boot-variable-from-user-space/m-p/1479953#M191905</guid>
      <dc:creator>chinnnu</dc:creator>
      <dc:date>2022-06-30T17:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: Change u-Boot variable from user-space</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Change-u-Boot-variable-from-user-space/m-p/1483624#M192123</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/202780"&gt;@chinnnu&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;Thanks for your answers. In fact, I am able to change u-Boot's variable from Linux user-space with the adding of&amp;nbsp; &lt;STRONG&gt;u-boot-fw-utils&lt;/STRONG&gt; to make appear &lt;EM&gt;fw_printenv/fw_setenv&lt;/EM&gt; in the rootfs as in my initial post.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;K.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Jul 2022 08:42:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Change-u-Boot-variable-from-user-space/m-p/1483624#M192123</guid>
      <dc:creator>khang_letruong</dc:creator>
      <dc:date>2022-07-02T08:42:30Z</dc:date>
    </item>
  </channel>
</rss>

