<?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>T-Series中的主题 Re: U-Boot doesn't run when T2080 secure boot enabled</title>
    <link>https://community.nxp.com/t5/T-Series/U-Boot-doesn-t-run-when-T2080-secure-boot-enabled/m-p/1266877#M4046</link>
    <description>&lt;P&gt;This is an update to your question/request:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Secure Boot does not affect normal process, except PAMU cannot be in bypass mode.&lt;/P&gt;
&lt;P&gt;From the Trust Architecture User Guide 2.0,&lt;/P&gt;
&lt;P&gt;#####&lt;/P&gt;
&lt;P&gt;3.1.2.1 PAMUs&lt;/P&gt;
&lt;P&gt;The core's MMU settings determine which memory ranges are accessible by each&lt;/P&gt;
&lt;P&gt;domain, and the hypervisor prevents these settings from being altered by operating&lt;/P&gt;
&lt;P&gt;system or application software.&lt;/P&gt;
&lt;P&gt;In order to prevent system masters other than the cores from reading or writing sensitive&lt;/P&gt;
&lt;P&gt;memory regions, the chip implements a number of I/O MMUs, known as peripheral&lt;/P&gt;
&lt;P&gt;access management units or PAMUs. The PAMUs prevent internal and external DMAs&lt;/P&gt;
&lt;P&gt;(non-CPU masters) from accessing memory for which they have not been granted explicit&lt;/P&gt;
&lt;P&gt;access permission.&lt;/P&gt;
&lt;P&gt;#####&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which exactly modification was done? Is it possible that transaction for the target peripheral is blocked by PAMU?&lt;/P&gt;
&lt;P&gt;Please check whether there is PAMU error. You can configure the PAMU interrupt to list out the PAMU status registers in case of access violation.&lt;/P&gt;
&lt;P&gt;Make sure that there are enough entries for both primary and secondary tables. In U-Boot, primary and secondary tables are defined with static sizes which are defined in fsl_pamu.h file as:&lt;/P&gt;
&lt;P&gt;#define NUM_PPAACT_ENTRIES&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; 512&lt;/P&gt;
&lt;P&gt;#define NUM_SPAACT_ENTRIES&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; 256&lt;/P&gt;</description>
    <pubDate>Thu, 22 Apr 2021 21:20:07 GMT</pubDate>
    <dc:creator>ufedor</dc:creator>
    <dc:date>2021-04-22T21:20:07Z</dc:date>
    <item>
      <title>U-Boot doesn't run when T2080 secure boot enabled</title>
      <link>https://community.nxp.com/t5/T-Series/U-Boot-doesn-t-run-when-T2080-secure-boot-enabled/m-p/1266071#M4045</link>
      <description>&lt;P&gt;We are using the T2080 with secure boot bit enabled in the RCW. We’ve been successful in running uni_sign to sign U-Boot and other ESBCs to generate the CSF header file and boot the T2080. We have been customizing U-Boot for some time and have not had any problems with booting until now.&lt;/P&gt;&lt;P&gt;I recently made a small change to our U-Boot code, added two parameters to a function which is near the end of U-Boot execution. Now U-Boot appears not to start or it hangs (no output text gets displayed). I checked the security monitor state using a Lauterbach JTAG debugger (our CodeWarrior license expired). The SSM_ST value was 0xd and the SCRATCHRW2 register value is 0x0 so it appears the T2080 ISBC is booting into the Trusted state and U-Boot should have started, but there is no output. The interesting thing is that U-Boot executes fine when secure boot bit is disabled.&lt;/P&gt;&lt;P&gt;When I load the debug symbols in the Lauterbach debugger, reset the CPU, then hit Go, the execution gets stuck in a data TLB error handler. I compared the LAWs and TLBs between the good and bad U-Boot early in the execution and they look the same.&lt;/P&gt;&lt;P&gt;Another interesting thing, if I put several breakpoints in the code where it is executing out of NOR flash then execution gets to the relocation to RAM. Then I can hit Go and U-Boot continues to run.&lt;/P&gt;&lt;P&gt;Also, when I single step the Lauterbach it seems to execute some instructions at addresses that are not even part of the code.&amp;nbsp; I wonder if Lauterbach cannot debug properly when in secure boot mode.&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;VNF&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 18:18:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/T-Series/U-Boot-doesn-t-run-when-T2080-secure-boot-enabled/m-p/1266071#M4045</guid>
      <dc:creator>VNF</dc:creator>
      <dc:date>2021-04-21T18:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: U-Boot doesn't run when T2080 secure boot enabled</title>
      <link>https://community.nxp.com/t5/T-Series/U-Boot-doesn-t-run-when-T2080-secure-boot-enabled/m-p/1266877#M4046</link>
      <description>&lt;P&gt;This is an update to your question/request:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Secure Boot does not affect normal process, except PAMU cannot be in bypass mode.&lt;/P&gt;
&lt;P&gt;From the Trust Architecture User Guide 2.0,&lt;/P&gt;
&lt;P&gt;#####&lt;/P&gt;
&lt;P&gt;3.1.2.1 PAMUs&lt;/P&gt;
&lt;P&gt;The core's MMU settings determine which memory ranges are accessible by each&lt;/P&gt;
&lt;P&gt;domain, and the hypervisor prevents these settings from being altered by operating&lt;/P&gt;
&lt;P&gt;system or application software.&lt;/P&gt;
&lt;P&gt;In order to prevent system masters other than the cores from reading or writing sensitive&lt;/P&gt;
&lt;P&gt;memory regions, the chip implements a number of I/O MMUs, known as peripheral&lt;/P&gt;
&lt;P&gt;access management units or PAMUs. The PAMUs prevent internal and external DMAs&lt;/P&gt;
&lt;P&gt;(non-CPU masters) from accessing memory for which they have not been granted explicit&lt;/P&gt;
&lt;P&gt;access permission.&lt;/P&gt;
&lt;P&gt;#####&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which exactly modification was done? Is it possible that transaction for the target peripheral is blocked by PAMU?&lt;/P&gt;
&lt;P&gt;Please check whether there is PAMU error. You can configure the PAMU interrupt to list out the PAMU status registers in case of access violation.&lt;/P&gt;
&lt;P&gt;Make sure that there are enough entries for both primary and secondary tables. In U-Boot, primary and secondary tables are defined with static sizes which are defined in fsl_pamu.h file as:&lt;/P&gt;
&lt;P&gt;#define NUM_PPAACT_ENTRIES&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; 512&lt;/P&gt;
&lt;P&gt;#define NUM_SPAACT_ENTRIES&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; 256&lt;/P&gt;</description>
      <pubDate>Thu, 22 Apr 2021 21:20:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/T-Series/U-Boot-doesn-t-run-when-T2080-secure-boot-enabled/m-p/1266877#M4046</guid>
      <dc:creator>ufedor</dc:creator>
      <dc:date>2021-04-22T21:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: U-Boot doesn't run when T2080 secure boot enabled</title>
      <link>https://community.nxp.com/t5/T-Series/U-Boot-doesn-t-run-when-T2080-secure-boot-enabled/m-p/1269140#M4048</link>
      <description>&lt;P&gt;Thanks for the information.&amp;nbsp; It turns out we did not have this patch in our code.&lt;/P&gt;&lt;P&gt;&lt;A href="https://lists.denx.de/pipermail/u-boot/2017-March/282887.html" target="_blank"&gt;https://lists.denx.de/pipermail/u-boot/2017-March/282887.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;powerpc: e6500: Lock/unlock 1 cache instead of L1 as init_ram&lt;/P&gt;&lt;P&gt;For E6500 cores, L2 cache has been used as init_ram. L1 cache is a write through cache on E6500.If lines are not locked in both L1 and L2 caches, crashes are observed during secure boot. This patch locks/unlocks both L1 and L2 cache to prevent the crash.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 21:12:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/T-Series/U-Boot-doesn-t-run-when-T2080-secure-boot-enabled/m-p/1269140#M4048</guid>
      <dc:creator>VNF</dc:creator>
      <dc:date>2021-04-27T21:12:18Z</dc:date>
    </item>
  </channel>
</rss>

