<?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: Enabling uboot.env in LA1224RDB in Layerscape</title>
    <link>https://community.nxp.com/t5/Layerscape/Enabling-uboot-env-in-LA1224RDB/m-p/1645286#M12401</link>
    <description>&lt;P&gt;You could execute the following command to save u-boot env in&amp;nbsp;/uboot.env.&lt;/P&gt;
&lt;P&gt;# fw_printenv -c /etc/fw_env.config&amp;gt;/uboot.env&lt;/P&gt;</description>
    <pubDate>Fri, 05 May 2023 07:19:33 GMT</pubDate>
    <dc:creator>yipingwang</dc:creator>
    <dc:date>2023-05-05T07:19:33Z</dc:date>
    <item>
      <title>Enabling uboot.env in LA1224RDB</title>
      <link>https://community.nxp.com/t5/Layerscape/Enabling-uboot-env-in-LA1224RDB/m-p/1644678#M12396</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Let me explain my issues in detail. My requirement is to change the value of the u-boot environment variable in Linux user space, which should be reflected back in the u-boot on LA1224RDB using SDK 2.2. In which, I have added a new environment variable named slot=1 in the file include/configs/lx2160a_common.h in the u-boot source code. But, I need to change the variable in linux user space. So further I tried to create a file to store the u-boot environment variable, so I enabled the file in tools/env/fw_env.config to save the u-boot environment variables, as below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#cat /etc/fw_env.config&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;# On a block device a negative offset is treated as a backwards offset from the&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;# end of the device/partition, rather than a forwards offset from the start.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;# Block device example&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/dev/mmcblk1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0x500000&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0x2000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/dev/mmcblk1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0x500000&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0x2000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;# VFAT example&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/uboot.env &amp;nbsp; &amp;nbsp; 0x0000&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0x4000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My issue is that when i try to store the u-boot environment variable in a file named uboot.env, i couldn’t be able to create the file that stores the variable. I tried to enable the file to store the u-boot environment variable in deconfig file and but i couldn’t find the uboot.env file in linux user space.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;Changes in kernel and u-boot:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In include/configs/lx2160a_common.h,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#define CONFIG_SYS_MMC_ENV_DEV&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 —-&amp;gt; 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In configs/la1224rdb_tfa_defconfig&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CONFIG_ENV_IS_IN_EXT4=y&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CONFIG_ENV_EXT4_INTERFACE="mmc"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CONFIG_ENV_EXT4_DEVICE_AND_PART="1:2"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CONFIG_ENV_EXT4_FILE="/uboot.env"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 12:09:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Enabling-uboot-env-in-LA1224RDB/m-p/1644678#M12396</guid>
      <dc:creator>harisankar2001</dc:creator>
      <dc:date>2023-05-04T12:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling uboot.env in LA1224RDB</title>
      <link>https://community.nxp.com/t5/Layerscape/Enabling-uboot-env-in-LA1224RDB/m-p/1645286#M12401</link>
      <description>&lt;P&gt;You could execute the following command to save u-boot env in&amp;nbsp;/uboot.env.&lt;/P&gt;
&lt;P&gt;# fw_printenv -c /etc/fw_env.config&amp;gt;/uboot.env&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 07:19:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Enabling-uboot-env-in-LA1224RDB/m-p/1645286#M12401</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2023-05-05T07:19:33Z</dc:date>
    </item>
  </channel>
</rss>

