<?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: iMX8MM HAB errors in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-HAB-errors/m-p/1177075#M164430</link>
    <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/121838"&gt;@jorge_rebollo&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; please check if You follow the U-boot example:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imx/uboot-imx/tree/doc/imx/habv4/guides/mx8m_mx8mm_secure_boot.txt?h=imx_v2018.03_4.14.98_2.0.0_ga" target="_blank"&gt;https://source.codeaurora.org/external/imx/uboot-imx/tree/doc/imx/habv4/guides/mx8m_mx8mm_secure_boot.txt?h=imx_v2018.03_4.14.98_2.0.0_ga&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Yuri.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Yuri.&lt;/P&gt;</description>
    <pubDate>Tue, 03 Nov 2020 07:48:10 GMT</pubDate>
    <dc:creator>Yuri</dc:creator>
    <dc:date>2020-11-03T07:48:10Z</dc:date>
    <item>
      <title>iMX8MM HAB errors</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-HAB-errors/m-p/1172520#M163970</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;Trying to validate HAB signatures on the i.MX8MM EVK board I am getting these errors&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 0x43 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 0x43 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 0x43 0x33 0x18 0xc0 0x00
        0xca 0x00 0x2c 0x00 0x02 0xc5 0x1d 0x00
        0x00 0x00 0x0d 0x54 0x40 0x1f 0xcd 0xc0
        0x00 0x00 0x10 0x20 0x40 0x20 0x00 0x00
        0x00 0x0a 0x25 0x40 0x00 0x92 0x00 0x00
        0x00 0x00 0xb1 0x70 0xbe 0x00 0x00 0x00
        0x00 0x04 0xf4 0xb8

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;They come from this development environment&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;U-Boot 2018.03-imx_v2018.03_4.14.98_2.0.0_ga+g87a19df5e4 (Oct 23 2020 - 10:57:37 +0000)
CPU:   Freescale i.MX8MMQ rev1.0 1800 MHz (running at 1200 MHz)&lt;/LI-CODE&gt;&lt;P&gt;P.D.: On SUMO I have no HAB events if I only sign the SPL image section&lt;/P&gt;&lt;P&gt;Also, I get similar errors when I use a more recent BSP&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;U-Boot 2020.04-5.4.24-2.1.0+g4979a99482 (Oct 23 2020 - 11:10:40 +0000)
CPU:   i.MX8MMQ rev1.0 1800 MHz (running at 1200 MHz)&lt;/LI-CODE&gt;&lt;P&gt;P.D.: On ZEUS I also have HAB events if I only sign the SPL image section, which differs from the previous SUMO behavior&lt;/P&gt;&lt;P&gt;This topic has already been treated in &lt;A href="https://community.nxp.com/t5/i-MX-Processors/i-MX8M-secure-boot-HAB-FIT-image/m-p/1062078" target="_self"&gt;https://community.nxp.com/t5/i-MX-Processors/i-MX8M-secure-boot-HAB-FIT-image/m-p/1062078&lt;/A&gt; and &lt;A href="https://freescale.jiveon.com/message/1309301" target="_self"&gt;https://freescale.jiveon.com/message/1309301&lt;/A&gt; threads, and some others, but with a no public solution&lt;/P&gt;&lt;P&gt;Can someone give me an advice on this topic ?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Fri, 23 Oct 2020 14:41:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-HAB-errors/m-p/1172520#M163970</guid>
      <dc:creator>jorge_rebollo</dc:creator>
      <dc:date>2020-10-23T14:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8MM HAB errors</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-HAB-errors/m-p/1173743#M164096</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/121838"&gt;@jorge_rebollo&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I've sent You some information directly.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Yuri.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2020 09:20:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-HAB-errors/m-p/1173743#M164096</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2020-10-27T09:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8MM HAB errors</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-HAB-errors/m-p/1176466#M164355</link>
      <description>&lt;DIV class="feedBodyInner Desktop"&gt;&lt;P&gt;&lt;SPAN class="uiOutputText"&gt;Dear Yuri,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="uiOutputText"&gt;Having studied the information supplied in detail it seams to me it does not apply to the problem I have&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="uiOutputText"&gt;That information talks about the CPU entering into SDP, but I do not have that behavior actually&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="uiOutputText"&gt;More details on my environment are:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN class="uiOutputText"&gt;iMX8MM EVK with eMMC programmed with factory Android version&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="uiOutputText"&gt;iMX8MM EVK configured to boot from uSD&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="uiOutputText"&gt;Development SRK table flashed into OTP&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="uiOutputText"&gt;iMX8MM EVK remain in open mode&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="uiOutputText"&gt;The system boots up with Uboot (signed) and Kernel (not signed yet) and works as expected&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN class="uiOutputText"&gt;P.D.: All the steps I am trying to put in operation work pretty well in a iMX7DSABRE board, but know with the differences introduced in the new iMX8MM architecture&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="uiOutputText"&gt;Could you please give me some more feedback ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="uiOutputText"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="uiOutputText"&gt;Jorge R.&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 02 Nov 2020 07:29:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-HAB-errors/m-p/1176466#M164355</guid>
      <dc:creator>jorge_rebollo</dc:creator>
      <dc:date>2020-11-02T07:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8MM HAB errors</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-HAB-errors/m-p/1177075#M164430</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/121838"&gt;@jorge_rebollo&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; please check if You follow the U-boot example:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imx/uboot-imx/tree/doc/imx/habv4/guides/mx8m_mx8mm_secure_boot.txt?h=imx_v2018.03_4.14.98_2.0.0_ga" target="_blank"&gt;https://source.codeaurora.org/external/imx/uboot-imx/tree/doc/imx/habv4/guides/mx8m_mx8mm_secure_boot.txt?h=imx_v2018.03_4.14.98_2.0.0_ga&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Yuri.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Yuri.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 07:48:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-HAB-errors/m-p/1177075#M164430</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2020-11-03T07:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8MM HAB errors</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-HAB-errors/m-p/1177352#M164457</link>
      <description>&lt;P&gt;Yuri,&lt;/P&gt;&lt;P&gt;I did follow all that information and also the newer present in &lt;A href="https://source.codeaurora.org/external/imx/uboot-imx/tree/doc/imx/habv4/guides/mx8m_secure_boot.txt?h=imx_v2020.04_5.4.24_2.1.0" target="_blank"&gt;https://source.codeaurora.org/external/imx/uboot-imx/tree/doc/imx/habv4/guides/mx8m_secure_boot.txt?h=imx_v2020.04_5.4.24_2.1.0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Latest&amp;nbsp;&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; release document was revised as well&lt;/P&gt;&lt;P&gt;Please, find attached archives with scripts, CSF and logs files I created to sign images generated by Sumo and Zeus BSP releases&lt;/P&gt;&lt;P&gt;In both cases I get the same HAB errors and only when I comment the FIT section signature seams to be fine (without considering&amp;nbsp;&lt;EM&gt;Error: CSF header command not found&lt;/EM&gt; in Uboot log)&lt;/P&gt;&lt;P&gt;Could be extending the root of trust to check FIT structures signatures the cause of the problem ?&lt;/P&gt;&lt;P&gt;P.D.: I highlighted in my first message there were HAB errors in Zeus also while only signing SPL section, but not now after a new BSP installation !&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 14:28:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-HAB-errors/m-p/1177352#M164457</guid>
      <dc:creator>jorge_rebollo</dc:creator>
      <dc:date>2020-11-03T14:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8MM HAB errors</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-HAB-errors/m-p/1178778#M164566</link>
      <description>&lt;P&gt;Yuri,&lt;/P&gt;&lt;P&gt;Following with this topic, I went forward now extending the root of trust for the Linux kernel image&lt;/P&gt;&lt;P&gt;Only SPL is signed in the chain of trust, no FIT signature, just to avoid those HAB errors I presented before&lt;/P&gt;&lt;P&gt;On this new testing I get the same HAB errors between both BSP releases, as well&lt;/P&gt;&lt;P&gt;But, only in automatic power-on boot. If I do check the kernel signature by hand, from UBoot command line, everything is fine and no HAB errors are reported&lt;/P&gt;&lt;P&gt;Also, comparing the &lt;U&gt;open&lt;/U&gt; imx8mmevk board to my &lt;U&gt;closed&lt;/U&gt; imx7dsabre board behavior, the former works as it was running a non-signed kernel image, which is actually not true&lt;/P&gt;&lt;P&gt;Please, find attached new archives for this kernel signature testing&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 12:45:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-HAB-errors/m-p/1178778#M164566</guid>
      <dc:creator>jorge_rebollo</dc:creator>
      <dc:date>2020-11-05T12:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8MM HAB errors</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-HAB-errors/m-p/1182432#M164852</link>
      <description>&lt;P&gt;Yuri,&lt;/P&gt;&lt;P&gt;Just following my previous answer I would like to add some more new testing results&lt;/P&gt;&lt;P&gt;If I only sign FDT+IVT sections in the FIT image I get NO hab_status errors&lt;/P&gt;&lt;P&gt;Zeus BSP FIT CSF file:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[Authenticate Data]
Blocks = 0x401fcdc0 0x57c00 0x1020 "/opt/microsoft/vscode-workspace/HAB_imx8mmevk/fit-test_zeus/flash.bin"
Verification Index = 2&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Sumo BSP FIT CSF file:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[Authenticate Data]
Blocks = 0x401fcdc0 0x57c00 0x1020 "/opt/microsoft/vscode-workspace/HAB_imx8mmevk/fit-test_sumo/flash.bin"
Verification Index = 2&lt;/LI-CODE&gt;&lt;P&gt;Only when I add signature for the U-Boot, TEE and/or ATF sections in the FIT image I DO GET hab_status errors (whether I add one, two or three of them)&lt;/P&gt;&lt;P&gt;Same results come from both Sudo and Zeus BSPs&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2020 15:50:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-HAB-errors/m-p/1182432#M164852</guid>
      <dc:creator>jorge_rebollo</dc:creator>
      <dc:date>2020-11-12T15:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8MM HAB errors</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-HAB-errors/m-p/1182955#M164879</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/121838"&gt;@jorge_rebollo&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; please double check if parameters&amp;nbsp;Authenticate Start Address, Offset, Length in&amp;nbsp;&lt;BR /&gt;[Authenticate Data] of CSF file are correct.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Yuri.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2020 08:09:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-HAB-errors/m-p/1182955#M164879</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2020-11-13T08:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8MM HAB errors</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-HAB-errors/m-p/1183042#M164888</link>
      <description>&lt;P&gt;Yuri,&lt;/P&gt;&lt;P&gt;Those parameter values come from &lt;FONT face="arial black,avant garde"&gt;print_fit_hab.sh&lt;/FONT&gt; shell script called on this way&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;bitbake imx-boot -c devshell
cd iMX8M/
TEE_LOAD_ADDR=0xbe000000 ATF_LOAD_ADDR=0x00920000 ./print_fit_hab.sh 0x8400&lt;/LI-CODE&gt;&lt;P&gt;so I presume they are correct&lt;/P&gt;&lt;P&gt;I did double check on the translation to CSF file not to make a mistake&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2020 09:45:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-HAB-errors/m-p/1183042#M164888</guid>
      <dc:creator>jorge_rebollo</dc:creator>
      <dc:date>2020-11-13T09:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8MM HAB errors</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-HAB-errors/m-p/1188035#M165418</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/121838"&gt;@jorge_rebollo&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I've sent You more comments.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Yuri.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 09:10:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-HAB-errors/m-p/1188035#M165418</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2020-11-24T09:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8MM HAB errors</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-HAB-errors/m-p/1201915#M166738</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;After been in contact with my local NXP FAE, I would like to share the solution we found to my problem&lt;/P&gt;&lt;P&gt;Following my message dated on &lt;SPAN class="DateTime"&gt;&lt;SPAN class="local-date"&gt;11-13-2020&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;02:45 AM, the correct lines to sign the bootcontainer FIT part are&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="DateTime"&gt;&lt;SPAN class="local-time"&gt;bitbake imx-boot -c devshell&lt;BR /&gt;cd iMX8M&lt;BR /&gt;../scripts/pad_image.sh u-boot-nodtb.bin imx8mm-evk.dtb&lt;BR /&gt;TEE_LOAD_ADDR=0xbe000000 ATF_LOAD_ADDR=0x00920000 VERSION=v1 ./print_fit_hab.sh 0x60000 imx8mm-evk.dtb&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN class="DateTime"&gt;&lt;SPAN class="local-time"&gt;Padding and version information are required and offset value was wrong&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="DateTime"&gt;&lt;SPAN class="local-time"&gt;That way, values reported by &lt;EM&gt;print_fit_hab.sh&lt;/EM&gt; are now correct and I do not get HAB errors&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2020 18:11:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-HAB-errors/m-p/1201915#M166738</guid>
      <dc:creator>jorge_rebollo</dc:creator>
      <dc:date>2020-12-18T18:11:16Z</dc:date>
    </item>
  </channel>
</rss>

