<?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 RAM access slow when downloading u-boot by sb_loader tool in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/RAM-access-slow-when-downloading-u-boot-by-sb-loader-tool/m-p/789185#M122316</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a U-Boot image (no SPL build) that is running well when the board is booting it from eMMC.&lt;/P&gt;&lt;P&gt;When I download the same image into RAM via the USB serial loader protocol (using the sb_loader tool or the imx_usb_loader tool) and start it from there, the U-Boot seems to run properly as well. But RAM access is very slow in this case. I tested this with the mtest command. The writing cycle takes approx. 2 times as long as when booting from eMMC. Reading is even &amp;gt;10 times slower.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since in both cases the same DCD is used, I do not understand where the difference comes from:&lt;/P&gt;&lt;P&gt;When booting from eMMC, ROM code loads the first portion of the image and applies the DCD. Then it loads the rest of the image to RAM and starts it.&lt;/P&gt;&lt;P&gt;When using the USB loader, the loader tool gets the DCD data from the image and applies it to the CPU. Then it downloads the image and starts it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did anyone come across the same issue?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Georg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Sep 2018 09:57:42 GMT</pubDate>
    <dc:creator>georgwaibel</dc:creator>
    <dc:date>2018-09-24T09:57:42Z</dc:date>
    <item>
      <title>RAM access slow when downloading u-boot by sb_loader tool</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RAM-access-slow-when-downloading-u-boot-by-sb-loader-tool/m-p/789185#M122316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a U-Boot image (no SPL build) that is running well when the board is booting it from eMMC.&lt;/P&gt;&lt;P&gt;When I download the same image into RAM via the USB serial loader protocol (using the sb_loader tool or the imx_usb_loader tool) and start it from there, the U-Boot seems to run properly as well. But RAM access is very slow in this case. I tested this with the mtest command. The writing cycle takes approx. 2 times as long as when booting from eMMC. Reading is even &amp;gt;10 times slower.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since in both cases the same DCD is used, I do not understand where the difference comes from:&lt;/P&gt;&lt;P&gt;When booting from eMMC, ROM code loads the first portion of the image and applies the DCD. Then it loads the rest of the image to RAM and starts it.&lt;/P&gt;&lt;P&gt;When using the USB loader, the loader tool gets the DCD data from the image and applies it to the CPU. Then it downloads the image and starts it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did anyone come across the same issue?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Georg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 09:57:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RAM-access-slow-when-downloading-u-boot-by-sb-loader-tool/m-p/789185#M122316</guid>
      <dc:creator>georgwaibel</dc:creator>
      <dc:date>2018-09-24T09:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: RAM access slow when downloading u-boot by sb_loader tool</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RAM-access-slow-when-downloading-u-boot-by-sb-loader-tool/m-p/789186#M122317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Georg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sb_loader may change processor clocks, one can check its sources&lt;BR /&gt;&lt;A class="link-titled" href="https://github.com/NXPmicro/sb_loader" title="https://github.com/NXPmicro/sb_loader"&gt;GitHub - NXPmicro/sb_loader: The tool is used to download an image to Freescale/NXP IMX platform to run.&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So one can dump and compare ccm registers in both cases using Chapter 18 Clock Controller Module (CCM),&lt;/P&gt;&lt;P&gt;Figure 18-2. Clock Tree i.MX6UL Reference Manual &lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Freference-manual%2FIMX6ULRM.pdf" rel="nofollow" target="_blank"&gt;http://www.nxp.com/docs/en/reference-manual/IMX6ULRM.pdf&lt;/A&gt;&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>Tue, 25 Sep 2018 00:16:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RAM-access-slow-when-downloading-u-boot-by-sb-loader-tool/m-p/789186#M122317</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-09-25T00:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: RAM access slow when downloading u-boot by sb_loader tool</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RAM-access-slow-when-downloading-u-boot-by-sb-loader-tool/m-p/789187#M122318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has this ever been resolved? I'm currently seeing the same issue on an i.MX6UL board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CCM registers look identical for both boot sources. Using the MMDC profiling feature, I've found out that RAM access is so slow because something is causing high numbers of memory accesses:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After booting from SD card, there are very few RAM accesses when idle:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: andale mono, monospace;"&gt;=&amp;gt; mw 21B0410 a; mw 21B0410 1; sleep 1; md 21B0418 4&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: andale mono, monospace;"&gt;021b0418: 179b2e3f 00000856 00000017 00000002&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Booted from USB serial downloader:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: andale mono, monospace;"&gt;=&amp;gt; mw 21B0410 a; mw 21B0410 1; sleep 1; md 21B0418 4&lt;BR /&gt;021b0418: 179b450d 06d02898 000279bf 004e81b4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So we're seeing ~160k read accesses and ~5M write accesses every second. There numbers are fairly stable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume it must be something set up by the boot ROM, but how can I debug further what is causing these accesses?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jul 2019 10:37:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RAM-access-slow-when-downloading-u-boot-by-sb-loader-tool/m-p/789187#M122318</guid>
      <dc:creator>matthias_schiffer</dc:creator>
      <dc:date>2019-07-15T10:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: RAM access slow when downloading u-boot by sb_loader tool</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RAM-access-slow-when-downloading-u-boot-by-sb-loader-tool/m-p/789188#M122319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After some more research, I was able to find the solution: The old U-Boot version I'm using was missing this patch: &lt;A class="link-titled" href="https://gitlab.denx.de/u-boot/u-boot/commit/c5437e5b8aff9c952ebaab9be7670439c141e4e7" title="https://gitlab.denx.de/u-boot/u-boot/commit/c5437e5b8aff9c952ebaab9be7670439c141e4e7"&gt;imx: Enable ACTLR.SMP bit for all i.MX cortex-a7 platforms (c5437e5b) · Commits · U-Boot / U-Boot · GitLab&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jul 2019 14:30:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RAM-access-slow-when-downloading-u-boot-by-sb-loader-tool/m-p/789188#M122319</guid>
      <dc:creator>matthias_schiffer</dc:creator>
      <dc:date>2019-07-15T14:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: RAM access slow when downloading u-boot by sb_loader tool</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RAM-access-slow-when-downloading-u-boot-by-sb-loader-tool/m-p/789189#M122320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This fixed the issue for me too.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Georg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2019 07:41:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RAM-access-slow-when-downloading-u-boot-by-sb-loader-tool/m-p/789189#M122320</guid>
      <dc:creator>georgwaibel</dc:creator>
      <dc:date>2019-07-25T07:41:50Z</dc:date>
    </item>
  </channel>
</rss>

