<?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>LayerscapeのトピックAccess U-boot env variables in LS1046ARDB Linux user space</title>
    <link>https://community.nxp.com/t5/Layerscape/Access-U-boot-env-variables-in-LS1046ARDB-Linux-user-space/m-p/1524124#M11183</link>
    <description>&lt;P&gt;I am working with LS1046ARDB Evaluation Board to develop a network based application. I have started my project with Flex-builder(flexbuild_lsdk2108), Flex-installer(version: 1.13.2108) and Codewarrior IDE.&lt;/P&gt;&lt;P&gt;I have download the images from &lt;A href="https://lsdk.github.io/components.html" target="_blank"&gt;https://lsdk.github.io/components.html&lt;/A&gt;&lt;BR /&gt;boot_LS -&amp;gt; wget &lt;A href="https://www.nxp.com/lgfiles/sdk/lsdk2108/boot_LS_arm64_lts_5.10.tgz" target="_blank"&gt;https://www.nxp.com/lgfiles/sdk/lsdk2108/boot_LS_arm64_lts_5.10.tgz&lt;/A&gt;&lt;BR /&gt;firmware image -&amp;gt; wget &lt;A href="https://www.nxp.com/lgfiles/sdk/lsdk2108/firmware_ls1046ardb_sdboot.img" target="_blank"&gt;https://www.nxp.com/lgfiles/sdk/lsdk2108/firmware_ls1046ardb_sdboot.img&lt;/A&gt;&lt;BR /&gt;Rootfs -&amp;gt; wget &lt;A href="https://www.nxp.com/lgfiles/sdk/lsdk2108/rootfs_lsdk2108_ubuntu_main_arm64.tgz" target="_blank"&gt;https://www.nxp.com/lgfiles/sdk/lsdk2108/rootfs_lsdk2108_ubuntu_main_arm64.tgz&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I have depolyed the image's in SD card through flex-installer:&lt;/P&gt;&lt;P&gt;$ flex-installer -i pf -d /dev/sdx (partition and format the target storage device)&lt;BR /&gt;$ sudo flex-installer -b boot_LS_arm64_lts_5.10.tgz -r rootfs_lsdk2108_ubuntu_main_arm64.tgz -f firmware_ls1046ardb_sdboot.img -d /dev/sdx&lt;/P&gt;&lt;P&gt;I have booted the board using SD card&lt;/P&gt;&lt;P&gt;u-boot log :&lt;/P&gt;&lt;P&gt;NOTICE: UDIMM 18ASF2G72AZ-2G6D1&lt;/P&gt;&lt;P&gt;NOTICE: 16 GB DDR4, 64-bit, CL=15, ECC on, CS0+CS1&lt;BR /&gt;NOTICE: BL2: v2.4(release):LSDK-21.08-0-g340b20bcb&lt;BR /&gt;NOTICE: BL2: Built : 12:17:37, Jul 1 2022&lt;BR /&gt;NOTICE: BL2: Booting BL31&lt;BR /&gt;NOTICE: BL31: v2.4(release):LSDK-21.08-0-g340b20bcb&lt;BR /&gt;NOTICE: BL31: Built : 12:17:44, Jul 1 2022&lt;BR /&gt;NOTICE: Welcome to ls1046ardb BL31 Phase&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;U-Boot 2021.04&lt;/STRONG&gt; (Jul 01 2022 - 12:17:22 +0530)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SoC: LS1046AE Rev1.0 (0x87070010)&lt;/STRONG&gt;&lt;BR /&gt;Clock Configuration:&lt;BR /&gt;CPU0(A72):1800 MHz CPU1(A72):1800 MHz CPU2(A72):1800 MHz&lt;BR /&gt;CPU3(A72):1800 MHz&lt;BR /&gt;Bus: 600 MHz DDR: 2100 MT/s FMAN: 700 MHz&lt;BR /&gt;Reset Configuration Word (RCW):&lt;BR /&gt;00000000: 0c150012 0e000000 00000000 00000000&lt;BR /&gt;00000010: 11335559 40005012 60040000 c1000000&lt;BR /&gt;00000020: 00000000 00000000 00000000 00238800&lt;BR /&gt;00000030: 20124000 00003101 00000096 00000001&lt;BR /&gt;Model: LS1046A RDB Board&lt;BR /&gt;&lt;STRONG&gt;Board: LS1046ARDB, boot from SD&lt;/STRONG&gt;&lt;BR /&gt;CPLD: V2.3&lt;BR /&gt;PCBA: V2.0&lt;BR /&gt;SERDES Reference Clocks:&lt;BR /&gt;SD1_CLK1 = 156.25MHZ, SD1_CLK2 = 100.00MHZ&lt;BR /&gt;DRAM: 15.9 GiB (DDR4, 64-bit, CL=15, ECC on)&lt;BR /&gt;DDR Chip-Select Interleaving Mode: CS0+CS1&lt;BR /&gt;Using SERDES1 Protocol: 4403 (0x1133)&lt;BR /&gt;Using SERDES2 Protocol: 21849 (0x5559)&lt;BR /&gt;&lt;STRONG&gt;NAND: 512 MiB&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;MMC: FSL_SDHC: 0&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Loading Environment from MMC... OK&lt;/STRONG&gt;&lt;BR /&gt;EEPROM: NXID v1&lt;BR /&gt;In: serial&lt;BR /&gt;Out: serial&lt;BR /&gt;Err: serial&lt;BR /&gt;SEC0: RNG instantiated&lt;BR /&gt;Net:&lt;BR /&gt;&lt;STRONG&gt;MMC read: dev # 0, block # 18432, count 128 ...&lt;/STRONG&gt;&lt;BR /&gt;Fman1: Uploading microcode version 106.4.18&lt;BR /&gt;eth0: fm1-mac3, eth1: fm1-mac4, eth2: fm1-mac5, eth3: fm1-mac6, eth4: fm1-mac9, eth5: fm1-mac10&lt;BR /&gt;Hit any key to stop autoboot: 0&lt;/P&gt;&lt;P&gt;=&amp;gt;&amp;nbsp;&lt;STRONG&gt;printenv&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I attached the printenv output stored in&lt;STRONG&gt; printenv.log&amp;nbsp;&lt;/STRONG&gt;file which in u-boot&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;root@localhost:/home/user# ll /dev/mtd*&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;crw------- 1 root root 90, 0 Sep 19 10:17 /dev/mtd0&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;crw------- 1 root root 90, 1 Sep 19 10:17 /dev/mtd0ro&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;crw------- 1 root root 90, 2 Sep 19 10:17 /dev/mtd1&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;crw------- 1 root root 90, 3 Sep 19 10:17 /dev/mtd1ro&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;crw------- 1 root root 90, 4 Sep 19 10:17 /dev/mtd2&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;crw------- 1 root root 90, 5 Sep 19 10:17 /dev/mtd2ro&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;brw-rw---- 1 root disk 31, 0 Sep 19 10:17 /dev/mtdblock0&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;brw-rw---- 1 root disk 31, 1 Sep 19 10:17 /dev/mtdblock1&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;brw-rw---- 1 root disk 31, 2 Sep 19 10:17 /dev/mtdblock2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;root@localhost:/home/user# ll /dev/mmcblk*&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;brw-rw---- 1 root disk 179, 0 Sep 19 10:17 /dev/mmcblk0&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;brw-rw---- 1 root disk 179, 1 Sep 19 10:17 /dev/mmcblk0p1&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;brw-rw---- 1 root disk 179, 2 Sep 19 10:17 /dev/mmcblk0p2&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;brw-rw---- 1 root disk 179, 3 Sep 19 10:17 /dev/mmcblk0p3&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;brw-rw---- 1 root disk 179, 4 Sep 19 10:17 /dev/mmcblk0p4&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;root@localhost:/home/user# cat /proc/mtd &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;dev: size erasesize name&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;mtd0: 20000000 00040000 "7e800000.flash"&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;mtd1: 04000000 00040000 "1550000.spi-0"&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;mtd2: 04000000 00040000 "1550000.spi-1"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;My requirement is to update the u-boot variables through linux userspace, according to above bootlog i have flashed the image in SD card and booted the board through SD card option. U-boot environment is also store and read from SD(MMC).&lt;/P&gt;&lt;P&gt;I refered the following files to find SD card &lt;STRONG&gt;env offset, env size&lt;/STRONG&gt; to update /etc/fw_env.config for fw_printenv and fw_setenv.&lt;/P&gt;&lt;P&gt;&amp;lt;flex-builder-root-dir&amp;gt;/components/firmware/uboot/configs/ls1046ardb_sdcard_defconfig&lt;BR /&gt;&amp;lt;flex-builder-root-dir&amp;gt;/docs/memory_layout.txt&lt;BR /&gt;&amp;lt;flex-builder-root-dir&amp;gt;/components/firmware/uboot/tools/env/fw_env.config&lt;BR /&gt;&amp;lt;flex-builder-root-dir&amp;gt;/components/firmware/uboot/tools/env/README&lt;/P&gt;&lt;P&gt;I have update the &lt;STRONG&gt;ENV_OFFSET &amp;amp; ENV_SIZE in fw_env.config&lt;/STRONG&gt; in /etc according to above files.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;root@localhost:~# fw_printenv -c /etc/fw_env.config &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Environment WRONG, copy 0&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Cannot read environment, using default&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Cannot read default environment from file&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;After running &lt;STRONG&gt;fw_printenv&lt;/STRONG&gt;, it shows cannot read environment. It sounds like i'm looking in wrong address space, can you guide me to find the correct offset and size?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks In advance&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Sep 2022 08:17:19 GMT</pubDate>
    <dc:creator>sheikfaaruk</dc:creator>
    <dc:date>2022-09-19T08:17:19Z</dc:date>
    <item>
      <title>Access U-boot env variables in LS1046ARDB Linux user space</title>
      <link>https://community.nxp.com/t5/Layerscape/Access-U-boot-env-variables-in-LS1046ARDB-Linux-user-space/m-p/1524124#M11183</link>
      <description>&lt;P&gt;I am working with LS1046ARDB Evaluation Board to develop a network based application. I have started my project with Flex-builder(flexbuild_lsdk2108), Flex-installer(version: 1.13.2108) and Codewarrior IDE.&lt;/P&gt;&lt;P&gt;I have download the images from &lt;A href="https://lsdk.github.io/components.html" target="_blank"&gt;https://lsdk.github.io/components.html&lt;/A&gt;&lt;BR /&gt;boot_LS -&amp;gt; wget &lt;A href="https://www.nxp.com/lgfiles/sdk/lsdk2108/boot_LS_arm64_lts_5.10.tgz" target="_blank"&gt;https://www.nxp.com/lgfiles/sdk/lsdk2108/boot_LS_arm64_lts_5.10.tgz&lt;/A&gt;&lt;BR /&gt;firmware image -&amp;gt; wget &lt;A href="https://www.nxp.com/lgfiles/sdk/lsdk2108/firmware_ls1046ardb_sdboot.img" target="_blank"&gt;https://www.nxp.com/lgfiles/sdk/lsdk2108/firmware_ls1046ardb_sdboot.img&lt;/A&gt;&lt;BR /&gt;Rootfs -&amp;gt; wget &lt;A href="https://www.nxp.com/lgfiles/sdk/lsdk2108/rootfs_lsdk2108_ubuntu_main_arm64.tgz" target="_blank"&gt;https://www.nxp.com/lgfiles/sdk/lsdk2108/rootfs_lsdk2108_ubuntu_main_arm64.tgz&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I have depolyed the image's in SD card through flex-installer:&lt;/P&gt;&lt;P&gt;$ flex-installer -i pf -d /dev/sdx (partition and format the target storage device)&lt;BR /&gt;$ sudo flex-installer -b boot_LS_arm64_lts_5.10.tgz -r rootfs_lsdk2108_ubuntu_main_arm64.tgz -f firmware_ls1046ardb_sdboot.img -d /dev/sdx&lt;/P&gt;&lt;P&gt;I have booted the board using SD card&lt;/P&gt;&lt;P&gt;u-boot log :&lt;/P&gt;&lt;P&gt;NOTICE: UDIMM 18ASF2G72AZ-2G6D1&lt;/P&gt;&lt;P&gt;NOTICE: 16 GB DDR4, 64-bit, CL=15, ECC on, CS0+CS1&lt;BR /&gt;NOTICE: BL2: v2.4(release):LSDK-21.08-0-g340b20bcb&lt;BR /&gt;NOTICE: BL2: Built : 12:17:37, Jul 1 2022&lt;BR /&gt;NOTICE: BL2: Booting BL31&lt;BR /&gt;NOTICE: BL31: v2.4(release):LSDK-21.08-0-g340b20bcb&lt;BR /&gt;NOTICE: BL31: Built : 12:17:44, Jul 1 2022&lt;BR /&gt;NOTICE: Welcome to ls1046ardb BL31 Phase&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;U-Boot 2021.04&lt;/STRONG&gt; (Jul 01 2022 - 12:17:22 +0530)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SoC: LS1046AE Rev1.0 (0x87070010)&lt;/STRONG&gt;&lt;BR /&gt;Clock Configuration:&lt;BR /&gt;CPU0(A72):1800 MHz CPU1(A72):1800 MHz CPU2(A72):1800 MHz&lt;BR /&gt;CPU3(A72):1800 MHz&lt;BR /&gt;Bus: 600 MHz DDR: 2100 MT/s FMAN: 700 MHz&lt;BR /&gt;Reset Configuration Word (RCW):&lt;BR /&gt;00000000: 0c150012 0e000000 00000000 00000000&lt;BR /&gt;00000010: 11335559 40005012 60040000 c1000000&lt;BR /&gt;00000020: 00000000 00000000 00000000 00238800&lt;BR /&gt;00000030: 20124000 00003101 00000096 00000001&lt;BR /&gt;Model: LS1046A RDB Board&lt;BR /&gt;&lt;STRONG&gt;Board: LS1046ARDB, boot from SD&lt;/STRONG&gt;&lt;BR /&gt;CPLD: V2.3&lt;BR /&gt;PCBA: V2.0&lt;BR /&gt;SERDES Reference Clocks:&lt;BR /&gt;SD1_CLK1 = 156.25MHZ, SD1_CLK2 = 100.00MHZ&lt;BR /&gt;DRAM: 15.9 GiB (DDR4, 64-bit, CL=15, ECC on)&lt;BR /&gt;DDR Chip-Select Interleaving Mode: CS0+CS1&lt;BR /&gt;Using SERDES1 Protocol: 4403 (0x1133)&lt;BR /&gt;Using SERDES2 Protocol: 21849 (0x5559)&lt;BR /&gt;&lt;STRONG&gt;NAND: 512 MiB&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;MMC: FSL_SDHC: 0&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Loading Environment from MMC... OK&lt;/STRONG&gt;&lt;BR /&gt;EEPROM: NXID v1&lt;BR /&gt;In: serial&lt;BR /&gt;Out: serial&lt;BR /&gt;Err: serial&lt;BR /&gt;SEC0: RNG instantiated&lt;BR /&gt;Net:&lt;BR /&gt;&lt;STRONG&gt;MMC read: dev # 0, block # 18432, count 128 ...&lt;/STRONG&gt;&lt;BR /&gt;Fman1: Uploading microcode version 106.4.18&lt;BR /&gt;eth0: fm1-mac3, eth1: fm1-mac4, eth2: fm1-mac5, eth3: fm1-mac6, eth4: fm1-mac9, eth5: fm1-mac10&lt;BR /&gt;Hit any key to stop autoboot: 0&lt;/P&gt;&lt;P&gt;=&amp;gt;&amp;nbsp;&lt;STRONG&gt;printenv&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I attached the printenv output stored in&lt;STRONG&gt; printenv.log&amp;nbsp;&lt;/STRONG&gt;file which in u-boot&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;root@localhost:/home/user# ll /dev/mtd*&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;crw------- 1 root root 90, 0 Sep 19 10:17 /dev/mtd0&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;crw------- 1 root root 90, 1 Sep 19 10:17 /dev/mtd0ro&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;crw------- 1 root root 90, 2 Sep 19 10:17 /dev/mtd1&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;crw------- 1 root root 90, 3 Sep 19 10:17 /dev/mtd1ro&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;crw------- 1 root root 90, 4 Sep 19 10:17 /dev/mtd2&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;crw------- 1 root root 90, 5 Sep 19 10:17 /dev/mtd2ro&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;brw-rw---- 1 root disk 31, 0 Sep 19 10:17 /dev/mtdblock0&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;brw-rw---- 1 root disk 31, 1 Sep 19 10:17 /dev/mtdblock1&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;brw-rw---- 1 root disk 31, 2 Sep 19 10:17 /dev/mtdblock2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;root@localhost:/home/user# ll /dev/mmcblk*&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;brw-rw---- 1 root disk 179, 0 Sep 19 10:17 /dev/mmcblk0&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;brw-rw---- 1 root disk 179, 1 Sep 19 10:17 /dev/mmcblk0p1&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;brw-rw---- 1 root disk 179, 2 Sep 19 10:17 /dev/mmcblk0p2&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;brw-rw---- 1 root disk 179, 3 Sep 19 10:17 /dev/mmcblk0p3&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;brw-rw---- 1 root disk 179, 4 Sep 19 10:17 /dev/mmcblk0p4&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;root@localhost:/home/user# cat /proc/mtd &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;dev: size erasesize name&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;mtd0: 20000000 00040000 "7e800000.flash"&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;mtd1: 04000000 00040000 "1550000.spi-0"&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;mtd2: 04000000 00040000 "1550000.spi-1"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;My requirement is to update the u-boot variables through linux userspace, according to above bootlog i have flashed the image in SD card and booted the board through SD card option. U-boot environment is also store and read from SD(MMC).&lt;/P&gt;&lt;P&gt;I refered the following files to find SD card &lt;STRONG&gt;env offset, env size&lt;/STRONG&gt; to update /etc/fw_env.config for fw_printenv and fw_setenv.&lt;/P&gt;&lt;P&gt;&amp;lt;flex-builder-root-dir&amp;gt;/components/firmware/uboot/configs/ls1046ardb_sdcard_defconfig&lt;BR /&gt;&amp;lt;flex-builder-root-dir&amp;gt;/docs/memory_layout.txt&lt;BR /&gt;&amp;lt;flex-builder-root-dir&amp;gt;/components/firmware/uboot/tools/env/fw_env.config&lt;BR /&gt;&amp;lt;flex-builder-root-dir&amp;gt;/components/firmware/uboot/tools/env/README&lt;/P&gt;&lt;P&gt;I have update the &lt;STRONG&gt;ENV_OFFSET &amp;amp; ENV_SIZE in fw_env.config&lt;/STRONG&gt; in /etc according to above files.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;root@localhost:~# fw_printenv -c /etc/fw_env.config &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Environment WRONG, copy 0&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Cannot read environment, using default&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Cannot read default environment from file&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;After running &lt;STRONG&gt;fw_printenv&lt;/STRONG&gt;, it shows cannot read environment. It sounds like i'm looking in wrong address space, can you guide me to find the correct offset and size?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks In advance&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 08:17:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Access-U-boot-env-variables-in-LS1046ARDB-Linux-user-space/m-p/1524124#M11183</guid>
      <dc:creator>sheikfaaruk</dc:creator>
      <dc:date>2022-09-19T08:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Access U-boot env variables in LS1046ARDB Linux user space</title>
      <link>https://community.nxp.com/t5/Layerscape/Access-U-boot-env-variables-in-LS1046ARDB-Linux-user-space/m-p/1524767#M11197</link>
      <description>According to the following definition in configs/ls1046ardb_tfa_defconfig.
CONFIG_ENV_SIZE=0x2000
CONFIG_ENV_OFFSET=0x500000
CONFIG_ENV_SECT_SIZE=0x40000

In Linux, please  configure /etc/fw_env.config as the following.

# device name       Device offset   Env. size       Flash sector size       
/dev/mmcblk0        0x500000        0x2000</description>
      <pubDate>Tue, 20 Sep 2022 07:17:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Access-U-boot-env-variables-in-LS1046ARDB-Linux-user-space/m-p/1524767#M11197</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2022-09-20T07:17:03Z</dc:date>
    </item>
  </channel>
</rss>

