<?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: i.MX93 ELE Key Store persistent key generation NVM Error in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-MX93-ELE-Key-Store-persistent-key-generation-NVM-Error/m-p/2187533#M241460</link>
    <description>&lt;P&gt;Hello Aldo,&lt;/P&gt;&lt;P&gt;thank you so much for your help, this was indeed the issue!&lt;/P&gt;&lt;P&gt;For anyone wondering, &lt;A href="https://github.com/nxp-imx/imx-secure-enclave/blob/lf-6.12.34_2.1.0/src/common/nvm/nvm_daemon.c" target="_self"&gt;nvm_daemon&lt;/A&gt; is a systemd service that is part of &lt;A href="https://github.com/nxp-imx/imx-secure-enclave" target="_self"&gt;imx-secure-enclave&lt;/A&gt;, the userspace library for the ELE.&lt;/P&gt;&lt;P&gt;The service seems to &lt;A href="https://github.com/Freescale/meta-freescale/commit/639ca90853f694cde2a15093127bf3a3c1b6d9f1#diff-c88c390ef740fc5d1eb2bf00a381b6be047049e5e05bbd72d52b419b5a29d50bR28" target="_self"&gt;not be automatically started by default&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;From what I could tell from &lt;A href="https://www.nxp.com/docs/en/application-note/AN14105.pdf#%5B%7B%22num%22%3A7%2C%22gen%22%3A0%7D%2C%7B%22name%22%3A%22XYZ%22%7D%2C73.316%2C535.644%2Cnull%5D" target="_self"&gt;Chapter3 of the AN14105 Application Note&lt;/A&gt; ("Understanding SECO Secure Storage and Non-Volatile Memory Management"), the reason for this is, that the ELE itself does not have any non-volatile memory and instead relies on the NVM manager to store the wrapped keys to non-volatile memory.&lt;/P&gt;&lt;P&gt;In our case, this NVM manager is &lt;A href="https://github.com/nxp-imx/imx-secure-enclave/blob/lf-6.12.34_2.1.0/src/common/nvm/nvm_daemon.c" target="_self"&gt;nvm_daemon&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;That Application Note applies to SECO, but I'm going out on a limb an assuming that similar if not identical concepts apply to the ELE.&lt;/P&gt;</description>
    <pubDate>Thu, 16 Oct 2025 12:33:09 GMT</pubDate>
    <dc:creator>oliben</dc:creator>
    <dc:date>2025-10-16T12:33:09Z</dc:date>
    <item>
      <title>i.MX93 ELE Key Store persistent key generation NVM Error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX93-ELE-Key-Store-persistent-key-generation-NVM-Error/m-p/2184929#M241351</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;When trying to generate a persistent key in the ELE's Key Store on i.MX93. I run into the following error:&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;Getting device info&lt;BR /&gt;SoC ID : 0x9300&lt;BR /&gt;SoC Rev : 0xa100&lt;BR /&gt;LMDA val: 0x10&lt;BR /&gt;Creating a Key Store (0xabcd/0x1234)&lt;BR /&gt;Opening the Key Management Service&lt;BR /&gt;Going to try and generate a persistent key&lt;/P&gt;&lt;P&gt;SAB Error: SAB CMD [0x42] Resp [0x529] - Unknown error code&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;The code is mostly taken from &lt;A href="https://github.com/nxp-imx/imx-secure-enclave/blob/lf-6.6.23_2.0.0/test/hsm/hsm_test.c#L256" target="_blank" rel="noopener"&gt;https://github.com/nxp-imx/imx-secure-enclave/blob/lf-6.6.23_2.0.0/test/hsm/hsm_test.c#L256&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;However, I encounter the exact same failure when trying to use the OPTEE test TA:&amp;nbsp;&lt;A href="https://github.com/nxp-imx/imx-optee-os/blob/lf-6.12.34_2.1.0/core/pta/imx/ele_test.c#L61" target="_blank" rel="noopener"&gt;https://github.com/nxp-imx/imx-optee-os/blob/lf-6.12.34_2.1.0/core/pta/imx/ele_test.c#L61&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Although `imx-secure-enclave` reports an unknown error code (0x529), the error is actually `HSM_FATAL_FAILURE` with a rating of `HSM_NVM_ERROR`.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is consistent with the fact that only generating persistent keys fails: generating transient keys works fine.&lt;/P&gt;&lt;P&gt;My question is therefore: why is the ELE complaining of an NVM error?&lt;BR /&gt;Is there a step I am missing to ensure NVM support in the ELE?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Oct 2025 14:18:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX93-ELE-Key-Store-persistent-key-generation-NVM-Error/m-p/2184929#M241351</guid>
      <dc:creator>oliben</dc:creator>
      <dc:date>2025-10-13T14:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX93 ELE Key Store persistent key generation NVM Error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX93-ELE-Key-Store-persistent-key-generation-NVM-Error/m-p/2186091#M241403</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;We have seen this kind of issue from previous experience, this one is usually seen when the&amp;nbsp;&lt;SPAN&gt;nvm_daemon service is not started.&amp;nbsp;After start nvm_daemon service, the keystore should be opened successfully.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can try "ps -ef|grep nvm" to confirm if the nvm daemon is running in backend.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Best regards/Saludos,&lt;BR /&gt;Aldo.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Oct 2025 23:41:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX93-ELE-Key-Store-persistent-key-generation-NVM-Error/m-p/2186091#M241403</guid>
      <dc:creator>AldoG</dc:creator>
      <dc:date>2025-10-14T23:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX93 ELE Key Store persistent key generation NVM Error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX93-ELE-Key-Store-persistent-key-generation-NVM-Error/m-p/2187533#M241460</link>
      <description>&lt;P&gt;Hello Aldo,&lt;/P&gt;&lt;P&gt;thank you so much for your help, this was indeed the issue!&lt;/P&gt;&lt;P&gt;For anyone wondering, &lt;A href="https://github.com/nxp-imx/imx-secure-enclave/blob/lf-6.12.34_2.1.0/src/common/nvm/nvm_daemon.c" target="_self"&gt;nvm_daemon&lt;/A&gt; is a systemd service that is part of &lt;A href="https://github.com/nxp-imx/imx-secure-enclave" target="_self"&gt;imx-secure-enclave&lt;/A&gt;, the userspace library for the ELE.&lt;/P&gt;&lt;P&gt;The service seems to &lt;A href="https://github.com/Freescale/meta-freescale/commit/639ca90853f694cde2a15093127bf3a3c1b6d9f1#diff-c88c390ef740fc5d1eb2bf00a381b6be047049e5e05bbd72d52b419b5a29d50bR28" target="_self"&gt;not be automatically started by default&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;From what I could tell from &lt;A href="https://www.nxp.com/docs/en/application-note/AN14105.pdf#%5B%7B%22num%22%3A7%2C%22gen%22%3A0%7D%2C%7B%22name%22%3A%22XYZ%22%7D%2C73.316%2C535.644%2Cnull%5D" target="_self"&gt;Chapter3 of the AN14105 Application Note&lt;/A&gt; ("Understanding SECO Secure Storage and Non-Volatile Memory Management"), the reason for this is, that the ELE itself does not have any non-volatile memory and instead relies on the NVM manager to store the wrapped keys to non-volatile memory.&lt;/P&gt;&lt;P&gt;In our case, this NVM manager is &lt;A href="https://github.com/nxp-imx/imx-secure-enclave/blob/lf-6.12.34_2.1.0/src/common/nvm/nvm_daemon.c" target="_self"&gt;nvm_daemon&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;That Application Note applies to SECO, but I'm going out on a limb an assuming that similar if not identical concepts apply to the ELE.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Oct 2025 12:33:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX93-ELE-Key-Store-persistent-key-generation-NVM-Error/m-p/2187533#M241460</guid>
      <dc:creator>oliben</dc:creator>
      <dc:date>2025-10-16T12:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX93 ELE Key Store persistent key generation NVM Error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX93-ELE-Key-Store-persistent-key-generation-NVM-Error/m-p/2187642#M241463</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Glad that it helped, and thank you for sharing more information about the topic this may be useful for anyone else that may be looking for something similar.&lt;BR /&gt;&lt;BR /&gt;Best regards/Saludos,&lt;BR /&gt;Aldo.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Oct 2025 16:02:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX93-ELE-Key-Store-persistent-key-generation-NVM-Error/m-p/2187642#M241463</guid>
      <dc:creator>AldoG</dc:creator>
      <dc:date>2025-10-16T16:02:15Z</dc:date>
    </item>
  </channel>
</rss>

