<?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 iMX6S boot from SD problem in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/iMX6S-boot-from-SD-problem/m-p/340751#M46759</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have a problem with the board we've developed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What works well:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;USB OTG works; downloading u-boot, initramfs and uimage to DDR memory works; all mentioned software and flashing SD card works&lt;/LI&gt;&lt;LI&gt;u-boot downloaded over USB starts, uimage downloaded over USB starts, everything works correctly&lt;/LI&gt;&lt;LI&gt;u-boot downloaded over USB can start uimage from SD card, uimage from SD card launches correctly and there are no issues with file system on SD&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Booting from SD, however, doesn't seem to work at all. We believe all the boot configuration pins, gpios, voltages, etc to be set correctly. DCD initialization table must be good because boot and everything else work over USB. DDR stress tool reports no errors at all. Everything seems to work - except boot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We've seen on the scope that there is about 80 ms of some activity on SD card pins at boot time, which roughly should be enough to read the entire u-boot. Afterwards, nothing happens/boot doesn't start, as far as we can say. A LED that is otherwise toggled in board_init(), remains unchanged; no printouts at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Partitions on SD card appear to be correct. The first four bytes at offset 0x400 match the four bytes at same offset in u-boot.bin. There is nothing particularly specific in ucl2.xml for our board. We've also tried toggling all the BOOT_CFG options that seemed even remotely relevant (... though there are many and we may have missed something).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We've checked power supplies, all seem good, POR goes high about 10 ms after all voltages become stable.&lt;/P&gt;&lt;P&gt;If we remove the SD card, CPU correctly goes into serial downloader mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any hints what we could try?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some additional, possibly relevant information. MMC flash behaves identically to SD card: everything apparently written correctly and readable, but boot won't start. SPI flash exhibits a different (related?) problem - kernel detects it not as 25P64 that we know it is, but instead non-jedec-25P05 with far smaller capacity, insufficient even for uboot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Sep 2014 16:57:28 GMT</pubDate>
    <dc:creator>dubravkomoravsk</dc:creator>
    <dc:date>2014-09-04T16:57:28Z</dc:date>
    <item>
      <title>iMX6S boot from SD problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6S-boot-from-SD-problem/m-p/340751#M46759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have a problem with the board we've developed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What works well:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;USB OTG works; downloading u-boot, initramfs and uimage to DDR memory works; all mentioned software and flashing SD card works&lt;/LI&gt;&lt;LI&gt;u-boot downloaded over USB starts, uimage downloaded over USB starts, everything works correctly&lt;/LI&gt;&lt;LI&gt;u-boot downloaded over USB can start uimage from SD card, uimage from SD card launches correctly and there are no issues with file system on SD&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Booting from SD, however, doesn't seem to work at all. We believe all the boot configuration pins, gpios, voltages, etc to be set correctly. DCD initialization table must be good because boot and everything else work over USB. DDR stress tool reports no errors at all. Everything seems to work - except boot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We've seen on the scope that there is about 80 ms of some activity on SD card pins at boot time, which roughly should be enough to read the entire u-boot. Afterwards, nothing happens/boot doesn't start, as far as we can say. A LED that is otherwise toggled in board_init(), remains unchanged; no printouts at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Partitions on SD card appear to be correct. The first four bytes at offset 0x400 match the four bytes at same offset in u-boot.bin. There is nothing particularly specific in ucl2.xml for our board. We've also tried toggling all the BOOT_CFG options that seemed even remotely relevant (... though there are many and we may have missed something).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We've checked power supplies, all seem good, POR goes high about 10 ms after all voltages become stable.&lt;/P&gt;&lt;P&gt;If we remove the SD card, CPU correctly goes into serial downloader mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any hints what we could try?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some additional, possibly relevant information. MMC flash behaves identically to SD card: everything apparently written correctly and readable, but boot won't start. SPI flash exhibits a different (related?) problem - kernel detects it not as 25P64 that we know it is, but instead non-jedec-25P05 with far smaller capacity, insufficient even for uboot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 16:57:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6S-boot-from-SD-problem/m-p/340751#M46759</guid>
      <dc:creator>dubravkomoravsk</dc:creator>
      <dc:date>2014-09-04T16:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6S boot from SD problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6S-boot-from-SD-problem/m-p/340752#M46760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dubravko&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can test SD port using basic read/write (better with oscilloscope checking&lt;/P&gt;&lt;P&gt;signals quality) with SDK (note one can run it with jtag) usdhc test&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=i.MX6Q&amp;amp;nodeId=018rH3ZrDRB24A&amp;amp;fpsp=1&amp;amp;tab=Design_Tools_Tab"&gt;i.MX 6Series Platform SDK&lt;/A&gt; &lt;IMG alt="" class="jiveImage" src="http://www.freescale.com/files/graphic/SECURITYINFOIMAGE.gif" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can run SDK from SD, check README.pdf&lt;/P&gt;&lt;P&gt;sect.5.5 "Using SD boot".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One can run SDK from iRAM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-95853"&gt;iRAM (OCRAM) i.MX6 SDK Application&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lastly, you can just try another SD card.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;chip&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 23:50:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6S-boot-from-SD-problem/m-p/340752#M46760</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2014-09-04T23:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6S boot from SD problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6S-boot-from-SD-problem/m-p/340753#M46761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply. The different SD card didn't help. We've got it working anyway - the problem were our leftover experimental settings in u-boot.lds, plus leftover settings from other files because ltib apparently doesn't rebuild all/required files no matter what is changed in build configuration.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;-m selectype sometimes triggers rebuild when target board is changed, sometimes doesn't&lt;/LI&gt;&lt;LI&gt;-m clean doesn't clean temporary files&lt;/LI&gt;&lt;LI&gt;-m scbuild often won't rebuild something.c after included something.h was modified&lt;/LI&gt;&lt;LI&gt;--force to unconditionally rebuild everything doesn't work at all&lt;/LI&gt;&lt;LI&gt;somehow some software managed to force including something_mfg.h even though mfg firmware was turned off everywhere&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;:smileyhappy: Managed to get a satisfying build after cleaning and configuring and rebuilding many times and many debug printouts to figure out what was actually compiled with which option, plus grep through all the files to weed out some stubborn leftover old settings.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2014 17:58:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6S-boot-from-SD-problem/m-p/340753#M46761</guid>
      <dc:creator>dubravkomoravsk</dc:creator>
      <dc:date>2014-09-05T17:58:35Z</dc:date>
    </item>
  </channel>
</rss>

