<?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: Boot command using hab_auth_img in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Boot-command-using-hab-auth-img/m-p/1219587#M168237</link>
    <description>&lt;P&gt;Hi, sorry for the late reply.&lt;/P&gt;&lt;P&gt;Please find attached two patches for uboot.&lt;/P&gt;&lt;P&gt;The logic is this: I removed any hab_auth_img control inside the booti command. The verification is perfomed by uboot before launching booti using the command load_fdt and loadimage.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Paolo&lt;/P&gt;</description>
    <pubDate>Fri, 22 Jan 2021 11:18:23 GMT</pubDate>
    <dc:creator>pgentili</dc:creator>
    <dc:date>2021-01-22T11:18:23Z</dc:date>
    <item>
      <title>Boot command using hab_auth_img</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Boot-command-using-hab-auth-img/m-p/1058547#M155644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I'm trying to use HAB for the kernel verification. I managed to sign the kernel image and to get "No HAB Events Found!" calling&amp;nbsp;&amp;nbsp;hab_auth_img 0x40480000 0x13c6f60 0x13c6000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two questions:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Do I have to explicitly add the hab_auth_img command in my bootcmd? Or is it in some way performed under the hood?&lt;/LI&gt;&lt;LI&gt;If the command must be explicit does it mean that every time I want to update my kernel I also have to update U-Boot?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Paolo Gentili&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2020 11:25:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Boot-command-using-hab-auth-img/m-p/1058547#M155644</guid>
      <dc:creator>pgentili</dc:creator>
      <dc:date>2020-05-07T11:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: Boot command using hab_auth_img</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Boot-command-using-hab-auth-img/m-p/1058548#M155645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Yes, you can&amp;nbsp; modify your U-Boot bootcmd so it includes the HAB command that checks the kernel.&lt;/P&gt;&lt;P&gt;If some parameters changed - it will be needed to modify bootcmd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yuri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2020 07:27:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Boot-command-using-hab-auth-img/m-p/1058548#M155645</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2020-05-08T07:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: Boot command using hab_auth_img</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Boot-command-using-hab-auth-img/m-p/1058549#M155646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I later found out that uboot itself, in the booti routine, tries to verify the kernel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem though: the verification run manually by me is fine (via hab_auth_img) but the one performed by uboot fails. I found out that the problem is in the kernel size: my image has size&amp;nbsp;&lt;SPAN style="color: #000000; font-size: 14.6667px;"&gt;0x13c6f60 but the size retrieved inside booti_setup is&amp;nbsp;&lt;SPAN&gt;0x143b020.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 14.6667px;"&gt;&lt;SPAN&gt;Do you know why this is happening?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 14.6667px;"&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 14.6667px;"&gt;&lt;SPAN&gt;Paolo Gentili&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2020 17:24:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Boot-command-using-hab-auth-img/m-p/1058549#M155646</guid>
      <dc:creator>pgentili</dc:creator>
      <dc:date>2020-05-25T17:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: Boot command using hab_auth_img</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Boot-command-using-hab-auth-img/m-p/1058550#M155647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Looks like Your&amp;nbsp; kernel is not the same, as used in the example.&amp;nbsp;&lt;BR /&gt;Kernel size depends on configuration.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yuri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2020 02:01:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Boot-command-using-hab-auth-img/m-p/1058550#M155647</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2020-05-26T02:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: Boot command using hab_auth_img</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Boot-command-using-hab-auth-img/m-p/1058551#M155648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for your reply but you misunderstood me, let me explain again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The kernel is the same, these are the steps to reproduce:&lt;/P&gt;&lt;P&gt;1) Manually load kernel Image at addr x&lt;/P&gt;&lt;P&gt;2) Run hab_auth_img with the kernel size/offset that I know because I compiled it&lt;/P&gt;&lt;P&gt;3) It returns no events, good.&lt;/P&gt;&lt;P&gt;4) Run booti&lt;/P&gt;&lt;P&gt;5) It automatically run an hab_authentication but if fails... (I found out that is related to a wrong kernel size).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So why with the same Image I'm having this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Paolo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2020 05:52:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Boot-command-using-hab-auth-img/m-p/1058551#M155648</guid>
      <dc:creator>pgentili</dc:creator>
      <dc:date>2020-05-26T05:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Boot command using hab_auth_img</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Boot-command-using-hab-auth-img/m-p/1058552#M155649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, just a quick update.&lt;/P&gt;&lt;P&gt;I found a workaround: I modified the booti.c file so that the booti command requires also the image size and the image offset. This way useful also because I need to verify not only the kernel but also the DTB: a modification to booti.c was needed nevertheless.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Paolo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2020 10:01:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Boot-command-using-hab-auth-img/m-p/1058552#M155649</guid>
      <dc:creator>pgentili</dc:creator>
      <dc:date>2020-05-29T10:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: Boot command using hab_auth_img</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Boot-command-using-hab-auth-img/m-p/1197534#M166275</link>
      <description>&lt;P&gt;I'm having a similar problem.&amp;nbsp; Can you share your modifications to booti.c?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Adam&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 17:24:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Boot-command-using-hab-auth-img/m-p/1197534#M166275</guid>
      <dc:creator>adam_m</dc:creator>
      <dc:date>2020-12-10T17:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Boot command using hab_auth_img</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Boot-command-using-hab-auth-img/m-p/1219587#M168237</link>
      <description>&lt;P&gt;Hi, sorry for the late reply.&lt;/P&gt;&lt;P&gt;Please find attached two patches for uboot.&lt;/P&gt;&lt;P&gt;The logic is this: I removed any hab_auth_img control inside the booti command. The verification is perfomed by uboot before launching booti using the command load_fdt and loadimage.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Paolo&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2021 11:18:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Boot-command-using-hab-auth-img/m-p/1219587#M168237</guid>
      <dc:creator>pgentili</dc:creator>
      <dc:date>2021-01-22T11:18:23Z</dc:date>
    </item>
  </channel>
</rss>

