<?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.MX6Q - Problem with secure boot in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6Q-Problem-with-secure-boot/m-p/707810#M109978</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tasuku&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;What does the pattern 1 error indicate?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please look at description of events in sect.6.7 Audit Events document HAB4_API.pdf&lt;/P&gt;&lt;P&gt;included in CST Tool package&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/webapp/sps/download/view_license.jsp?colCode=IMX_CST_TOOL" title="https://www.nxp.com/webapp/sps/download/view_license.jsp?colCode=IMX_CST_TOOL"&gt;NXP® Code Signing Tool for the High Assurance Boot library. Provides software code signing support designed for use with…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;Why does not error occur in pattern 2?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as you correctly noted SRK authentication was skipped for open setting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Sep 2017 09:35:14 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2017-09-20T09:35:14Z</dc:date>
    <item>
      <title>i.MX6Q - Problem with secure boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6Q-Problem-with-secure-boot/m-p/707809#M109977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear NXP community,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am developing a custom board based on the imx6qsabresd board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to apply a secure boot, but a problem has occurred.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I referred to the following documents and URLs.&lt;/P&gt;&lt;P&gt;AN4581,IMX6HABUG&lt;BR /&gt;&lt;A href="https://boundarydevices.com/high-assurance-boot-hab-dummies/"&gt;https://boundarydevices.com/high-assurance-boot-hab-dummies/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The operations and results I did are as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Generate PKI tree and SRK table&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;...&lt;BR /&gt; Do you want to use an existing CA key (y/n)?: n&lt;BR /&gt; Do you want to use Elliptic Curve Cryptography (y/n)?: n&lt;BR /&gt; Enter key length in bits for PKI tree: 2048&lt;BR /&gt; Enter PKI tree duration (years): 10&lt;BR /&gt; How many Super Root Keys should be generated? 4&lt;BR /&gt; Do you want the SRK certificates to have the CA flag set? (y/n)?: y&lt;BR /&gt; ...&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;BR /&gt; ~/cst-2.3.2/crts$ ../linux32/srktool -h 4 -t SRK_1_2_3_4_table.bin -e SRK_1_2_3_4_fuse.bin -d sha256 -c ./SRK1_sha256_2048_65537_v3_ca_crt.pem,./SRK2_sha256_2048_65537_v3_ca_crt.pem,./&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;2. Write SRK table to Fuse&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Build secure boot supported u-boot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Sign a u-boot image&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;objcopy -I binary -O binary --pad-to 0x51C00 --gap-fill=0x5A u-boot.imx u-boot-pad.imx&lt;BR /&gt; ../linux32/cst --o u-boot_csf.bin --i u-boot.csf&lt;BR /&gt; cat u-boot-pad.imx u-boot_csf.bin &amp;gt; u-boot-signed.imx&lt;BR /&gt; objcopy -I binary -O binary --pad-to 0x53C00 --gap-fill=0x5A u-boot-signed.imx u-boot-signed-pad.imx&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;5. Create an image and start board&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6. Display authentication status&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;=&amp;gt; hab_status&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Secure boot disabled&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;HAB Configuration: 0xf0, HAB State: 0x66&lt;BR /&gt; No HAB Events Found!&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;I got the results as expected.&lt;BR /&gt;Then, I tried it with an incorrect image.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pattern1 Without signature&lt;BR /&gt; As a result, an error occurred as follows&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;=&amp;gt; hab_status&lt;BR /&gt; &lt;BR /&gt; Secure boot disabled&lt;BR /&gt; &lt;BR /&gt; HAB Configuration: 0xf0, HAB State: 0x66&lt;BR /&gt; &lt;BR /&gt; --------- HAB Event 1 -----------------&lt;BR /&gt; event data:&lt;BR /&gt; 0xdb 0x00 0x08 0x41 0x33 0x11 0xcf 0x00&lt;BR /&gt; &lt;BR /&gt; --------- HAB Event 2 -----------------&lt;BR /&gt; event data:&lt;BR /&gt; 0xdb 0x00 0x14 0x41 0x33 0x0c 0xa0 0x00&lt;BR /&gt; 0x00 0x00 0x00 0x00 0x17 0x7f 0xf4 0x00&lt;BR /&gt; 0x00 0x00 0x00 0x20&lt;BR /&gt; &lt;BR /&gt; --------- HAB Event 3 -----------------&lt;BR /&gt; event data:&lt;BR /&gt; 0xdb 0x00 0x14 0x41 0x33 0x0c 0xa0 0x00&lt;BR /&gt; 0x00 0x00 0x00 0x00 0x17 0x7f 0xf4 0x2c&lt;BR /&gt; 0x00 0x00 0x02 0xf8&lt;BR /&gt; &lt;BR /&gt; --------- HAB Event 4 -----------------&lt;BR /&gt; event data:&lt;BR /&gt; 0xdb 0x00 0x14 0x41 0x33 0x0c 0xa0 0x00&lt;BR /&gt; 0x00 0x00 0x00 0x00 0x17 0x7f 0xf4 0x20&lt;BR /&gt; 0x00 0x00 0x00 0x01&lt;BR /&gt; &lt;BR /&gt; --------- HAB Event 5 -----------------&lt;BR /&gt; event data:&lt;BR /&gt; 0xdb 0x00 0x14 0x41 0x33 0x0c 0xa0 0x00&lt;BR /&gt; 0x00 0x00 0x00 0x00 0x17 0x80 0x00 0x00&lt;BR /&gt; 0x00 0x00 0x00 0x04&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;Pattern2 Corrupted image&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Use the binary editor and edit parts that are not signatures&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;Pattern3 Different keys&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Generate key using different&amp;nbsp;passphrase&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Patterns 2 and 3 were the same result&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;=&amp;gt; hab_status&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Secure boot disabled&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;HAB Configuration: 0xf0, HAB State: 0x66&lt;BR /&gt; No HAB Events Found!&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;The result was different from what I expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found the following description.&lt;BR /&gt;&lt;A _jive_internal="true" data-containerid="2004" data-containertype="14" data-objectid="459077" data-objecttype="1" href="https://community.nxp.com/thread/459077"&gt;https://community.nxp.com/message/937925&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the description, I thought SRK authentication was skipped for open setting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I do not know why Pattern 2 does not cause an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What does the pattern 1 error indicate?&lt;/P&gt;&lt;P&gt;Why does not error occur in pattern 2?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is something wrong with my operation?&lt;/P&gt;&lt;P&gt;The board remains at the OPEN setting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Best regard,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Tasuku.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2017 01:53:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6Q-Problem-with-secure-boot/m-p/707809#M109977</guid>
      <dc:creator>tasukuwatanabe</dc:creator>
      <dc:date>2017-09-20T01:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6Q - Problem with secure boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6Q-Problem-with-secure-boot/m-p/707810#M109978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tasuku&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;What does the pattern 1 error indicate?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please look at description of events in sect.6.7 Audit Events document HAB4_API.pdf&lt;/P&gt;&lt;P&gt;included in CST Tool package&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/webapp/sps/download/view_license.jsp?colCode=IMX_CST_TOOL" title="https://www.nxp.com/webapp/sps/download/view_license.jsp?colCode=IMX_CST_TOOL"&gt;NXP® Code Signing Tool for the High Assurance Boot library. Provides software code signing support designed for use with…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;Why does not error occur in pattern 2?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as you correctly noted SRK authentication was skipped for open setting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2017 09:35:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6Q-Problem-with-secure-boot/m-p/707810#M109978</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-09-20T09:35:14Z</dc:date>
    </item>
  </channel>
</rss>

