<?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: What should I do to use fw_printenv/setenv on imx8mm? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/What-should-I-do-to-use-fw-printenv-setenv-on-imx8mm/m-p/1980689#M230076</link>
    <description>&lt;P&gt;Hi, tavim.&lt;BR /&gt;&lt;BR /&gt;Thanks for reply.&lt;BR /&gt;What kind of problem will be occurred?&lt;/P&gt;</description>
    <pubDate>Thu, 24 Oct 2024 03:03:31 GMT</pubDate>
    <dc:creator>takeshi100</dc:creator>
    <dc:date>2024-10-24T03:03:31Z</dc:date>
    <item>
      <title>What should I do to use fw_printenv/setenv on imx8mm?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/What-should-I-do-to-use-fw-printenv-setenv-on-imx8mm/m-p/1974088#M229692</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;What should I do to use fw_printenv/setenv on imx8mm?&lt;/P&gt;&lt;P&gt;【C&lt;SPAN&gt;onditions&lt;/SPAN&gt;】&lt;/P&gt;&lt;P&gt;・hardware: imx8mm(on custom board)&lt;/P&gt;&lt;P&gt;・bsp: imx 6.1.55-2.2.0&lt;/P&gt;&lt;P&gt;・base image: core-image-minimal&lt;BR /&gt;・IMAGE_INSTALL += "u-boot-fw-utils"&lt;BR /&gt;・&lt;SPAN&gt;MACHINE&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;'imx8mm-lpddr4-evk'&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;・boot storage：emmc&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;【log】&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;root@XXX:~# fw_printenv&lt;BR /&gt;Configuration file wrong or corrupted&lt;/P&gt;&lt;P&gt;root@XXX:~# strace fw_printenv&lt;BR /&gt;(omit)&lt;BR /&gt;openat(AT_FDCWD, "/etc/fw_env.config", O_RDONLY) = -1 ENOENT (No such file or directory)&lt;BR /&gt;write(2, "Configuration file wrong or corr"..., 38Configuration file wrong or corrupted&lt;BR /&gt;) = 38&lt;BR /&gt;exit_group(-9) = ?&lt;BR /&gt;+++ exited with 247 +++&lt;/P&gt;&lt;P&gt;root@XXX:~# fdisk -l&lt;BR /&gt;Disk /dev/mmcblk2: 7456 MB, 7818182656 bytes, 15269888 sectors&lt;BR /&gt;119296 cylinders, 4 heads, 32 sectors/track&lt;BR /&gt;Units: sectors of 1 * 512 = 512 bytes&lt;/P&gt;&lt;P&gt;Device Boot StartCHS EndCHS StartLBA EndLBA Sectors Size Id Type&lt;BR /&gt;/dev/mmcblk2p1 * 128,0,1 1023,3,32 16384 186775 170392 83.1M c Win95 FAT32 (LBA)&lt;BR /&gt;/dev/mmcblk2p2 1023,3,32 1023,3,32 196608 1596821 1400214 683M 83 Linux&lt;BR /&gt;/dev/mmcblk2p3 1023,3,32 1023,3,32 1605632 2968779 1363148 665M c Win95 FAT32 (LBA)&lt;BR /&gt;Disk /dev/mmcblk2boot0: 4 MB, 4194304 bytes, 8192 sectors&lt;BR /&gt;128 cylinders, 4 heads, 16 sectors/track&lt;BR /&gt;Units: sectors of 1 * 512 = 512 bytes&lt;/P&gt;&lt;P&gt;Disk /dev/mmcblk2boot0 doesn't contain a valid partition table&lt;BR /&gt;Disk /dev/mmcblk2boot1: 4 MB, 4194304 bytes, 8192 sectors&lt;BR /&gt;128 cylinders, 4 heads, 16 sectors/track&lt;BR /&gt;Units: sectors of 1 * 512 = 512 bytes&lt;/P&gt;&lt;P&gt;Disk /dev/mmcblk2boot1 doesn't contain a valid partition table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 08:58:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/What-should-I-do-to-use-fw-printenv-setenv-on-imx8mm/m-p/1974088#M229692</guid>
      <dc:creator>takeshi100</dc:creator>
      <dc:date>2024-10-15T08:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: What should I do to use fw_printenv/setenv on imx8mm?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/What-should-I-do-to-use-fw-printenv-setenv-on-imx8mm/m-p/1974864#M229741</link>
      <description>&lt;P&gt;You can refer to this&amp;nbsp;&lt;A href="https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/Linux-fw-printenv-fw-setenv-to-access-U-Boot-s-environment/ta-p/1121201" target="_blank"&gt;Linux fw_printenv fw_setenv to access U-Boot's environment variables - NXP Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2024 06:35:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/What-should-I-do-to-use-fw-printenv-setenv-on-imx8mm/m-p/1974864#M229741</guid>
      <dc:creator>Rita_Wang</dc:creator>
      <dc:date>2024-10-16T06:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: What should I do to use fw_printenv/setenv on imx8mm?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/What-should-I-do-to-use-fw-printenv-setenv-on-imx8mm/m-p/1977878#M229904</link>
      <description>&lt;P&gt;I'm not sure where the address of uboot env is set...&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2024 07:31:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/What-should-I-do-to-use-fw-printenv-setenv-on-imx8mm/m-p/1977878#M229904</guid>
      <dc:creator>takeshi100</dc:creator>
      <dc:date>2024-10-21T07:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: What should I do to use fw_printenv/setenv on imx8mm?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/What-should-I-do-to-use-fw-printenv-setenv-on-imx8mm/m-p/1980174#M230038</link>
      <description>&lt;P&gt;This problem is solved.&lt;/P&gt;&lt;P&gt;1. The following is set in the config of u-boot.&lt;BR /&gt;CONFIG_SYS_MMC_ENV_DEV=2&lt;BR /&gt;CONFIG_SYS_MMC_ENV_PART=2&lt;BR /&gt;CONFIG_ENV_OFFSET=0x0&lt;BR /&gt;&lt;BR /&gt;2. The following is set in /etc/fw_env.config&lt;BR /&gt;/dev/mmcblk2boot1 0x0 0x4000&lt;BR /&gt;&lt;BR /&gt;N.B.&lt;BR /&gt;- CONFIG_SYS_MMC_ENV_DEV=2 means that there are u-boot-env in the mmcblk2.&lt;BR /&gt;- CONFIG_SYS_MMC_ENV_PART=2 means that there are u-boot-env in the mmcblk2boot1.&lt;BR /&gt;- CONFIG_ENV_OFFSET=0x0 means that u-boot-env is putted on no offset of the mmcblk2boot1.&lt;BR /&gt;- 0x4000 is default value of CONFIG_ENV_SIZE in imx8mm-evk.&lt;BR /&gt;- However, you cannot use fw_printenv/fw_setenv unless you run saveenv once in uboot or write u-boot-imx-initial-env-sd to mmcblk2boot1, because nothing is set in mmcblk2boot1.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 11:31:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/What-should-I-do-to-use-fw-printenv-setenv-on-imx8mm/m-p/1980174#M230038</guid>
      <dc:creator>takeshi100</dc:creator>
      <dc:date>2024-10-23T11:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: What should I do to use fw_printenv/setenv on imx8mm?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/What-should-I-do-to-use-fw-printenv-setenv-on-imx8mm/m-p/1980555#M230065</link>
      <description>&lt;P&gt;You will face big problem saving env to eMMC boot partition than in user partition.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 23:45:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/What-should-I-do-to-use-fw-printenv-setenv-on-imx8mm/m-p/1980555#M230065</guid>
      <dc:creator>tavim</dc:creator>
      <dc:date>2024-10-23T23:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: What should I do to use fw_printenv/setenv on imx8mm?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/What-should-I-do-to-use-fw-printenv-setenv-on-imx8mm/m-p/1980689#M230076</link>
      <description>&lt;P&gt;Hi, tavim.&lt;BR /&gt;&lt;BR /&gt;Thanks for reply.&lt;BR /&gt;What kind of problem will be occurred?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2024 03:03:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/What-should-I-do-to-use-fw-printenv-setenv-on-imx8mm/m-p/1980689#M230076</guid>
      <dc:creator>takeshi100</dc:creator>
      <dc:date>2024-10-24T03:03:31Z</dc:date>
    </item>
  </channel>
</rss>

