<?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: [Urgent] HAB Secure Boot - weird behavior in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Urgent-HAB-Secure-Boot-weird-behavior/m-p/1412955#M186964</link>
    <description>&lt;P&gt;Which version of U-boot you are using?&lt;/P&gt;</description>
    <pubDate>Mon, 14 Feb 2022 08:18:28 GMT</pubDate>
    <dc:creator>Zhiming_Liu</dc:creator>
    <dc:date>2022-02-14T08:18:28Z</dc:date>
    <item>
      <title>[Urgent] HAB Secure Boot - weird behavior</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Urgent-HAB-Secure-Boot-weird-behavior/m-p/1411928#M186871</link>
      <description>&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;I have a super weird problem with the HAB secure boot on my imx8m nano, please do not tell to me evalulate the HAB events as it is really weird and I need some pointers to solve my problem :).&lt;/P&gt;&lt;P&gt;In most cases it works without any issues, however sometimes I am getting HAB events (listed below) for the flash.bin. The only difference is the U-Boot source code - in the case with HAB events the binary is for 72 bytes smaller than in the good case (no HAB events). We also added dummy functions to the U-Boot and it works, so I guess there are some very special cases when the Secure Boot does not work.&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;&lt;STRONG&gt;CSF Files&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Good case (no HAB events)&lt;/EM&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;0x401fcdc0 0x58000 0x1020
0x40200000 0x5B000 0xC04D0   // uboot
0x402C04D0 0x11B4D0 0x914E   // uboot dtb
0x960000 0x124620 0xA0D0     // tfa&lt;/LI-CODE&gt;&lt;P&gt;&lt;EM&gt;Bad case (HAB events present)&lt;/EM&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;0x401fcdc0 0x58000 0x1020
0x40200000 0x5B000 0xC0488    // uboot
0x402C0488 0x11B488 0x914E    // uboot dtb
0x960000 0x1245D8 0xA0D0      // tfa&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see in the good case the U-Boot binary is of size 0xC04D0, in the bad case is of size 0xC0488, and that is the only difference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;&lt;STRONG&gt;Magic Number (hexdump)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Good case (no HAB events)&lt;/EM&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;0058000 0dd0 edfe 0000 6f03 0000 3800 0000 fc02
011b480 0dd0 edfe 0000 4e91 0000 3800 0000 2886&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Bad case (HAB events present)&lt;/EM&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;0058000 0dd0 edfe 0000 6f03 0000 3800 0000 fc02
011b780 71e0 4028 0000 0000 0dd0 edfe 0000 4e91&lt;/LI-CODE&gt;&lt;P&gt;Please note the magic number again:&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;0058000 0dd0 edfe 0000 6f03 0000 3800 0000 fc02&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;011b780 71e0 4028 0000 0000 &lt;FONT color="#FF0000"&gt;0dd0 edfe&lt;/FONT&gt; 0000 4e91&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;&lt;STRONG&gt;HAB events&lt;/STRONG&gt;&lt;/FONT&gt;&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 0x14 0x45 0x33 0x0c 0xa0 0x00
        0x00 0x00 0x00 0x00 0x40 0x1f 0xdd 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 2 -----------------
event data:
        0xdb 0x00 0x14 0x45 0x33 0x0c 0xa0 0x00
        0x00 0x00 0x00 0x00 0x40 0x1f 0xcd 0xc0
        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 3 -----------------
event data:
        0xdb 0x00 0x34 0x45 0x33 0x18 0xc0 0x00
        0xca 0x00 0x2c 0x00 0x02 0xc5 0x1d 0x00
        0x00 0x00 0x09 0xf4 0x40 0x1f 0xcd 0xc0
        0x00 0x00 0x10 0x20 0x40 0x20 0x00 0x00
        0x00 0x0c 0x07 0x88 0x40 0x2c 0x07 0x88
        0x00 0x00 0x91 0x4e 0x00 0x96 0x00 0x00
        0x00 0x00 0xa0 0xd0

STS = HAB_FAILURE (0x33)
RSN = HAB_INV_SIGNATURE (0x18)
CTX = HAB_CTX_COMMAND (0xC0)
ENG = HAB_ENG_ANY (0x00)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is highly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aleksandar&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 16:09:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Urgent-HAB-Secure-Boot-weird-behavior/m-p/1411928#M186871</guid>
      <dc:creator>aleksandar_niko</dc:creator>
      <dc:date>2022-02-10T16:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: [Urgent] HAB Secure Boot - weird behavior</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Urgent-HAB-Secure-Boot-weird-behavior/m-p/1412955#M186964</link>
      <description>&lt;P&gt;Which version of U-boot you are using?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Feb 2022 08:18:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Urgent-HAB-Secure-Boot-weird-behavior/m-p/1412955#M186964</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2022-02-14T08:18:28Z</dc:date>
    </item>
  </channel>
</rss>

