<?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: U-boot cannot cover by using mfgtool</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/U-boot-cannot-cover-by-using-mfgtool/m-p/812343#M125269</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adrian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First I tried to change u-boot environment from A to B.&lt;/P&gt;&lt;P&gt;Second I tried to change my u-boot environment back to A by using mfgtool to update whole image including system.img and boot.img&amp;nbsp; etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in the second step it cannot work.&lt;/P&gt;&lt;P&gt;Even I tried to update whole image via mfgtool, u-boot environment is still be B not be A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I fix this situation?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Aug 2018 01:53:46 GMT</pubDate>
    <dc:creator>wangtsungli</dc:creator>
    <dc:date>2018-08-22T01:53:46Z</dc:date>
    <item>
      <title>U-boot cannot cover by using mfgtool</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/U-boot-cannot-cover-by-using-mfgtool/m-p/812341#M125267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working on i.MX6 Quad sabre-SD platform and build Android 6 as my image.&lt;/P&gt;&lt;P&gt;Here is the situation now.&lt;/P&gt;&lt;P&gt;On the first burning image, u-boot seems working well.&lt;/P&gt;&lt;P&gt;And I tried to change the u-boot environment via console and saveenv to change environment settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that I tried to update image via mfgtool to cover the u-boot environment which I had changed before.&lt;/P&gt;&lt;P&gt;However it did not success, u-boot environment is still the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The strange thing is that mfgtool still show burning success to me.&lt;/P&gt;&lt;P&gt;Below is my ucl2.xml.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;lt;UCL&amp;gt;&lt;BR /&gt; &amp;lt;CFG&amp;gt;&lt;BR /&gt; &amp;lt;STATE name="BootStrap" dev="MX6D" vid="15A2" pid="0061"/&amp;gt;&lt;BR /&gt; &amp;lt;STATE name="BootStrap" dev="MX6Q" vid="15A2" pid="0054"/&amp;gt;&lt;BR /&gt; &amp;lt;STATE name="Updater" dev="MSC" vid="066F" pid="37FF"/&amp;gt;&lt;BR /&gt; &amp;lt;/CFG&amp;gt;&lt;BR /&gt;&amp;lt;LIST name="eMMC-Android" desc="Choose eMMC as media"&amp;gt;&lt;BR /&gt; &amp;lt;CMD state="BootStrap" type="boot" body="BootStrap" file ="firmware/u-boot-imx6q%plus%%board%_sd.imx" ifdev="MX6Q"&amp;gt;Loading U-boot&amp;lt;/CMD&amp;gt;&lt;BR /&gt; &amp;lt;CMD state="BootStrap" type="boot" body="BootStrap" file ="firmware/u-boot-imx6dl%plus%%board%_sd.imx" ifdev="MX6D"&amp;gt;Loading U-boot&amp;lt;/CMD&amp;gt;&lt;BR /&gt; &lt;BR /&gt; &amp;lt;CMD state="BootStrap" type="load" file="firmware/zImage" address="0x12000000"&lt;BR /&gt; loadSection="OTH" setSection="OTH" HasFlashHeader="FALSE" ifdev="MX6Q MX6D"&amp;gt;Loading Kernel.&amp;lt;/CMD&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &amp;lt;CMD state="BootStrap" type="load" file="firmware/%initramfs%" address="0x12C00000"&lt;BR /&gt; loadSection="OTH" setSection="OTH" HasFlashHeader="FALSE" ifdev="MX6Q MX6D"&amp;gt;Loading Initramfs.&amp;lt;/CMD&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;CMD state="BootStrap" type="load" file="firmware/zImage-imx6q-%board%%ldo%.dtb" address="0x18000000"&lt;BR /&gt; loadSection="OTH" setSection="OTH" HasFlashHeader="FALSE" ifdev="MX6Q"&amp;gt;Loading device tree.&amp;lt;/CMD&amp;gt;&lt;BR /&gt; &amp;lt;CMD state="BootStrap" type="load" file="firmware/zImage-imx6dl-%board%%ldo%.dtb" address="0x18000000"&lt;BR /&gt; loadSection="OTH" setSection="OTH" HasFlashHeader="FALSE" ifdev="MX6D"&amp;gt;Loading device tree.&amp;lt;/CMD&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;CMD state="BootStrap" type="jump" &amp;gt; Jumping to OS image. &amp;lt;/CMD&amp;gt;&lt;BR /&gt; &lt;BR /&gt; &amp;lt;!-- create partition --&amp;gt;&lt;BR /&gt; &amp;lt;CMD state="Updater" type="push" body="send" file="mksdcard-android%data_type%.sh.tar"&amp;gt;Sending partition shell&amp;lt;/CMD&amp;gt;&lt;BR /&gt; &amp;lt;CMD state="Updater" type="push" body="$ tar xf $FILE "&amp;gt; Partitioning...&amp;lt;/CMD&amp;gt;&lt;BR /&gt; &amp;lt;CMD state="Updater" type="push" body="$ sh mksdcard-android%data_type%.sh /dev/mmcblk%mmc%"&amp;gt; Partitioning...&amp;lt;/CMD&amp;gt;&lt;BR /&gt; &lt;BR /&gt; &amp;lt;!-- burn uboot --&amp;gt;&lt;BR /&gt; &amp;lt;CMD state="Updater" type="push" body="$ dd if=/dev/zero of=/dev/mmcblk%mmc% bs=1k seek=768 conv=fsync count=512"&amp;gt;clear u-boot arg&amp;lt;/CMD&amp;gt;&lt;BR /&gt; &amp;lt;CMD state="Updater" type="push" body="$ echo 0 &amp;gt; /sys/block/mmcblk%mmc%boot0/force_ro"&amp;gt;access boot partition 1&amp;lt;/CMD&amp;gt;&lt;BR /&gt; &amp;lt;CMD state="Updater" type="push" body="send" file="files/android/%folder%/u-boot-imx%soc%%ldo%.imx" &amp;gt;Sending u-boot.bin&amp;lt;/CMD&amp;gt;&lt;BR /&gt; &amp;lt;CMD state="Updater" type="push" body="$ dd if=$FILE of=/dev/mmcblk%mmc%boot0 bs=512 seek=2 "&amp;gt;write U-Boot to sd card&amp;lt;/CMD&amp;gt;&lt;BR /&gt; &amp;lt;CMD state="Updater" type="push" body="$ echo 1 &amp;gt; /sys/block/mmcblk%mmc%boot0/force_ro"&amp;gt; re-enable read-only access &amp;lt;/CMD&amp;gt;&lt;BR /&gt; &amp;lt;CMD state="Updater" type="push" body="$ sync"&amp;gt;Sync file system&amp;lt;/CMD&amp;gt;&lt;BR /&gt; &lt;BR /&gt; &amp;lt;!-- burn kernel --&amp;gt;&lt;BR /&gt; &amp;lt;CMD state="Updater" type="push" body="$ mmc bootpart enable 1 1 /dev/mmcblk%mmc%"&amp;gt;enable boot partion 1 to boot&amp;lt;/CMD&amp;gt;&lt;BR /&gt; &amp;lt;CMD state="Updater" type="push" body="$ ls -l /dev/mmc* "&amp;gt;Formatting sd partition&amp;lt;/CMD&amp;gt;&lt;BR /&gt; &amp;lt;CMD state="Updater" type="push" body="send" file="files/android/%folder%/boot-imx%soc%%ldo%.img" &amp;gt;Sending and writting boot.img&amp;lt;/CMD&amp;gt;&lt;BR /&gt; &amp;lt;CMD state="Updater" type="push" body="$ dd if=$FILE of=/dev/mmcblk%mmc%p1"&amp;gt;write boot.img&amp;lt;/CMD&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!-- burn system --&amp;gt;&lt;BR /&gt; &amp;lt;CMD state="Updater" type="push" body="$ mkfs.ext4 -E nodiscard /dev/mmcblk%mmc%p5"&amp;gt;Formatting system partition&amp;lt;/CMD&amp;gt;&lt;BR /&gt; &amp;lt;CMD state="Updater" type="push" body="$ mkfs.ext4 -E nodiscard /dev/mmcblk%mmc%p6"&amp;gt;Formatting cache partition&amp;lt;/CMD&amp;gt;&lt;BR /&gt; &amp;lt;CMD state="Updater" type="push" body="$ mkfs.ext4 -E nodiscard /dev/mmcblk%mmc%p7"&amp;gt;Formatting device partition&amp;lt;/CMD&amp;gt;&lt;BR /&gt; &amp;lt;CMD state="Updater" type="push" body="$ mount -o remount,size=1500M rootfs /"&amp;gt;change size of tmpfs&amp;lt;/CMD&amp;gt;&lt;BR /&gt; &amp;lt;CMD state="Updater" type="push" body="send" file="files/android/%folder%/system.img" &amp;gt;Sending system.img&amp;lt;/CMD&amp;gt;&lt;BR /&gt; &amp;lt;CMD state="Updater" type="push" body="$ simg2img $FILE /dev/mmcblk%mmc%p5"&amp;gt;writting sparse system.img&amp;lt;/CMD&amp;gt;&lt;BR /&gt; &lt;BR /&gt; &amp;lt;!-- Write userdata.img is optional, for some customer this is needed, but it's optional. --&amp;gt;&lt;BR /&gt; &amp;lt;!-- Also, userdata.img will have android unit test, you can use this to do some auto test. --&amp;gt;&lt;BR /&gt; &amp;lt;!-- &amp;lt;CMD state="Updater" type="push" ="ignore" body="pipe dd of=/dev/mmcblk0p7" file="file/android/userdate.img"&amp;gt; Sending userdata.img(optional) &amp;lt;/CMD&amp;gt;&lt;BR /&gt; &amp;lt;CMD state="Updater" type="push" body="frf"&amp;gt;flush the memory.&amp;lt;/CMD&amp;gt; --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!-- burn recovery --&amp;gt;&lt;BR /&gt; &amp;lt;CMD state="Updater" type="push" body="pipe dd of=/dev/mmcblk%mmc%p2 bs=512" file="files/android/%folder%/recovery-imx%soc%%ldo%.img"&amp;gt;Sending and writting recovery.img&amp;lt;/CMD&amp;gt;&lt;BR /&gt; &amp;lt;CMD state="Updater" type="push" body="$ sync"&amp;gt;Sync file system&amp;lt;/CMD&amp;gt;&lt;BR /&gt; &amp;lt;CMD state="Updater" type="push" body="frf"&amp;gt;Finishing rootfs write&amp;lt;/CMD&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;CMD state="Updater" type="push" body="$ echo Update Complete!"&amp;gt;Done&amp;lt;/CMD&amp;gt;&lt;BR /&gt; &lt;BR /&gt;&amp;lt;/LIST&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I solve this problem?&lt;/P&gt;&lt;P&gt;Please help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thanks in Advanced!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2018 15:34:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/U-boot-cannot-cover-by-using-mfgtool/m-p/812341#M125267</guid>
      <dc:creator>wangtsungli</dc:creator>
      <dc:date>2018-08-21T15:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: U-boot cannot cover by using mfgtool</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/U-boot-cannot-cover-by-using-mfgtool/m-p/812342#M125268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I quite do not understand well your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, If you change the u-boot environment settings, you will not need to rerun the MFGtool if you saved the environment. The Android image will start with the new environment&amp;nbsp;variables. Hope this can solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Diego.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2018 20:07:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/U-boot-cannot-cover-by-using-mfgtool/m-p/812342#M125268</guid>
      <dc:creator>diegoadrian</dc:creator>
      <dc:date>2018-08-21T20:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: U-boot cannot cover by using mfgtool</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/U-boot-cannot-cover-by-using-mfgtool/m-p/812343#M125269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adrian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First I tried to change u-boot environment from A to B.&lt;/P&gt;&lt;P&gt;Second I tried to change my u-boot environment back to A by using mfgtool to update whole image including system.img and boot.img&amp;nbsp; etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in the second step it cannot work.&lt;/P&gt;&lt;P&gt;Even I tried to update whole image via mfgtool, u-boot environment is still be B not be A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I fix this situation?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2018 01:53:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/U-boot-cannot-cover-by-using-mfgtool/m-p/812343#M125269</guid>
      <dc:creator>wangtsungli</dc:creator>
      <dc:date>2018-08-22T01:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: U-boot cannot cover by using mfgtool</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/U-boot-cannot-cover-by-using-mfgtool/m-p/812344#M125270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to go to the default environment, you can try with the below u-boot command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u-boot -&amp;gt; default env -a&lt;/P&gt;&lt;P&gt;u-boot -&amp;gt; saveenv&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this command will be restored to the default environment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this can solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Diego.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2018 15:11:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/U-boot-cannot-cover-by-using-mfgtool/m-p/812344#M125270</guid>
      <dc:creator>diegoadrian</dc:creator>
      <dc:date>2018-08-22T15:11:55Z</dc:date>
    </item>
  </channel>
</rss>

