<?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>LayerscapeのトピックRe: LS1043A Security Monitor (SecMon) Sample Code</title>
    <link>https://community.nxp.com/t5/Layerscape/LS1043A-Security-Monitor-SecMon-Sample-Code/m-p/1404916#M9933</link>
    <description>&lt;P&gt;&lt;SPAN&gt;There is no sample code for that. The SECMON is a state machine, it change state based on signals from the HW pins/signal.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The state change diagram is in the QORIQTURST21UG, section 7.2 Security Monitor (SecMon) Figure 7-1. Security Monitor Block Diagram&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you want to manually change the state, you can touch the SecMon_HP Command Register (HPCOMR), bit 0, SSM State Transition Transition state of the system security monitor. This self-clearing bit is always read as zero. This command results only in the following transitions of the SSM:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Check State&amp;nbsp;&amp;nbsp; Non-Secure (when Non-Secure Boot and not in Unsecure Configuration )&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Check State --&amp;gt; Trusted (when Secure Boot or in Unsecure Configuration ) Trusted State --&amp;gt; Secure Secure State --&amp;gt; Trusted (if not disabled by SSM_ST_DIS bit) Soft Fail --&amp;gt; Non-Secure (if not disabled by SSM_SFNS_DIS bit)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;OR&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;bit 8, Software Security Violation&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;When set, the system security monitor treats this bit as a non-fatal security violation. This security violation has no effect on the LP section. This command results only in the following transitions of the&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;SSM:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Check -&amp;gt; Non-Secure&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Trusted -&amp;gt; Soft Fail&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Secure -&amp;gt; Soft Fail&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jan 2022 04:47:48 GMT</pubDate>
    <dc:creator>yipingwang</dc:creator>
    <dc:date>2022-01-26T04:47:48Z</dc:date>
    <item>
      <title>LS1043A Security Monitor (SecMon) Sample Code</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1043A-Security-Monitor-SecMon-Sample-Code/m-p/1399386#M9843</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is there any sample code available to program the Security Monitor (SecMon) that is described in the QorIQ Trust Architecture 2.1 User Guide?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jan 2022 09:15:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1043A-Security-Monitor-SecMon-Sample-Code/m-p/1399386#M9843</guid>
      <dc:creator>smruthi_ramesh</dc:creator>
      <dc:date>2022-01-14T09:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: LS1043A Security Monitor (SecMon) Sample Code</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1043A-Security-Monitor-SecMon-Sample-Code/m-p/1400709#M9859</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Yes, please refer to the latest LSDK User Guide (e.g. LSDKUG_Rev21.08.pdf)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;6.1.1.5 Procedure to run secure boot&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;6.1.1.5.2 Prepare board for Secure boot.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You should start reading section 6.1.1 Secure boot for all security related topics that enabled in the LSDK software for reference.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 06:48:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1043A-Security-Monitor-SecMon-Sample-Code/m-p/1400709#M9859</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2022-01-18T06:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: LS1043A Security Monitor (SecMon) Sample Code</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1043A-Security-Monitor-SecMon-Sample-Code/m-p/1400712#M9860</link>
      <description>&lt;P&gt;Thanks I will go through the section for secure boot.&lt;/P&gt;&lt;P&gt;Besides secure boot, there is a Security monitor state machine (SSM) that runs and changes states according to H/W and S/W failures. Is there any sample code available for that?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 06:53:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1043A-Security-Monitor-SecMon-Sample-Code/m-p/1400712#M9860</guid>
      <dc:creator>smruthi_ramesh</dc:creator>
      <dc:date>2022-01-18T06:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: LS1043A Security Monitor (SecMon) Sample Code</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1043A-Security-Monitor-SecMon-Sample-Code/m-p/1404916#M9933</link>
      <description>&lt;P&gt;&lt;SPAN&gt;There is no sample code for that. The SECMON is a state machine, it change state based on signals from the HW pins/signal.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The state change diagram is in the QORIQTURST21UG, section 7.2 Security Monitor (SecMon) Figure 7-1. Security Monitor Block Diagram&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you want to manually change the state, you can touch the SecMon_HP Command Register (HPCOMR), bit 0, SSM State Transition Transition state of the system security monitor. This self-clearing bit is always read as zero. This command results only in the following transitions of the SSM:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Check State&amp;nbsp;&amp;nbsp; Non-Secure (when Non-Secure Boot and not in Unsecure Configuration )&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Check State --&amp;gt; Trusted (when Secure Boot or in Unsecure Configuration ) Trusted State --&amp;gt; Secure Secure State --&amp;gt; Trusted (if not disabled by SSM_ST_DIS bit) Soft Fail --&amp;gt; Non-Secure (if not disabled by SSM_SFNS_DIS bit)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;OR&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;bit 8, Software Security Violation&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;When set, the system security monitor treats this bit as a non-fatal security violation. This security violation has no effect on the LP section. This command results only in the following transitions of the&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;SSM:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Check -&amp;gt; Non-Secure&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Trusted -&amp;gt; Soft Fail&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Secure -&amp;gt; Soft Fail&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 04:47:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1043A-Security-Monitor-SecMon-Sample-Code/m-p/1404916#M9933</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2022-01-26T04:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: LS1043A Security Monitor (SecMon) Sample Code</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1043A-Security-Monitor-SecMon-Sample-Code/m-p/1405618#M9940</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I check and in uboot we have a reference to change the secmon state. Nothing in Linux. You may use it as reference. Here is the reference.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;.../u-boot/board/freescale/common/fsl_validate.c&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (its == 1)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&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; set_sec_mon_state(HPSR_SSM_ST_SOFT_FAIL);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&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; set_sec_mon_state(HPSR_SSM_ST_NON_SECURE);&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2022 01:30:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1043A-Security-Monitor-SecMon-Sample-Code/m-p/1405618#M9940</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2022-01-27T01:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: LS1043A Security Monitor (SecMon) Sample Code</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1043A-Security-Monitor-SecMon-Sample-Code/m-p/1405713#M9943</link>
      <description>&lt;P&gt;Okay thank you very much!&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2022 04:33:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1043A-Security-Monitor-SecMon-Sample-Code/m-p/1405713#M9943</guid>
      <dc:creator>smruthi_ramesh</dc:creator>
      <dc:date>2022-01-27T04:33:11Z</dc:date>
    </item>
  </channel>
</rss>

