<?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 LS2088A: Strange crashes with U-boot binary on custom board in Layerscape</title>
    <link>https://community.nxp.com/t5/Layerscape/LS2088A-Strange-crashes-with-U-boot-binary-on-custom-board/m-p/845838#M3842</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV style="font-family: 'Courier New'; font-size: 10.0pt; color: #000000; background-color: #ffffff; font-style: normal; font-weight: normal; text-decoration: none;"&gt;&lt;PRE&gt;&lt;PRE&gt;We are facing a strange issue with U-boot on LS2088A custom hardware that makes the card crash during boot. 

When we make a code change in U-boot and make a new U-boot binary, we see crash during kernel boot 
or u-boot startup. 
If we alter the U-boot binary size by increasing or decreasing the binary size by adding spaces in the string, 
the problem goes away.&amp;nbsp; 

We have tested DDR and we have stable DDR parameters from DDRV tool.&amp;nbsp; We ran memory tests and we do not have
any memory issues. 
We do not see any DDR failures.&amp;nbsp; We have tested on several custom boards, the issue can be reproduced on 
many Ls2088a custom hardware. 
We also have ls1046 and ls1043a hardware and we have not seen such issue on these type of hardware.

If we manage to build the binary and successfully run on the board, we do not see any issues with the 
binary on any other card. 
We have to work around this issue by adding extra spaces in the board specific file /ls2080a.c&amp;nbsp;



-&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("\n" BOARD_NAME " MMI DIP-Swich value: 0x%x\n&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ", dip_switch); 
+&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("\n" BOARD_NAME " MMI DIP-Swich value: 0x%x\n&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ", dip_switch);&amp;nbsp; 



The only change we made to workaround the crash was to add 4 spaces in the printf.&amp;nbsp;

Please see the attached log for the crash.&lt;/PRE&gt;&lt;/PRE&gt;&lt;DIV style="font-family: 'Courier New'; font-size: 10.0pt; color: #000000; background-color: #ffffff; font-style: normal; font-weight: normal; text-decoration: none;"&gt;&lt;PRE&gt;Your feedback will be very useful to investigate this issue further.&amp;nbsp; 
Do you have any clue on this issue based on our obervations?&lt;/PRE&gt;&lt;/DIV&gt;&lt;PRE&gt;Thanks
Ram&lt;/PRE&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Oct 2018 11:25:26 GMT</pubDate>
    <dc:creator>rams</dc:creator>
    <dc:date>2018-10-29T11:25:26Z</dc:date>
    <item>
      <title>LS2088A: Strange crashes with U-boot binary on custom board</title>
      <link>https://community.nxp.com/t5/Layerscape/LS2088A-Strange-crashes-with-U-boot-binary-on-custom-board/m-p/845838#M3842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV style="font-family: 'Courier New'; font-size: 10.0pt; color: #000000; background-color: #ffffff; font-style: normal; font-weight: normal; text-decoration: none;"&gt;&lt;PRE&gt;&lt;PRE&gt;We are facing a strange issue with U-boot on LS2088A custom hardware that makes the card crash during boot. 

When we make a code change in U-boot and make a new U-boot binary, we see crash during kernel boot 
or u-boot startup. 
If we alter the U-boot binary size by increasing or decreasing the binary size by adding spaces in the string, 
the problem goes away.&amp;nbsp; 

We have tested DDR and we have stable DDR parameters from DDRV tool.&amp;nbsp; We ran memory tests and we do not have
any memory issues. 
We do not see any DDR failures.&amp;nbsp; We have tested on several custom boards, the issue can be reproduced on 
many Ls2088a custom hardware. 
We also have ls1046 and ls1043a hardware and we have not seen such issue on these type of hardware.

If we manage to build the binary and successfully run on the board, we do not see any issues with the 
binary on any other card. 
We have to work around this issue by adding extra spaces in the board specific file /ls2080a.c&amp;nbsp;



-&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("\n" BOARD_NAME " MMI DIP-Swich value: 0x%x\n&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ", dip_switch); 
+&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("\n" BOARD_NAME " MMI DIP-Swich value: 0x%x\n&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ", dip_switch);&amp;nbsp; 



The only change we made to workaround the crash was to add 4 spaces in the printf.&amp;nbsp;

Please see the attached log for the crash.&lt;/PRE&gt;&lt;/PRE&gt;&lt;DIV style="font-family: 'Courier New'; font-size: 10.0pt; color: #000000; background-color: #ffffff; font-style: normal; font-weight: normal; text-decoration: none;"&gt;&lt;PRE&gt;Your feedback will be very useful to investigate this issue further.&amp;nbsp; 
Do you have any clue on this issue based on our obervations?&lt;/PRE&gt;&lt;/DIV&gt;&lt;PRE&gt;Thanks
Ram&lt;/PRE&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2018 11:25:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS2088A-Strange-crashes-with-U-boot-binary-on-custom-board/m-p/845838#M3842</guid>
      <dc:creator>rams</dc:creator>
      <dc:date>2018-10-29T11:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: LS2088A: Strange crashes with U-boot binary on custom board</title>
      <link>https://community.nxp.com/t5/Layerscape/LS2088A-Strange-crashes-with-U-boot-binary-on-custom-board/m-p/845839#M3843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" data-content-finding="Community" data-userid="323164" data-username="rams" href="https://community.nxp.com/people/rams" rel="nofollow noopener noreferrer" target="_blank"&gt;Ramasubramanian Subramanian&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which version LSDK are you using now?&lt;/P&gt;&lt;P&gt;I checked the file board/freescale/ls2080a/ls2080a.c in LSDK 1809, 1806 and 1803, there is no the following sentence at all.&lt;/P&gt;&lt;PRE&gt;&lt;PRE&gt;printf("\n" BOARD_NAME " MMI DIP-Swich value: 0x%x\n&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ", dip_switch); &lt;/PRE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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>Thu, 01 Nov 2018 07:30:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS2088A-Strange-crashes-with-U-boot-binary-on-custom-board/m-p/845839#M3843</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2018-11-01T07:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: LS2088A: Strange crashes with U-boot binary on custom board</title>
      <link>https://community.nxp.com/t5/Layerscape/LS2088A-Strange-crashes-with-U-boot-binary-on-custom-board/m-p/845840#M3844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We are using LSDK 1809.&amp;nbsp; We have tested our custom hardware on 1803, 1806 and 1809.&amp;nbsp; This is our custom board file for the custom hardware based on LS2088A.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you infer anything from the syptom of memory corruption? How can we go about debugging this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2018 08:40:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS2088A-Strange-crashes-with-U-boot-binary-on-custom-board/m-p/845840#M3844</guid>
      <dc:creator>rams</dc:creator>
      <dc:date>2018-11-01T08:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: LS2088A: Strange crashes with U-boot binary on custom board</title>
      <link>https://community.nxp.com/t5/Layerscape/LS2088A-Strange-crashes-with-U-boot-binary-on-custom-board/m-p/845841#M3845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="323164" data-username="rams" href="https://community.nxp.com/people/rams"&gt;Ramasubramanian Subramanian,&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;In your log, it seems that it failed at the begging of Kernel starting up.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Please refer to the section "3. Debug Linux Kernel by Attaching Running U-boot" in &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;the document &lt;A href="https://community.nxp.com/docs/DOC-331981"&gt;Use CodeWarrior for ARMv8 to Debug U-boot and Linux Kernel and Bring up Bare Boards&lt;/A&gt; to attach to u-boot and set the breakpoint at the beginning of Linux Kernel to debug Linux Kernel.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;In addition, please deploy PPA firmware on the NOR flash under u-boot.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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>Thu, 01 Nov 2018 09:06:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS2088A-Strange-crashes-with-U-boot-binary-on-custom-board/m-p/845841#M3845</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2018-11-01T09:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: LS2088A: Strange crashes with U-boot binary on custom board</title>
      <link>https://community.nxp.com/t5/Layerscape/LS2088A-Strange-crashes-with-U-boot-binary-on-custom-board/m-p/845842#M3846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We have deployed PPA firmware in the NOR flash.&amp;nbsp; I will attach the console logs that shows PPA inititalization as well and still having crash.&amp;nbsp; This crash is not always on linux start but can be even early as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U-Boot 2018.03-00001-gfee6f768e9 (Nov 01 2018 - 13:31:00 +0100)&lt;/P&gt;&lt;P&gt;SoC: LS2088AE Rev1.0 (0x87090010)&lt;/P&gt;&lt;P&gt;Clock Configuration:&lt;/P&gt;&lt;P&gt;CPU0(A72):1600 MHz CPU1(A72):1600 MHz CPU2(A72):1600 MHz&lt;/P&gt;&lt;P&gt;CPU3(A72):1600 MHz CPU4(A72):1600 MHz CPU5(A72):1600 MHz&lt;/P&gt;&lt;P&gt;CPU6(A72):1600 MHz CPU7(A72):1600 MHz&lt;/P&gt;&lt;P&gt;Bus: 600 MHz DDR: 1600 MT/s DP-DDR: 1600 MT/s&lt;/P&gt;&lt;P&gt;Reset Configuration Word (RCW):&lt;/P&gt;&lt;P&gt;00000000: 40303030 40400040 00000000 00000000&lt;BR /&gt; 00000010: 00000000 00000000 00200000 00000000&lt;BR /&gt; 00000020: 01001180 00002580 00000000 00000000&lt;BR /&gt; 00000030: 007fe90b 00000000 00000000 00000000&lt;BR /&gt; 00000040: 00000000 00000000 00000000 00000000&lt;BR /&gt; 00000050: 00000000 00000000 00000000 00000000&lt;BR /&gt; 00000060: 00000000 00000000 00027000 00000000&lt;BR /&gt; 00000070: 3f28000c 00000002&lt;BR /&gt;Model: 2080a custom Board&lt;/P&gt;&lt;P&gt;Board: LS2088AE Rev1.0-10G-N2SW, SERDES1 Reference : Clock1 = 156.25MHz Clock2 = 125MHz&lt;BR /&gt;SERDES2 Reference : Clock1 = 100MHz Clock2 = 100MHz&lt;BR /&gt;I2C: ready&lt;BR /&gt;DRAM: Initializing DDR....SDRAM&lt;BR /&gt;DP-DDR: 4.9 GiB&lt;BR /&gt;DDR 3.9 GiB (DDR4, 64-bit, CL=15, ECC on)&lt;BR /&gt; DDR Controller Interleaving Mode: 256B&lt;BR /&gt;DP-DDR 1 GiB (DDR4, 32-bit, CL=15, ECC on)&lt;BR /&gt;Device tree error at node 'interrupt-controller@6005▒'&lt;BR /&gt;Some drivers failed to bind&lt;BR /&gt;initcall sequence 00000000fbdc2108 failed at call 00000000301197a0 (err=-11)&lt;BR /&gt;### ERROR ### Please RESET the board ###&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I few&amp;nbsp; questions regarding PPA.&lt;/P&gt;&lt;P&gt;1) We have moved the PPA firmware in the flash&amp;nbsp;0x580400000 to&amp;nbsp;0x580c00000 and updated the&amp;nbsp;CONFIG_SYS_LS_PPA_FW_ADDR to&amp;nbsp;&lt;SPAN&gt;0x580c00000&amp;nbsp; for our cutom configuration.&amp;nbsp; Is that fine to keep PPA firmware on any NOR flash location as long as we keep&amp;nbsp;CONFIG_SYS_LS_PPA_FW_ADDR&amp;nbsp;updated to PPA firmware address. on NOR flash.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2)&amp;nbsp; We compile PPA from the source at:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A class="link-titled" href="https://source.codeaurora.org/external/qoriq/qoriq-components/ppa-generic/tree/?h=LSDK-18.09" title="https://source.codeaurora.org/external/qoriq/qoriq-components/ppa-generic/tree/?h=LSDK-18.09"&gt;qoriq-components/ppa-generic - The Primary Protected Application&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We use PPA binary from platform-rdb for our custom board.&amp;nbsp; Do we have to create platform specific files like ddr_init.c for our custom board and make a cutom ppa binary for custom board?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please clarify&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ram&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2018 09:18:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS2088A-Strange-crashes-with-U-boot-binary-on-custom-board/m-p/845842#M3846</guid>
      <dc:creator>rams</dc:creator>
      <dc:date>2018-11-02T09:18:23Z</dc:date>
    </item>
  </channel>
</rss>

