<?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: imx8m secure boot in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx8m-secure-boot/m-p/1050749#M154686</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you even read&amp;nbsp;the post/question?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You're linking to a document thats in the original post, how is that supposed to be helpful?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 May 2020 06:48:17 GMT</pubDate>
    <dc:creator>jonaspersson</dc:creator>
    <dc:date>2020-05-14T06:48:17Z</dc:date>
    <item>
      <title>imx8m secure boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8m-secure-boot/m-p/1050747#M154684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to get secure boot working on an imx8m board but the HAB reports a warning event. I'm _not_ using the multi stage configuration with uboot spl + uboot but only loading a first stage loader into the TCM ram.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SoC:&amp;nbsp;IMX8M quad-lite, 1.0&lt;/P&gt;&lt;P&gt;CST: 3.3.0&lt;/P&gt;&lt;P&gt;imx-mkimage:&amp;nbsp;rel_imx_4.14.98_2.3.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CSF file:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;[Header]&lt;BR /&gt; Version = 4.3&lt;BR /&gt; Hash Algorithm = sha256&lt;BR /&gt; Engine = CAAM&lt;BR /&gt; Engine Configuration = 0&lt;BR /&gt; Certificate Format = X509&lt;BR /&gt; Signature Format = CMS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Install SRK]&lt;BR /&gt; # This selects which key is used for signing: index = IMG(n-1)&lt;BR /&gt; File = ""pki/imx6ul_hab_testkeys/SRK_1_2_3_4_table.bin""&lt;BR /&gt; Source index = 0&lt;/P&gt;&lt;P&gt;[Install CSFK]&lt;BR /&gt; # Key used to authenticate the CSF data&lt;BR /&gt; File = ""pki/imx6ul_hab_testkeys/CSF1_1_sha256_4096_65537_v3_usr_crt.pem""&lt;/P&gt;&lt;P&gt;[Authenticate CSF]&lt;BR /&gt;# Whole line comment&lt;/P&gt;&lt;P&gt;[Unlock]&lt;BR /&gt; # Leave Job Ring and DECO master ID registers Unlocked&lt;BR /&gt; Engine = CAAM&lt;BR /&gt; Features = MID&lt;/P&gt;&lt;P&gt;[Install Key]&lt;BR /&gt; # Key slot index used to authenticate the key to be installed&lt;BR /&gt; Verification index = 0&lt;BR /&gt; # Key to install&lt;BR /&gt; Target index = 2&lt;BR /&gt; # Key to install&lt;BR /&gt; File = ""pki/imx6ul_hab_testkeys/IMG1_1_sha256_4096_65537_v3_usr_crt.pem""&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;[Authenticate Data]&lt;BR /&gt; # Key slot index used to authenticate the image data&lt;BR /&gt; Verification index = 2&lt;BR /&gt; # Authenticate Start Address, Offset, Length and file&lt;BR /&gt; Blocks = 0x7E0FC0 0x1a000 0x22000 "build-pico8ml/pb_pad.imx"&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HAB event:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;I hab_has_no_errors: configuration: 0xf0, state: 0x66&lt;BR /&gt;I hab_has_no_errors: result = 105&lt;BR /&gt;W hab_has_no_errors: 1, event data:&lt;BR /&gt; 0xdb 0x0 0x24 0x43 0x69 0x30 0xe1 0x1d 0x0 0x8 0x0 0x2 0x40 0x0 0x4 0xcc 0x55 0x55 0x0 0x3f 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x5&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From what I understand this decodes to:&lt;/P&gt;&lt;DIV class="" style="color: #222222; background-color: #ffffff; font-size: medium; padding: 0px 0px 20px;"&gt;&lt;DIV class=""&gt;&lt;DIV class="" style="font-size: 0.875rem; margin: 8px 0px 0px;"&gt;&lt;DIV class=""&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;DIV dir="ltr"&gt;Header:&lt;BR /&gt;0xdb 0x0 0x24 0x43&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;-Size---&lt;BR /&gt;Event &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; HAB Version: 4.3&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;SRCE:&lt;BR /&gt;0x69 0x30 0xe1 0x1d&lt;BR /&gt;STS &amp;nbsp;RSN &amp;nbsp;CTX &amp;nbsp;ENG&lt;BR /&gt;Warning&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;HAB_ENG_FAIL&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; HAB_CTX_ENTRY&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; HAB_ENG_CAAM&lt;P&gt;&lt;/P&gt;0x00 0x08 0x00 0x02&lt;BR /&gt;0x40 0x00 0x04 0xcc&lt;BR /&gt;0x55 0x55 0x00 0x3f&lt;BR /&gt;0x00 0x00 0x00 0x00&lt;BR /&gt;0x00 0x00 0x00 0x00&lt;BR /&gt;0x00 0x00 0x00 0x00&lt;BR /&gt;0x00 0x00 0x00 0x05&amp;nbsp;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;DIV dir="ltr"&gt;&lt;DIV class=""&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;What I'm seeing seems very close to something that is reported in this thread:&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;A href="https://community.nxp.com/thread/487160"&gt;iMX8M HAB&lt;/A&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;But no good explanation was provided beyond the suggestion that it might be related to the CAAM RNG.&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;I've made the following observations:&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;1) When loading a signed image with 'uuu' it takes approximately six seconds before the core starts executing the code, indicating that it's stuck in the boot rom for that amount of time. Loading the same code but unsigned boots in less then one second.&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;2) Corrupting the signature or changing the key index to not match the key results in a few HAB errors; which to me indicates that the signature verification might be working because with the proper signature, key and index I'm only seeing the hab warning.&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;Questions:&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;1) Can someone from NXP shed some light on what's going on with the HAB event I'm seeing&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;I've studied and followed the relevant documentation found here:&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;A class="link-titled" href="https://source.codeaurora.org/external/imx/uboot-imx/tree/doc/imx/habv4/guides/mx8m_mx8mm_secure_boot.txt?h=imx_v2018.03_4.14.98_2.0.0_ga" title="https://source.codeaurora.org/external/imx/uboot-imx/tree/doc/imx/habv4/guides/mx8m_mx8mm_secure_boot.txt?h=imx_v2018.03_4.14.98_2.0.0_ga"&gt;mx8m_mx8mm_secure_boot.txt\guides\habv4\imx\doc - uboot-imx - i.MX U-Boot&lt;/A&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;The CST manual&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;Jonas&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="background: #f2f2f2;"&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Apr 2020 07:37:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8m-secure-boot/m-p/1050747#M154684</guid>
      <dc:creator>jonaspersson</dc:creator>
      <dc:date>2020-04-19T07:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: imx8m secure boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8m-secure-boot/m-p/1050748#M154685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you can refer to this &lt;A class="link-titled" href="https://source.codeaurora.org/external/imx/uboot-imx/tree/doc/imx/habv4/guides/mx8m_mx8mm_secure_boot.txt?h=imx_v2018.03_4.14.98_2.0.0_ga" title="https://source.codeaurora.org/external/imx/uboot-imx/tree/doc/imx/habv4/guides/mx8m_mx8mm_secure_boot.txt?h=imx_v2018.03_4.14.98_2.0.0_ga"&gt;mx8m_mx8mm_secure_boot.txt\guides\habv4\imx\doc - uboot-imx - i.MX U-Boot&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2020 06:32:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8m-secure-boot/m-p/1050748#M154685</guid>
      <dc:creator>Rita_Wang</dc:creator>
      <dc:date>2020-05-14T06:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: imx8m secure boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8m-secure-boot/m-p/1050749#M154686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you even read&amp;nbsp;the post/question?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You're linking to a document thats in the original post, how is that supposed to be helpful?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2020 06:48:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8m-secure-boot/m-p/1050749#M154686</guid>
      <dc:creator>jonaspersson</dc:creator>
      <dc:date>2020-05-14T06:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: imx8m secure boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8m-secure-boot/m-p/1050750#M154687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonas,&lt;/P&gt;&lt;P&gt;Sorry about the last reply. For i.MX8M secure boot materials are not public, so we can not share you more. If you need you have to sign the NDA with NXP firstly.&lt;/P&gt;&lt;P&gt;Have a nice day&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Rita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2020 07:40:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8m-secure-boot/m-p/1050750#M154687</guid>
      <dc:creator>Rita_Wang</dc:creator>
      <dc:date>2020-05-14T07:40:27Z</dc:date>
    </item>
  </channel>
</rss>

