<?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>i.MX Processors中的主题 Re: IMX6 SWUpdate fw-setenv corrupted file</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-SWUpdate-fw-setenv-corrupted-file/m-p/1599648#M201557</link>
    <description>&lt;P&gt;So I got it! I changes fw_env.config to contain&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/dev/mmcblk1 0xE0000 0x2000&lt;BR /&gt;/dev/mmcblk1 0xE2000 0x2000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;fw_printenv now works. Testing to see if I can set custom variables now.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Feb 2023 14:23:55 GMT</pubDate>
    <dc:creator>MichaelBMiner</dc:creator>
    <dc:date>2023-02-15T14:23:55Z</dc:date>
    <item>
      <title>IMX6 SWUpdate fw-setenv corrupted file</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-SWUpdate-fw-setenv-corrupted-file/m-p/1595037#M201182</link>
      <description>&lt;P&gt;It has taken a long time but I am able to build and run a SWUpdate kernel. Now I am attempting to communicate between Linux and the Bootloader using fw_setenv.&amp;nbsp;&lt;/P&gt;&lt;P&gt;To configure this I have&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;added IMAGE_INSTALL_append = "&amp;nbsp;u-boot-fw-utils" to my image bitbake file&lt;/LI&gt;&lt;LI&gt;added&amp;nbsp;PREFERRED_PROVIDER_u-boot-fw-utils = "libubootenv" to local.conf&lt;/LI&gt;&lt;LI&gt;Added a do install append to my u-boot-imx.bbappend to create /etc/fw_env.config&lt;/LI&gt;&lt;/OL&gt;&lt;LI-CODE lang="markup"&gt;FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
SRC_URI += "file://uboot.diff file://fw_env.config"

do_install_append () {
    install -d ${D}${sysconfdir}
    install -m 0644 ${WORKDIR}/fw_env.config ${D}${sysconfdir}/fw_env.config
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;With all of this when I boot into my application and run fw_setenv I always get&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;root@imx6ull14x14evk:~# fw_setenv SOME_SETTING 1
Configuration file wrong or corrupted&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 07 Feb 2023 21:21:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-SWUpdate-fw-setenv-corrupted-file/m-p/1595037#M201182</guid>
      <dc:creator>MichaelBMiner</dc:creator>
      <dc:date>2023-02-07T21:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6 SWUpdate fw-setenv corrupted file</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-SWUpdate-fw-setenv-corrupted-file/m-p/1596023#M201281</link>
      <description>&lt;P&gt;Looking at some PDFs I found from NXP I ran fdisk -l on my device and I see&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fdisk -l
Disk /dev/mmcblk1: 29 GB, 31292129280 bytes, 61117440 sectors
954960 cylinders, 4 heads, 16 sectors/track
Units: sectors of 1 * 512 = 512 bytes

Device       Boot StartCHS    EndCHS        StartLBA     EndLBA    Sectors  Size Id Type
/dev/mmcblk1p1 *  64,0,1      418,3,24          8192      53623      45432 22.1M  c Win95 FAT32 (LBA)
/dev/mmcblk1p2    448,0,1     1023,3,32        57344     575249     517906  252M 83 Linux&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I updated /etc/fw_env.config to be&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;/dev/mmcblk1p1 0xE0000 0x2000&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This now gives me the error&amp;nbsp;&lt;/P&gt;&lt;P&gt;fw_printenv&lt;BR /&gt;Cannot read environment, using default&lt;BR /&gt;Cannot read default environment from file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 00:19:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-SWUpdate-fw-setenv-corrupted-file/m-p/1596023#M201281</guid>
      <dc:creator>MichaelBMiner</dc:creator>
      <dc:date>2023-02-09T00:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6 SWUpdate fw-setenv corrupted file</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-SWUpdate-fw-setenv-corrupted-file/m-p/1596036#M201283</link>
      <description>&lt;P&gt;To be clear&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fdisk -l
Disk /dev/mmcblk1: 29 GB, 31292129280 bytes, 61117440 sectors
954960 cylinders, 4 heads, 16 sectors/track
Units: sectors of 1 * 512 = 512 bytes

Device       Boot StartCHS    EndCHS        StartLBA     EndLBA    Sectors  Size Id Type
/dev/mmcblk1p1 *  64,0,1      418,3,24          8192      53623      45432 22.1M  c Win95 FAT32 (LBA)
/dev/mmcblk1p2    448,0,1     1023,3,32        57344     575249     517906  252M 83 Linux&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the uboot config&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#define CONFIG_ENV_OFFSET 0xE0000
#define CONFIG_ENV_SIZE 0x2000
#define CONFIG_ENV_IS_IN_MMC 1&lt;/LI-CODE&gt;&lt;P&gt;So my /etc/fw_env.config contains&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;/dev/mmcblk1p1 0xE0000 0x2000&lt;/LI-CODE&gt;&lt;P&gt;So it seems everything is set correct. But when I try to print from linux I get&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fw_printenv
Cannot read environment, using default
Cannot read default environment from file&lt;/LI-CODE&gt;&lt;P&gt;What setting am I missing?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 00:21:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-SWUpdate-fw-setenv-corrupted-file/m-p/1596036#M201283</guid>
      <dc:creator>MichaelBMiner</dc:creator>
      <dc:date>2023-02-09T00:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6 SWUpdate fw-setenv corrupted file</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-SWUpdate-fw-setenv-corrupted-file/m-p/1597370#M201382</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/193268"&gt;@MichaelBMiner&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV&gt;I hope you are doing well.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Please include the below line in the board configuration header file.&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;#define CONFIG_SYS_MMC_ENV_PART 0.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Note: CONFIG_SYS_MMC_ENV_PART does not refer to software partitions, such as /dev/mmcblk2p1.&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Here, Partition 0 refers to the user area of emmc.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks &amp;amp; Regards,&lt;/DIV&gt;
&lt;DIV&gt;Sanket Parekh&lt;/DIV&gt;</description>
      <pubDate>Fri, 10 Feb 2023 13:44:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-SWUpdate-fw-setenv-corrupted-file/m-p/1597370#M201382</guid>
      <dc:creator>Sanket_Parekh</dc:creator>
      <dc:date>2023-02-10T13:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6 SWUpdate fw-setenv corrupted file</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-SWUpdate-fw-setenv-corrupted-file/m-p/1597573#M201395</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/202155"&gt;@Sanket_Parekh&lt;/a&gt;&amp;nbsp;The setting&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#define CONFIG_SYS_MMC_ENV_PART 0&lt;/LI-CODE&gt;&lt;P&gt;Was already set in my u-boot.cfg.&lt;/P&gt;&lt;P&gt;In my Yocto build I am in the folder&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;/mnt/YoctoDrive/Documents/MAIN_Application/build-fb/tmp/work/imx6ull14x14evk-poky-linux-gnueabi/u-boot-imx/2021.04-r0/build/mx6ull_14x14_evk_config&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 10 Feb 2023 19:58:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-SWUpdate-fw-setenv-corrupted-file/m-p/1597573#M201395</guid>
      <dc:creator>MichaelBMiner</dc:creator>
      <dc:date>2023-02-10T19:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6 SWUpdate fw-setenv corrupted file</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-SWUpdate-fw-setenv-corrupted-file/m-p/1598205#M201443</link>
      <description>&lt;P&gt;&lt;SPAN class="im"&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/193268"&gt;@MichaelBMiner&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV&gt;I hope you are doing well.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Please confirm if you are able to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;saveenv&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in u-boot.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Please try after executing the saveenv command in u-boot as env will be in memory till we use saveenv to save it.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Please try with the below command to cross-check if the env file is present in mmc.&lt;/DIV&gt;
&lt;DIV&gt;# dd if=/dev/mmcblk1p1 of=env.bin bs=1024 skip=896 count=1 | hexdump -C env.bin&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks &amp;amp; Regards,&lt;/DIV&gt;
&lt;DIV&gt;Sanket Parekh&lt;/DIV&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 13:35:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-SWUpdate-fw-setenv-corrupted-file/m-p/1598205#M201443</guid>
      <dc:creator>Sanket_Parekh</dc:creator>
      <dc:date>2023-02-13T13:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6 SWUpdate fw-setenv corrupted file</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-SWUpdate-fw-setenv-corrupted-file/m-p/1598238#M201447</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/202155"&gt;@Sanket_Parekh&lt;/a&gt;&amp;nbsp;here is the output of my setenv, saveenv, printenv&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=&amp;gt; setenv MY_VAR = 12345
=&amp;gt; saveenv
Saving Environment to MMC... Writing to MMC(1)... OK
=&amp;gt; printenv
MY_VAR== 12345&lt;/LI-CODE&gt;&lt;P&gt;I tried the dd command in u-boot and realised this is for linux. Here is the result of that command.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; dd if=/dev/mmcblk1p1 of=env.bin bs=1024 skip=896 count=1 | hexdump -C env.bin
1+0 records in
1+0 records out&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 13 Feb 2023 14:21:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-SWUpdate-fw-setenv-corrupted-file/m-p/1598238#M201447</guid>
      <dc:creator>MichaelBMiner</dc:creator>
      <dc:date>2023-02-13T14:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6 SWUpdate fw-setenv corrupted file</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-SWUpdate-fw-setenv-corrupted-file/m-p/1598290#M201449</link>
      <description>&lt;P&gt;If I run the command a second time. I get more output&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;root@imx6ull14x14evk:~# dd if=/dev/mmcblk1p1 of=env.bin bs=1024 skip=896 count=1 | hexdump -C env.bin
00000000  22 28 a0 e1 0f 20 02 e2  04 10 a0 e3 11 12 a0 e1  |"(... ..........|
00000010  01 20 41 e2 02 00 c0 e1  01 b0 4b e2 02 b0 cb e1  |. A.......K.....|
00000020  0b 00 50 e1 02 00 00 ca  3e 0f 07 ee 01 00 80 e0  |..P.....&amp;gt;.......|
00000030  fa ff ff ea 9a af 07 ee  15 af 07 ee 9a af 07 ee  |................|
00000040  95 af 07 ee 0e f0 a0 e1  01 00 14 e3 0e f0 a0 11  |................|
00000050  7e ff 17 ee fd ff ff 1a  15 0f 07 ee 9a 0f 07 ee  |~...............|
00000060  0e f0 a0 e1 01 00 14 e3  0e f0 a0 11 01 28 a0 e3  |.............(..|
00000070  20 b0 a0 e3 30 3f 10 ee  09 00 33 e1 09 00 00 0a  | ...0?....3.....|
00000080  23 19 a0 e1 07 10 01 e2  01 2b a0 e3 12 21 a0 e1  |#........+...!..|
00000090  01 09 13 e3 a2 20 82 10  23 36 a0 e1 03 30 03 e2  |..... ..#6...0..|
000000a0  08 b0 a0 e3 1b b3 a0 e1  0f 10 a0 e1 3f 10 c1 e3  |............?...|
000000b0  02 20 81 e0 0b 30 91 e6  02 00 31 e1 fc ff ff 1a  |. ...0....1.....|
000000c0  15 1f 07 ee 16 1f 07 ee  9a 1f 07 ee 0e f0 a0 e1  |................|
000000d0  01 00 14 e3 0e f0 a0 11  00 10 a0 e3 10 1f 07 ee  |................|
000000e0  0e f0 a0 e1 00 f0 20 e3  00 f0 20 e3 00 f0 20 e3  |...... ... ... .|
000000f0  00 f0 20 e3 00 f0 20 e3  00 f0 20 e3 00 f0 20 e3  |.. ... ... ... .|
00000100  fe ff ff ea fe ff ff ea  fe ff ff ea fe ff ff ea  |................|
00000110  fe ff ff ea 01 00 00 ea  fe ff ff ea fe ff ff ea  |................|
00000120  00 00 a0 e3 07 10 a0 e1  08 20 a0 e1 04 f0 a0 e1  |......... ......|
00000130  30 30 9f e5 03 30 8f e0  01 20 f3 e5 00 00 52 e3  |00...0... ....R.|
00000140  fc ff ff 1a 01 30 d0 e4  00 00 53 e3 fc ff ff 1a  |.....0....S.....|
00000150  14 30 9f e5 03 30 8f e0  01 20 f3 e5 00 00 52 e3  |.0...0... ....R.|
00000160  fc ff ff 1a fe ff ff ea  50 10 00 00 34 10 00 00  |........P...4...|
00000170  08 00 9f e5 10 40 2d e9  00 00 8f e0 eb ff ff eb  |.....@-.........|
00000180  24 10 00 00 08 00 9f e5  10 40 2d e9 00 00 8f e0  |$........@-.....|
00000190  e6 ff ff eb 2c 10 00 00  98 c0 9f e5 10 40 2d e9  |....,........@-.|
000001a0  94 e0 9f e5 0c c0 8f e0  0e e0 9c e7 00 00 8e e5  |................|
000001b0  88 e0 9f e5 0e e0 9c e7  00 10 8e e5 80 10 9f e5  |................|
000001c0  01 10 9c e7 00 20 81 e5  78 20 9f e5 78 10 9f e5  |..... ..x ..x...|
000001d0  01 10 8f e0 02 20 9c e7  00 30 82 e5 01 30 f1 e5  |..... ...0...0..|
000001e0  00 00 53 e3 fc ff ff 1a  60 e0 9f e5 00 20 a0 e1  |..S.....`.... ..|
000001f0  5c 10 9f e5 5c 30 9f e5  0e 00 9c e7 01 10 9c e7  |\...\0..........|
00000200  03 30 9c e7 00 10 41 e0  92 01 00 eb 00 00 50 e3  |.0....A.......P.|
00000210  05 00 00 1a 40 30 9f e5  03 30 8f e0 01 20 f3 e5  |....@0...0... ..|
00000220  00 00 52 e3 fc ff ff 1a  10 80 bd e8 2c 00 9f e5  |..R.........,...|
00000230  00 00 8f e0 bd ff ff eb  a4 0d 64 00 14 00 00 00  |..........d.....|
00000240  1c 00 00 00 0c 00 00 00  18 00 00 00 14 10 00 00  |................|
00000250  08 00 00 00 04 00 00 00  10 00 00 00 e4 0f 00 00  |................|
00000260  e8 0f 00 00 08 00 9f e5  10 40 2d e9 00 00 8f e0  |.........@-.....|
00000270  ae ff ff eb cc 0f 00 00  f0 4f 2d e9 02 00 51 e3  |.........O-...Q.|
00000280  01 80 80 e0 00 70 93 e5  0c d0 4d e2 07 70 82 e0  |.....p....M..p..|
00000290  a0 00 00 9a 00 a0 d0 e5  02 60 a0 e1 04 00 51 e3  |.........`....Q.|
000002a0  82 00 00 9a 11 00 5a e3  80 00 00 1a 01 20 d0 e5  |......Z...... ..|
000002b0  02 50 80 e2 02 a0 d0 e5  02 b0 a0 e1 11 00 5a e3  |.P............Z.|
000002c0  27 00 00 8a 06 40 a0 e1  00 20 a0 e3 ff e0 a0 e3  |'....@... ......|
000002d0  01 e1 40 e3 fc 9f 0f e3  00 e0 8d e5 0f 00 5a e3  |..@...........Z.|
000002e0  01 10 85 e2 0a 00 a0 e1  2e 00 00 8a 00 00 52 e3  |..............R.|
000002f0  b3 00 00 1a 00 00 5a e3  c0 00 00 0a 03 20 80 e2  |......Z...... ..|
00000300  01 c0 48 e0 04 00 a0 e1  0f e0 82 e2 00 40 47 e0  |..H..........@G.|
00000310  0c 00 5e e1 6f 00 00 8a  04 00 5e e1 6d 00 00 8a  |..^.o.....^.m...|
00000320  02 50 81 e0 02 40 80 e0  00 20 91 e5 10 10 81 e2  |.P...@... ......|
00000330  00 20 80 e5 10 00 80 e2  05 00 51 e1 0c 20 11 e5  |. ........Q.. ..|
1+0 records in
1+0 records out
00000340  0c 20 00 e5 08 20 11 e5  08 20 00 e5 04 20 11 e5  |. ... ... ... ..|
00000350  04 20 00 e5 f3 ff ff 3a  00 a0 d5 e5 04 20 a0 e3  |. .....:..... ..|
00000360  d9 ff ff ea 01 10 85 e2  11 20 4a e2 06 00 a0 e1  |......... J.....|
00000370  03 00 52 e3 01 c0 48 e0  e2 ff ff ca 05 00 5c e3  |..R...H.......\.|
00000380  2d 00 00 9a 00 c0 47 e0  03 00 5c e3 2e 00 00 9a  |-.....G...\.....|
00000390  00 40 a0 e1 00 00 91 e5  02 50 81 e0 02 00 84 e6  |.@.......P......|
000003a0  02 a0 d1 e7 c8 ff ff ea  3f 00 5a e3 35 00 00 8a  |........?.Z.5...|
000003b0  1f 00 5a e3 5c 00 00 9a  1f 50 0a e2 00 00 55 e3  |..Z.\....P....U.|
000003c0  02 50 85 e2 ba 00 00 0a  b2 c0 d1 e0 03 20 0c e2  |.P........... ..|
000003d0  2c c1 e0 e1 0c c0 84 e0  0c 00 56 e1 d8 00 00 8a  |,.........V.....|
000003e0  0c 00 44 e0 04 a0 47 e0  07 00 50 e3 05 00 84 e0  |..D...G...P.....|
000003f0  d7 00 00 da 0f e0 85 e2  0a 00 5e e1 63 00 00 8a  |..........^.c...|&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 13 Feb 2023 16:32:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-SWUpdate-fw-setenv-corrupted-file/m-p/1598290#M201449</guid>
      <dc:creator>MichaelBMiner</dc:creator>
      <dc:date>2023-02-13T16:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6 SWUpdate fw-setenv corrupted file</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-SWUpdate-fw-setenv-corrupted-file/m-p/1598421#M201459</link>
      <description>&lt;P&gt;Doing some more reading it seems I need to set&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;+CONFIG_CMD_SAVEENV=y
+CONFIG_CMD_LOADENV=y&lt;/LI-CODE&gt;&lt;P&gt;I added these to a defconfig and patch file. The file is patching mx6ull_14x14_evk_defconfig. I get the same error.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 22:26:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-SWUpdate-fw-setenv-corrupted-file/m-p/1598421#M201459</guid>
      <dc:creator>MichaelBMiner</dc:creator>
      <dc:date>2023-02-13T22:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6 SWUpdate fw-setenv corrupted file</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-SWUpdate-fw-setenv-corrupted-file/m-p/1599598#M201553</link>
      <description>&lt;P&gt;&lt;SPAN class="im"&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/193268"&gt;@MichaelBMiner&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV&gt;I hope you are doing well.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;From the above output, it seems the env variables are not correctly set or overwritten.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Please check with the below command in linux after using saveenv in u-boot.&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;dd if=/dev/mmcblk1 of=env.bin bs=1024 skip=896 count=1&amp;nbsp;&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;hexdump -C env.bin&lt;BR /&gt;&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Alternatively one can create a separate&amp;nbsp;partition in mmc (Note: define partition offset in&amp;nbsp;&lt;SPAN&gt;CONFIG_ENV_OFFSET)&lt;/SPAN&gt;&lt;SPAN&gt;&lt;FONT face="arial, sans-serif"&gt; to store uboot environment variables.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;FONT face="arial, sans-serif"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;Thanks&amp;nbsp;&amp;amp; Regards,&lt;/DIV&gt;
&lt;DIV&gt;Sanket Parekh&lt;/DIV&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 13:03:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-SWUpdate-fw-setenv-corrupted-file/m-p/1599598#M201553</guid>
      <dc:creator>Sanket_Parekh</dc:creator>
      <dc:date>2023-02-15T13:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6 SWUpdate fw-setenv corrupted file</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-SWUpdate-fw-setenv-corrupted-file/m-p/1599642#M201556</link>
      <description>&lt;P&gt;I am performing the following&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Boot the device&lt;/LI&gt;&lt;LI&gt;Interrupt the boot process and enter u-boot&lt;/LI&gt;&lt;LI&gt;Run saveenv&lt;/LI&gt;&lt;LI&gt;Run reset and allow device to boot&lt;/LI&gt;&lt;LI&gt;Run the command dd if=/dev/mmcblk1 of=env.bin bs=1024 skip=896 count=1 | hexdump -C env.bin&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I now get out that seems to show my variables boot variables. I am still getting the same error above. I did make a few more changes. My fw_env.config now contains&amp;nbsp;&lt;/P&gt;&lt;P&gt;/dev/mmcblk1p2 0xE0000 0x2000&lt;BR /&gt;/dev/mmcblk1p2 0xE2000 0x2000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 14:19:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-SWUpdate-fw-setenv-corrupted-file/m-p/1599642#M201556</guid>
      <dc:creator>MichaelBMiner</dc:creator>
      <dc:date>2023-02-15T14:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6 SWUpdate fw-setenv corrupted file</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-SWUpdate-fw-setenv-corrupted-file/m-p/1599648#M201557</link>
      <description>&lt;P&gt;So I got it! I changes fw_env.config to contain&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/dev/mmcblk1 0xE0000 0x2000&lt;BR /&gt;/dev/mmcblk1 0xE2000 0x2000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;fw_printenv now works. Testing to see if I can set custom variables now.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 14:23:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-SWUpdate-fw-setenv-corrupted-file/m-p/1599648#M201557</guid>
      <dc:creator>MichaelBMiner</dc:creator>
      <dc:date>2023-02-15T14:23:55Z</dc:date>
    </item>
  </channel>
</rss>

