<?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.MX8MP HAB errors in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8MP-HAB-errors/m-p/2086433#M236660</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Still blocked in this subject.&lt;BR /&gt;Got an e-mail if I got satified of the first reply, but the first reply is made by me to give more hint.&lt;/P&gt;</description>
    <pubDate>Thu, 24 Apr 2025 08:46:59 GMT</pubDate>
    <dc:creator>se_cguerr</dc:creator>
    <dc:date>2025-04-24T08:46:59Z</dc:date>
    <item>
      <title>i.MX8MP HAB errors</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8MP-HAB-errors/m-p/2080728#M236337</link>
      <description>&lt;P&gt;Hello NXP,&lt;BR /&gt;&lt;BR /&gt;On a i.MX8M Plus based board, i'm trying to enable secure boot.&lt;BR /&gt;&lt;BR /&gt;I got the following HAB Errors:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;HAB Configuration: 0xf0, HAB State: 0x66       
                                               
--------- HAB Event 1 -----------------        
event data:                                    
        0xdb 0x00 0x14 0x45 0x33 0x18 0xc0 0x00
        0xca 0x00 0x0c 0x00 0x01 0xc5 0x1d 0x00
        0x00 0x00 0x10 0xc0                    
                                               
STS = HAB_FAILURE (0x33)                       
RSN = HAB_INV_SIGNATURE (0x18)                 
CTX = HAB_CTX_COMMAND (0xC0)                   
ENG = HAB_ENG_ANY (0x00)                       
                                               
                                               
--------- HAB Event 2 -----------------        
event data:                                    
        0xdb 0x00 0x14 0x45 0x33 0x18 0xc0 0x00
        0xca 0x00 0x0c 0x00 0x01 0xc5 0x1d 0x00
        0x00 0x00 0x10 0xc0   
                                               
STS = HAB_FAILURE (0x33)                       
RSN = HAB_INV_SIGNATURE (0x18)                 
CTX = HAB_CTX_COMMAND (0xC0)                   
ENG = HAB_ENG_ANY (0x00)                       
                                               
                                               
--------- HAB Event 3 -----------------        
event data:                                    
        0xdb 0x00 0x14 0x45 0x33 0x18 0xc0 0x00
        0xca 0x00 0x0c 0x00 0x01 0xc5 0x1d 0x00
        0x00 0x00 0x10 0xc0                    
                                               
STS = HAB_FAILURE (0x33)                       
RSN = HAB_INV_SIGNATURE (0x18)                 
CTX = HAB_CTX_COMMAND (0xC0)                   
ENG = HAB_ENG_ANY (0x00)                       
                                               
                                               
--------- HAB Event 4 -----------------        
event data:                                    
        0xdb 0x00 0x14 0x45 0x33 0x18 0xc0 0x00
        0xca 0x00 0x0c 0x00 0x01 0xc5 0x1d 0x00
        0x00 0x00 0x10 0xc0                    
                                               
STS = HAB_FAILURE (0x33)                       
RSN = HAB_INV_SIGNATURE (0x18)                 
CTX = HAB_CTX_COMMAND (0xC0)                   
ENG = HAB_ENG_ANY (0x00)                       
                                               
                                               
--------- HAB Event 5 -----------------        
event data:                                    
        0xdb 0x00 0x14 0x45 0x33 0x0c 0xa0 0x00
        0x00 0x00 0x00 0x00 0x00 0x91 0xff 0xc0
        0x00 0x00 0x00 0x20                    
                                               
STS = HAB_FAILURE (0x33)                       
RSN = HAB_INV_ASSERTION (0x0C)                 
CTX = HAB_CTX_ASSERT (0xA0)                    
ENG = HAB_ENG_ANY (0x00)                       
                                               
                                               
--------- HAB Event 6 -----------------        
event data:                                                     
         0xdb 0x00 0x14 0x45 0x33 0x0c 0xa0 0x00          
        0x00 0x00 0x00 0x00 0x00 0x91 0xff 0xe0          
        0x00 0x00 0x00 0x0c                              
                                                         
STS = HAB_FAILURE (0x33)                                 
RSN = HAB_INV_ASSERTION (0x0C)                           
CTX = HAB_CTX_ASSERT (0xA0)                              
ENG = HAB_ENG_ANY (0x00)                                 
                                                         
                                                         
--------- HAB Event 7 -----------------                  
event data:                                              
        0xdb 0x00 0x14 0x45 0x33 0x0c 0xa0 0x00          
        0x00 0x00 0x00 0x00 0x00 0x92 0x00 0x00          
        0x00 0x00 0x00 0x04                              
                                                         
STS = HAB_FAILURE (0x33)                                 
RSN = HAB_INV_ASSERTION (0x0C)                           
CTX = HAB_CTX_ASSERT (0xA0)                              
ENG = HAB_ENG_ANY (0x00)                                 
                                                         
                                                         
--------- HAB Event 8 -----------------                  
event data:                                              
        0xdb 0x00 0x14 0x45 0x33 0x0c 0xa0 0x00          
        0x00 0x00 0x00 0x00 0x44 0x0b 0xd0 0x00          
        0x00 0x00 0x00 0x20                              
                                                         
STS = HAB_FAILURE (0x33)                                 
RSN = HAB_INV_ASSERTION (0x0C)                           
CTX = HAB_CTX_ASSERT (0xA0)                              
ENG = HAB_ENG_ANY (0x00)                                 
                                                         
                                                         
--------- HAB Event 9 -----------------                  
event data:                                              
        0xdb 0x00 0x14 0x45 0x33 0x0c 0xa0 0x00          
        0x00 0x00 0x00 0x00 0x44 0x0b 0xd0 0x00          
        0x00 0x00 0x00 0x04                              
                                                         
STS = HAB_FAILURE (0x33)                                 
RSN = HAB_INV_ASSERTION (0x0C)                           
CTX = HAB_CTX_ASSERT (0xA0)                              
ENG = HAB_ENG_ANY (0x00)                                                                               &lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Here is an overview of my procedure:&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;PKI tree generation:&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Key type options (confirm targeted device supports desired key type):
Select the key type (possible values: rsa, rsa-pss, ecc) : rsa
Enter key length in bits for PKI tree (possible values: 2048, 3072, 4096) : 4096
Enter PKI tree duration (years): 30
How many Super Root Keys should be generated ? : 4
Do you want the SRK certificates to have the CA flag set? (y/n) : n&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;SRK table/fuse generation:&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;Using SRKTOOL&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Number of certificates    = 4
SRK table binary filename = SRK_1_2_3_4_table.bin
SRK Fuse binary filename  = SRK_1_2_3_4_fuse.bin
SRK Fuse binary dump:
SRKH[0] = 0x2C9B8D0B
SRKH[1] = 0xB86FEE22
SRKH[2] = 0xBCF1B62E
SRKH[3] = 0xA9FFBFE0
SRKH[4] = 0x751E51F1
SRKH[5] = 0x20F8C54F
SRKH[6] = 0xD4515446
SRKH[7] = 0x356AB77D&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FUSE Verification:&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;u-boot=&amp;gt; fuse read 6 0    
Reading bank 6:           
                          
Word 0x00000000: 2c9b8d0b 
u-boot=&amp;gt; fuse read 6 1    
Reading bank 6:           
                          
Word 0x00000001: b86fee22 
u-boot=&amp;gt; fuse read 6 2    
Reading bank 6:           
                          
Word 0x00000002: bcf1b62e 
u-boot=&amp;gt; fuse read 6 3    
Reading bank 6:           
                          
Word 0x00000003: a9ffbfe0 
u-boot=&amp;gt; fuse read 7 0   
Reading bank 7:          
                         
Word 0x00000000: 751e51f1
u-boot=&amp;gt; fuse read 7 1   
Reading bank 7:          
                         
Word 0x00000001: 20f8c54f
u-boot=&amp;gt; fuse read 7 2   
Reading bank 7:          
                         
Word 0x00000002: d4515446
u-boot=&amp;gt; fuse read 7 3   
Reading bank 7:          
                         
Word 0x00000003: 356ab77d&lt;/LI-CODE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Extra informations:&lt;BR /&gt;-&amp;nbsp;&lt;/STRONG&gt;Fast authentication&lt;BR /&gt;- MODE HSM (tried without MODE HSM by giving also the private key, doesn't work more)&lt;BR /&gt;- sha256 used as hash algorithms for the binaries&lt;BR /&gt;- x.509 Certificates&lt;BR /&gt;&lt;BR /&gt;See attached:&lt;BR /&gt;- spl_csf.txt = The CSF for the SPL part&lt;BR /&gt;- fit_csf.txt = The CSF for the FIT part&lt;/P&gt;</description>
      <pubDate>Tue, 15 Apr 2025 09:42:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8MP-HAB-errors/m-p/2080728#M236337</guid>
      <dc:creator>se_cguerr</dc:creator>
      <dc:date>2025-04-15T09:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX8MP HAB errors</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8MP-HAB-errors/m-p/2080832#M236341</link>
      <description>&lt;P&gt;When trying to decode the event data, i get:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;0xdb 0x00 0x14 0x45 
|     |    |    |
|     |    |    +-- HAB Verison
|     +----+-- Event data length in bytes
+-- Tag: 0xdb = Even

0x33 0x18 0xc0 0x00
|     |    |    |
|     |    |    +-- ENG = HAB_ENG_ANY
|     |    +-- CTX = HAB_CTX_COMMAND
|     +-- RSN = HAB_INV_SIGNATURE
+-- STS = HAB_FAILURE

0xca 0x00 0x0c 0x00 
|     |    | 	|
|     |    |    +-- Event flags
|     +----+-- Engine = HAB_ENG_CAAM
+-- HAB_CMD_AUT_DAT = Authenticate data command

0x01 0xc5 0x1d 0x00
|     |    |    |
|     |    |    +-- Configuration = default
|     |    +-- Engine = HAB_ENG_CAAM
|     +-- Protocol = HAB_PCL_CMS
+-- Verification key index = 1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know why it states that the Verification key index is 1 while in the CSF file is 0.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Apr 2025 11:44:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8MP-HAB-errors/m-p/2080832#M236341</guid>
      <dc:creator>se_cguerr</dc:creator>
      <dc:date>2025-04-15T11:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX8MP HAB errors</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8MP-HAB-errors/m-p/2086433#M236660</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Still blocked in this subject.&lt;BR /&gt;Got an e-mail if I got satified of the first reply, but the first reply is made by me to give more hint.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Apr 2025 08:46:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8MP-HAB-errors/m-p/2086433#M236660</guid>
      <dc:creator>se_cguerr</dc:creator>
      <dc:date>2025-04-24T08:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX8MP HAB errors</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8MP-HAB-errors/m-p/2097881#M237244</link>
      <description>&lt;P&gt;I found the problem.&lt;BR /&gt;I was hashing the binary twice. So the Hab was verifying the signature of the hash of the hash of the binary.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 07:19:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8MP-HAB-errors/m-p/2097881#M237244</guid>
      <dc:creator>se_cguerr</dc:creator>
      <dc:date>2025-05-15T07:19:01Z</dc:date>
    </item>
  </channel>
</rss>

