<?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 Mainline u-boot with custom i.mx28 board fails to boot in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Mainline-u-boot-with-custom-i-mx28-board-fails-to-boot/m-p/302191#M38204</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our custom i.mx28 board fails to boot via USB Recovery Mode. I've used Yocto to build a toolchain (arm-poky-linux-gnueabi 4.8.1) and created a new board for u-boot, compiled and created the u-boot.sb file. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using mxsldr to transfer the sb file I see HTLLCLLC on the debug console and then the board resets, goes back to recovery mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've enabled CONFIG_SPL_SERIAL_SUPPORT and put in a few serial_puts in spl code and it seems SPL stage is running without any problems. I also wrote a very basic DDR test code which writes and reads data from memory and there seems to be no problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To track the error I've placed a &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;debug("!") &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;at the beginning of board_init_f function (assuming this is the earliest place I can test) but I see no output. I also tried lighting up one of the LEDs, but that didn't work either. So I'm assuming second stage is not running at all?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried m28evk_config and it behaves exactly, but spits out an 'Undefined Ins' before going to reset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What else can I check?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Mar 2014 08:49:05 GMT</pubDate>
    <dc:creator>semihhazar</dc:creator>
    <dc:date>2014-03-24T08:49:05Z</dc:date>
    <item>
      <title>Mainline u-boot with custom i.mx28 board fails to boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Mainline-u-boot-with-custom-i-mx28-board-fails-to-boot/m-p/302191#M38204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our custom i.mx28 board fails to boot via USB Recovery Mode. I've used Yocto to build a toolchain (arm-poky-linux-gnueabi 4.8.1) and created a new board for u-boot, compiled and created the u-boot.sb file. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using mxsldr to transfer the sb file I see HTLLCLLC on the debug console and then the board resets, goes back to recovery mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've enabled CONFIG_SPL_SERIAL_SUPPORT and put in a few serial_puts in spl code and it seems SPL stage is running without any problems. I also wrote a very basic DDR test code which writes and reads data from memory and there seems to be no problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To track the error I've placed a &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;debug("!") &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;at the beginning of board_init_f function (assuming this is the earliest place I can test) but I see no output. I also tried lighting up one of the LEDs, but that didn't work either. So I'm assuming second stage is not running at all?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried m28evk_config and it behaves exactly, but spits out an 'Undefined Ins' before going to reset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What else can I check?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 08:49:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Mainline-u-boot-with-custom-i-mx28-board-fails-to-boot/m-p/302191#M38204</guid>
      <dc:creator>semihhazar</dc:creator>
      <dc:date>2014-03-24T08:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Mainline u-boot with custom i.mx28 board fails to boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Mainline-u-boot-with-custom-i-mx28-board-fails-to-boot/m-p/302192#M38205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) Clone &lt;A href="http://git.denx.de/?p=u-boot/u-boot-imx.git;a=shortlog" title="http://git.denx.de/?p=u-boot/u-boot-imx.git;a=shortlog"&gt;git.denx.de Git - u-boot/u-boot-imx.git/shortlog&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2) Enable CONFIG_SPL_SERIAL_SUPPORT in include/configs/mxs.h&lt;/P&gt;&lt;P&gt;3) Edit arch/arm/cpu/arm926ejs/mxs/spl_boot.c and in mxs_common_spl_init() just below data-&amp;gt;boot_mode_idx = bootmode; add:&lt;/P&gt;&lt;P&gt;printf("dram_size=%08x mode=%08x\n", data-&amp;gt;mem_dram_size, data-&amp;gt;boot_mode_idx);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inspect if the DRAM size in the output (that's the detected DRAM size) matches your actual DRAM size.&lt;/P&gt;&lt;P&gt;If not, try a dirty temporary workaround. Add data-&amp;gt;mem_dram_size = &amp;lt;your dram size&amp;gt;; and see if you can boot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I can see from the output is that you get HTLLCLLC , which means the U-Boot itself got loaded and was executed. It is well possible the DRAM size is wrong and this U-Boot cannot relocate at the end of the DRAM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 23:32:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Mainline-u-boot-with-custom-i-mx28-board-fails-to-boot/m-p/302192#M38205</guid>
      <dc:creator>MarekVasut</dc:creator>
      <dc:date>2014-04-03T23:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: Mainline u-boot with custom i.mx28 board fails to boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Mainline-u-boot-with-custom-i-mx28-board-fails-to-boot/m-p/302193#M38206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Marek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply. I've tried printing the DRAM size both in the mainline and the imx branch. Both prints 8KB whereas it should've been 64MB. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further investigation showed that the DDR2 initialization values were wrong. I've changed them and now it boots. I'm trying to run some memory tests and see everything is working properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Semih&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Apr 2014 13:18:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Mainline-u-boot-with-custom-i-mx28-board-fails-to-boot/m-p/302193#M38206</guid>
      <dc:creator>semihhazar</dc:creator>
      <dc:date>2014-04-05T13:18:52Z</dc:date>
    </item>
  </channel>
</rss>

