<?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: P4080 Secure Boot RTIC Access in P-Series</title>
    <link>https://community.nxp.com/t5/P-Series/P4080-Secure-Boot-RTIC-Access/m-p/492587#M2991</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;It was the PAMU.&amp;nbsp; I updated our bootloader to put it into Bypass and everything worked. Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Dec 2015 15:15:42 GMT</pubDate>
    <dc:creator>tomsaluzzo</dc:creator>
    <dc:date>2015-12-21T15:15:42Z</dc:date>
    <item>
      <title>P4080 Secure Boot RTIC Access</title>
      <link>https://community.nxp.com/t5/P-Series/P4080-Secure-Boot-RTIC-Access/m-p/492585#M2989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;We are using revision 3 of the P4080 on our own board and running our own Bootloader (not u-boot).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;I am having an issue when enabling secure boot via setting the SB_EN bit in the RCW.&amp;nbsp; I have implemented the documented secure boot procedure, including burning appropriate fuses, and the Freescale ISBC is successfully validating my Bootloader.&amp;nbsp; (No errors in the SCRATCHRW2 register and the SECMON_HPSR is indicating that the security monitor is in the Trusted state).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;My Bootloader code is now trying to validate the public key in the CSF file associated with the next image in the chain-of-trust. It is attempting to do this by computing a hash of the public key using the Run-time integrity checker (RTIC) SHA-256 capability.&amp;nbsp; Specifically, the Bootloader sets the RTIC registers as described in the P4080 Rev. 3 Security (SEC 4.0) Reference Manual.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;If I run with an RCW that does not enable secure boot and force the Bootloader through this code, the RTIC correctly computes the hash.&amp;nbsp; However, when I run through&lt;BR /&gt;the code when I have enabled secure boot in the RCW the code does not work; the code times out waiting for the Hash Done (HD) bit to come on in the RTIC status&lt;BR /&gt;register.&amp;nbsp; I do not see any status error bits being set.&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Given that the code works when I do an unsecure boot, is there some additional configuration that my Bootloader needs to do before accessing the RTIC when I have performed a successful secure boot and am in the Trusted state?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2015 13:42:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/P4080-Secure-Boot-RTIC-Access/m-p/492585#M2989</guid>
      <dc:creator>tomsaluzzo</dc:creator>
      <dc:date>2015-12-17T13:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: P4080 Secure Boot RTIC Access</title>
      <link>https://community.nxp.com/t5/P-Series/P4080-Secure-Boot-RTIC-Access/m-p/492586#M2990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;RTIC uses DMA. There can be a problem with PAMU, which in secure boot mode blocks all peripheral accesses by default. See P4080RM, Section 10.5.3.1.&lt;/P&gt;&lt;P&gt;Besides that, ISBC transfers control to the application with some LAWs and TLBs set, which may improperly interact with your software settings.&lt;/P&gt;&lt;P&gt;Make sure your software is working with the expected address map. Search u-Boot source code for SECURE_BOOT macro to see how it initializes&lt;/P&gt;&lt;P&gt;the system after ISBC - there is some difference to what is done for non-secure boots.&lt;/P&gt;&lt;P&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>Fri, 18 Dec 2015 08:56:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/P4080-Secure-Boot-RTIC-Access/m-p/492586#M2990</guid>
      <dc:creator>bpe</dc:creator>
      <dc:date>2015-12-18T08:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: P4080 Secure Boot RTIC Access</title>
      <link>https://community.nxp.com/t5/P-Series/P4080-Secure-Boot-RTIC-Access/m-p/492587#M2991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;It was the PAMU.&amp;nbsp; I updated our bootloader to put it into Bypass and everything worked. Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Dec 2015 15:15:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/P4080-Secure-Boot-RTIC-Access/m-p/492587#M2991</guid>
      <dc:creator>tomsaluzzo</dc:creator>
      <dc:date>2015-12-21T15:15:42Z</dc:date>
    </item>
  </channel>
</rss>

