<?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: Manufacturing Protection with i.MX8MM: verify not working in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Manufacturing-Protection-with-i-MX8MM-verify-not-working/m-p/1841147#M222156</link>
    <description>&lt;P&gt;I finally closed the device, and went to try this again. However, I observed a new problem. Now the command "mfgprot pubk" does not appear to work:&lt;/P&gt;&lt;P&gt;u-boot=&amp;gt; mfgprot pubk&lt;BR /&gt;exit not allowed from main input shell.&lt;/P&gt;&lt;P&gt;Before closing the device, the command worked without any problems. What could be wrong?&lt;/P&gt;</description>
    <pubDate>Fri, 05 Apr 2024 08:13:02 GMT</pubDate>
    <dc:creator>Sampo</dc:creator>
    <dc:date>2024-04-05T08:13:02Z</dc:date>
    <item>
      <title>Manufacturing Protection with i.MX8MM: verify not working</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Manufacturing-Protection-with-i-MX8MM-verify-not-working/m-p/1831806#M221512</link>
      <description>&lt;P&gt;I am trying to get Manufacturing Protection working with&amp;nbsp;i.MX8MM. I am using U-boot&amp;nbsp;2022.04. I have followed the instructions in AN13222. First I have added these to the U-Boot configuration:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;CONFIG_SECURE_BOOT=y&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;CONFIG_IMX_HAB=y&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;CONFIG_FSL_MFGPROT=y&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;CONFIG_IMX_CAAM_MFG_PROT = y&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;CONFIG_IMX_SECO_MFG_PROT = n&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Then I have enabled secure boot and added these to the CSF file:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[Unlock]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Engine = CAAM&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Features = MFG&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Then I get the public key:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;u-boot=&amp;gt; mfgprot pubk&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Public key:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;lt;RETRACTED&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Then I encrypt a dummy message:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;u-boot=&amp;gt; mfgprot sign 0x43000000 4&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Signing message with Manufacturing Protection Private Key&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Message: FF FF FF FF&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Message Representative Digest(SHA-256):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;0E0E8DB6D2F0FF5650223850BF9086ED18FFD5C074DB6607730C5C770321A4A3&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Signature:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;C:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;DE40C5FAE2C2B724AAC6FE11337D2FB29A2C639E02F61DB216FBA215E205BE1F&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;d:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;6F0A6B6FD9E01F0F28E8EE98FA5051F637E6D367CB0DED637AD73ECB80B2F483&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Then on an Ubuntu, I download and compile the mp-verification-tool from here:&amp;nbsp;&lt;A href="https://github.com/nxp-imx-support/imx_sec_apps/tree/master/mp-verification-tool" target="_blank" rel="noopener"&gt;https://github.com/nxp-imx-support/imx_sec_apps/tree/master/mp-verification-tool&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I run verify, but it does not work:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;./verify -m ffffffff -k 04&amp;lt;RETRACTED&amp;gt; -c DE40C5FAE2C2B724AAC6FE11337D2FB29A2C639E02F61DB216FBA215E205BE1F -d 6F0A6B6FD9E01F0F28E8EE98FA5051F637E6D367CB0DED637AD73ECB80B2F483&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Public Key: 04&amp;lt;RETRACTED&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Public key verified&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Message digest:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;SHA-256: 890ed82cf09f2224&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Signature:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;c: DE40C5FAE2C2B724AAC6FE11337D2FB29A2C639E02F61DB216FBA215E205BE1F&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;d: 6F0A6B6FD9E01F0F28E8EE98FA5051F637E6D367CB0DED637AD73ECB80B2F483&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;EC Signature: Invalid&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;What could be wrong?&lt;/P&gt;&lt;P&gt;Note: secure boot is enabled but the device is not closed. I do not wish to close the device yet, but could this be the cause of the problem?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 08:31:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Manufacturing-Protection-with-i-MX8MM-verify-not-working/m-p/1831806#M221512</guid>
      <dc:creator>Sampo</dc:creator>
      <dc:date>2024-03-20T08:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: Manufacturing Protection with i.MX8MM: verify not working</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Manufacturing-Protection-with-i-MX8MM-verify-not-working/m-p/1833951#M221680</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;As is mentioned on AN13222 the first step to use the Manufacturing Protection is enable the secure boot feature.&lt;/P&gt;
&lt;P&gt;Once device successfully boots a signed image without generating any HAB events, it should be safe to close the device and is the last step in the process to enable secure boot.&lt;/P&gt;
&lt;P&gt;Did you verified that HAB successfully authenticates the signed image?&lt;/P&gt;
&lt;P&gt;Best regards.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2024 21:52:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Manufacturing-Protection-with-i-MX8MM-verify-not-working/m-p/1833951#M221680</guid>
      <dc:creator>JorgeCas</dc:creator>
      <dc:date>2024-03-22T21:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: Manufacturing Protection with i.MX8MM: verify not working</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Manufacturing-Protection-with-i-MX8MM-verify-not-working/m-p/1835132#M221780</link>
      <description>&lt;P&gt;Ok, it was not clear to me that the device has to actually be closed. We're still testing things like key revocation, so that is why we have not closed the device. But once we do, I'll try again. Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 06:01:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Manufacturing-Protection-with-i-MX8MM-verify-not-working/m-p/1835132#M221780</guid>
      <dc:creator>Sampo</dc:creator>
      <dc:date>2024-03-26T06:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: Manufacturing Protection with i.MX8MM: verify not working</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Manufacturing-Protection-with-i-MX8MM-verify-not-working/m-p/1841147#M222156</link>
      <description>&lt;P&gt;I finally closed the device, and went to try this again. However, I observed a new problem. Now the command "mfgprot pubk" does not appear to work:&lt;/P&gt;&lt;P&gt;u-boot=&amp;gt; mfgprot pubk&lt;BR /&gt;exit not allowed from main input shell.&lt;/P&gt;&lt;P&gt;Before closing the device, the command worked without any problems. What could be wrong?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 08:13:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Manufacturing-Protection-with-i-MX8MM-verify-not-working/m-p/1841147#M222156</guid>
      <dc:creator>Sampo</dc:creator>
      <dc:date>2024-04-05T08:13:02Z</dc:date>
    </item>
  </channel>
</rss>

