<?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: How to modify U-boot configuration in Linux user space in Layerscape</title>
    <link>https://community.nxp.com/t5/Layerscape/How-to-modify-U-boot-configuration-in-Linux-user-space/m-p/1642119#M12360</link>
    <description>&lt;P&gt;Hi, I am using flex-build (ls1046ardb ) in that fw_env.config file was there in u-boot/tool/env but not located in /etc folder all are files are is there related fw_printenv and fw_setenv but when I am giving command fw_printenv and fw_setenv commands I am getting error like fw_printenv command not found .I tried to install sudo apt-get install u-boot-tools its showing already installed u-boot-tools&amp;nbsp;&lt;/P&gt;&lt;P&gt;can&amp;nbsp; anybody help me how to enable fw_printenv and fw_setenv commands and it works in target baord&lt;/P&gt;</description>
    <pubDate>Fri, 28 Apr 2023 08:16:23 GMT</pubDate>
    <dc:creator>shirishaReddy</dc:creator>
    <dc:date>2023-04-28T08:16:23Z</dc:date>
    <item>
      <title>How to modify U-boot configuration in Linux user space</title>
      <link>https://community.nxp.com/t5/Layerscape/How-to-modify-U-boot-configuration-in-Linux-user-space/m-p/918642#M4373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to change the u-boot variable in the linux userspace instead of the u-boot prompt window before starting kernel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using lsdk1906 and my kernel is 4.19. I am booting from SD card.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I heard there is a way to do that by downloading the u-boot-tools&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;After I&amp;nbsp;run "apt-get install u-boot-tools"&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;then I perform&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;fw_printenv in the linux it tells me that&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Cannot parse config file '/etc/fw_env.config': No such file or directory&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;I checked this link:&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;A class="link-titled" href="http://www.armadeus.org/wiki/index.php?title=Accessing_U-Boot_environment_variables_from_Linux" rel="nofollow noopener noreferrer" title="http://www.armadeus.org/wiki/index.php?title=Accessing_U-Boot_environment_variables_from_Linux" target="_blank"&gt;Accessing U-Boot environment variables from Linux - ArmadeusWiki&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;I need to know&amp;nbsp;&lt;/P&gt;&lt;PRE class="" style="color: #dddddd; background-color: black; border: 1px dashed #00ff00; font-size: 9pt; padding: 1em;"&gt;# MTD device name       Device offset   Env. size       Flash sector size       Number of sectors&lt;/PRE&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;I do not know what is the value of the location of my uboot.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Can anyone help?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Sep 2019 13:01:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/How-to-modify-U-boot-configuration-in-Linux-user-space/m-p/918642#M4373</guid>
      <dc:creator>jiye</dc:creator>
      <dc:date>2019-09-26T13:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify U-boot configuration in Linux user space</title>
      <link>https://community.nxp.com/t5/Layerscape/How-to-modify-U-boot-configuration-in-Linux-user-space/m-p/918643#M4374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; background: white;"&gt;See attached file. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; background: white;"&gt;This file is available using the following path in LSDK 1906:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; background: white;"&gt;/LSDK_1906/flexbuild_lsdk1906/packages/firmware/u-boot/tools/env&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Pavel Chubakov&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2019 05:00:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/How-to-modify-U-boot-configuration-in-Linux-user-space/m-p/918643#M4374</guid>
      <dc:creator>Pavel</dc:creator>
      <dc:date>2019-09-27T05:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify U-boot configuration in Linux user space</title>
      <link>https://community.nxp.com/t5/Layerscape/How-to-modify-U-boot-configuration-in-Linux-user-space/m-p/918644#M4375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(1) I did not see the u-boot folder under /&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;LSDK_1906/flexbuild_lsdk1906/packages/firmware&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I could only see&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Makefile pfe_bin uefi_bin&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;(2) regarding the REDEME file you sent it says&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;In order to cross-compile fw_printenv, run&lt;BR /&gt; make CROSS_COMPILE=&amp;lt;your cross-compiler prefix&amp;gt; envtools&lt;BR /&gt;in the root directory of the U-Boot distribution. For example,&lt;BR /&gt; make CROSS_COMPILE=arm-linux- envtools&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;where should I run this command is that under the&amp;nbsp;flexbuild_lsdk1906/build/linux/linux/arm32/LS/output/LSDK-19.06-V4.19 ?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Sep 2019 12:50:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/How-to-modify-U-boot-configuration-in-Linux-user-space/m-p/918644#M4375</guid>
      <dc:creator>jiye</dc:creator>
      <dc:date>2019-09-30T12:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify U-boot configuration in Linux user space</title>
      <link>https://community.nxp.com/t5/Layerscape/How-to-modify-U-boot-configuration-in-Linux-user-space/m-p/918645#M4376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when I was using&amp;nbsp;&amp;nbsp;make CROSS_COMPILE=arm-linux-gnueabihf- envtools&lt;/P&gt;&lt;P&gt;under&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;flexbuild_lsdk1906/build/linux/linux/arm32/LS/output/LSDK-19.06-V4.19&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I encountered an error says:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;make[2]: *** No rule to make target 'envtools'. Stop.&lt;BR /&gt;Makefile:146: recipe for target 'sub-make' failed&lt;BR /&gt;make[1]: *** [sub-make] Error 2&lt;BR /&gt;Makefile:24: recipe for target '__sub-make' failed&lt;BR /&gt;make: *** [__sub-make] Error 2&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Sep 2019 13:15:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/How-to-modify-U-boot-configuration-in-Linux-user-space/m-p/918645#M4376</guid>
      <dc:creator>jiye</dc:creator>
      <dc:date>2019-09-30T13:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify U-boot configuration in Linux user space</title>
      <link>https://community.nxp.com/t5/Layerscape/How-to-modify-U-boot-configuration-in-Linux-user-space/m-p/918646#M4377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #201f1e; background: white;"&gt;fw_printenv is built into LSDK1906 Ubuntu rootfs by default. Just need to create /etc/fw_env.config and edit it to:&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #201f1e;"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN style="background: white;"&gt;/dev/mtd0 0x60000000 0x2000 0x100000&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; See some message example below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #201f1e; background: white;"&gt;root@localhost:~# fw_printenv&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #201f1e;"&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;Warning: Bad CRC, using default environment&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;bootcmd=run distro_bootcmd&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;bootdelay=2&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;baudrate=115200&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;stdin=serial,cros-ec-keyb,usbkbd&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;stdout=serial,vidconsole&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;stderr=serial,vidconsole&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;ethaddr=00:00:11:22:33:44&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;eth1addr=00:00:11:22:33:45&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;eth3addr=00:00:11:22:33:46&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;eth5addr=00:00:11:22:33:47&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;ipaddr=1.2.3.4&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;host_boot=if host dev ${devnum}; then setenv devtype host; run scan_dev_for_boot_part; fi&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;sata_boot=if sata dev ${devnum}; then setenv devtype sata; run scan_dev_for_boot_part; fi&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;scsi_init=if ${scsi_need_init}; then setenv scsi_need_init false; scsi scan; fi&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;scsi_boot=run scsi_init; if scsi dev ${devnum}; then setenv devtype scsi; run scan_dev_for_boot_part; fi&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;boot_prefixes=/ /boot/&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;boot_scripts=boot.scr.uimg boot.scr&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;boot_script_dhcp=boot.scr.uimg&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;boot_targets=host1 host0&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}extlinux/extlinux.conf&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}extlinux/extlinux.conf; then echo Found ${prefix}extlinux/extlinux.conf; run boot_extlinux; echo SCRIPT FAILED: continuing...; fi&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr}&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${prefix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scripts; done;&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fstype ${devtype} ${devnum}:${distro_bootpart} bootfstype; then run scan_dev_for_boot; fi; done&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;bootcmd_host1=setenv devnum 1; run host_boot&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;bootcmd_host0=setenv devnum 0; run host_boot&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;distro_bootcmd=setenv scsi_need_init; for target in ${boot_targets}; do run bootcmd_${target}; done&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;bootm_size=0x10000000&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;kernel_addr_r=0x1000000&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;fdt_addr_r=0xc00000&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;ramdisk_addr_r=0x2000000&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;scriptaddr=0x1000&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;pxefile_addr_r=0x2000&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background: white;"&gt;&lt;A href="mailto:root@localhost:~"&gt;root@localhost:~#&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #201f1e; background: white; font-size: 10.0pt; "&gt;Have a great day,&lt;BR /&gt;Pavel Chubakov&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Oct 2019 01:23:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/How-to-modify-U-boot-configuration-in-Linux-user-space/m-p/918646#M4377</guid>
      <dc:creator>Pavel</dc:creator>
      <dc:date>2019-10-02T01:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify U-boot configuration in Linux user space</title>
      <link>https://community.nxp.com/t5/Layerscape/How-to-modify-U-boot-configuration-in-Linux-user-space/m-p/918647#M4378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yeah but yours showing CRC error which means it’s not access the right location of the u-boot. Which means it’s not taking effective otherwise your eth address should be some real mac addresses. Also my device is booting from SD card and once I am in the userspace I could not find /proc/mtd&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Besides, in the fw_env.config file should it be /dev/mmcblk0 and it’s sector size and offset ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also do i need to set CONFIG_MTD = y during the kernel compilation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Oct 2019 02:12:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/How-to-modify-U-boot-configuration-in-Linux-user-space/m-p/918647#M4378</guid>
      <dc:creator>jiye</dc:creator>
      <dc:date>2019-10-02T02:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify U-boot configuration in Linux user space</title>
      <link>https://community.nxp.com/t5/Layerscape/How-to-modify-U-boot-configuration-in-Linux-user-space/m-p/918648#M4379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: windowtext;"&gt;Set the &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;CONFIG_MTD = y.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: windowtext;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: windowtext;"&gt;See README and example from LSDK 1906 in the attachment.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #201f1e; background: white; font-size: 10.0pt;"&gt;Have a great day,&lt;BR /&gt;Pavel Chubakov&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Oct 2019 05:52:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/How-to-modify-U-boot-configuration-in-Linux-user-space/m-p/918648#M4379</guid>
      <dc:creator>Pavel</dc:creator>
      <dc:date>2019-10-07T05:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify U-boot configuration in Linux user space</title>
      <link>https://community.nxp.com/t5/Layerscape/How-to-modify-U-boot-configuration-in-Linux-user-space/m-p/1642119#M12360</link>
      <description>&lt;P&gt;Hi, I am using flex-build (ls1046ardb ) in that fw_env.config file was there in u-boot/tool/env but not located in /etc folder all are files are is there related fw_printenv and fw_setenv but when I am giving command fw_printenv and fw_setenv commands I am getting error like fw_printenv command not found .I tried to install sudo apt-get install u-boot-tools its showing already installed u-boot-tools&amp;nbsp;&lt;/P&gt;&lt;P&gt;can&amp;nbsp; anybody help me how to enable fw_printenv and fw_setenv commands and it works in target baord&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2023 08:16:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/How-to-modify-U-boot-configuration-in-Linux-user-space/m-p/1642119#M12360</guid>
      <dc:creator>shirishaReddy</dc:creator>
      <dc:date>2023-04-28T08:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify U-boot configuration in Linux user space</title>
      <link>https://community.nxp.com/t5/Layerscape/How-to-modify-U-boot-configuration-in-Linux-user-space/m-p/2020866#M15235</link>
      <description>&lt;P&gt;I know I am little late to the discussion but this is how i was able to fetch and set the u-boot environment variables from Userspace. Firstly install u-boot-fw-utils package from which you can get the fw_printenv and fw_setenv binaries in /sbin.&lt;/P&gt;&lt;P&gt;Also it will create the fw_env.config file in the path /etc. And the format of the file is as follows&lt;/P&gt;&lt;P&gt;# Device name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Offset&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Size&lt;BR /&gt;/dev/mmcblk0p1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xE0000 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x20000&lt;/P&gt;&lt;P&gt;There are some other parameters too like number of sectors and etc but all those are optional. Only the Offset and Size are mandatory params. These values you can get from the u-boot config file which is located in the path include/config inside your u-boot-source. If you can't find the u-boot source you need to patch it using the command &lt;STRONG&gt;bitbake -c patch virtual/bootloader &lt;/STRONG&gt;. Search for the values &lt;STRONG&gt;CONFIG_ENV_OFFSET&lt;/STRONG&gt; and&amp;nbsp;&lt;STRONG&gt;CONFIG_ENV_SIZE&lt;/STRONG&gt; in your board specific header file (as long as you use the default bootloader config). Mention these 2 values in the fw_env.config.&lt;/P&gt;&lt;P&gt;If the values are correct then you can get all the u-boot env params from linux userspace without any Bad CRC errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jan 2025 04:32:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/How-to-modify-U-boot-configuration-in-Linux-user-space/m-p/2020866#M15235</guid>
      <dc:creator>pvsnsubhash</dc:creator>
      <dc:date>2025-01-01T04:32:06Z</dc:date>
    </item>
  </channel>
</rss>

