<?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: Wrong Barker Code in Header Error  in Layerscape</title>
    <link>https://community.nxp.com/t5/Layerscape/Wrong-Barker-Code-in-Header-Error/m-p/550774#M1398</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure your CSF is where you expect it to be? Do you use any LAW's that move where your flash is initially? I havent done secureboot on any LS processors, but for the P and T series ones there are LAWs you need to be careful of.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Jun 2016 17:59:32 GMT</pubDate>
    <dc:creator>tschutte</dc:creator>
    <dc:date>2016-06-21T17:59:32Z</dc:date>
    <item>
      <title>Wrong Barker Code in Header Error</title>
      <link>https://community.nxp.com/t5/Layerscape/Wrong-Barker-Code-in-Header-Error/m-p/550771#M1395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When attempting to Secure Boot I am met with an error when U-boot is loaded: &lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;SEC0: RNG instantiated&lt;/P&gt;&lt;P&gt;PPA validation startedERROR :: 4 :: Wrong barker code in header&lt;/P&gt;&lt;P&gt;SEC_MON state transitioning to Soft Fail.&lt;/P&gt;&lt;P&gt;SEC_MON state transitioning to Non Secure.&lt;/P&gt;&lt;P&gt;Generating reset request&lt;/P&gt;&lt;P&gt;resetting ...&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was surprised the ESBC was executed at all considering it was not validated. What I observe is U-boot being loaded and immediately restarting to the default bank. I do not have time to query the scratch registers, but I imagine them to be written with error code 0x302 indicating the Barker Code was incorrect. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I flashed a RCW with SBEN=1. The source of the RCW includes &lt;EM&gt;uboot_hdr_addr.rcw&lt;/EM&gt;, which simply includes a PBI command:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;write 0xee0200, 0x60080000&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can stop the core and query this address and the value &lt;EM&gt;is&lt;/EM&gt; written to this register location, so I know the PBI commands are getting executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture2.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/59971i2BAFEFE4CFB5B909/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture2.PNG" alt="Capture2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, if I memory dump the 0x60080000 region I see the Barker header as expected. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/59922i421B1445C5680ABD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 19:56:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Wrong-Barker-Code-in-Header-Error/m-p/550771#M1395</guid>
      <dc:creator>brandensherrell</dc:creator>
      <dc:date>2016-06-20T19:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong Barker Code in Header Error</title>
      <link>https://community.nxp.com/t5/Layerscape/Wrong-Barker-Code-in-Header-Error/m-p/550772#M1396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial;"&gt;Your u-Boot clearly says what is the problem. It attempts to find a PPA&lt;BR /&gt;image and fails. PPA concept is described here:&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Ffreescale.sdlproducts.com%2FLiveContent%2Fcontent%2Fen-US%2FQorIQ_SDK%2FGUID-0BB77E9F-EE5E-441D-9292-D4960B261030" rel="nofollow" target="_blank"&gt;https://freescale.sdlproducts.com/LiveContent/content/en-US/QorIQ_SDK/GUID-0BB77E9F-EE5E-441D-9292-D4960B261030&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Platon&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>Tue, 21 Jun 2016 14:04:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Wrong-Barker-Code-in-Header-Error/m-p/550772#M1396</guid>
      <dc:creator>bpe</dc:creator>
      <dc:date>2016-06-21T14:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong Barker Code in Header Error</title>
      <link>https://community.nxp.com/t5/Layerscape/Wrong-Barker-Code-in-Header-Error/m-p/550773#M1397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is not obvious from the error messages. The PPA images do not start with a Barker code preamble. There is no mention of a PPA header in any of the documentation I have found. I even have the application note for enabling secure boot on the LS1043ardb and it does not mention it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After writing the PPA header I am still met with a similar error but no context to which it applies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;SEC0: RNG instantiated&lt;/P&gt;&lt;P&gt;PPA validation startedPPA validation Successful&lt;/P&gt;&lt;P&gt;PPA Firmware: Version 0.2&lt;/P&gt;&lt;P&gt;Firmware 'Microcode version 0.0.1 for LS1021a r1.0' for 1021 V1.0&lt;/P&gt;&lt;P&gt;QE: uploading microcode 'Microcode for LS1021a r1.0' version 0.0.1&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PPA validation startedPPA validation Successful&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Using SERDES1 Protocol: 5205 (0x1455)&lt;/P&gt;&lt;P&gt;Flash: 128 MiB&lt;/P&gt;&lt;P&gt;NAND:&amp;nbsp; 512 MiB&lt;/P&gt;&lt;P&gt;MMC:&amp;nbsp;&amp;nbsp; FSL_SDHC: 0&lt;/P&gt;&lt;P&gt;Using default environment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EEPROM: NXID v1&lt;/P&gt;&lt;P&gt;PCIe1: disabled&lt;/P&gt;&lt;P&gt;PCIe2: Root Complex no link, regs @ 0x3500000&lt;/P&gt;&lt;P&gt;PCIe3: Root Complex no link, regs @ 0x3600000&lt;/P&gt;&lt;P&gt;In:&amp;nbsp;&amp;nbsp;&amp;nbsp; serial&lt;/P&gt;&lt;P&gt;Out:&amp;nbsp;&amp;nbsp; serial&lt;/P&gt;&lt;P&gt;Err:&amp;nbsp;&amp;nbsp; serial&lt;/P&gt;&lt;P&gt;SCSI:&amp;nbsp; Error: SCSI Controller(s) 1B4B:9170 not found&lt;/P&gt;&lt;P&gt;Net:&amp;nbsp;&amp;nbsp; Fman1: Uploading microcode version 106.4.17&lt;/P&gt;&lt;P&gt;FM1@DTSEC1, FM1@DTSEC2, FM1@DTSEC3 [PRIME], FM1@DTSEC4, FM1@DTSEC5, FM1@DTSEC6, FM1@TGEC1&lt;/P&gt;&lt;P&gt;Hit any key to stop autoboot:&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR :: 4 :: Wrong barker code in header&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SEC_MON state transitioning to Soft Fail.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SEC_MON state transitioning to Non Secure.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Generating reset request&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;resetting ...&lt;/STRONG&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2016 14:37:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Wrong-Barker-Code-in-Header-Error/m-p/550773#M1397</guid>
      <dc:creator>brandensherrell</dc:creator>
      <dc:date>2016-06-21T14:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong Barker Code in Header Error</title>
      <link>https://community.nxp.com/t5/Layerscape/Wrong-Barker-Code-in-Header-Error/m-p/550774#M1398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure your CSF is where you expect it to be? Do you use any LAW's that move where your flash is initially? I havent done secureboot on any LS processors, but for the P and T series ones there are LAWs you need to be careful of.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2016 17:59:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Wrong-Barker-Code-in-Header-Error/m-p/550774#M1398</guid>
      <dc:creator>tschutte</dc:creator>
      <dc:date>2016-06-21T17:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong Barker Code in Header Error</title>
      <link>https://community.nxp.com/t5/Layerscape/Wrong-Barker-Code-in-Header-Error/m-p/550775#M1399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As it turns out, this new error was related to the header not being present for the bootscript. I was not expecting there to be a requirement of a bootscript because the SDK 0.4 (Latest SDK prior to the recent merge into 2.0 three weeks ago) included a caveat that the Ls1043A-rdb had an elusive bug that forced them to exclude the use of a bootscript for a while; it seems as though this was fixed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2016 20:45:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Wrong-Barker-Code-in-Header-Error/m-p/550775#M1399</guid>
      <dc:creator>brandensherrell</dc:creator>
      <dc:date>2016-06-21T20:45:41Z</dc:date>
    </item>
  </channel>
</rss>

