<?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 Re: BL2 run next image failed in Layerscape</title>
    <link>https://community.nxp.com/t5/Layerscape/Re-BL2-run-next-image-failed/m-p/1237375#M7603</link>
    <description>&lt;P&gt;You are right, bit 10 corresponds to CL=10, so correct value for 062E is caslat_x = 0x015FFC00. As I can see in the SDRAM data sheet for 062 speed bin, supported CL settings are 10,12,14,16,18,20,24. I believe you can calculate new caslat_x now.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Bulat&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Feb 2021 17:21:22 GMT</pubDate>
    <dc:creator>Bulat</dc:creator>
    <dc:date>2021-02-26T17:21:22Z</dc:date>
    <item>
      <title>Re: BL2 run next image failed</title>
      <link>https://community.nxp.com/t5/Layerscape/Re-BL2-run-next-image-failed/m-p/1233896#M7597</link>
      <description>&lt;P&gt;According repeated tests, I found that not every time BL2 loads image successfully. It always stops at loading image. I change the DDR configuration to &lt;STRONG&gt;CONFIG_STATIC_DDR&lt;/STRONG&gt; and modify the register value, this problem no longer exists. I think it is maybe the DDR configuration problem. And now I want to know how to configure DDR according to modify &lt;STRONG&gt;ddr_raw_timing&lt;/STRONG&gt; parameters, especially&amp;nbsp;caslat_x?&lt;/P&gt;&lt;P&gt;Our product has two DDR4 chips on board. The type of DDR is MT40A512M16LY-062 IT:E, and the following is my configuration.&lt;/P&gt;&lt;P&gt;/* DDR model number: MT40A512M16LY-062 IT:E */&lt;BR /&gt;struct dimm_params ddr_raw_timing = {&lt;BR /&gt;.n_ranks = 1,&lt;BR /&gt;.rank_density = 2147483648u,&lt;BR /&gt;.capacity = 2147483648u,&lt;BR /&gt;.primary_sdram_width = 32,&lt;BR /&gt;.rdimm = 0,&lt;BR /&gt;.mirrored_dimm = 0,&lt;BR /&gt;.n_row_addr = 16,&lt;BR /&gt;.n_col_addr = 10,&lt;BR /&gt;.bank_addr_bits = 0,&lt;BR /&gt;.bank_group_bits = 1,&lt;BR /&gt;.burst_lengths_bitmask = 0x0c,&lt;BR /&gt;.tckmin_x_ps = 625,&lt;BR /&gt;.tckmax_ps = 1500,&lt;BR /&gt;.caslat_x = 0x0001FFE00,&lt;BR /&gt;.taa_ps = 15000,&lt;BR /&gt;.trcd_ps = 15000,&lt;BR /&gt;.trp_ps = 15000,&lt;BR /&gt;.tras_ps = 32000,&lt;BR /&gt;.trc_ps = 47000,&lt;BR /&gt;.twr_ps = 15000,&lt;BR /&gt;.trfc1_ps = 350000,&lt;BR /&gt;.trfc2_ps = 260000,&lt;BR /&gt;.trfc4_ps = 160000,&lt;BR /&gt;.tfaw_ps = 30000,&lt;BR /&gt;.trrds_ps = 5300,&lt;BR /&gt;.trrdl_ps = 6400,&lt;BR /&gt;.tccdl_ps = 5000,&lt;BR /&gt;.refresh_rate_ps = 7800000,&lt;BR /&gt;.dq_mapping[0] = 0x0,&lt;BR /&gt;.dq_mapping[1] = 0x0,&lt;BR /&gt;.dq_mapping[2] = 0x0,&lt;BR /&gt;.dq_mapping[3] = 0x0,&lt;BR /&gt;.dq_mapping[4] = 0x0,&lt;BR /&gt;.dq_mapping_ors = 0,&lt;BR /&gt;.rc = 0x1f,&lt;BR /&gt;};&lt;/P&gt;</description>
      <pubDate>Sat, 20 Feb 2021 05:17:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Re-BL2-run-next-image-failed/m-p/1233896#M7597</guid>
      <dc:creator>ainolike</dc:creator>
      <dc:date>2021-02-20T05:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: BL2 run next image failed</title>
      <link>https://community.nxp.com/t5/Layerscape/Re-BL2-run-next-image-failed/m-p/1235712#M7599</link>
      <description>&lt;P&gt;Almost all mentioned parameters come directly from SDRAM data sheet.&lt;/P&gt;
&lt;P&gt;'caslat_x' represents supported CAS latency values. For SDRAM 062E speed bin you need to set &lt;/P&gt;
&lt;P&gt;.caslat_x = 0x02BFF800; this enables following CL settings: 10-20, 22, 24.&lt;/P&gt;
&lt;P&gt;.dq_mapping values are defined by DQ signals routing. Values 0x0 correspond to one-to-one routing, that is MDQ0 - DQ0, MDQ1 - DQ1, MDQ2 - DQ2 etc.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Bulat&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 11:32:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Re-BL2-run-next-image-failed/m-p/1235712#M7599</guid>
      <dc:creator>Bulat</dc:creator>
      <dc:date>2021-02-24T11:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: BL2 run next image failed</title>
      <link>https://community.nxp.com/t5/Layerscape/Re-BL2-run-next-image-failed/m-p/1237025#M7600</link>
      <description>&lt;P&gt;I have this problem。How can i solve it？&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTICE: Fixed DDR on board&lt;/P&gt;&lt;P&gt;NOTICE: 1 GB DDR4, 32-bit, CL=11, ECC off&lt;BR /&gt;NOTICE: BL2: v1.5(release):LSDK-20.12-dirty&lt;BR /&gt;NOTICE: BL2: Built : 21:02:31, Feb 24 2021&lt;BR /&gt;NOTICE: BL2: Booting BL31&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 06:17:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Re-BL2-run-next-image-failed/m-p/1237025#M7600</guid>
      <dc:creator>zhuhongxian</dc:creator>
      <dc:date>2021-02-26T06:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: BL2 run next image failed</title>
      <link>https://community.nxp.com/t5/Layerscape/Re-BL2-run-next-image-failed/m-p/1237229#M7602</link>
      <description>&lt;P&gt;I tried as you said, but it doesn't work.&amp;nbsp; I wonder know whether every bit in 'caslat_x'&amp;nbsp;corresponding to a&amp;nbsp;CL value . If so, I want to confirm why bit11&amp;nbsp;corresponding to CL10&amp;nbsp;&amp;nbsp;rather&amp;nbsp;than bit10?&amp;nbsp;&lt;/P&gt;&lt;P&gt;And my DDR is not&amp;nbsp;&lt;SPAN&gt;062E, but 062.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 10:23:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Re-BL2-run-next-image-failed/m-p/1237229#M7602</guid>
      <dc:creator>ainolike</dc:creator>
      <dc:date>2021-02-26T10:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: BL2 run next image failed</title>
      <link>https://community.nxp.com/t5/Layerscape/Re-BL2-run-next-image-failed/m-p/1237375#M7603</link>
      <description>&lt;P&gt;You are right, bit 10 corresponds to CL=10, so correct value for 062E is caslat_x = 0x015FFC00. As I can see in the SDRAM data sheet for 062 speed bin, supported CL settings are 10,12,14,16,18,20,24. I believe you can calculate new caslat_x now.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Bulat&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 17:21:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Re-BL2-run-next-image-failed/m-p/1237375#M7603</guid>
      <dc:creator>Bulat</dc:creator>
      <dc:date>2021-02-26T17:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: BL2 run next image failed</title>
      <link>https://community.nxp.com/t5/Layerscape/Re-BL2-run-next-image-failed/m-p/1237837#M7607</link>
      <description>&lt;P&gt;With the following modification, the board boot successfully.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;.caslat_x&amp;nbsp;= 0x01555400,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;.dq_mapping[0] = 0x15,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;.dq_mapping[1] = 0x36,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;.dq_mapping[2] = 0x02,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;.dq_mapping[3] = 0x22,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;.dq_mapping[4] = 0x0c,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;.dq_mapping[5] = 0x2b,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;.dq_mapping[6] = 0x16,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;.dq_mapping[7] = 0x36,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The dq_mapping value is set according to reading the dq_mapping register in U-Boot. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could you give me some help about&amp;nbsp;dq_mapping configuration?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Mar 2021 08:54:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Re-BL2-run-next-image-failed/m-p/1237837#M7607</guid>
      <dc:creator>ainolike</dc:creator>
      <dc:date>2021-03-01T08:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: BL2 run next image failed</title>
      <link>https://community.nxp.com/t5/Layerscape/Re-BL2-run-next-image-failed/m-p/1237916#M7609</link>
      <description>&lt;P&gt;As I wrote, dq_mapping values are defined by DQ signals routing between the SDRAM and processor. Details can be found in the ref manual, see description of the DDR_DQ_MAP0 register. For example if you select &lt;STRONG&gt;.dq_mapping[0] = 0x15&lt;/STRONG&gt;, it means that SDRAM's bits DQ0 is connected to processor's bit MDQ3, DQ1 -&amp;gt; MDQ1, DQ2 -&amp;gt; MDQ0, DQ3 -&amp;gt; MDQ2.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;.dq_mapping[1] = 0x36&lt;/STRONG&gt; means following: DQ4 -&amp;gt; MDQ7, DQ5 -&amp;gt; MDQ5,&amp;nbsp;DQ6 -&amp;gt; MDQ6,&amp;nbsp;DQ7 -&amp;gt; MDQ4.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Bulat&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Mar 2021 11:20:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Re-BL2-run-next-image-failed/m-p/1237916#M7609</guid>
      <dc:creator>Bulat</dc:creator>
      <dc:date>2021-03-01T11:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: BL2 run next image failed</title>
      <link>https://community.nxp.com/t5/Layerscape/Re-BL2-run-next-image-failed/m-p/1238302#M7610</link>
      <description>&lt;P&gt;I see. Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Mar 2021 00:52:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Re-BL2-run-next-image-failed/m-p/1238302#M7610</guid>
      <dc:creator>ainolike</dc:creator>
      <dc:date>2021-03-02T00:52:55Z</dc:date>
    </item>
  </channel>
</rss>

