<?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>Other NXP ProductsのトピックRe:Secure Boot Fails at zImage Authentication - HAB State: 0x99 on i.MX with U-Boot 2024.04</title>
    <link>https://community.nxp.com/t5/Other-NXP-Products/Secure-Boot-Fails-at-zImage-Authentication-HAB-State-0x99-on-i/m-p/2170366#M30069</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/192970"&gt;@Harvey021&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using NXP's official Code Signing Tool (CST) to sign the Linux kernel image (`zImage`) for secure boot on an i.MX6ULL platform. The signing process completes successfully with the following output:&lt;/P&gt;&lt;P&gt;SignServer engine RSA priv enc end.&lt;BR /&gt;CSF Processed successfully and signed data available in zImage-csf.bin&lt;BR /&gt;SignServer engine finish start.&lt;BR /&gt;SignServer engine finish end.&lt;BR /&gt;SignServer engine destroy start.&lt;BR /&gt;SignServer engine destroy end.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Device Info:&lt;BR /&gt;- SoC: i.MX6ULL&lt;BR /&gt;- Board: Custom board based on i.MX6ULL&lt;/P&gt;&lt;P&gt;However, during boot, even with the signed image, I still receive the following:&lt;/P&gt;&lt;P&gt;Authenticate image from DDR location 0x80800000...&lt;BR /&gt;Secure boot enabled&lt;BR /&gt;HAB Configuration: 0xcc, HAB State: 0x99&lt;BR /&gt;No HAB Events Found!&lt;BR /&gt;Authenticate zImage Fail, Please check&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have not yet tested the hab_status command but plan to do so shortly and share the results.&lt;/P&gt;&lt;P&gt;This suggests that the signature verification is failing, despite no HAB events being reported.&lt;/P&gt;&lt;P&gt;Could you please help me understand and resolve this issue? Specifically:&lt;/P&gt;&lt;P&gt;Are there any common pitfalls or recommended debugging steps to troubleshoot the Authenticate zImage Fail error?&lt;/P&gt;&lt;P&gt;Does the `Authenticate zImage Fail` message imply the HAB engine didn’t even attempt verification properly due to image format or structure?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Loki&lt;/P&gt;</description>
    <pubDate>Tue, 16 Sep 2025 10:00:15 GMT</pubDate>
    <dc:creator>LoKi</dc:creator>
    <dc:date>2025-09-16T10:00:15Z</dc:date>
    <item>
      <title>Secure Boot Fails at zImage Authentication - HAB State: 0x99 on i.MX with U-Boot 2024.04</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Secure-Boot-Fails-at-zImage-Authentication-HAB-State-0x99-on-i/m-p/2170127#M30064</link>
      <description>&lt;P&gt;Dear NXP Support,&lt;/P&gt;&lt;P&gt;I’m working on enabling &lt;STRONG&gt;secure boot&lt;/STRONG&gt; on a custom board based on an &lt;STRONG&gt;NXP i.MX SoC&lt;/STRONG&gt;, using the following U-Boot version:&lt;/P&gt;&lt;P&gt;U-Boot 2024.04+gen7+g0b041b8cc+dirty-wip (Apr 02 2024 - 10:58:58 +0000)&lt;BR /&gt;&lt;BR /&gt;During the boot process, the image loads correctly from flash to RAM, but &lt;STRONG&gt;authentication of the zImage fails&lt;/STRONG&gt;. Below is the relevant boot log:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Authenticate image from DDR location 0x80800000...&lt;/P&gt;&lt;P&gt;Secure boot enabled&lt;/P&gt;&lt;P&gt;HAB Configuration: 0xcc, HAB State: 0x99&lt;BR /&gt;No HAB Events Found!&lt;/P&gt;&lt;P&gt;Authenticate zImage Fail, Please check&lt;/P&gt;&lt;H3&gt;Observations:&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Secure boot is enabled.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Image is successfully loaded to DDR.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;No HAB events are reported.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;HAB configuration is 0xCC, and HAB state is 0x99.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;The system fails at authentication of the zImage.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H3&gt;Questions:&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;What does a failed authentication with &lt;STRONG&gt;no HAB events&lt;/STRONG&gt; typically indicate?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Is zImage the correct image format to sign, or should it be wrapped in a FIT image or Image format (Image)?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Could the failure be due to misalignment, missing padding, or CSF-related issues?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Are there specific U-Boot requirements or patches for secure boot with zImage in recent versions?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Could you please help me understand what might be causing this authentication failure?&lt;BR /&gt;I have attached&amp;nbsp;&lt;STRONG&gt;full boot logs and signing details&lt;/STRONG&gt; for your reference.&lt;/P&gt;&lt;P&gt;U-Boot 2024.04+gen7+g0b041b8cc+dirty-wip (Apr 02 2024 - 10:58:58 +0000)&lt;/P&gt;&lt;P&gt;DRAM: 128 MiB&lt;BR /&gt;Core: 45 devices, 10 uclasses, devicetree: separate&lt;BR /&gt;MMC:&lt;BR /&gt;Loading Environment from SPIFlash... SF: Detected w25q256 with page size 256 Bytes, erase size 64 KiB, total 32 MiB&lt;BR /&gt;OK&lt;BR /&gt;In: serial&lt;BR /&gt;Out: serial&lt;BR /&gt;Err: serial&lt;BR /&gt;Net: No ethernet found.&lt;BR /&gt;Hit any key to stop autoboot: 0&lt;BR /&gt;SF: Detected w25q256 with page size 256 Bytes, erase size 64 KiB, total 32 MiB&lt;BR /&gt;ubi0: attaching mtd3&lt;BR /&gt;ubi0: scanning is finished&lt;BR /&gt;ubi0: attached mtd3 (name "ubi-partition", size 31 MiB)&lt;BR /&gt;ubi0: PEB size: 65536 bytes (64 KiB), LEB size: 65408 bytes&lt;BR /&gt;ubi0: min./max. I/O unit sizes: 1/256, sub-page size 1&lt;BR /&gt;ubi0: VID header offset: 64 (aligned 64), data offset: 128&lt;BR /&gt;ubi0: good PEBs: 504, bad PEBs: 0, corrupted PEBs: 0&lt;BR /&gt;ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128&lt;BR /&gt;ubi0: max/mean erase counter: 29/24, WL threshold: 4096, image sequence number: 128498004&lt;BR /&gt;ubi0: available PEBs: 228, total reserved PEBs: 276, PEBs reserved for bad PEB handling: 0&lt;BR /&gt;UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs", R/O mode&lt;BR /&gt;UBIFS (ubi0:0): LEB size: 65408 bytes (63 KiB), min./max. I/O unit sizes: 8 bytes/256 bytes&lt;BR /&gt;UBIFS (ubi0:0): FS size: 13997312 bytes (13 MiB, 214 LEBs), journal size 2027648 bytes (1 MiB, 31 LEBs)&lt;BR /&gt;UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)&lt;BR /&gt;UBIFS (ubi0:0): media format: w4/r0 (latest is w4/r0), UUID A179EEE8-902D-42EF-837B-932CC0EC38EE, small LPT model&lt;BR /&gt;Loading file '/boot/zImage' to addr 0x80800000...&lt;BR /&gt;Done&lt;BR /&gt;Loading file '/boot/power.dtb' to addr 0x80c00000...&lt;BR /&gt;Done&lt;BR /&gt;Kernel image @ 0x80800000 [ 0x000000 - 0x3e41a8 ]&lt;BR /&gt;## Flattened Device Tree blob at 80c00000&lt;BR /&gt;Booting using the fdt blob at 0x80c00000&lt;BR /&gt;Working FDT set to 80c00000&lt;/P&gt;&lt;P&gt;Authenticate image from DDR location 0x80800000...&lt;/P&gt;&lt;P&gt;Secure boot enabled&lt;/P&gt;&lt;P&gt;HAB Configuration: 0xcc, HAB State: 0x99&lt;BR /&gt;No HAB Events Found!&lt;/P&gt;&lt;P&gt;Authenticate zImage Fail, Please check&lt;/P&gt;&lt;P&gt;Any guidance or reference to known issues would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance for your support!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;LoKI&lt;/P&gt;</description>
      <pubDate>Tue, 16 Sep 2025 04:47:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Secure-Boot-Fails-at-zImage-Authentication-HAB-State-0x99-on-i/m-p/2170127#M30064</guid>
      <dc:creator>LoKi</dc:creator>
      <dc:date>2025-09-16T04:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: Secure Boot Fails at zImage Authentication - HAB State: 0x99 on i.MX with U-Boot 2024.04</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Secure-Boot-Fails-at-zImage-Authentication-HAB-State-0x99-on-i/m-p/2170290#M30065</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/244358"&gt;@LoKi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems that you don't attach your signing details. Can you please share?&lt;/P&gt;
&lt;P&gt;Do you have a chance to test hab events with the signed images in an open device?&lt;/P&gt;
&lt;P&gt;Which device are you working on?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Harvey&lt;/P&gt;</description>
      <pubDate>Tue, 16 Sep 2025 08:10:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Secure-Boot-Fails-at-zImage-Authentication-HAB-State-0x99-on-i/m-p/2170290#M30065</guid>
      <dc:creator>Harvey021</dc:creator>
      <dc:date>2025-09-16T08:10:27Z</dc:date>
    </item>
    <item>
      <title>Re:Secure Boot Fails at zImage Authentication - HAB State: 0x99 on i.MX with U-Boot 2024.04</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Secure-Boot-Fails-at-zImage-Authentication-HAB-State-0x99-on-i/m-p/2170366#M30069</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/192970"&gt;@Harvey021&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using NXP's official Code Signing Tool (CST) to sign the Linux kernel image (`zImage`) for secure boot on an i.MX6ULL platform. The signing process completes successfully with the following output:&lt;/P&gt;&lt;P&gt;SignServer engine RSA priv enc end.&lt;BR /&gt;CSF Processed successfully and signed data available in zImage-csf.bin&lt;BR /&gt;SignServer engine finish start.&lt;BR /&gt;SignServer engine finish end.&lt;BR /&gt;SignServer engine destroy start.&lt;BR /&gt;SignServer engine destroy end.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Device Info:&lt;BR /&gt;- SoC: i.MX6ULL&lt;BR /&gt;- Board: Custom board based on i.MX6ULL&lt;/P&gt;&lt;P&gt;However, during boot, even with the signed image, I still receive the following:&lt;/P&gt;&lt;P&gt;Authenticate image from DDR location 0x80800000...&lt;BR /&gt;Secure boot enabled&lt;BR /&gt;HAB Configuration: 0xcc, HAB State: 0x99&lt;BR /&gt;No HAB Events Found!&lt;BR /&gt;Authenticate zImage Fail, Please check&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have not yet tested the hab_status command but plan to do so shortly and share the results.&lt;/P&gt;&lt;P&gt;This suggests that the signature verification is failing, despite no HAB events being reported.&lt;/P&gt;&lt;P&gt;Could you please help me understand and resolve this issue? Specifically:&lt;/P&gt;&lt;P&gt;Are there any common pitfalls or recommended debugging steps to troubleshoot the Authenticate zImage Fail error?&lt;/P&gt;&lt;P&gt;Does the `Authenticate zImage Fail` message imply the HAB engine didn’t even attempt verification properly due to image format or structure?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Loki&lt;/P&gt;</description>
      <pubDate>Tue, 16 Sep 2025 10:00:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Secure-Boot-Fails-at-zImage-Authentication-HAB-State-0x99-on-i/m-p/2170366#M30069</guid>
      <dc:creator>LoKi</dc:creator>
      <dc:date>2025-09-16T10:00:15Z</dc:date>
    </item>
  </channel>
</rss>

