<?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>i.MX ProcessorsのトピックRe: Problem enabling Secure Boot On iMX6 Solo</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Problem-enabling-Secure-Boot-On-iMX6-Solo/m-p/1532444#M195976</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/200857"&gt;@vishnu_motghare&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please double check u-boot.imx IVT structure to ensure&amp;nbsp;the start address and length for boot image.&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-markup"&gt;&lt;CODE&gt; # Authenticate Start Address, Offset, Length and file
    Blocks =  0x177ff400 0x00000000 0x00056c00 "u-boot.imx"&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;And, have you enabled secure boot support in your uboot?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Harvey&lt;/P&gt;</description>
    <pubDate>Wed, 05 Oct 2022 05:17:17 GMT</pubDate>
    <dc:creator>Harvey021</dc:creator>
    <dc:date>2022-10-05T05:17:17Z</dc:date>
    <item>
      <title>Problem enabling Secure Boot On iMX6 Solo</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Problem-enabling-Secure-Boot-On-iMX6-Solo/m-p/1530310#M195794</link>
      <description>&lt;P&gt;I'm trying to enable a secure boot on iMX6 Solo. I'm using&amp;nbsp;U-Boot 2019.07. I've followed the steps mentioned in the docs "/u-boot/doc/imx/habv4/guides/mx6_mx7_secure_boot.txt"&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've created the key using CST tools 3.3.1 (with my own serial and pass_key.txt files)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've used the following settings to generate the PKI keys&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;./hab4_pki_tree.sh (n,2048,10,y)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Following is my .csf file&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[Header]
    Version = 4.1
    Hash Algorithm = sha256
    Engine Configuration = 0
    Certificate Format = X509
    Signature Format = CMS
    Engine = ANY

[Install SRK]
    # Index of the key location in the SRK table to be installed
    File = "./SRK_1_2_3_4_table.bin"
    Source index = 0

[Install CSFK]
    # Key used to authenticate the CSF data
    File = "../crts/CSF1_1_sha256_2048_65537_v3_usr_crt.pem"

[Authenticate CSF]

[Install Key]
    # Key slot index used to authenticate the key to be installed
    Verification index = 0
    # Target key slot in HAB key store where key will be installed
    Target Index = 2
    # Key to install
    File= "../crts/IMG1_1_sha256_2048_65537_v3_usr_crt.pem"

[Authenticate Data]
    # Key slot index used to authenticate the image data
    Verification index = 2
    # Authenticate Start Address, Offset, Length and file
    Blocks =  0x177ff400 0x00000000 0x00056c00 "u-boot.imx"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've burned the fuses &amp;amp; copied the image using uuu over USB serial downloader. When I check the "hab_status" I get the following events&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;U-Boot &amp;gt; hab_status

Secure boot disabled

HAB Configuration: 0xf0, HAB State: 0x66

--------- HAB Event 1 -----------------
event data:
        0xdb 0x00 0x08 0x41 0x33 0x22 0x0a 0x00

STS = HAB_FAILURE (0x33)
RSN = HAB_INV_ADDRESS (0x22)
CTX = HAB_CTX_AUTHENTICATE (0x0A)
ENG = HAB_ENG_ANY (0x00)


--------- HAB Event 2 -----------------
event data:
        0xdb 0x00 0x14 0x41 0x33 0x0c 0xa0 0x00
        0x00 0x00 0x00 0x00 0x17 0x7f 0xf4 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 3 -----------------
event data:
        0xdb 0x00 0x14 0x41 0x33 0x0c 0xa0 0x00
        0x00 0x00 0x00 0x00 0x17 0x7f 0xf4 0x20
        0x00 0x00 0x00 0x01

STS = HAB_FAILURE (0x33)
RSN = HAB_INV_ASSERTION (0x0C)
CTX = HAB_CTX_ASSERT (0xA0)
ENG = HAB_ENG_ANY (0x00)


--------- HAB Event 4 -----------------
event data:
        0xdb 0x00 0x14 0x41 0x33 0x0c 0xa0 0x00
        0x00 0x00 0x00 0x00 0x17 0x80 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 5 -----------------
event data:
        0xdb 0x00 0x14 0x41 0x33 0x0c 0xa0 0x00
        0x00 0x00 0x00 0x00 0x00 0x91 0x00 0x00
        0x00 0x00 0x02 0x70

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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've checked the "HAB4_API.pdf" for meanings of events but was not been able to figure out the reason for failure. Any help is appreciated&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 09:20:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Problem-enabling-Secure-Boot-On-iMX6-Solo/m-p/1530310#M195794</guid>
      <dc:creator>vishnu_motghare</dc:creator>
      <dc:date>2022-09-29T09:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problem enabling Secure Boot On iMX6 Solo</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Problem-enabling-Secure-Boot-On-iMX6-Solo/m-p/1532444#M195976</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/200857"&gt;@vishnu_motghare&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please double check u-boot.imx IVT structure to ensure&amp;nbsp;the start address and length for boot image.&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-markup"&gt;&lt;CODE&gt; # Authenticate Start Address, Offset, Length and file
    Blocks =  0x177ff400 0x00000000 0x00056c00 "u-boot.imx"&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;And, have you enabled secure boot support in your uboot?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Harvey&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 05:17:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Problem-enabling-Secure-Boot-On-iMX6-Solo/m-p/1532444#M195976</guid>
      <dc:creator>Harvey021</dc:creator>
      <dc:date>2022-10-05T05:17:17Z</dc:date>
    </item>
  </channel>
</rss>

