<?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: Kernel authentication issue with HAB</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Kernel-authentication-issue-with-HAB/m-p/1328253#M178963</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Ganesh&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;internal team notified me that this issue is already considered internally.&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, 24 Aug 2021 06:04:00 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2021-08-24T06:04:00Z</dc:date>
    <item>
      <title>Kernel authentication issue with HAB</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Kernel-authentication-issue-with-HAB/m-p/1322641#M178337</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I m trying to implement secure boot on imx6ulevk&lt;BR /&gt;&lt;A href="https://source.codeaurora.org/external/imx/uboot-imx/tree/doc/imx/habv4/guides/mx6_mx7_secure_boot.txt?h=imx_v2019.04_5.4.3_2.0.0" target="_blank"&gt;https://source.codeaurora.org/external/imx/uboot-imx/tree/doc/imx/habv4/guides/mx6_mx7_secure_boot.txt?h=imx_v2019.04_5.4.3_2.0.0&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;with help of above document, I can able to sign and authenticate uboot with &lt;STRONG&gt;fuse as open&lt;/STRONG&gt;, below is the log for hab_status:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=&amp;gt; hab_status

Secure boot disabled

HAB Configuration: 0xf0, HAB State: 0x66
No HAB Events Found!

=&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Now I tried to sign and authenticate Linux fitImage, fitImage is authenticating and loading properly.&lt;BR /&gt;Below is the boot log:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;switch to partitions #0, OK
mmc1(part 0) is current device
switch to partitions #0, OK
mmc1(part 0) is current device
10542944 bytes read in 267 ms (37.7 MiB/s)
Booting from mmc ...
10542944 bytes read in 267 ms (37.7 MiB/s)
hab fuse not enabled

Authenticate image from DDR location 0x83000000...

Secure boot disabled

HAB Configuration: 0xf0, HAB State: 0x66
No HAB Events Found!

## Loading kernel from FIT Image at 83000000 ...
   Using 'conf-imx6ul-pds.dtb' configuration
   Verifying Hash Integrity ... OK
   Trying 'kernel-1' kernel subimage
     Description:  Linux kernel
     Type:         Kernel Image
     Compression:  uncompressed
     Data Start:   0x830000e0
     Data Size:    10504440 Bytes = 10 MiB
     Architecture: ARM
     OS:           Linux
     Load Address: 0x80800000
     Entry Point:  0x80800000
     Hash algo:    sha256
     Hash value:   1b7abd41dffe4ae2dfb9e9a17c016c680539a791ef61010a4b70d3b481237fc8
   Verifying Hash Integrity ... sha256+ OK
## Loading fdt from FIT Image at 83000000 ...
   Using 'conf-imx6ul-pds.dtb' configuration
   Verifying Hash Integrity ... OK
   Trying 'fdt-imx6ul-pds.dtb' fdt subimage
     Description:  Flattened Device Tree blob
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x83a04ae4
     Data Size:    32036 Bytes = 31.3 KiB
     Architecture: ARM
     Hash algo:    sha256
     Hash value:   7fd68eccd6a191a0d69f70fb7c08d30b208cba93aa15186804697db4c84af7fe
   Verifying Hash Integrity ... sha256+ OK
   Booting using the fdt blob at 0x83a04ae4
   Loading Kernel Image
   Using Device Tree in place at 83a04ae4, end 83a0f807
ft_system_setup for mx6

Starting kernel ...&lt;/LI-CODE&gt;&lt;P&gt;Details:&lt;/P&gt;&lt;P&gt;fitImage loadaddress = "0x83000000"&lt;BR /&gt;fitImage size&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = "0xA0CB3C"&lt;BR /&gt;padded fitImage size = "0xA0D000"&lt;BR /&gt;&lt;BR /&gt;genIVT file:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;#! /usr/bin/perl -w
use strict;
open(my $out, '&amp;gt;:raw', 'ivt.bin') or die "Unable to open: $!";
print $out pack("V", 0x412000D1); # IVT Header
print $out pack("V", 0x83000000); # Jump Location
print $out pack("V", 0x0); # Reserved
print $out pack("V", 0x0); # DCD pointer
print $out pack("V", 0x0); # Boot Data
print $out pack("V", 0x83A0D000); # Self Pointer
print $out pack("V", 0x83A0D020); # CSF Pointer
print $out pack("V", 0x0); # Reserved
close($out);&lt;/LI-CODE&gt;&lt;P&gt;but when I try to authenticate fitImage from uboot with hab_auth_img, im getting the below error:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;=&amp;gt; load mmc 1 0x83000000 fitImage-without-ramfs_signed.bin
10542944 bytes read in 267 ms (37.7 MiB/s)
=&amp;gt; hab_auth_img 0x83000000 0xA0D000
hab fuse not enabled

Authenticate image from DDR location 0x83000000...
Error: CSF lies outside the image bounds&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Please suggest me if I m doing something wrong.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Ganesh.K&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2021 12:15:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Kernel-authentication-issue-with-HAB/m-p/1322641#M178337</guid>
      <dc:creator>ganesh_k</dc:creator>
      <dc:date>2021-08-12T12:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel authentication issue with HAB</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Kernel-authentication-issue-with-HAB/m-p/1328253#M178963</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Ganesh&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;internal team notified me that this issue is already considered internally.&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, 24 Aug 2021 06:04:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Kernel-authentication-issue-with-HAB/m-p/1328253#M178963</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2021-08-24T06:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel authentication issue with HAB</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Kernel-authentication-issue-with-HAB/m-p/1493288#M192818</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am facing the same issue with iMX8mm evk board.&lt;/P&gt;&lt;P&gt;Did you find any working solution for this?&lt;/P&gt;&lt;P&gt;Any inputs from &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/37066"&gt;@igorpadykov&lt;/a&gt; is much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;Sanath&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 11:01:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Kernel-authentication-issue-with-HAB/m-p/1493288#M192818</guid>
      <dc:creator>_sanath_</dc:creator>
      <dc:date>2022-07-21T11:01:10Z</dc:date>
    </item>
  </channel>
</rss>

