<?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: i.mx53 HABv4</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-mx53-HABv4/m-p/1174375#M164158</link>
    <description>&lt;P&gt;Changing key length to 2048 fixed the problem&lt;/P&gt;</description>
    <pubDate>Wed, 28 Oct 2020 08:34:18 GMT</pubDate>
    <dc:creator>alexeym</dc:creator>
    <dc:date>2020-10-28T08:34:18Z</dc:date>
    <item>
      <title>i.mx53 HABv4</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx53-HABv4/m-p/1174048#M164118</link>
      <description>&lt;P&gt;Strange things happening to me while trying to get HAB working on mx53loco board.&lt;/P&gt;&lt;P&gt;I couldn't find any ready-made tutorials for mx53 boards. So I used &lt;A href="https://boundarydevices.com/high-assurance-boot-hab-dummies/" target="_blank" rel="noopener"&gt;https://boundarydevices.com/high-assurance-boot-hab-dummies/&lt;/A&gt; as fulcrum.&lt;/P&gt;&lt;P&gt;What I did:&lt;/P&gt;&lt;P&gt;0. I followed HAB for dummies manual till step 2(Flashing the keys) as SRK_HASH differs from imx6 imx5 I generated fuse prog sequence by hand using SRK_1_2_3_4_fuse.bin(attached)&lt;/P&gt;&lt;P&gt;fuse prog -y 1 0x1 0x5a;&lt;BR /&gt;fuse prog -y 3 0x1 0x71;&lt;BR /&gt;fuse prog -y 3 0x2 0x26;&lt;BR /&gt;fuse prog -y 3 0x3 0x4;&lt;BR /&gt;fuse prog -y 3 0x4 0x22;&lt;BR /&gt;fuse prog -y 3 0x5 0x40;&lt;BR /&gt;fuse prog -y 3 0x6 0xf;&lt;BR /&gt;fuse prog -y 3 0x7 0x26;&lt;BR /&gt;fuse prog -y 3 0x8 0x49;&lt;BR /&gt;fuse prog -y 3 0x9 0xa2;&lt;BR /&gt;fuse prog -y 3 0xa 0x74;&lt;BR /&gt;fuse prog -y 3 0xb 0x29;&lt;BR /&gt;fuse prog -y 3 0xc 0xc2;&lt;BR /&gt;fuse prog -y 3 0xd 0xe8;&lt;BR /&gt;fuse prog -y 3 0xe 0x97;&lt;BR /&gt;fuse prog -y 3 0xf 0x64;&lt;BR /&gt;fuse prog -y 3 0x10 0xeb;&lt;BR /&gt;fuse prog -y 3 0x11 0xb6;&lt;BR /&gt;fuse prog -y 3 0x12 0xb6;&lt;BR /&gt;fuse prog -y 3 0x13 0xc7;&lt;BR /&gt;fuse prog -y 3 0x14 0x43;&lt;BR /&gt;fuse prog -y 3 0x15 0x8;&lt;BR /&gt;fuse prog -y 3 0x16 0x2f;&lt;BR /&gt;fuse prog -y 3 0x17 0x56;&lt;BR /&gt;fuse prog -y 3 0x18 0x8e;&lt;BR /&gt;fuse prog -y 3 0x19 0x77;&lt;BR /&gt;fuse prog -y 3 0x1a 0x18;&lt;BR /&gt;fuse prog -y 3 0x1b 0x93;&lt;BR /&gt;fuse prog -y 3 0x1c 0xd7;&lt;BR /&gt;fuse prog -y 3 0x1d 0xd5;&lt;BR /&gt;fuse prog -y 3 0x1e 0xdf;&lt;BR /&gt;fuse prog -y 3 0x1f 0x43;&lt;/P&gt;&lt;P&gt;1. I took mainline u-boot (tag v2020.10)&lt;/P&gt;&lt;P&gt;2. patched it to support secure boot on mx53loco. (patch attached)&lt;/P&gt;&lt;P&gt;3. add to config:&lt;/P&gt;&lt;P&gt;CONFIG_CMD_FUSE=y&lt;BR /&gt;CONFIG_IMX_HAB=y&lt;/P&gt;&lt;P&gt;4. make V=1 gives me output&lt;/P&gt;&lt;P&gt;Image Type: Freescale IMX Boot Image&lt;BR /&gt;Image Ver: 2 (i.MX53/6/7 compatible)&lt;BR /&gt;Mode: DCD&lt;BR /&gt;Data Size: 421984 Bytes = 412.09 KiB = 0.40 MiB&lt;BR /&gt;Load Address: 777ff420&lt;BR /&gt;Entry Point: 77800000&lt;BR /&gt;HAB Blocks: 0x777ff400 0x00000000 0x00064c00&lt;BR /&gt;DCD Blocks: 0x00910000 0x0000002c 0x000001a8&lt;/P&gt;&lt;P&gt;5. used attached u-boot.csf to make u-boot_csf.bin&lt;/P&gt;&lt;P&gt;./cst --o u-boot_csf.bin --i u-boot.csf&lt;BR /&gt;cat u-boot.imx u-boot_csf.bin &amp;gt; u-boot_signed.imx&lt;BR /&gt;sudo dd if=u-boot_signed.imx of=$DISK seek=2 bs=512&lt;/P&gt;&lt;P&gt;6. now where I am:&lt;/P&gt;&lt;P&gt;board starting, but hab_status command returns:&lt;/P&gt;&lt;P&gt;Secure boot disabled&lt;/P&gt;&lt;P&gt;HAB Configuration: 0xf0, HAB State: 0x66&lt;/P&gt;&lt;P&gt;--------- HAB Event 1 -----------------&lt;BR /&gt;event data:&lt;BR /&gt;0xdb 0x00 0x14 0x40 0x33 0x2d 0xc0 0x00&lt;BR /&gt;0xbe 0x00 0x0c 0x02 0x09 0x00 0x00 0x01&lt;BR /&gt;0x00 0x00 0x08 0x88&lt;/P&gt;&lt;P&gt;STS = HAB_FAILURE (0x33)&lt;BR /&gt;RSN = HAB_OVR_STORAGE (0x2D)&lt;BR /&gt;CTX = HAB_CTX_COMMAND (0xC0)&lt;BR /&gt;ENG = HAB_ENG_ANY (0x00)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;--------- HAB Event 2 -----------------&lt;BR /&gt;event data:&lt;BR /&gt;0xdb 0x00 0x14 0x40 0x33 0x0c 0xa0 0x00&lt;BR /&gt;0x00 0x00 0x00 0x00 0x77 0x7f 0xf4 0x00&lt;BR /&gt;0x00 0x00 0x00 0x20&lt;/P&gt;&lt;P&gt;STS = HAB_FAILURE (0x33)&lt;BR /&gt;RSN = HAB_INV_ASSERTION (0x0C)&lt;BR /&gt;CTX = HAB_CTX_ASSERT (0xA0)&lt;BR /&gt;ENG = HAB_ENG_ANY (0x00)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;--------- HAB Event 3 -----------------&lt;BR /&gt;event data:&lt;BR /&gt;0xdb 0x00 0x14 0x40 0x33 0x0c 0xa0 0x00&lt;BR /&gt;0x00 0x00 0x00 0x00 0x77 0x7f 0xf4 0x2c&lt;BR /&gt;0x00 0x00 0x01 0xa8&lt;/P&gt;&lt;P&gt;STS = HAB_FAILURE (0x33)&lt;BR /&gt;RSN = HAB_INV_ASSERTION (0x0C)&lt;BR /&gt;CTX = HAB_CTX_ASSERT (0xA0)&lt;BR /&gt;ENG = HAB_ENG_ANY (0x00)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;--------- HAB Event 4 -----------------&lt;BR /&gt;event data:&lt;BR /&gt;0xdb 0x00 0x14 0x40 0x33 0x0c 0xa0 0x00&lt;BR /&gt;0x00 0x00 0x00 0x00 0x77 0x7f 0xf4 0x20&lt;BR /&gt;0x00 0x00 0x00 0x01&lt;/P&gt;&lt;P&gt;STS = HAB_FAILURE (0x33)&lt;BR /&gt;RSN = HAB_INV_ASSERTION (0x0C)&lt;BR /&gt;CTX = HAB_CTX_ASSERT (0xA0)&lt;BR /&gt;ENG = HAB_ENG_ANY (0x00)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;--------- HAB Event 5 -----------------&lt;BR /&gt;event data:&lt;BR /&gt;0xdb 0x00 0x14 0x40 0x33 0x0c 0xa0 0x00&lt;BR /&gt;0x00 0x00 0x00 0x00 0x77 0x80 0x00 0x00&lt;BR /&gt;0x00 0x00 0x00 0x04&lt;/P&gt;&lt;P&gt;STS = HAB_FAILURE (0x33)&lt;BR /&gt;RSN = HAB_INV_ASSERTION (0x0C)&lt;BR /&gt;CTX = HAB_CTX_ASSERT (0xA0)&lt;BR /&gt;ENG = HAB_ENG_ANY (0x00)&lt;/P&gt;&lt;P&gt;Please point me what am I doing wrong. I found only one topic with HAB_OVR_STORAGE event reason and it was mx28 board where somebody tried to use 4096 bit key where mx28 boards only support 2048 bit keys. But its not my case...&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2020 19:00:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx53-HABv4/m-p/1174048#M164118</guid>
      <dc:creator>alexeym</dc:creator>
      <dc:date>2020-10-27T19:00:30Z</dc:date>
    </item>
    <item>
      <title>HRe: i.mx53 HABv4</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx53-HABv4/m-p/1174114#M164123</link>
      <description>&lt;P&gt;Hi alexeym&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;one can also consider application notes AN4581, AN12263&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN4581.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/application-note/AN4581.pdf&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN12263.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/application-note/AN12263.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;try with nxp uboot from source.codeaurora.org/external/imx/ repository&lt;/P&gt;
&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imx/uboot-imx/tree/doc/imx/habv4?h=imx_v2020.04_5.4.47_2.2.0" target="_blank"&gt;https://source.codeaurora.org/external/imx/uboot-imx/tree/doc/imx/habv4?h=imx_v2020.04_5.4.47_2.2.0&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imx/imx-test/tree/test/mxc_secureboot/V2009?h=imx_5.4.47_2.2.0" target="_blank"&gt;https://source.codeaurora.org/external/imx/imx-test/tree/test/mxc_secureboot/V2009?h=imx_5.4.47_2.2.0&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2020 23:41:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx53-HABv4/m-p/1174114#M164123</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-10-27T23:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: HRe: i.mx53 HABv4</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx53-HABv4/m-p/1174320#M164147</link>
      <description>&lt;P&gt;Thank you for reply!&lt;/P&gt;&lt;P&gt;I've done:&lt;BR /&gt;1. applied the same patch to imx_v2020.04_5.4.47_2.2.0 branch&lt;BR /&gt;2. signed/padded u-boot.imx with mk_secure_uboot script from imx-test/test/mxc_secureboot/V2012/u-boot/ and I still have the same result.&lt;/P&gt;&lt;P&gt;Maybe something with CST version, or key length?&lt;BR /&gt;I see that example scripts using slightly different syntax for cst tool, and for some reason all keys are 2048 lenghs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2020 07:41:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx53-HABv4/m-p/1174320#M164147</guid>
      <dc:creator>alexeym</dc:creator>
      <dc:date>2020-10-28T07:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx53 HABv4</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx53-HABv4/m-p/1174375#M164158</link>
      <description>&lt;P&gt;Changing key length to 2048 fixed the problem&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2020 08:34:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx53-HABv4/m-p/1174375#M164158</guid>
      <dc:creator>alexeym</dc:creator>
      <dc:date>2020-10-28T08:34:18Z</dc:date>
    </item>
  </channel>
</rss>

