<?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: Issues with HAB on iMX8MM Module: U-Boot 2022 vs. 2023 in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Issues-with-HAB-on-iMX8MM-Module-U-Boot-2022-vs-2023/m-p/1946084#M227965</link>
    <description>&lt;P&gt;I checked those changes.&lt;BR /&gt;I applied patches as described &lt;A href="https://community.nxp.com/t5/i-MX-Security/U-Boot-Secondary-Program-Loader-Authentication-Vulnerability-CVE/ta-p/1736196" target="_self"&gt;here&lt;/A&gt; for integrating them in &lt;STRONG&gt;uboot-imx&lt;/STRONG&gt; and &lt;STRONG&gt;imx-mkimage&lt;/STRONG&gt; repositories.&lt;BR /&gt;I think I can say the &lt;STRONG&gt;FDT-FIT&lt;/STRONG&gt; hash solution with (optional) &lt;STRONG&gt;FDT-FIT&lt;/STRONG&gt; signature works as expected, since I am seeing this logs at the very first stage of u-boot command prompt console:&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;U-Boot SPL 2022.04-64036-g9a1f574209-dirty (Sep 03 2024 - 09:57:35 +0200)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;SEC0: RNG instantiated&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;Normal Boot&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;Trying to boot from MMC1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;hab fuse not enabled&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;Authenticate image from DDR location 0x401fadc0...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;hab fuse not enabled&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;Authenticate image from DDR location 0x401fadc0...&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;U-Boot 2022.04-64036-g9a1f574209-dirty (Sep 03 2024 - 09:57:35 +0200)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;CPU: i.MX8MMQ rev1.0 1600 MHz (running at 1200 MHz)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;CPU: Industrial temperature grade (-40C to 105C) at 34C&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;Reset cause: POR&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;Model: Variscite VAR-SOM-MX8M-MINI&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;DRAM: 2 GiB&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;Core: 73 devices, 23 uclasses, devicetree: separate&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;MMC: FSL_SDHC: 1, FSL_SDHC: 2&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;Loading Environment from MMC... *** Warning - bad CRC, using default environment&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;In: serial&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;Out: serial&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;Err: serial&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;PTN5150: Vendor ID [0x3], Version ID [0x1], Addr [I2C1 0x3d]&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;Part number: VSM-MX8MM-503&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;Assembly: AS312212751&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;Production date: 2024 Jan 04&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;Serial Number: f8:dc:7a:d0:71:f8&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;switch to partitions #0, OK&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;mmc1 is current device&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;flash target is MMC:1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;Net: ADIN1300 PHY detected at addr 4&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;eth0: ethernet@30be0000&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;Fastboot: Normal&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;Normal Boot&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;Hit any key to stop autoboot: 2&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Anyway, running &lt;FONT face="andale mono,times"&gt;hab_status&lt;/FONT&gt; now, it returns 5 &lt;STRONG&gt;HAB events&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;u-boot=&amp;gt; hab_status&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;Secure boot disabled&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;HAB Configuration: 0xf0, HAB State: 0x66&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;--------- HAB Event 1 -----------------&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;event data:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;0xdb 0x00 0x1c 0x43 0x33 0x18 0xc0 0x00&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;0xca 0x00 0x14 0x00 0x02 0xc5 0x1d 0x00&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;0x00 0x00 0x16 0x3c 0x40 0x1f 0xad 0xc0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;0x00 0x00 0x30 0x20&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;STS = HAB_FAILURE (0x33)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;RSN = HAB_INV_SIGNATURE (0x18)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;CTX = HAB_CTX_COMMAND (0xC0)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;ENG = HAB_ENG_ANY (0x00)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;--------- HAB Event 2 -----------------&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;event data:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;0xdb 0x00 0x14 0x43 0x33 0x0c 0xa0 0x00&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;0x00 0x00 0x00 0x00 0x40 0x1f 0xdd 0xc0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;0x00 0x00 0x00 0x20&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;STS = HAB_FAILURE (0x33)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;RSN = HAB_INV_ASSERTION (0x0C)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;CTX = HAB_CTX_ASSERT (0xA0)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;ENG = HAB_ENG_ANY (0x00)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;--------- HAB Event 3 -----------------&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;event data:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;0xdb 0x00 0x14 0x43 0x33 0x22 0x33 0x00&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;0x00 0x00 0x00 0x0f 0x00 0x7e 0x0b 0xc0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;0x00 0x03 0xfa 0x00&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;STS = HAB_FAILURE (0x33)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;RSN = HAB_INV_ADDRESS (0x22)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;CTX = HAB_CTX_TARGET (0x33)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;ENG = HAB_ENG_ANY (0x00)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;--------- HAB Event 4 -----------------&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;event data:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;0xdb 0x00 0x14 0x43 0x33 0x22 0x33 0x00&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;0x00 0x00 0x00 0x0f 0x00 0x7e 0x0b 0xc0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;0x00 0x03 0xf8 0x60&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;STS = HAB_FAILURE (0x33)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;RSN = HAB_INV_ADDRESS (0x22)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;CTX = HAB_CTX_TARGET (0x33)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;ENG = HAB_ENG_ANY (0x00)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;--------- HAB Event 5 -----------------&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;event data:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;0xdb 0x00 0x14 0x43 0x33 0x0c 0xa0 0x00&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;0x00 0x00 0x00 0x00 0x40 0x1f 0xad 0xc0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;0x00 0x00 0x00 0x04&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;STS = HAB_FAILURE (0x33)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;RSN = HAB_INV_ASSERTION (0x0C)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;CTX = HAB_CTX_ASSERT (0xA0)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;ENG = HAB_ENG_ANY (0x00)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;So, &lt;U&gt;there must be&lt;/U&gt; some other &lt;STRONG&gt;relevant changes between 2022 and 2023&lt;/STRONG&gt; versions that need to be applied for having the &lt;STRONG&gt;HAB&lt;/STRONG&gt; feature working.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Could you please provide a much detailed solution as I need to apply ad-hoc changes in order to have &lt;STRONG&gt;HAB&lt;/STRONG&gt; feature works with the 2022.04 U-Boot version?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Tue, 03 Sep 2024 08:45:36 GMT</pubDate>
    <dc:creator>ricciolino</dc:creator>
    <dc:date>2024-09-03T08:45:36Z</dc:date>
    <item>
      <title>Issues with HAB on iMX8MM Module: U-Boot 2022 vs. 2023</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Issues-with-HAB-on-iMX8MM-Module-U-Boot-2022-vs-2023/m-p/1943684#M227819</link>
      <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Hello,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;I'm encountering issues with enabling the &lt;STRONG&gt;High Assurance Boot (HAB)&lt;/STRONG&gt; feature on the &lt;STRONG&gt;iMX8M Mini&lt;/STRONG&gt; module when using &lt;U&gt;different versions&lt;/U&gt; of U-Boot (2022 vs. 2023).&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;=&amp;gt; U-Boot 2023.04&amp;nbsp;works fine (No HAB events found, as expected).&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;=&amp;gt; U-Boot 2022.04 does not work fine (generates HAB events, see below).&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;I attached two bash script (&lt;STRONG&gt;u-boot-2022-hab-variscite-builder&lt;/STRONG&gt; and &lt;STRONG&gt;u-boot-2023-hab-variscite-builder&lt;/STRONG&gt;) showing the details of the steps I performed for building both U-Boot binaries.&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;I also attached &lt;STRONG&gt;txt log files&lt;/STRONG&gt; of both builds (launched with bash scripts) and resulting &lt;STRONG&gt;CSF *.txt files&lt;/STRONG&gt; for generating SPL and FIT binaries using &lt;STRONG&gt;Code Signing Tool&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;All these files have been included into a single zip archive (&lt;STRONG&gt;HAB-Issues-iMX8MM.zip&lt;/STRONG&gt;) attached to this post.&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Here is the logs showing the &lt;STRONG&gt;HAB Events&lt;/STRONG&gt; I obtained from the 2022 u-boot version&amp;nbsp;build, when trying to boot my demo board (&lt;STRONG&gt;imx8mm-var-som-symphony&lt;/STRONG&gt;).&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;U-Boot 2022.04-64036-g9a1f574209-dirty (Aug 29 2024 - 17:34:22 +0200)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;CPU: i.MX8MMQ rev1.0 1600 MHz (running at 1200 MHz)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;CPU: Industrial temperature grade (-40C to 105C) at 34C&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Reset cause: POR&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Model: Variscite VAR-SOM-MX8M-MINI&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;DRAM: 2 GiB&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Core: 73 devices, 23 uclasses, devicetree: separate&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;MMC: FSL_SDHC: 1, FSL_SDHC: 2&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Loading Environment from MMC... *** Warning - bad CRC, using default environment&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;In: serial&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Out: serial&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Err: serial&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;PTN5150: Vendor ID [0x3], Version ID [0x1], Addr [I2C1 0x3d]&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Part number: VSM-MX8MM-503&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Assembly: AS312212751&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Production date: 2024 Jan 04&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Serial Number: f8:dc:7a:d0:71:f8&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;switch to partitions #0, OK&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;mmc1 is current device&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;flash target is MMC:1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Net: ADIN1300 PHY detected at addr 4&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;eth0: ethernet@30be0000&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Fastboot: Normal&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Normal Boot&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Hit any key to stop autoboot: 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;u-boot=&amp;gt; hab_status&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Secure boot disabled&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;HAB Configuration: 0xf0, HAB State: 0x66&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;--------- HAB Event 1 -----------------&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;event data:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;0xdb 0x00 0x14 0x43 0x33 0x22 0x33 0x00&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;0x00 0x00 0x00 0x0f 0x00 0x7e 0x0b 0xc0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;0x00 0x03 0xf8 0x00&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;STS = HAB_FAILURE (0x33)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;RSN = HAB_INV_ADDRESS (0x22)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;CTX = HAB_CTX_TARGET (0x33)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ENG = HAB_ENG_ANY (0x00)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;--------- HAB Event 2 -----------------&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;event data:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;0xdb 0x00 0x14 0x43 0x33 0x22 0x33 0x00&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;0x00 0x00 0x00 0x0f 0x00 0x7e 0x0b 0xc0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;0x00 0x03 0xf6 0x60&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;STS = HAB_FAILURE (0x33)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;RSN = HAB_INV_ADDRESS (0x22)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;CTX = HAB_CTX_TARGET (0x33)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ENG = HAB_ENG_ANY (0x00)&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Could you gently help me in understanding what is wrong here?&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2024 16:00:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Issues-with-HAB-on-iMX8MM-Module-U-Boot-2022-vs-2023/m-p/1943684#M227819</guid>
      <dc:creator>ricciolino</dc:creator>
      <dc:date>2024-08-29T16:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with HAB on iMX8MM Module: U-Boot 2022 vs. 2023</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Issues-with-HAB-on-iMX8MM-Module-U-Boot-2022-vs-2023/m-p/1944518#M227866</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Yes the uboot 2022 has some issue with HAB but they fixed in 2023, you must check with your vendor this situation.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2024 13:57:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Issues-with-HAB-on-iMX8MM-Module-U-Boot-2022-vs-2023/m-p/1944518#M227866</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2024-08-30T13:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with HAB on iMX8MM Module: U-Boot 2022 vs. 2023</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Issues-with-HAB-on-iMX8MM-Module-U-Boot-2022-vs-2023/m-p/1944526#M227868</link>
      <description>To better understand and address this situation with our vendor, could you kindly provide more detailed information on how this issue was resolved in U-Boot 2023? Specifically, I would appreciate it if you could point me to the relevant commits or patches that were applied to fix the HAB issue. Having this information will greatly help in ensuring that the necessary updates are applied correctly.&lt;BR /&gt;&lt;BR /&gt;Thank you in advance for your assistance.</description>
      <pubDate>Fri, 30 Aug 2024 14:09:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Issues-with-HAB-on-iMX8MM-Module-U-Boot-2022-vs-2023/m-p/1944526#M227868</guid>
      <dc:creator>ricciolino</dc:creator>
      <dc:date>2024-08-30T14:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with HAB on iMX8MM Module: U-Boot 2022 vs. 2023</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Issues-with-HAB-on-iMX8MM-Module-U-Boot-2022-vs-2023/m-p/1945483#M227921</link>
      <description>&lt;P&gt;&lt;BR /&gt;If you check the git log, you will find the changes(2022 vs. 2023).&lt;/P&gt;&lt;P&gt;doc/imx/habv4/guides/mx8m_secure_boot.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aaa.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/296634i55A8CEBE7DA81B62/image-size/large?v=v2&amp;amp;px=999" role="button" title="aaa.png" alt="aaa.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2024 11:53:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Issues-with-HAB-on-iMX8MM-Module-U-Boot-2022-vs-2023/m-p/1945483#M227921</guid>
      <dc:creator>hustdage</dc:creator>
      <dc:date>2024-09-02T11:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with HAB on iMX8MM Module: U-Boot 2022 vs. 2023</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Issues-with-HAB-on-iMX8MM-Module-U-Boot-2022-vs-2023/m-p/1946084#M227965</link>
      <description>&lt;P&gt;I checked those changes.&lt;BR /&gt;I applied patches as described &lt;A href="https://community.nxp.com/t5/i-MX-Security/U-Boot-Secondary-Program-Loader-Authentication-Vulnerability-CVE/ta-p/1736196" target="_self"&gt;here&lt;/A&gt; for integrating them in &lt;STRONG&gt;uboot-imx&lt;/STRONG&gt; and &lt;STRONG&gt;imx-mkimage&lt;/STRONG&gt; repositories.&lt;BR /&gt;I think I can say the &lt;STRONG&gt;FDT-FIT&lt;/STRONG&gt; hash solution with (optional) &lt;STRONG&gt;FDT-FIT&lt;/STRONG&gt; signature works as expected, since I am seeing this logs at the very first stage of u-boot command prompt console:&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;U-Boot SPL 2022.04-64036-g9a1f574209-dirty (Sep 03 2024 - 09:57:35 +0200)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;SEC0: RNG instantiated&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;Normal Boot&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;Trying to boot from MMC1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;hab fuse not enabled&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;Authenticate image from DDR location 0x401fadc0...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;hab fuse not enabled&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;Authenticate image from DDR location 0x401fadc0...&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;U-Boot 2022.04-64036-g9a1f574209-dirty (Sep 03 2024 - 09:57:35 +0200)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;CPU: i.MX8MMQ rev1.0 1600 MHz (running at 1200 MHz)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;CPU: Industrial temperature grade (-40C to 105C) at 34C&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;Reset cause: POR&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;Model: Variscite VAR-SOM-MX8M-MINI&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;DRAM: 2 GiB&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;Core: 73 devices, 23 uclasses, devicetree: separate&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;MMC: FSL_SDHC: 1, FSL_SDHC: 2&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;Loading Environment from MMC... *** Warning - bad CRC, using default environment&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;In: serial&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;Out: serial&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;Err: serial&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;PTN5150: Vendor ID [0x3], Version ID [0x1], Addr [I2C1 0x3d]&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;Part number: VSM-MX8MM-503&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;Assembly: AS312212751&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;Production date: 2024 Jan 04&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;Serial Number: f8:dc:7a:d0:71:f8&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;switch to partitions #0, OK&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;mmc1 is current device&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;flash target is MMC:1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;Net: ADIN1300 PHY detected at addr 4&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;eth0: ethernet@30be0000&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;Fastboot: Normal&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;Normal Boot&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;Hit any key to stop autoboot: 2&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Anyway, running &lt;FONT face="andale mono,times"&gt;hab_status&lt;/FONT&gt; now, it returns 5 &lt;STRONG&gt;HAB events&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;u-boot=&amp;gt; hab_status&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;Secure boot disabled&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;HAB Configuration: 0xf0, HAB State: 0x66&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;--------- HAB Event 1 -----------------&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;event data:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;0xdb 0x00 0x1c 0x43 0x33 0x18 0xc0 0x00&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;0xca 0x00 0x14 0x00 0x02 0xc5 0x1d 0x00&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;0x00 0x00 0x16 0x3c 0x40 0x1f 0xad 0xc0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;0x00 0x00 0x30 0x20&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;STS = HAB_FAILURE (0x33)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;RSN = HAB_INV_SIGNATURE (0x18)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;CTX = HAB_CTX_COMMAND (0xC0)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;ENG = HAB_ENG_ANY (0x00)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;--------- HAB Event 2 -----------------&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;event data:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;0xdb 0x00 0x14 0x43 0x33 0x0c 0xa0 0x00&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;0x00 0x00 0x00 0x00 0x40 0x1f 0xdd 0xc0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;0x00 0x00 0x00 0x20&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;STS = HAB_FAILURE (0x33)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;RSN = HAB_INV_ASSERTION (0x0C)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;CTX = HAB_CTX_ASSERT (0xA0)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;ENG = HAB_ENG_ANY (0x00)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;--------- HAB Event 3 -----------------&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;event data:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;0xdb 0x00 0x14 0x43 0x33 0x22 0x33 0x00&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;0x00 0x00 0x00 0x0f 0x00 0x7e 0x0b 0xc0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;0x00 0x03 0xfa 0x00&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;STS = HAB_FAILURE (0x33)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;RSN = HAB_INV_ADDRESS (0x22)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;CTX = HAB_CTX_TARGET (0x33)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;ENG = HAB_ENG_ANY (0x00)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;--------- HAB Event 4 -----------------&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;event data:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;0xdb 0x00 0x14 0x43 0x33 0x22 0x33 0x00&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;0x00 0x00 0x00 0x0f 0x00 0x7e 0x0b 0xc0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;0x00 0x03 0xf8 0x60&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;STS = HAB_FAILURE (0x33)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;RSN = HAB_INV_ADDRESS (0x22)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;CTX = HAB_CTX_TARGET (0x33)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;ENG = HAB_ENG_ANY (0x00)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;--------- HAB Event 5 -----------------&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;event data:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;0xdb 0x00 0x14 0x43 0x33 0x0c 0xa0 0x00&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;0x00 0x00 0x00 0x00 0x40 0x1f 0xad 0xc0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;0x00 0x00 0x00 0x04&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;STS = HAB_FAILURE (0x33)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;RSN = HAB_INV_ASSERTION (0x0C)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;CTX = HAB_CTX_ASSERT (0xA0)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;ENG = HAB_ENG_ANY (0x00)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;So, &lt;U&gt;there must be&lt;/U&gt; some other &lt;STRONG&gt;relevant changes between 2022 and 2023&lt;/STRONG&gt; versions that need to be applied for having the &lt;STRONG&gt;HAB&lt;/STRONG&gt; feature working.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Could you please provide a much detailed solution as I need to apply ad-hoc changes in order to have &lt;STRONG&gt;HAB&lt;/STRONG&gt; feature works with the 2022.04 U-Boot version?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2024 08:45:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Issues-with-HAB-on-iMX8MM-Module-U-Boot-2022-vs-2023/m-p/1946084#M227965</guid>
      <dc:creator>ricciolino</dc:creator>
      <dc:date>2024-09-03T08:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with HAB on iMX8MM Module: U-Boot 2022 vs. 2023</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Issues-with-HAB-on-iMX8MM-Module-U-Boot-2022-vs-2023/m-p/1950060#M228197</link>
      <description>&lt;P&gt;Following up on my original post, I was able to resolve the &lt;STRONG&gt;HAB errors&lt;/STRONG&gt; I encountered by enabling &lt;FONT face="andale mono,times"&gt;CONFIG_LTO=y&lt;/FONT&gt; in my &lt;STRONG&gt;defconfig&lt;/STRONG&gt;. This seems to have reduced the size of the &lt;STRONG&gt;SPL&lt;/STRONG&gt; binary (from &lt;STRONG&gt;0x3d200&lt;/STRONG&gt; to &lt;STRONG&gt;0x3a600&lt;/STRONG&gt;), which I think is the key to solving the problem.&lt;/P&gt;&lt;P&gt;Before this, running &lt;FONT face="andale mono,times"&gt;hab_status&lt;/FONT&gt; showed two &lt;STRONG&gt;HAB failures&lt;/STRONG&gt; with the reason &lt;FONT face="andale mono,times"&gt;HAB_INV_ADDRESS (0x22)&lt;/FONT&gt;, indicating invalid memory access. My assumption is that the &lt;STRONG&gt;SPL&lt;/STRONG&gt; was too large, causing memory overflows or misalignments. By enabling &lt;STRONG&gt;LTO&lt;/STRONG&gt;, the &lt;STRONG&gt;SPL&lt;/STRONG&gt; size was optimized, and these &lt;STRONG&gt;HAB events&lt;/STRONG&gt; disappeared.&lt;/P&gt;&lt;P&gt;I'm not 100% certain, but it seems that reducing the &lt;STRONG&gt;SPL&lt;/STRONG&gt; size allows it to fit properly within its memory boundaries, preventing the invalid address errors. If you're facing similar issues, I suggest trying &lt;FONT face="andale mono,times"&gt;CONFIG_LTO=y&lt;/FONT&gt; and seeing if it helps!&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 12:04:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Issues-with-HAB-on-iMX8MM-Module-U-Boot-2022-vs-2023/m-p/1950060#M228197</guid>
      <dc:creator>ricciolino</dc:creator>
      <dc:date>2024-09-09T12:04:41Z</dc:date>
    </item>
  </channel>
</rss>

