<?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: SWupdate for IMX8MN in Processor Expert Software</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/SWupdate-for-IMX8MN/m-p/1585490#M5409</link>
    <description>&lt;P&gt;see below hex dump of the redundant env variavble address.&lt;/P&gt;&lt;P&gt;same info is in /etc/fw_env.config&lt;/P&gt;&lt;P&gt;/dev/mmcblk2 0x402000 0x4000&lt;/P&gt;&lt;P&gt;still when trying to run fw_printenv it complains the&amp;nbsp;&lt;/P&gt;&lt;P&gt;oot@TigoGateway-0000:~# 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;&lt;P&gt;what else can cause this error ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;root@TigoGateway-0000:~# hexdump /dev/mmcblk2 -s 0x402000 -n 1000 -C&lt;BR /&gt;00402000 c4 07 84 c2 01 61 64 6a 75 73 74 62 6f 6f 74 73 |.....adjustboots|&lt;BR /&gt;00402010 6f 75 72 63 65 3d 69 66 20 74 65 73 74 20 24 7b |ource=if test ${|&lt;BR /&gt;00402020 62 6f 6f 74 73 6c 6f 74 7d 20 3d 20 64 75 61 6c |bootslot} = dual|&lt;BR /&gt;00402030 41 20 7c 7c 20 74 65 73 74 20 24 7b 62 6f 6f 74 |A || test ${boot|&lt;BR /&gt;00402040 73 6c 6f 74 7d 20 3d 20 73 69 6e 67 6c 65 6e 6f |slot} = singleno|&lt;BR /&gt;00402050 72 6d 61 6c 3b 20 74 68 65 6e 20 72 75 6e 20 61 |rmal; then run a|&lt;BR /&gt;00402060 64 6a 75 73 74 62 6f 6f 74 73 6f 75 72 63 65 41 |djustbootsourceA|&lt;BR /&gt;00402070 3b 20 66 69 3b 69 66 20 74 65 73 74 20 24 7b 62 |; fi;if test ${b|&lt;BR /&gt;00402080 6f 6f 74 73 6c 6f 74 7d 20 3d 20 64 75 61 6c 42 |ootslot} = dualB|&lt;BR /&gt;00402090 3b 20 74 68 65 6e 20 72 75 6e 20 61 64 6a 75 73 |; then run adjus|&lt;BR /&gt;004020a0 74 62 6f 6f 74 73 6f 75 72 63 65 42 3b 20 66 69 |tbootsourceB; fi|&lt;BR /&gt;004020b0 00 61 64 6a 75 73 74 62 6f 6f 74 73 6f 75 72 63 |.adjustbootsourc|&lt;BR /&gt;004020c0 65 41 3d 65 63 68 6f 20 52 6f 6f 74 46 73 20 53 |eA=echo RootFs S|&lt;BR /&gt;004020d0 6c 6f 74 20 41 3b 20 73 65 74 65 6e 76 20 6d 6d |lot A; setenv mm|&lt;BR /&gt;004020e0 63 70 61 72 74 20 31 3b 20 73 65 74 65 6e 76 20 |cpart 1; setenv |&lt;BR /&gt;004020f0 6d 6d 63 72 6f 6f 74 20 2f 64 65 76 2f 6d 6d 63 |mmcroot /dev/mmc|&lt;BR /&gt;00402100 62 6c 6b 24 7b 6d 6d 63 64 65 76 7d 70 32 20 72 |blk${mmcdev}p2 r|&lt;BR /&gt;00402110 6f 6f 74 77 61 69 74 20 72 77 00 61 64 6a 75 73 |ootwait rw.adjus|&lt;BR /&gt;00402120 74 62 6f 6f 74 73 6f 75 72 63 65 42 3d 65 63 68 |tbootsourceB=ech|&lt;BR /&gt;00402130 6f 20 52 6f 6f 74 46 73 20 53 6c 6f 74 20 42 3b |o RootFs Slot B;|&lt;BR /&gt;00402140 20 73 65 74 65 6e 76 20 6d 6d 63 70 61 72 74 20 | setenv mmcpart |&lt;BR /&gt;00402150 33 3b 20 73 65 74 65 6e 76 20 6d 6d 63 72 6f 6f |3; setenv mmcroo|&lt;BR /&gt;00402160 74 20 2f 64 65 76 2f 6d 6d 63 62 6c 6b 24 7b 6d |t /dev/mmcblk${m|&lt;BR /&gt;00402170 6d 63 64 65 76 7d 70 34 20 72 6f 6f 74 77 61 69 |mcdev}p4 rootwai|&lt;BR /&gt;00402180 74 20 72 77 00 61 6c 74 62 6f 6f 74 52 6f 6c 6c |t rw.altbootRoll|&lt;BR /&gt;00402190 62 61 63 6b 41 3d 65 63 68 6f 20 52 6f 6c 6c 69 |backA=echo Rolli|&lt;BR /&gt;004021a0 6e 67 20 62 61 63 6b 20 74 6f 20 73 6c 6f 74 20 |ng back to slot |&lt;BR /&gt;004021b0 64 75 61 6c 41 3b 73 65 74 65 6e 76 20 62 6f 6f |dualA;setenv boo|&lt;BR /&gt;004021c0 74 73 6c 6f 74 20 64 75 61 6c 41 3b 72 75 6e 20 |tslot dualA;run |&lt;BR /&gt;004021d0 70 6f 73 74 5f 6f 70 74 3b 72 75 6e 20 62 6f 6f |post_opt;run boo|&lt;BR /&gt;004021e0 74 63 6d 64 00 61 6c 74 62 6f 6f 74 52 6f 6c 6c |tcmd.altbootRoll|&lt;BR /&gt;004021f0 62 61 63 6b 42 3d 65 63 68 6f 20 52 6f 6c 6c 69 |backB=echo Rolli|&lt;BR /&gt;00402200 6e 67 20 62 61 63 6b 20 74 6f 20 73 6c 6f 74 20 |ng back to slot |&lt;BR /&gt;00402210 64 75 61 6c 42 3b 73 65 74 65 6e 76 20 62 6f 6f |dualB;setenv boo|&lt;BR /&gt;00402220 74 73 6c 6f 74 20 64 75 61 6c 42 3b 72 75 6e 20 |tslot dualB;run |&lt;BR /&gt;00402230 70 6f 73 74 5f 6f 70 74 3b 72 75 6e 20 62 6f 6f |post_opt;run boo|&lt;BR /&gt;00402240 74 63 6d 64 00 61 6c 74 62 6f 6f 74 63 6d 64 3d |tcmd.altbootcmd=|&lt;BR /&gt;00402250 69 66 20 74 65 73 74 20 24 7b 62 6f 6f 74 73 6c |if test ${bootsl|&lt;BR /&gt;00402260 6f 74 7d 20 3d 20 73 69 6e 67 6c 65 72 65 73 63 |ot} = singleresc|&lt;BR /&gt;00402270 75 65 20 7c 7c 20 20 74 65 73 74 20 24 7b 62 6f |ue || test ${bo|&lt;BR /&gt;00402280 6f 74 73 6c 6f 74 7d 20 3d 20 73 69 6e 67 6c 65 |otslot} = single|&lt;BR /&gt;00402290 6e 6f 72 6d 61 6c 3b 20 74 68 65 6e 20 72 75 6e |normal; then run|&lt;BR /&gt;004022a0 20 61 6c 74 62 6f 6f 74 73 69 6e 67 6c 65 3b 20 | altbootsingle; |&lt;BR /&gt;004022b0 66 69 3b 69 66 20 74 65 73 74 20 24 7b 62 6f 6f |fi;if test ${boo|&lt;BR /&gt;004022c0 74 73 6c 6f 74 7d 20 3d 20 64 75 61 6c 41 20 7c |tslot} = dualA ||&lt;BR /&gt;004022d0 7c 20 20 74 65 73 74 20 24 7b 62 6f 6f 74 73 6c || test ${bootsl|&lt;BR /&gt;004022e0 6f 74 7d 20 3d 20 64 75 61 6c 42 3b 20 74 68 65 |ot} = dualB; the|&lt;BR /&gt;004022f0 6e 20 72 75 6e 20 61 6c 74 62 6f 6f 74 64 75 61 |n run altbootdua|&lt;BR /&gt;00402300 6c 3b 20 66 69 00 61 6c 74 62 6f 6f 74 64 75 61 |l; fi.altbootdua|&lt;BR /&gt;00402310 6c 3d 69 66 20 74 65 73 74 20 24 7b 62 6f 6f 74 |l=if test ${boot|&lt;BR /&gt;00402320 73 6c 6f 74 7d 20 3d 20 64 75 61 6c 41 20 3b 20 |slot} = dualA ; |&lt;BR /&gt;00402330 74 68 65 6e 20 72 75 6e 20 61 6c 74 62 6f 6f 74 |then run altboot|&lt;BR /&gt;00402340 52 6f 6c 6c 62 61 63 6b 42 3b 20 66 69 3b 20 69 |RollbackB; fi; i|&lt;BR /&gt;00402350 66 20 74 65 73 74 20 24 7b 62 6f 6f 74 73 6c 6f |f test ${bootslo|&lt;BR /&gt;00402360 74 7d 20 3d 20 64 75 61 6c 42 20 3b 20 74 68 65 |t} = dualB ; the|&lt;BR /&gt;00402370 6e 20 72 75 6e 20 61 6c 74 62 6f 6f 74 52 6f 6c |n run altbootRol|&lt;BR /&gt;00402380 6c 62 61 63 6b 41 3b 20 66 69 3b 00 61 6c 74 62 |lbackA; fi;.altb|&lt;BR /&gt;00402390 6f 6f 74 73 69 6e 67 6c 65 3d 69 66 20 74 65 73 |ootsingle=if tes|&lt;BR /&gt;004023a0 74 20 24 7b 62 6f 6f 74 73 6c 6f 74 7d 20 3d 20 |t ${bootslot} = |&lt;BR /&gt;004023b0 73 69 6e 67 6c 65 72 65 73 63 75 65 3b 20 74 68 |singlerescue; th|&lt;BR /&gt;004023c0 65 6e 20 72 75 6e 20 61 6c 74 62 6f 6f 74 75 73 |en run altbootus|&lt;BR /&gt;004023d0 62 3b 20 66 69 3b 20 69 66 20 74 65 73 74 20 24 |b; fi; if test $|&lt;BR /&gt;004023e0 7b 62 6f 6f 74 73 6c 6f |{bootslo|&lt;BR /&gt;004023e8&lt;/P&gt;</description>
    <pubDate>Thu, 19 Jan 2023 13:48:33 GMT</pubDate>
    <dc:creator>razriel</dc:creator>
    <dc:date>2023-01-19T13:48:33Z</dc:date>
    <item>
      <title>SWupdate for IMX8MN</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/SWupdate-for-IMX8MN/m-p/1580206#M5391</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have followed the SWupdate article from Kknowladge base.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/SWUpdate-OTA-i-MX8MM-EVK-i-MX8QXP-MEK/ta-p/1307416" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/SWUpdate-OTA-i-MX8MM-EVK-i-MX8QXP-MEK/ta-p/1307416&lt;/A&gt;&lt;/P&gt;&lt;P&gt;modified it to IMX8MN based on imx8mn-ddr4-evk&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to create demo image containing imx-boot, rescue image (kernel,device tree, and ramsidk rootfs) boot partition with kernel and device tree, operational rootfs partition.&lt;/P&gt;&lt;P&gt;also created a swu image with boot partition and rootfs and was able to upgrade using mongoose.&lt;/P&gt;&lt;P&gt;I am using a single image strategy.&lt;/P&gt;&lt;P&gt;I am experiasing few problems:&lt;/P&gt;&lt;P&gt;1. fw_setenv is not working from operational rootfs although /etc/fw_env.config exists and directs to the expected address. the error message is:&lt;/P&gt;&lt;P&gt;Cannot read environment, using default&lt;/P&gt;&lt;P&gt;it works well from ramdisk image. but the goal is to run it from operational rootfs (for user to initiate). can you sugget why is it not working from operational rootfs ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. single image full demo has capababilty to replace the imx-boot image also. it uses emmc_bootpart.sh&lt;/P&gt;&lt;P&gt;and wants to write to /dev/mmcblk1boot0 partition in offset of 32k. when tried this version it failed to find this partition. maybe its something related to imx8mm-evk only? in my bsp there is no partition for the imx-boot it is located on known offset. how can I replace the imx-boot image located on /dev/mmcblk1 offset 32K ? will swupdate support it ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 16:14:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/SWupdate-for-IMX8MN/m-p/1580206#M5391</guid>
      <dc:creator>razriel</dc:creator>
      <dc:date>2023-01-10T16:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: SWupdate for IMX8MN</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/SWupdate-for-IMX8MN/m-p/1582429#M5399</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp; &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/202142"&gt;@razriel&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;1. Please make sure&amp;nbsp;&amp;nbsp;/etc/fw_env.config and u-boot board configuration header contains the correct offset and partition for the environment file.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; One can refer to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&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" rel="noopener" data-saferedirecturl="https://www.google.com/url?q=https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/Linux-fw-printenv-fw-setenv-to-access-U-Boot-s-environment/ta-p/1121201&amp;amp;source=gmail&amp;amp;ust=1673692360628000&amp;amp;usg=AOvVaw2SNTtR5XmRPoUFKPesI5aY"&gt;Linux fw_printenv fw_setenv to access U-Boot's environment variables&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;for fw_printenv-related issues.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;2. Please make sure that you have configured the correct partition&amp;nbsp;and mmc in&amp;nbsp;emmc_bootpart.sh&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; one can use&amp;nbsp;padding_file_create.sh to create an Image with a 32k offset.&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; Please refer to&lt;A href="https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/SWUpdate-OTA-i-MX8MM-EVK-i-MX8QXP-MEK/ta-p/1307416?attachment-id=120132" target="_blank" rel="noopener" data-saferedirecturl="https://www.google.com/url?q=https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/SWUpdate-OTA-i-MX8MM-EVK-i-MX8QXP-MEK/ta-p/1307416?attachment-id%3D120132&amp;amp;source=gmail&amp;amp;ust=1673692360628000&amp;amp;usg=AOvVaw0LTDbk9C1vsg0p-r2WYQJZ"&gt;&amp;nbsp;SWUpdate OTA&lt;/A&gt;&amp;nbsp;for more details.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp;SW update OTA i.MX8MM EVK / i.MX8QXP MEK&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;post only contains&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;yocto patches&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;for i.MX8MM and i.MX8QXP only.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp;For i.MX8MN you need to make changes according to your requirements.&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, 13 Jan 2023 11:22:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/SWupdate-for-IMX8MN/m-p/1582429#M5399</guid>
      <dc:creator>Sanket_Parekh</dc:creator>
      <dc:date>2023-01-13T11:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: SWupdate for IMX8MN</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/SWupdate-for-IMX8MN/m-p/1585490#M5409</link>
      <description>&lt;P&gt;see below hex dump of the redundant env variavble address.&lt;/P&gt;&lt;P&gt;same info is in /etc/fw_env.config&lt;/P&gt;&lt;P&gt;/dev/mmcblk2 0x402000 0x4000&lt;/P&gt;&lt;P&gt;still when trying to run fw_printenv it complains the&amp;nbsp;&lt;/P&gt;&lt;P&gt;oot@TigoGateway-0000:~# 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;&lt;P&gt;what else can cause this error ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;root@TigoGateway-0000:~# hexdump /dev/mmcblk2 -s 0x402000 -n 1000 -C&lt;BR /&gt;00402000 c4 07 84 c2 01 61 64 6a 75 73 74 62 6f 6f 74 73 |.....adjustboots|&lt;BR /&gt;00402010 6f 75 72 63 65 3d 69 66 20 74 65 73 74 20 24 7b |ource=if test ${|&lt;BR /&gt;00402020 62 6f 6f 74 73 6c 6f 74 7d 20 3d 20 64 75 61 6c |bootslot} = dual|&lt;BR /&gt;00402030 41 20 7c 7c 20 74 65 73 74 20 24 7b 62 6f 6f 74 |A || test ${boot|&lt;BR /&gt;00402040 73 6c 6f 74 7d 20 3d 20 73 69 6e 67 6c 65 6e 6f |slot} = singleno|&lt;BR /&gt;00402050 72 6d 61 6c 3b 20 74 68 65 6e 20 72 75 6e 20 61 |rmal; then run a|&lt;BR /&gt;00402060 64 6a 75 73 74 62 6f 6f 74 73 6f 75 72 63 65 41 |djustbootsourceA|&lt;BR /&gt;00402070 3b 20 66 69 3b 69 66 20 74 65 73 74 20 24 7b 62 |; fi;if test ${b|&lt;BR /&gt;00402080 6f 6f 74 73 6c 6f 74 7d 20 3d 20 64 75 61 6c 42 |ootslot} = dualB|&lt;BR /&gt;00402090 3b 20 74 68 65 6e 20 72 75 6e 20 61 64 6a 75 73 |; then run adjus|&lt;BR /&gt;004020a0 74 62 6f 6f 74 73 6f 75 72 63 65 42 3b 20 66 69 |tbootsourceB; fi|&lt;BR /&gt;004020b0 00 61 64 6a 75 73 74 62 6f 6f 74 73 6f 75 72 63 |.adjustbootsourc|&lt;BR /&gt;004020c0 65 41 3d 65 63 68 6f 20 52 6f 6f 74 46 73 20 53 |eA=echo RootFs S|&lt;BR /&gt;004020d0 6c 6f 74 20 41 3b 20 73 65 74 65 6e 76 20 6d 6d |lot A; setenv mm|&lt;BR /&gt;004020e0 63 70 61 72 74 20 31 3b 20 73 65 74 65 6e 76 20 |cpart 1; setenv |&lt;BR /&gt;004020f0 6d 6d 63 72 6f 6f 74 20 2f 64 65 76 2f 6d 6d 63 |mmcroot /dev/mmc|&lt;BR /&gt;00402100 62 6c 6b 24 7b 6d 6d 63 64 65 76 7d 70 32 20 72 |blk${mmcdev}p2 r|&lt;BR /&gt;00402110 6f 6f 74 77 61 69 74 20 72 77 00 61 64 6a 75 73 |ootwait rw.adjus|&lt;BR /&gt;00402120 74 62 6f 6f 74 73 6f 75 72 63 65 42 3d 65 63 68 |tbootsourceB=ech|&lt;BR /&gt;00402130 6f 20 52 6f 6f 74 46 73 20 53 6c 6f 74 20 42 3b |o RootFs Slot B;|&lt;BR /&gt;00402140 20 73 65 74 65 6e 76 20 6d 6d 63 70 61 72 74 20 | setenv mmcpart |&lt;BR /&gt;00402150 33 3b 20 73 65 74 65 6e 76 20 6d 6d 63 72 6f 6f |3; setenv mmcroo|&lt;BR /&gt;00402160 74 20 2f 64 65 76 2f 6d 6d 63 62 6c 6b 24 7b 6d |t /dev/mmcblk${m|&lt;BR /&gt;00402170 6d 63 64 65 76 7d 70 34 20 72 6f 6f 74 77 61 69 |mcdev}p4 rootwai|&lt;BR /&gt;00402180 74 20 72 77 00 61 6c 74 62 6f 6f 74 52 6f 6c 6c |t rw.altbootRoll|&lt;BR /&gt;00402190 62 61 63 6b 41 3d 65 63 68 6f 20 52 6f 6c 6c 69 |backA=echo Rolli|&lt;BR /&gt;004021a0 6e 67 20 62 61 63 6b 20 74 6f 20 73 6c 6f 74 20 |ng back to slot |&lt;BR /&gt;004021b0 64 75 61 6c 41 3b 73 65 74 65 6e 76 20 62 6f 6f |dualA;setenv boo|&lt;BR /&gt;004021c0 74 73 6c 6f 74 20 64 75 61 6c 41 3b 72 75 6e 20 |tslot dualA;run |&lt;BR /&gt;004021d0 70 6f 73 74 5f 6f 70 74 3b 72 75 6e 20 62 6f 6f |post_opt;run boo|&lt;BR /&gt;004021e0 74 63 6d 64 00 61 6c 74 62 6f 6f 74 52 6f 6c 6c |tcmd.altbootRoll|&lt;BR /&gt;004021f0 62 61 63 6b 42 3d 65 63 68 6f 20 52 6f 6c 6c 69 |backB=echo Rolli|&lt;BR /&gt;00402200 6e 67 20 62 61 63 6b 20 74 6f 20 73 6c 6f 74 20 |ng back to slot |&lt;BR /&gt;00402210 64 75 61 6c 42 3b 73 65 74 65 6e 76 20 62 6f 6f |dualB;setenv boo|&lt;BR /&gt;00402220 74 73 6c 6f 74 20 64 75 61 6c 42 3b 72 75 6e 20 |tslot dualB;run |&lt;BR /&gt;00402230 70 6f 73 74 5f 6f 70 74 3b 72 75 6e 20 62 6f 6f |post_opt;run boo|&lt;BR /&gt;00402240 74 63 6d 64 00 61 6c 74 62 6f 6f 74 63 6d 64 3d |tcmd.altbootcmd=|&lt;BR /&gt;00402250 69 66 20 74 65 73 74 20 24 7b 62 6f 6f 74 73 6c |if test ${bootsl|&lt;BR /&gt;00402260 6f 74 7d 20 3d 20 73 69 6e 67 6c 65 72 65 73 63 |ot} = singleresc|&lt;BR /&gt;00402270 75 65 20 7c 7c 20 20 74 65 73 74 20 24 7b 62 6f |ue || test ${bo|&lt;BR /&gt;00402280 6f 74 73 6c 6f 74 7d 20 3d 20 73 69 6e 67 6c 65 |otslot} = single|&lt;BR /&gt;00402290 6e 6f 72 6d 61 6c 3b 20 74 68 65 6e 20 72 75 6e |normal; then run|&lt;BR /&gt;004022a0 20 61 6c 74 62 6f 6f 74 73 69 6e 67 6c 65 3b 20 | altbootsingle; |&lt;BR /&gt;004022b0 66 69 3b 69 66 20 74 65 73 74 20 24 7b 62 6f 6f |fi;if test ${boo|&lt;BR /&gt;004022c0 74 73 6c 6f 74 7d 20 3d 20 64 75 61 6c 41 20 7c |tslot} = dualA ||&lt;BR /&gt;004022d0 7c 20 20 74 65 73 74 20 24 7b 62 6f 6f 74 73 6c || test ${bootsl|&lt;BR /&gt;004022e0 6f 74 7d 20 3d 20 64 75 61 6c 42 3b 20 74 68 65 |ot} = dualB; the|&lt;BR /&gt;004022f0 6e 20 72 75 6e 20 61 6c 74 62 6f 6f 74 64 75 61 |n run altbootdua|&lt;BR /&gt;00402300 6c 3b 20 66 69 00 61 6c 74 62 6f 6f 74 64 75 61 |l; fi.altbootdua|&lt;BR /&gt;00402310 6c 3d 69 66 20 74 65 73 74 20 24 7b 62 6f 6f 74 |l=if test ${boot|&lt;BR /&gt;00402320 73 6c 6f 74 7d 20 3d 20 64 75 61 6c 41 20 3b 20 |slot} = dualA ; |&lt;BR /&gt;00402330 74 68 65 6e 20 72 75 6e 20 61 6c 74 62 6f 6f 74 |then run altboot|&lt;BR /&gt;00402340 52 6f 6c 6c 62 61 63 6b 42 3b 20 66 69 3b 20 69 |RollbackB; fi; i|&lt;BR /&gt;00402350 66 20 74 65 73 74 20 24 7b 62 6f 6f 74 73 6c 6f |f test ${bootslo|&lt;BR /&gt;00402360 74 7d 20 3d 20 64 75 61 6c 42 20 3b 20 74 68 65 |t} = dualB ; the|&lt;BR /&gt;00402370 6e 20 72 75 6e 20 61 6c 74 62 6f 6f 74 52 6f 6c |n run altbootRol|&lt;BR /&gt;00402380 6c 62 61 63 6b 41 3b 20 66 69 3b 00 61 6c 74 62 |lbackA; fi;.altb|&lt;BR /&gt;00402390 6f 6f 74 73 69 6e 67 6c 65 3d 69 66 20 74 65 73 |ootsingle=if tes|&lt;BR /&gt;004023a0 74 20 24 7b 62 6f 6f 74 73 6c 6f 74 7d 20 3d 20 |t ${bootslot} = |&lt;BR /&gt;004023b0 73 69 6e 67 6c 65 72 65 73 63 75 65 3b 20 74 68 |singlerescue; th|&lt;BR /&gt;004023c0 65 6e 20 72 75 6e 20 61 6c 74 62 6f 6f 74 75 73 |en run altbootus|&lt;BR /&gt;004023d0 62 3b 20 66 69 3b 20 69 66 20 74 65 73 74 20 24 |b; fi; if test $|&lt;BR /&gt;004023e0 7b 62 6f 6f 74 73 6c 6f |{bootslo|&lt;BR /&gt;004023e8&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 13:48:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/SWupdate-for-IMX8MN/m-p/1585490#M5409</guid>
      <dc:creator>razriel</dc:creator>
      <dc:date>2023-01-19T13:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: SWupdate for IMX8MN</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/SWupdate-for-IMX8MN/m-p/1586968#M5420</link>
      <description>&lt;P&gt;&lt;SPAN class="im"&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/202142"&gt;@razriel&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 make sure&amp;nbsp;&lt;STRONG&gt;CONFIG_ENV_SIZE&lt;/STRONG&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;CONFIG_ENV_OFFSET&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;in defconfig, and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;CONFIG_SYS_MMC_ENV_DEV&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;in include/configs/imx8mm_evk.h&lt;/DIV&gt;
&lt;DIV&gt;match the content of&amp;nbsp;&amp;nbsp;/etc/fw_env.config.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Please make sure include/configs/imx8mm_evk.h contains&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;#define CONFIG_SYS_MMC_ENV_PART 0.&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Note:&amp;nbsp;CONFIG_SYS_MMC_ENV_PART does not refer to software partitions, such as /dev/mmcblk2p1.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Here, Partition 0 refers to user area.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks &amp;amp;&amp;nbsp;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>Tue, 24 Jan 2023 07:33:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/SWupdate-for-IMX8MN/m-p/1586968#M5420</guid>
      <dc:creator>Sanket_Parekh</dc:creator>
      <dc:date>2023-01-24T07:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: SWupdate for IMX8MN</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/SWupdate-for-IMX8MN/m-p/1633281#M5525</link>
      <description>&lt;P&gt;Thanks Sanket.&lt;/P&gt;&lt;P&gt;Just tested what you suggested.&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;&lt;STRONG&gt;CONFIG_SYS_MMC_ENV_DEV was set to 1 while I am trying to&amp;nbsp; use 2. so I changed it.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2.&amp;nbsp;#define CONFIG_SYS_MMC_ENV_PART 0 was missing.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;added them. still not able to use fw_printenv, fw_setenv&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I can see the data is saved to 0x402000 after I do saveenv in boot.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;what else can be missing ? I have done the changes only in u-boot do I have to do them somehow in the linux kernel ?&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 15:39:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/SWupdate-for-IMX8MN/m-p/1633281#M5525</guid>
      <dc:creator>razriel</dc:creator>
      <dc:date>2023-04-13T15:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: SWupdate for IMX8MN</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/SWupdate-for-IMX8MN/m-p/1633330#M5526</link>
      <description>&lt;P&gt;I had some progress.&lt;BR /&gt;it was not clear I needed to copy the u-boot-initial-env into /etc.&lt;BR /&gt;now I have done it.&lt;BR /&gt;still having problem. u-boot reads the env varailble from 0x402000 redundant and when i write from rootfs it goes to the 0x400000 so it is not actually changed. how exactly it works ?&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Roy&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 17:16:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/SWupdate-for-IMX8MN/m-p/1633330#M5526</guid>
      <dc:creator>razriel</dc:creator>
      <dc:date>2023-04-13T17:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: SWupdate for IMX8MN</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/SWupdate-for-IMX8MN/m-p/1911521#M5832</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/202142"&gt;@razriel&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Can you tell that the file you generated(swu image), Have you generated it with yocto build or by any other way?&lt;BR /&gt;&lt;BR /&gt;If with yocto build can you provide steps, because I am using imx8ulp-evk9 and I added meta-swupdate and meta-swupdate-imx layer in yocto and build but I am not able to found .swu image anywher.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I missing any steps here?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 16:48:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/SWupdate-for-IMX8MN/m-p/1911521#M5832</guid>
      <dc:creator>dhruvinrajpura</dc:creator>
      <dc:date>2024-07-18T16:48:23Z</dc:date>
    </item>
  </channel>
</rss>

