<?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 U-boot FIT image verification failed when HAB is enabled in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/U-boot-FIT-image-verification-failed-when-HAB-is-enabled/m-p/1377890#M183622</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I enabled the HAB (CONFIG_IMX_HAB) and FIT image verification in u-boot. It also has CAAM related options and "CONFIG_RSA_FREESCALE_EXP" enabled automatically. However,&amp;nbsp; u-boot failed to verify my signed FIT image. I also forced the FIT image verification to use "mod_exp_sw" and it worked well.&lt;/P&gt;&lt;P&gt;The error message was "fsl_mod_exp: RSA failed to verify: -1". It seems the error was happened in "drivers/crypto/fsl/jr.c:&amp;nbsp;run_descriptor_jr_idx()" when it was calling "jr_dequeue()".&lt;/P&gt;&lt;P&gt;Is there anything I can verify the CAAM and fsl_rsa_mod are working on my device?&lt;/P&gt;&lt;P&gt;My environment:&lt;BR /&gt;- i.mx8m mini&lt;BR /&gt;- atf + op-tee enabled&lt;BR /&gt;- u-boot is the upstream v2021.07 version from the hardware vendor&lt;BR /&gt;-&amp;nbsp;sha256 and rsa204 are used for FIT image signatures.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Mon, 29 Nov 2021 03:57:59 GMT</pubDate>
    <dc:creator>robertliu</dc:creator>
    <dc:date>2021-11-29T03:57:59Z</dc:date>
    <item>
      <title>U-boot FIT image verification failed when HAB is enabled</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/U-boot-FIT-image-verification-failed-when-HAB-is-enabled/m-p/1377890#M183622</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I enabled the HAB (CONFIG_IMX_HAB) and FIT image verification in u-boot. It also has CAAM related options and "CONFIG_RSA_FREESCALE_EXP" enabled automatically. However,&amp;nbsp; u-boot failed to verify my signed FIT image. I also forced the FIT image verification to use "mod_exp_sw" and it worked well.&lt;/P&gt;&lt;P&gt;The error message was "fsl_mod_exp: RSA failed to verify: -1". It seems the error was happened in "drivers/crypto/fsl/jr.c:&amp;nbsp;run_descriptor_jr_idx()" when it was calling "jr_dequeue()".&lt;/P&gt;&lt;P&gt;Is there anything I can verify the CAAM and fsl_rsa_mod are working on my device?&lt;/P&gt;&lt;P&gt;My environment:&lt;BR /&gt;- i.mx8m mini&lt;BR /&gt;- atf + op-tee enabled&lt;BR /&gt;- u-boot is the upstream v2021.07 version from the hardware vendor&lt;BR /&gt;-&amp;nbsp;sha256 and rsa204 are used for FIT image signatures.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 03:57:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/U-boot-FIT-image-verification-failed-when-HAB-is-enabled/m-p/1377890#M183622</guid>
      <dc:creator>robertliu</dc:creator>
      <dc:date>2021-11-29T03:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: U-boot FIT image verification failed when HAB is enabled</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/U-boot-FIT-image-verification-failed-when-HAB-is-enabled/m-p/1378590#M183704</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/192622"&gt;@robertliu&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; the following may be helpful:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors/Is-there-a-way-to-sign-a-FIT-image-as-a-whole-for-HAB/m-p/1361708" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors/Is-there-a-way-to-sign-a-FIT-image-as-a-whole-for-HAB/m-p/1361708&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;</description>
      <pubDate>Tue, 30 Nov 2021 05:16:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/U-boot-FIT-image-verification-failed-when-HAB-is-enabled/m-p/1378590#M183704</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2021-11-30T05:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: U-boot FIT image verification failed when HAB is enabled</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/U-boot-FIT-image-verification-failed-when-HAB-is-enabled/m-p/1378681#M183712</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/1941"&gt;@Yuri&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The post you provided is not the same as my issue. U-boot did load the kernel FIT image successfully. The verification was failed in CAAM (fsl_mod_exp() of u-boot).&lt;/P&gt;&lt;P&gt;So I was wondering if it's possible to test CAAM in u-boot, or if there's any document showing how to access CAAM.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 07:08:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/U-boot-FIT-image-verification-failed-when-HAB-is-enabled/m-p/1378681#M183712</guid>
      <dc:creator>robertliu</dc:creator>
      <dc:date>2021-11-30T07:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: U-boot FIT image verification failed when HAB is enabled</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/U-boot-FIT-image-verification-failed-when-HAB-is-enabled/m-p/1390573#M184862</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/192622"&gt;@robertliu&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; I am afraid we do not have special CAAM tests in U-boot.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Yuri.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 07:01:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/U-boot-FIT-image-verification-failed-when-HAB-is-enabled/m-p/1390573#M184862</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2021-12-22T07:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: U-boot FIT image verification failed when HAB is enabled</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/U-boot-FIT-image-verification-failed-when-HAB-is-enabled/m-p/1843915#M222339</link>
      <description>&lt;P&gt;Well, for anybody stumbling on this thread:&lt;BR /&gt;&lt;BR /&gt;In U-Boot 2020.04 I had the problem the FIT image verification with iminfo was OK, but bootm did not find the signature. I do not want to use the HAB certificates, but instead only rely on FIT signature.&lt;BR /&gt;&lt;BR /&gt;I've enabled CONFIG_SPL_RSA and CONFIG_RSA_SOFTWARE_EXP and patched lib/rsa/rsa-verify.c:rsa_verify_key to move back to software checking as such:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ret = rsa_mod_exp(mod_exp_dev, sig, sig_len, prop, buf);
printf("%s: error rsa_mod_exp\n", __func__);
if (ret) {
        printf("%s: attempting rsa_mod_exp_sw instead \n", __func__);
        ret = rsa_mod_exp_sw(sig, sig_len, prop, buf);
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This seems to work.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 12:05:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/U-boot-FIT-image-verification-failed-when-HAB-is-enabled/m-p/1843915#M222339</guid>
      <dc:creator>Bayou</dc:creator>
      <dc:date>2024-04-10T12:05:53Z</dc:date>
    </item>
  </channel>
</rss>

