<?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: uboot saveenv not working in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/uboot-saveenv-not-working/m-p/1709404#M211251</link>
    <description>&lt;P&gt;Maybe you can check the following discussion.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors/saveenv-is-not-working-from-uuu-script/m-p/1701040#M210458" target="_blank"&gt;Re: saveenv is not working from uuu script - NXP Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Aug 2023 22:27:55 GMT</pubDate>
    <dc:creator>jackie2</dc:creator>
    <dc:date>2023-08-22T22:27:55Z</dc:date>
    <item>
      <title>uboot saveenv not working</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/uboot-saveenv-not-working/m-p/1708096#M211121</link>
      <description>&lt;P&gt;Hi team,&lt;/P&gt;&lt;P&gt;I am using the imx6qsabresd board, and using the UUU tool to flash the image into that. I am using uboot version&amp;nbsp;U-Boot 2021.04.&lt;/P&gt;&lt;P&gt;But uboot 'saveenv' command is not working .Giving below error.&lt;/P&gt;&lt;P&gt;Saving Environment to MMC...&amp;nbsp;&lt;BR /&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;No block device&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;Failed (1)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;I have turned on below configuration in uboot then also its giving same error.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;CONFIG_CMD_SAVEENV=y&lt;BR /&gt;CONFIG_CMD_ERASEENV=y&lt;BR /&gt;CONFIG_CMD_ENV_EXISTS=y&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Please help me on this issue.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Rk&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2023 07:05:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/uboot-saveenv-not-working/m-p/1708096#M211121</guid>
      <dc:creator>rakesh3</dc:creator>
      <dc:date>2023-08-21T07:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: uboot saveenv not working</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/uboot-saveenv-not-working/m-p/1708271#M211149</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It look like you're having trouble with the 'saveenv' command in U-Boot on your imx6qsabresd board. The error message you're seeing suggests that U-Boot can't find the block device where it's supposed to save the environment variables.&lt;/P&gt;&lt;P&gt;One possible reason for this could be that the MMC device isn't properly configured in U-Boot. You might need to set the 'mmcdev' environment variable to the correct MMC device number.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2023 10:04:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/uboot-saveenv-not-working/m-p/1708271#M211149</guid>
      <dc:creator>ramprakash08</dc:creator>
      <dc:date>2023-08-21T10:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: uboot saveenv not working</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/uboot-saveenv-not-working/m-p/1708289#M211154</link>
      <description>&lt;P&gt;Thanks Ramprakash for reply,&lt;/P&gt;&lt;P&gt;I am using UUU tool to flash the image into device with below uboot config. I am using the below uboot configuration to set the mmcdev. But in uboot terminal when i looked for mmcdev , its not availalble.&lt;/P&gt;&lt;P&gt;# }&lt;/P&gt;&lt;P&gt;# use uboot burn bootloader to eMMC&lt;BR /&gt;# becaue difference chip, offset is difference&lt;BR /&gt;# you can use kernel to do that for specific boards&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#008000"&gt;FB: ucmd setenv fastboot_dev mmc3&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#008000"&gt;FB: ucmd setenv mmcdev ${emmc_dev}&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;FB: flash bootloader u-boot-dtb.imx&lt;/P&gt;&lt;P&gt;FB: ucmd if env exists emmc_ack; then ; else setenv emmc_ack 0; fi;&lt;/P&gt;&lt;P&gt;FB: ucmd setenv emmc_cmd mmc partconf ${emmc_dev} ${emmc_ack} 1 0&lt;/P&gt;&lt;P&gt;#flashing the kernel image&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;U-Boot &amp;gt; printenv mmcdev&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;## Error: "mmcdev" not defined&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;But I am not using saveenv command in UUU script . Could it be the possible reason?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rk&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2023 10:25:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/uboot-saveenv-not-working/m-p/1708289#M211154</guid>
      <dc:creator>rakesh3</dc:creator>
      <dc:date>2023-08-21T10:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: uboot saveenv not working</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/uboot-saveenv-not-working/m-p/1709007#M211221</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/212816"&gt;@rakesh3&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 refer to the below document for&amp;nbsp;Flashing Linux BSP using UUU.&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/Flashing-Linux-BSP-using-UUU/ta-p/1110679" target="_blank" rel="noopener" data-saferedirecturl="https://www.google.com/url?q=https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/Flashing-Linux-BSP-using-UUU/ta-p/1110679&amp;amp;source=gmail&amp;amp;ust=1692776318028000&amp;amp;usg=AOvVaw0WqQ29IEZB5kHdQ0NQDI3e"&gt;https://community.nxp.com/t5/&lt;WBR /&gt;i-MX-Processors-Knowledge-&lt;WBR /&gt;Base/Flashing-Linux-BSP-using-&lt;WBR /&gt;UUU/ta-p/1110679&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks&amp;nbsp;&amp;amp; Regards&lt;/DIV&gt;
&lt;DIV&gt;Dhruvit Vasavada&lt;/DIV&gt;</description>
      <pubDate>Tue, 22 Aug 2023 10:06:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/uboot-saveenv-not-working/m-p/1709007#M211221</guid>
      <dc:creator>Dhruvit</dc:creator>
      <dc:date>2023-08-22T10:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: uboot saveenv not working</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/uboot-saveenv-not-working/m-p/1709404#M211251</link>
      <description>&lt;P&gt;Maybe you can check the following discussion.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors/saveenv-is-not-working-from-uuu-script/m-p/1701040#M210458" target="_blank"&gt;Re: saveenv is not working from uuu script - NXP Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 22:27:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/uboot-saveenv-not-working/m-p/1709404#M211251</guid>
      <dc:creator>jackie2</dc:creator>
      <dc:date>2023-08-22T22:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: uboot saveenv not working</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/uboot-saveenv-not-working/m-p/1711749#M211486</link>
      <description>&lt;P&gt;Thanks &lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201299" target="_self"&gt;&lt;SPAN class=""&gt;Dhruvit&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp;for your respond,&lt;/P&gt;&lt;P&gt;I think, I am using the same configuration in the UUU script. Below is my UUU script for loading the uboot.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;uuu_version 1.5.21&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;# This command will be run when i.MX6/7 i.MX8MM, i.MX8MQ&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;SDP: boot -f u-boot-dtb.imx&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;# This command will be run when ROM support stream mode&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;# i.MX8QXP, i.MX8QM&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;SDPS: boot -f u-boot-dtb.imx&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;# These commands will be run when use SPL and will be skipped if no spl&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;# SDPU will be deprecated. please use SDPV instead of SDPU&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;# {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;SDPU: delay 1000&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;SDPU: write -f u-boot-dtb.imx -offset 0x57c00&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;SDPU: jump&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;# }&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;# These commands will be run when use SPL and will be skipped if no spl&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;# if (SPL support SDPV)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;# {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;SDPV: delay 1000&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;SDPV: write -f u-boot-dtb.imx -skipspl&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;SDPV: jump&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;# }&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;# use uboot burn bootloader to eMMC&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;# becaue difference chip, offset is difference&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;# you can use kernel to do that for specific boards&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT color="#008000"&gt;&lt;STRONG&gt;FB: ucmd setenv fastboot_dev mmc3&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#008000"&gt;&lt;STRONG&gt;FB: ucmd setenv mmcdev ${emmc_dev}&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;&lt;STRONG&gt;FB: ucmd mmc dev ${emmc_dev}&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;I using the below uboot config&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;CONFIG_ENV_SUPPORT=y&lt;BR /&gt;CONFIG_SAVEENV=y&lt;BR /&gt;CONFIG_CMD_SAVEENV =y &lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;CONFIG_ENV_OFFSET=0xE0000&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;# CONFIG_CMD_ERASEENV is not set&lt;BR /&gt;CONFIG_CMD_TFTPBOOT=y&lt;BR /&gt;# CONFIG_ENV_IS_NOWHERE is not set&lt;BR /&gt;CONFIG_ENV_IS_IN_MMC=y&lt;BR /&gt;CONFIG_SYS_MMC_ENV_DEV=2&lt;BR /&gt;CONFIG_SYS_MMC_ENV_PART=0&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;# CONFIG_SUPPORT_EMMC_BOOT is not set&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;But on flashing the board with UUU tools using above UUU script then its showing the below o/p.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN class=""&gt;flash target is MMC:3&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN class=""&gt;But after flashing the board when Its reboot its changing the MMC and showing below o/p.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN class=""&gt;flash target is MMC:2&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN class=""&gt;and on using the "&amp;gt;saveenv " command its giving&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;No block device&lt;BR /&gt;Failed (1)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Please have a look into this script and help me if any thing seems misconfigure in this.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Aug 2023 08:49:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/uboot-saveenv-not-working/m-p/1711749#M211486</guid>
      <dc:creator>rakesh3</dc:creator>
      <dc:date>2023-08-27T08:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: uboot saveenv not working</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/uboot-saveenv-not-working/m-p/1711957#M211529</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled2.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/238226i02FC6182145E0367/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled2.png" alt="Untitled2.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled1.png" style="width: 592px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/238228iE4114C6F5BFDA97F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled1.png" alt="Untitled1.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled3.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/238229i35F98A9E37AA5790/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled3.png" alt="Untitled3.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 06:31:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/uboot-saveenv-not-working/m-p/1711957#M211529</guid>
      <dc:creator>jackie2</dc:creator>
      <dc:date>2023-08-28T06:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: uboot saveenv not working</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/uboot-saveenv-not-working/m-p/1711997#M211533</link>
      <description>&lt;P&gt;Hi jackie, thanks for reply,&lt;/P&gt;&lt;P&gt;I am also using the same&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;uuu_version 1.5.21&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;# This command will be run when i.MX6/7 i.MX8MM, i.MX8MQ&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;SDP: boot -f u-boot-dtb.imx&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;# This command will be run when ROM support stream mode&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;# i.MX8QXP, i.MX8QM&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;SDPS: boot -f u-boot-dtb.imx&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;# These commands will be run when use SPL and will be skipped if no spl&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;# SDPU will be deprecated. please use SDPV instead of SDPU&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;# {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;SDPU: delay 1000&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;SDPU: write -f u-boot-dtb.imx -offset 0x57c00&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;SDPU: jump&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;# }&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;# These commands will be run when use SPL and will be skipped if no spl&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;# if (SPL support SDPV)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;# {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;SDPV: delay 1000&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;SDPV: write -f u-boot-dtb.imx -skipspl&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;SDPV: jump&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;# }&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;# use uboot burn bootloader to eMMC&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;# becaue difference chip, offset is difference&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;# you can use kernel to do that for specific boards&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;FB: ucmd setenv fastboot_dev mmc3&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;FB: ucmd setenv mmcdev ${emmc_dev}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;FB: ucmd mmc dev ${emmc_dev}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;FB: ucmd saveenv&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;FB: flash bootloader u-boot-dtb.imx&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;#FB: ucmd if env exists emmc_ack; then ; else setenv emmc_ack 0; fi;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;#FB: ucmd setenv emmc_cmd mmc partconf ${emmc_dev} ${emmc_ack} 1 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;#FB: ucmd saveenv&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;FBK: DONE&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;But I am getting below error on using the saveenv command in UUU .&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;New USB Device Attached at 2:8&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;2:8&amp;gt;Start Cmd:SDP: boot -f u-boot-dtb.imx&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;100%2:8&amp;gt;Okay (1.399s)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;New USB Device Attached at 2:8&lt;/FONT&gt;&lt;BR /&gt;New USB Device Attached at 1:9&lt;BR /&gt;1:9&amp;gt;Start Cmd:SDP: boot -f u-boot-dtb.imx&lt;BR /&gt;100%1:9&amp;gt;Okay (1.283s)&lt;BR /&gt;New USB Device Attached at 1:9&lt;BR /&gt;1:9&amp;gt;Start Cmd:FB: ucmd setenv fastboot_dev mmc3&lt;BR /&gt;1:9&amp;gt;Okay (0.001s)&lt;BR /&gt;1:9&amp;gt;Start Cmd:FB: ucmd setenv mmcdev ${emmc_dev}&lt;BR /&gt;1:9&amp;gt;Okay (0s)&lt;BR /&gt;1:9&amp;gt;Start Cmd:FB: ucmd saveenv&lt;BR /&gt;1:9&amp;gt;Fail Bulk(R):LIBUSB_ERROR_IO(0.148s)&lt;BR /&gt;1:9&amp;gt;Start Cmd:FB: flash bootloader u-boot-dtb.imx&lt;BR /&gt;0x400000001:9&amp;gt;Okay (0.18s)&lt;BR /&gt;1:9&amp;gt;Start Cmd:FB: ucmd if env exists emmc_ack; then ; else setenv emmc_ack 0; fi;&lt;BR /&gt;1:9&amp;gt;Okay (0.001s)&lt;BR /&gt;1:9&amp;gt;Start Cmd:FB: ucmd setenv emmc_cmd mmc partconf ${emmc_dev} ${emmc_ack} 1 0&lt;BR /&gt;1:9&amp;gt;Okay (0s)&lt;/P&gt;&lt;P&gt;and on terminal , I am getting below.&lt;/P&gt;&lt;P&gt;U-Boot 2021.04-00007-g7ea82d90df-dirty (Feb 28 2023 - 18:09:37 +0530)&lt;/P&gt;&lt;H5&gt;CPU: i.MX6D rev1.6 at 792MHz&lt;BR /&gt;CPU: Industrial temperature grade (-40C to 105C) at 36C&lt;BR /&gt;Reset cause: POR&lt;BR /&gt;Model: Freescale i.MX6 Quad SABRE Smart Device Board&lt;BR /&gt;DRAM: 1 GiB&lt;BR /&gt;PMIC: PFUZE100! DEV_ID=0x10 REV_ID=0x21&lt;BR /&gt;MMC: FSL_SDHC: 1, FSL_SDHC: 2, FSL_SDHC: 3&lt;BR /&gt;In: serial&lt;BR /&gt;Out: serial&lt;BR /&gt;Err: serial&lt;BR /&gt;&lt;STRONG&gt;flash target is MMC:2&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Card did not respond to voltage select! : -110&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;MMC card init failed!&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Card did not respond to voltage select! : -110&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;** Block device MMC 2 not supported&lt;/STRONG&gt;&lt;BR /&gt;Net: FEC [PRIME]&lt;BR /&gt;Fastboot: Normal&lt;BR /&gt;Normal Boot&lt;BR /&gt;Hit any key to stop autoboot: 0&lt;BR /&gt;MX6 U-Boot &amp;gt;&lt;BR /&gt;MX6 U-Boot &amp;gt;&lt;BR /&gt;MX6U-Boot &amp;gt; &lt;STRONG&gt;saveenv&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Saving Environment to MMC... Card did not respond to voltage select! : -110&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;No block device&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Failed (1)&lt;/STRONG&gt;&lt;BR /&gt;MX6 U-Boot &amp;gt;&lt;/H5&gt;&lt;P&gt;I am getting "LIBUSB_ERROR_IO(0.148s)" error while using the saveenv cmd in UUU.&lt;/P&gt;&lt;P&gt;But on reboot its "falsh target is getting to MMC:2 " and then all issue starts.&lt;/P&gt;&lt;P&gt;flash target is MMC:2&lt;BR /&gt;Card did not respond to voltage select! : -110&lt;BR /&gt;MMC card init failed!&lt;BR /&gt;Card did not respond to voltage select! : -110&lt;BR /&gt;** Block device MMC 2 not supported&lt;/P&gt;&lt;P&gt;Is this line correct ? Not mentioning the mmc dev in fastboot_dev any thing ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is my u-boot fast boot configuration for emmc_dev 3.&lt;/P&gt;&lt;P&gt;+CONFIG_CMD_FASTBOOT=y&lt;BR /&gt;+CONFIG_USB_FUNCTION_FASTBOOT=y&lt;BR /&gt;+CONFIG_FASTBOOT_UUU_SUPPORT=y&lt;BR /&gt;+CONFIG_FASTBOOT=y&lt;BR /&gt;+CONFIG_FASTBOOT_BUF_ADDR=0x12000000&lt;BR /&gt;+CONFIG_FASTBOOT_BUF_SIZE=0x40000000&lt;BR /&gt;+CONFIG_FASTBOOT_FLASH=y&lt;BR /&gt;+CONFIG_FASTBOOT_FLASH_MMC_DEV=3&lt;BR /&gt;+CONFIG_EFI_PARTITION=y&lt;BR /&gt;+CONFIG_DISTRO_DEFAULTS=y&lt;BR /&gt;+CONFIG_USB_GADGET_MANUFACTURER="FSL"&lt;BR /&gt;+CONFIG_USB_GADGET_VENDOR_NUM=0x0525&lt;BR /&gt;+CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5&lt;/P&gt;&lt;P&gt;Please suggest on this error .&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 09:12:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/uboot-saveenv-not-working/m-p/1711997#M211533</guid>
      <dc:creator>rakesh3</dc:creator>
      <dc:date>2023-08-28T09:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: uboot saveenv not working</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/uboot-saveenv-not-working/m-p/1712762#M211617</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/212816"&gt;@rakesh3&lt;/a&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 the&amp;nbsp;value of&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;CONFIG_SYS_MMC_ENV_DEV&lt;/STRONG&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;CONFIG_ENV_OFFSET&lt;/STRONG&gt;, and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;CONFIG_ENV_SIZE&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;matches with the /etc/fw_env.config.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;If you are using the EVK, kindly try to flash the demo images from the&amp;nbsp;&lt;A href="https://www.nxp.com/design/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applications-processors:IMXLINUX" target="_blank" rel="noopener" data-saferedirecturl="https://www.google.com/url?q=https://www.nxp.com/design/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applications-processors:IMXLINUX&amp;amp;source=gmail&amp;amp;ust=1693371424897000&amp;amp;usg=AOvVaw0bI237vHM_ZQ1Zrm0vIfzq"&gt;Embedded Linux for i.MX Applications Processors&lt;/A&gt;&amp;nbsp;using UUU utility and share the results.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Dhruvit Vasavada&lt;/DIV&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 05:06:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/uboot-saveenv-not-working/m-p/1712762#M211617</guid>
      <dc:creator>Dhruvit</dc:creator>
      <dc:date>2023-08-29T05:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: uboot saveenv not working</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/uboot-saveenv-not-working/m-p/1713073#M211646</link>
      <description>&lt;P&gt;Sorry , I dont have that file in my rootfs.&lt;/P&gt;&lt;P&gt;/etc# ls -l fw_env.config&lt;BR /&gt;ls: cannot access 'fw_env.config': No such file or directory&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to get that file or enable any config for this ?&lt;/P&gt;&lt;P&gt;Do we need the fastboot configuration to use below in UUU.&lt;/P&gt;&lt;P&gt;FB: ucmd setenv fastboot_dev mmc3&lt;BR /&gt;FB: ucmd setenv mmcdev ${emmc_dev}&lt;/P&gt;&lt;P&gt;FB: ucmd saveenv&lt;/P&gt;&lt;P&gt;Sorry ,I am not using the EVK board here, I am using the custom board based on imx6dsabresd.&lt;/P&gt;&lt;P&gt;Please help on this.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rk&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 17:43:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/uboot-saveenv-not-working/m-p/1713073#M211646</guid>
      <dc:creator>rakesh3</dc:creator>
      <dc:date>2023-08-29T17:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: uboot saveenv not working</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/uboot-saveenv-not-working/m-p/1715609#M211856</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/212816"&gt;@rakesh3&lt;/a&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;
&lt;P&gt;&lt;SPAN&gt;=&amp;gt; For the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Uboot config-related&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;information please refer to&amp;nbsp;&lt;U&gt;section&amp;nbsp;&lt;/U&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;U&gt;10 Uboot config requirement&lt;/U&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;from&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.nxp.com/pwmxy87654/attachments/pwmxy87654/imx-processors/140261/1/UUU.pdf" target="_blank" rel="noopener" data-saferedirecturl="https://www.google.com/url?q=https://community.nxp.com/pwmxy87654/attachments/pwmxy87654/imx-processors/140261/1/UUU.pdf&amp;amp;source=gmail&amp;amp;ust=1693637990614000&amp;amp;usg=AOvVaw0BX7C8Av_JOnODvsi2ZQfo"&gt;UUU.pdf&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;DIV&gt;For the query regarding fw_env.config, please refer to this&amp;nbsp;&lt;A href="https://github.com/nxp-imx/uboot-imx/blob/lf_v2022.04/tools/env/fw_env.config" target="_blank" rel="noopener" data-saferedirecturl="https://www.google.com/url?q=https://github.com/nxp-imx/uboot-imx/blob/lf_v2022.04/tools/env/fw_env.config&amp;amp;source=gmail&amp;amp;ust=1693637990614000&amp;amp;usg=AOvVaw07LcUVSovtTIaV63lT2CBf"&gt;fw_env.config&lt;/A&gt;&amp;nbsp;file. You can modify it according to your custom board and put it in /etc and check whether the environment variable can be accessed from Linux or not.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Please check the&amp;nbsp;below Document for more information.&lt;/DIV&gt;
&lt;DIV&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=1693637990614000&amp;amp;usg=AOvVaw31wKfsiEe9snjclcn0oHlh"&gt;https://community.nxp.com/t5/&lt;WBR /&gt;i-MX-Processors-Knowledge-&lt;WBR /&gt;Base/Linux-fw-printenv-fw-&lt;WBR /&gt;setenv-to-access-U-Boot-s-&lt;WBR /&gt;environment/ta-p/1121201&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;For the Porting U-boot, it is recommended&amp;nbsp;to refer to the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;U&gt;BSP Porting Guide&lt;/U&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;corresponding to your BSP version provided on the NXP official website.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks &amp;amp; Regards,&lt;/DIV&gt;
&lt;DIV&gt;Dhruvit Vasavada&lt;/DIV&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 07:22:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/uboot-saveenv-not-working/m-p/1715609#M211856</guid>
      <dc:creator>Dhruvit</dc:creator>
      <dc:date>2023-09-01T07:22:32Z</dc:date>
    </item>
  </channel>
</rss>

