<?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中的主题 i.MX6UL NAND boot time issue</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6UL-NAND-boot-time-issue/m-p/823277#M126646</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Working on iMX6UL custom board, while booting from NAND, I could see that NAND read of zImage is taking more time(around 2secs). But with sdcard the load time is negligible(in msecs).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;[0.008100 0.000052] CPU: Freescale i.MX6UL rev1.2 528 MHz (running at 396 MHz)&lt;BR /&gt;[0.013223 0.005123] CPU: Commercial temperature grade (0C to 95C) at 34C&lt;BR /&gt;[0.028188 0.014965] Reset cause: POR&lt;BR /&gt;[0.030030 0.001842] Model: Freescale i.MX6 UltraLite 14x14 EVK Board&lt;BR /&gt;[0.034153 0.004123] Board: MX6UL 14x14 EVK&lt;BR /&gt;[0.036188 0.002035] DRAM: 512 MiB&lt;BR /&gt;[0.091716 0.055528] NAND: 512 MiB&lt;BR /&gt;[0.099715 0.007999] MMC: FSL_SDHC: 0&lt;BR /&gt;[0.269463 0.169748] *** Warning - bad CRC, using default environment&lt;BR /&gt;[0.274489 0.005026]&lt;BR /&gt;[0.277464 0.002975] Display: TFT43AB (480x272)&lt;BR /&gt;[0.279788 0.002324] Video: 480x272x24&lt;BR /&gt;[0.286464 0.006676] In: serial&lt;BR /&gt;[0.287720 0.001256] Out: serial&lt;BR /&gt;[0.288857 0.001137] Err: serial&lt;BR /&gt;[0.290582 0.001725] Net: No ethernet found.&lt;BR /&gt;[0.296752 0.006170] Normal Boot&lt;BR /&gt;[0.302464 0.005712] Hit any key to stop autoboot: 0&lt;BR /&gt;[0.305666 0.003202]&lt;BR /&gt;[0.305716 0.000050] NAND read: device 0 offset 0x4000000, size 0x800000&lt;BR /&gt;[2.324317 2.018601] 8388608 bytes read: OK&lt;BR /&gt;[2.326589 0.002272]&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Any reason why it is taking more time to load in case of NAND.&lt;BR /&gt;Is it possible to change the clock value of NAND in U-boot? if so can you help in bumping up the clock value for NAND in GPMC? &lt;BR /&gt;&lt;SPAN&gt;The U-boot source which I am using is "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fsource.codeaurora.org%2Fexternal%2Fimx%2Fuboot-imx%2Flog%2F%3Fh%3Dnxp%2Fimx_v2017.03_4.9.11_1.0.0_ga" rel="nofollow" target="_blank"&gt;https://source.codeaurora.org/external/imx/uboot-imx/log/?h=nxp/imx_v2017.03_4.9.11_1.0.0_ga&lt;/A&gt;&lt;SPAN&gt;".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To analyze further, tried changing the "mtdparts" variable value, but board is failing to boot if I change the boot and kernel partition sizes in "mtdparts". &lt;BR /&gt;Is there any specific reason of giving more size for boot and kernel sizes in mtdparts? &lt;BR /&gt;Following is the mtdparts defined in the i.MX6UL header file in U-boot.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;mtdparts=gpmi-nand:64m(boot),16m(kernel),16m(dtb),-(rootfs)\0&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;I have changed the mtdparts value as shown below, then got error "Bad Linux ARM zImage magic!". &lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;mtdparts=gpmi-nand:2m(boot),8m(kernel),2m(dtb),-(rootfs)\0&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Below error occurred while booting after loading the images.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;NAND read: device 0 offset 0x4000000, size 0x800000&lt;BR /&gt; 8388608 bytes read: OK&lt;/P&gt;&lt;P&gt;NAND read: device 0 offset 0x5000000, size 0x100000&lt;BR /&gt; 1048576 bytes read: OK&lt;BR /&gt; Bad Linux ARM zImage magic!&lt;BR /&gt; =&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have changed the mtdparts value as shown below then got error "ERROR: Did not find a cmdline Flattened Device Tree".&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;mtdparts=gpmi-nand:64m(boot),8m(kernel),2m(dtb),-(rootfs)\0&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;Below error occurred while booting after loading the images.&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;NAND read: device 0 offset 0x4000000, size 0x800000&lt;BR /&gt; 8388608 bytes read: OK&lt;/P&gt;&lt;P&gt;NAND read: device 0 offset 0x5000000, size 0x100000&lt;BR /&gt; 1048576 bytes read: OK&lt;BR /&gt; Kernel image @ 0x80800000 [ 0x000000 - 0x53ce00 ]&lt;BR /&gt; ERROR: Did not find a cmdline Flattened Device Tree&lt;BR /&gt; Could not find a valid device tree&lt;BR /&gt; =&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Nov 2018 11:56:52 GMT</pubDate>
    <dc:creator>kravik</dc:creator>
    <dc:date>2018-11-30T11:56:52Z</dc:date>
    <item>
      <title>i.MX6UL NAND boot time issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6UL-NAND-boot-time-issue/m-p/823277#M126646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Working on iMX6UL custom board, while booting from NAND, I could see that NAND read of zImage is taking more time(around 2secs). But with sdcard the load time is negligible(in msecs).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;[0.008100 0.000052] CPU: Freescale i.MX6UL rev1.2 528 MHz (running at 396 MHz)&lt;BR /&gt;[0.013223 0.005123] CPU: Commercial temperature grade (0C to 95C) at 34C&lt;BR /&gt;[0.028188 0.014965] Reset cause: POR&lt;BR /&gt;[0.030030 0.001842] Model: Freescale i.MX6 UltraLite 14x14 EVK Board&lt;BR /&gt;[0.034153 0.004123] Board: MX6UL 14x14 EVK&lt;BR /&gt;[0.036188 0.002035] DRAM: 512 MiB&lt;BR /&gt;[0.091716 0.055528] NAND: 512 MiB&lt;BR /&gt;[0.099715 0.007999] MMC: FSL_SDHC: 0&lt;BR /&gt;[0.269463 0.169748] *** Warning - bad CRC, using default environment&lt;BR /&gt;[0.274489 0.005026]&lt;BR /&gt;[0.277464 0.002975] Display: TFT43AB (480x272)&lt;BR /&gt;[0.279788 0.002324] Video: 480x272x24&lt;BR /&gt;[0.286464 0.006676] In: serial&lt;BR /&gt;[0.287720 0.001256] Out: serial&lt;BR /&gt;[0.288857 0.001137] Err: serial&lt;BR /&gt;[0.290582 0.001725] Net: No ethernet found.&lt;BR /&gt;[0.296752 0.006170] Normal Boot&lt;BR /&gt;[0.302464 0.005712] Hit any key to stop autoboot: 0&lt;BR /&gt;[0.305666 0.003202]&lt;BR /&gt;[0.305716 0.000050] NAND read: device 0 offset 0x4000000, size 0x800000&lt;BR /&gt;[2.324317 2.018601] 8388608 bytes read: OK&lt;BR /&gt;[2.326589 0.002272]&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Any reason why it is taking more time to load in case of NAND.&lt;BR /&gt;Is it possible to change the clock value of NAND in U-boot? if so can you help in bumping up the clock value for NAND in GPMC? &lt;BR /&gt;&lt;SPAN&gt;The U-boot source which I am using is "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fsource.codeaurora.org%2Fexternal%2Fimx%2Fuboot-imx%2Flog%2F%3Fh%3Dnxp%2Fimx_v2017.03_4.9.11_1.0.0_ga" rel="nofollow" target="_blank"&gt;https://source.codeaurora.org/external/imx/uboot-imx/log/?h=nxp/imx_v2017.03_4.9.11_1.0.0_ga&lt;/A&gt;&lt;SPAN&gt;".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To analyze further, tried changing the "mtdparts" variable value, but board is failing to boot if I change the boot and kernel partition sizes in "mtdparts". &lt;BR /&gt;Is there any specific reason of giving more size for boot and kernel sizes in mtdparts? &lt;BR /&gt;Following is the mtdparts defined in the i.MX6UL header file in U-boot.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;mtdparts=gpmi-nand:64m(boot),16m(kernel),16m(dtb),-(rootfs)\0&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;I have changed the mtdparts value as shown below, then got error "Bad Linux ARM zImage magic!". &lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;mtdparts=gpmi-nand:2m(boot),8m(kernel),2m(dtb),-(rootfs)\0&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Below error occurred while booting after loading the images.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;NAND read: device 0 offset 0x4000000, size 0x800000&lt;BR /&gt; 8388608 bytes read: OK&lt;/P&gt;&lt;P&gt;NAND read: device 0 offset 0x5000000, size 0x100000&lt;BR /&gt; 1048576 bytes read: OK&lt;BR /&gt; Bad Linux ARM zImage magic!&lt;BR /&gt; =&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have changed the mtdparts value as shown below then got error "ERROR: Did not find a cmdline Flattened Device Tree".&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;mtdparts=gpmi-nand:64m(boot),8m(kernel),2m(dtb),-(rootfs)\0&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;Below error occurred while booting after loading the images.&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;NAND read: device 0 offset 0x4000000, size 0x800000&lt;BR /&gt; 8388608 bytes read: OK&lt;/P&gt;&lt;P&gt;NAND read: device 0 offset 0x5000000, size 0x100000&lt;BR /&gt; 1048576 bytes read: OK&lt;BR /&gt; Kernel image @ 0x80800000 [ 0x000000 - 0x53ce00 ]&lt;BR /&gt; ERROR: Did not find a cmdline Flattened Device Tree&lt;BR /&gt; Could not find a valid device tree&lt;BR /&gt; =&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2018 11:56:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6UL-NAND-boot-time-issue/m-p/823277#M126646</guid>
      <dc:creator>kravik</dc:creator>
      <dc:date>2018-11-30T11:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6UL NAND boot time issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6UL-NAND-boot-time-issue/m-p/823278#M126647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for boot time optimizations may be recommended to proceed with&amp;nbsp;Professional Services&lt;/P&gt;&lt;P&gt;as this greatly depends on custom board/configurations.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://www.nxp.com/support/nxp-professional-services:PROFESSIONAL-SERVICE" title="http://www.nxp.com/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;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>Mon, 03 Dec 2018 23:27:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6UL-NAND-boot-time-issue/m-p/823278#M126647</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-12-03T23:27:06Z</dc:date>
    </item>
  </channel>
</rss>

