<?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: could not update u-boot command line via mfgtool</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/could-not-update-u-boot-command-line-via-mfgtool/m-p/847602#M129783</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;Your answer solves my problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Mar 2019 07:04:18 GMT</pubDate>
    <dc:creator>wangtsungli</dc:creator>
    <dc:date>2019-03-14T07:04:18Z</dc:date>
    <item>
      <title>could not update u-boot command line via mfgtool</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/could-not-update-u-boot-command-line-via-mfgtool/m-p/847596#M129777</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;I'm working on i.MX6 Quad sabre-SD platform and build Android 6 for my image.&lt;/P&gt;&lt;P&gt;Now I have faced strange phenomenon.&lt;/P&gt;&lt;P&gt;Here is the situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I update my image via mfgtool.&lt;/P&gt;&lt;P&gt;And below is my u-boot burning part in ucl2.xml.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&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;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;After burning image, mfgtool would show green bar to be success.&lt;/P&gt;&lt;P&gt;So I booting my machine and get into u-boot environment console to check&amp;nbsp;whether u-boot command line has been changed correctly or not.&lt;/P&gt;&lt;P&gt;But I find out that u-boot command line did not change to latest version.&lt;/P&gt;&lt;P&gt;But the time did update like below picture&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_6.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/67916iF0E66386933FAB94/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_6.png" alt="pastedImage_6.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If picture is too small, could see original picture attached below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the red block shows time that your u-boot updated.&lt;/P&gt;&lt;P&gt;And blue block shows my u-boot command line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Red block did update time so I assume that my u-boot burned the image well.&lt;/P&gt;&lt;P&gt;But Blue block did not change to what I set in my source code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I fix this problem?&lt;/P&gt;&lt;P&gt;How can I change my u-boot command line?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advanced!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2018 05:59:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/could-not-update-u-boot-command-line-via-mfgtool/m-p/847596#M129777</guid>
      <dc:creator>wangtsungli</dc:creator>
      <dc:date>2018-08-31T05:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: could not update u-boot command line via mfgtool</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/could-not-update-u-boot-command-line-via-mfgtool/m-p/847597#M129778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi tsung&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can try to change bootargs in uboot/include/configs/mx6sabre_common.h&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://source.codeaurora.org/external/imx/uboot-imx/tree/include/configs/mx6sabre_common.h?h=nxp/imx_v2016.03_4.1.15_2.0.0_ga" title="https://source.codeaurora.org/external/imx/uboot-imx/tree/include/configs/mx6sabre_common.h?h=nxp/imx_v2016.03_4.1.15_2.0.0_ga"&gt;mx6sabre_common.h\configs\include - uboot-imx - i.MX U-Boot&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2018 07:27:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/could-not-update-u-boot-command-line-via-mfgtool/m-p/847597#M129778</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-08-31T07:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: could not update u-boot command line via mfgtool</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/could-not-update-u-boot-command-line-via-mfgtool/m-p/847598#M129779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/igorpadykov"&gt;igorpadykov&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;I had changed the u-boot command line in uboot/include/configs/mx6sabreandroid_common.h&lt;/P&gt;&lt;P&gt;Below is what I add.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;#if defined(CONFIG_FX_SELINUX)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#if defined(FX_DUAL_DISPLAY)&lt;BR /&gt;#define BOOT_ENV_VIDEO "bootargs= console=ttymxc0,115200 init=/init video=mxcfb0:dev=ldb,bpp=32 video=mxcfb1:dev=hdmi,1920x1080M@60,bpp=32 video=mxcfb2:off video=mxcfb3:off vmalloc=256M androidboot.console=ttymxc0 consoleblank=0 androidboot.hardware=FX100 cma=384M androidboot.selinux=enforcing androidboot.dm_verity=disabled no_console_suspend=1 enable_wait_mode=off \0"&lt;BR /&gt;#elif defined(FX_HDMI_DISPLAY)&lt;BR /&gt;#define BOOT_ENV_VIDEO "bootargs= console=ttymxc0,115200 init=/init video=mxcfb0:dev=hdmi,1920x1080M@60,bpp=32 video=mxcfb1:off video=mxcfb2:off video=mxcfb3:off vmalloc=256M androidboot.console=ttymxc0 consoleblank=0 androidboot.hardware=FX100 cma=384M androidboot.selinux=enforcing androidboot.dm_verity=disabled no_console_suspend=1 enable_wait_mode=off \0"&lt;BR /&gt;#else&lt;BR /&gt;#define BOOT_ENV_VIDEO "bootargs= console=ttymxc0,115200 init=/init video=mxcfb0:dev=ldb,bpp=32 video=mxcfb1:off video=mxcfb2:off video=mxcfb3:off vmalloc=256M androidboot.console=ttymxc0 consoleblank=0 androidboot.hardware=FX100 cma=384M androidboot.selinux=disabled androidboot.dm_verity=disabled no_console_suspend=1 enable_wait_mode=off \0"&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#else&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#if defined(FX_DUAL_DISPLAY)&lt;BR /&gt;#define BOOT_ENV_VIDEO "bootargs= console=ttymxc0,115200 init=/init video=mxcfb0:dev=ldb,bpp=32 video=mxcfb1:dev=hdmi,1920x1080M@60,bpp=32 video=mxcfb2:off video=mxcfb3:off vmalloc=256M androidboot.console=ttymxc0 consoleblank=0 androidboot.hardware=FX100 cma=384M androidboot.selinux=disabled androidboot.dm_verity=disabled no_console_suspend=1 enable_wait_mode=off \0"&lt;BR /&gt;#elif defined(FX_HDMI_DISPLAY)&lt;BR /&gt;#define BOOT_ENV_VIDEO "bootargs= console=ttymxc0,115200 init=/init video=mxcfb0:dev=hdmi,1920x1080M@60,bpp=32 video=mxcfb1:off video=mxcfb2:off video=mxcfb3:off vmalloc=256M androidboot.console=ttymxc0 consoleblank=0 androidboot.hardware=FX100 cma=384M androidboot.selinux=disabled androidboot.dm_verity=disabled no_console_suspend=1 enable_wait_mode=off \0"&lt;BR /&gt;#else&lt;BR /&gt;#define BOOT_ENV_VIDEO "bootargs= console=ttymxc0,115200 init=/init video=mxcfb0:dev=ldb,bpp=32 video=mxcfb1:off video=mxcfb2:off video=mxcfb3:off vmalloc=256M androidboot.console=ttymxc0 consoleblank=0 androidboot.hardware=FX100 cma=384M androidboot.selinux=disabled androidboot.dm_verity=disabled no_console_suspend=1 enable_wait_mode=off \0"&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define CONFIG_EXTRA_ENV_SETTINGS \&lt;BR /&gt; "splashpos=m,m\0" \&lt;BR /&gt; "fdt_high=0xffffffff\0" \&lt;BR /&gt; "initrd_high=0xffffffff\0" \&lt;BR /&gt; BOOT_ENV_VIDEO \&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I tried to add config in my own design make file and set it into BOOT_ENV_VIDEO.&lt;/P&gt;&lt;P&gt;In mx6sabresd_common.h will include mx6sabreandroid_common.h and add define with CONFIG_EXTRA_ENV_SETTING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But even I set command line here u-boot environment still not change after I update image via mfgtool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What did miss?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advanced!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Sep 2018 02:13:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/could-not-update-u-boot-command-line-via-mfgtool/m-p/847598#M129779</guid>
      <dc:creator>wangtsungli</dc:creator>
      <dc:date>2018-09-01T02:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: could not update u-boot command line via mfgtool</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/could-not-update-u-boot-command-line-via-mfgtool/m-p/847599#M129780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/igorpadykov"&gt;igorpadykov&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;Is there any other way to solve my problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2018 07:54:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/could-not-update-u-boot-command-line-via-mfgtool/m-p/847599#M129780</guid>
      <dc:creator>wangtsungli</dc:creator>
      <dc:date>2018-09-03T07:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: could not update u-boot command line via mfgtool</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/could-not-update-u-boot-command-line-via-mfgtool/m-p/847600#M129781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;nxp has special support service which may be helpful in resolving customer&lt;/P&gt;&lt;P&gt;specific cases:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/support/support/nxp-professional-services:PROFESSIONAL-SERVICE" title="https://www.nxp.com/support/support/nxp-professional-services:PROFESSIONAL-SERVICE"&gt;NXP Professional Services|NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2018 09:12:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/could-not-update-u-boot-command-line-via-mfgtool/m-p/847600#M129781</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-09-03T09:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: could not update u-boot command line via mfgtool</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/could-not-update-u-boot-command-line-via-mfgtool/m-p/847601#M129782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi tsung,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is some mistake under ucl2.xml ( present under mfgtool-c72a398-p1\Profiles\Linux\OS Firmware) of mfg-tool.&lt;/P&gt;&lt;P&gt;It incorrectly tries to erase the uboot arguments at some other offset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here value 768 is incorrect, please refer to the board header file and correct it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#ifndef __IMX6QLD_ICORE_CONFIG_H&lt;BR /&gt;#define __IMX6QLD_ICORE_CONFIG_H&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#include &amp;lt;linux/sizes.h&amp;gt;&lt;BR /&gt;#include "mx6_common.h"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Size of malloc() pool */&lt;BR /&gt;#define CONFIG_SYS_MALLOC_LEN&amp;nbsp;&amp;nbsp;&amp;nbsp; (16 * SZ_1M)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Total Size of Environment Sector */&lt;BR /&gt;#define CONFIG_ENV_SIZE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SZ_128K&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Allow to overwrite serial and ethaddr */&lt;BR /&gt;#define CONFIG_ENV_OVERWRITE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Environment */&lt;BR /&gt;#ifndef CONFIG_ENV_IS_NOWHERE&lt;BR /&gt;/* Environment in MMC */&lt;BR /&gt;# if defined(CONFIG_ENV_IS_IN_MMC)&lt;BR /&gt;#&amp;nbsp; define CONFIG_ENV_OFFSET&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x100000&lt;BR /&gt;/* Environment in NAND */&lt;BR /&gt;# elif defined(CONFIG_ENV_IS_IN_NAND)&lt;BR /&gt;#&amp;nbsp; define CONFIG_ENV_OFFSET&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x400000&lt;BR /&gt;#&amp;nbsp; define CONFIG_ENV_SECT_SIZE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CONFIG_ENV_SIZE&lt;BR /&gt;# endif&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONFIG_ENV_OFFSET here is 0x100000, so you should erase by using seek=1024&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0x100000 = 1048576 (byes in decimal) / 1024 (1k block size) = 1024&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so you should you seek by 1024 blocks and CONFIG_ENV_SIZE is 128k ,so count should be 128&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;finally your command should be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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=1024 conv=fsync count=128"&amp;gt;clear u-boot arg&amp;lt;/CMD&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly add a command to erase the memory region used for extended uboot arguments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Had a similar issue, I tried this for some custom board and it worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Raviteja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2019 11:19:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/could-not-update-u-boot-command-line-via-mfgtool/m-p/847601#M129782</guid>
      <dc:creator>ravitejalaggysh</dc:creator>
      <dc:date>2019-03-07T11:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: could not update u-boot command line via mfgtool</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/could-not-update-u-boot-command-line-via-mfgtool/m-p/847602#M129783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;Your answer solves my problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2019 07:04:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/could-not-update-u-boot-command-line-via-mfgtool/m-p/847602#M129783</guid>
      <dc:creator>wangtsungli</dc:creator>
      <dc:date>2019-03-14T07:04:18Z</dc:date>
    </item>
  </channel>
</rss>

