<?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: Access u-boot varibale from linux user space in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Access-u-boot-varibale-from-linux-user-space/m-p/2267716#M243015</link>
    <description>&lt;P&gt;If you carefully read the u-boot documentation, you'll find that u-boot provides a complete solution. During u-boot compilation, `&lt;STRONG&gt;make u-boot-initial-env&lt;/STRONG&gt;` generates default u-boot environment variables. `fw_printenv`/`fw_setenv` can use the `-f` parameter on the first run to access this default u-boot environment variable file. This is also the method used by swupate on its first run.&lt;/P&gt;</description>
    <pubDate>Mon, 22 Dec 2025 13:19:44 GMT</pubDate>
    <dc:creator>vopal</dc:creator>
    <dc:date>2025-12-22T13:19:44Z</dc:date>
    <item>
      <title>Access u-boot varibale from linux user space</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Access-u-boot-varibale-from-linux-user-space/m-p/2263773#M242914</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Processor: &lt;STRONG&gt;IMX8M PLUS&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Yocto : &lt;STRONG&gt;5.15-kirkstone&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;While booting through SD card able to access fw_printenv/setenv by adding below line in image recipe of yocto build.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;IMAGE_INSTALL += " u-boot-fw-utils"&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;u-boot configuration is as below.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CONFIG_ENV_SIZE=0x80000
CONFIG_ENV_OFFSET=0x380000
CONFIG_ENV_IS_NOWHERE=y
CONFIG_ENV_IS_IN_MMC=y
CONFIG_SYS_MMC_ENV_DEV=1
CONFIG_SYS_MMC_ENV_PART=0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;But when executing those commands on target gives below error.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;~# fw_printenv
Configuration file wrong or corrupted&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;Kindly suggest a procedure to make&amp;nbsp;fw_printenv/setenv work.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Kartheek&lt;/P&gt;</description>
      <pubDate>Tue, 16 Dec 2025 10:54:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Access-u-boot-varibale-from-linux-user-space/m-p/2263773#M242914</guid>
      <dc:creator>kartheek</dc:creator>
      <dc:date>2025-12-16T10:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: Access u-boot varibale from linux user space</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Access-u-boot-varibale-from-linux-user-space/m-p/2264347#M242929</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Please refer patch here.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/nxp-imx-support/meta-swupdate-imx/blob/kirkstone_5.15.71_2.2.0/recipes-bsp/u-boot/files/0001-enable-env_redunand-bootcount-limit-LF_v5.15.71-2.2.0.patch" target="_blank" rel="noopener"&gt;https://github.com/nxp-imx-support/meta-swupdate-imx/blob/kirkstone_5.15.71_2.2.0/recipes-bsp/u-boot/files/0001-enable-env_redunand-bootcount-limit-LF_v5.15.71-2.2.0.patch&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/nxp-imx-support/meta-swupdate-imx/blob/kirkstone_5.15.71_2.2.0/recipes-bsp/u-boot/u-boot-imx_%25.bbappend" target="_blank"&gt;https://github.com/nxp-imx-support/meta-swupdate-imx/blob/kirkstone_5.15.71_2.2.0/recipes-bsp/u-boot/u-boot-imx_%25.bbappend&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Zhiming&lt;/P&gt;</description>
      <pubDate>Wed, 17 Dec 2025 03:09:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Access-u-boot-varibale-from-linux-user-space/m-p/2264347#M242929</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2025-12-17T03:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: Access u-boot varibale from linux user space</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Access-u-boot-varibale-from-linux-user-space/m-p/2265712#M242961</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;After configuring fw_env.config in etc folder and running saveenv in U-Boot, I can access U-Boot environment variables from Linux user space.&lt;/P&gt;&lt;P&gt;However, we plan to remove the serial debugger later. In that case, we won’t be able to execute saveenv at the U-Boot prompt. Is there a way to automatically save the environment during the boot process?&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Kartheek&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 18 Dec 2025 06:10:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Access-u-boot-varibale-from-linux-user-space/m-p/2265712#M242961</guid>
      <dc:creator>kartheek</dc:creator>
      <dc:date>2025-12-18T06:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: Access u-boot varibale from linux user space</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Access-u-boot-varibale-from-linux-user-space/m-p/2266405#M242977</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;You can define a command in uboot env, then run it in &lt;STRONG&gt;mmcboot&lt;/STRONG&gt;(include/configs/&amp;lt;board&amp;gt;.h).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Zhiming&lt;/P&gt;</description>
      <pubDate>Fri, 19 Dec 2025 00:29:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Access-u-boot-varibale-from-linux-user-space/m-p/2266405#M242977</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2025-12-19T00:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Access u-boot varibale from linux user space</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Access-u-boot-varibale-from-linux-user-space/m-p/2267716#M243015</link>
      <description>&lt;P&gt;If you carefully read the u-boot documentation, you'll find that u-boot provides a complete solution. During u-boot compilation, `&lt;STRONG&gt;make u-boot-initial-env&lt;/STRONG&gt;` generates default u-boot environment variables. `fw_printenv`/`fw_setenv` can use the `-f` parameter on the first run to access this default u-boot environment variable file. This is also the method used by swupate on its first run.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Dec 2025 13:19:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Access-u-boot-varibale-from-linux-user-space/m-p/2267716#M243015</guid>
      <dc:creator>vopal</dc:creator>
      <dc:date>2025-12-22T13:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: Access u-boot varibale from linux user space</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Access-u-boot-varibale-from-linux-user-space/m-p/2267750#M243016</link>
      <description>&lt;P&gt;If I remember correctly, yocto generates a default environment variable file for u-boot by default.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Dec 2025 14:49:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Access-u-boot-varibale-from-linux-user-space/m-p/2267750#M243016</guid>
      <dc:creator>vopal</dc:creator>
      <dc:date>2025-12-22T14:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Access u-boot varibale from linux user space</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Access-u-boot-varibale-from-linux-user-space/m-p/2267764#M243017</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/224056"&gt;@kartheek&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This link is helpful.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/u-boot-environment-preset-for-sdcard-mirror/ta-p/1702549" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/u-boot-environment-preset-for-sdcard-mirror/ta-p/1702549&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Dec 2025 15:07:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Access-u-boot-varibale-from-linux-user-space/m-p/2267764#M243017</guid>
      <dc:creator>vopal</dc:creator>
      <dc:date>2025-12-22T15:07:44Z</dc:date>
    </item>
  </channel>
</rss>

