<?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 i.MX 8QM SECO HSM driver in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-MX-8QM-SECO-HSM-driver/m-p/1430678#M188367</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi everyone!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I would like to get some help clarifying a question about the i.MX 8QM HSM driver.&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;I'm working on a project where I would need to use the HSM driver of the i.MX 8QM SoC installed on a Toradex Apalis i.MX8QM board we use. We use a custom Linux BSP (details at the bottom), with the imx-seco-libs, kernel configuration, all required settings set correctly (I believe).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm trying to follow the AN12906 she_hsm_example tutorial to get the SECO HSM driver operational, but while the SHE driver works correctly, the HSM does not, and the information I find about the existence of the HSM driver is mixed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- The&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;IMX8QMAEC&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;and the&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;IMX8QMIEC&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;datasheet document say:&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN&gt;"Dedicated Security Controller for Flashless SHE and HSM support, Trustzone"&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;(Page 3, Security row).&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- The&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;IMX8QMSWSTACKDOC&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;document says:&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN&gt;"Security firmware supporting HSM, SHE and secure boot"&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- On the other hand, the&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;AN12906&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;(released for i.MX 8QXP) document says: "&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN&gt;The HSM architecture is compatible with only i.MX 8QXP Rev C0 and i.MX 8DXL.".&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;This implicates that the i.MX8QM does not.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- Also, mentioned in a&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors/IMX8QM-HSM-SECO-implementation/m-p/1361528/highlight/true#M182140" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;comment&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;, that "&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN&gt;We&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN&gt;DON"T&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt;&lt;SPAN&gt;&amp;nbsp;support HSM API for i.MX8QM device, SHE API can be used in i.MX8QM."&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;(Which correlates with the fact that the SHE driver is working as expected when I try it)&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;So my question is:&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;Does the i.MX 8QM SoC support the SECO HSM driver or is it only supported on the i.MX 8QXP Rev C0 and the i.MX 8DXL as stated in AN12906?&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BSP information:&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;- BSP: Based on Toradex Reference Minimal Image 5.5.0, with changes such as secure boot.&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;- Kernel: downstream based NXP BSP 5.4.70_2.3.3&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;- U-Boot: downstream based NXP 2020.04&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;- SCFW: based on imx-scfw-porting-kit 1.7.4&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;- SCU: NXP i.MX SECO 3.8.1&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;- TF-A FW: based on NXP BSP L5.4.70_2.3.2&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;Many thanks,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Csongor&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Mar 2022 10:41:37 GMT</pubDate>
    <dc:creator>Csongor</dc:creator>
    <dc:date>2022-03-22T10:41:37Z</dc:date>
    <item>
      <title>i.MX 8QM SECO HSM driver</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX-8QM-SECO-HSM-driver/m-p/1430678#M188367</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi everyone!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I would like to get some help clarifying a question about the i.MX 8QM HSM driver.&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;I'm working on a project where I would need to use the HSM driver of the i.MX 8QM SoC installed on a Toradex Apalis i.MX8QM board we use. We use a custom Linux BSP (details at the bottom), with the imx-seco-libs, kernel configuration, all required settings set correctly (I believe).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm trying to follow the AN12906 she_hsm_example tutorial to get the SECO HSM driver operational, but while the SHE driver works correctly, the HSM does not, and the information I find about the existence of the HSM driver is mixed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- The&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;IMX8QMAEC&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;and the&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;IMX8QMIEC&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;datasheet document say:&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN&gt;"Dedicated Security Controller for Flashless SHE and HSM support, Trustzone"&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;(Page 3, Security row).&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- The&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;IMX8QMSWSTACKDOC&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;document says:&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN&gt;"Security firmware supporting HSM, SHE and secure boot"&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- On the other hand, the&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;AN12906&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;(released for i.MX 8QXP) document says: "&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN&gt;The HSM architecture is compatible with only i.MX 8QXP Rev C0 and i.MX 8DXL.".&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;This implicates that the i.MX8QM does not.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- Also, mentioned in a&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors/IMX8QM-HSM-SECO-implementation/m-p/1361528/highlight/true#M182140" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;comment&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;, that "&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN&gt;We&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN&gt;DON"T&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt;&lt;SPAN&gt;&amp;nbsp;support HSM API for i.MX8QM device, SHE API can be used in i.MX8QM."&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;(Which correlates with the fact that the SHE driver is working as expected when I try it)&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;So my question is:&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;Does the i.MX 8QM SoC support the SECO HSM driver or is it only supported on the i.MX 8QXP Rev C0 and the i.MX 8DXL as stated in AN12906?&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BSP information:&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;- BSP: Based on Toradex Reference Minimal Image 5.5.0, with changes such as secure boot.&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;- Kernel: downstream based NXP BSP 5.4.70_2.3.3&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;- U-Boot: downstream based NXP 2020.04&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;- SCFW: based on imx-scfw-porting-kit 1.7.4&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;- SCU: NXP i.MX SECO 3.8.1&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;- TF-A FW: based on NXP BSP L5.4.70_2.3.2&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;Many thanks,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Csongor&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 10:41:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX-8QM-SECO-HSM-driver/m-p/1430678#M188367</guid>
      <dc:creator>Csongor</dc:creator>
      <dc:date>2022-03-22T10:41:37Z</dc:date>
    </item>
  </channel>
</rss>

