<?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: imx8mm secure boot enable in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx8mm-secure-boot-enable/m-p/1211668#M167751</link>
    <description>&lt;P&gt;Now I have added to the SD card the full rootfs and kernel image but still u-boot hangs at that point.&lt;/P&gt;&lt;P&gt;I am using U-Boot SPL 2019.04-imx_v2019.04_4.19.35_1.0.0+g85bdcc7 and I have also OPTEE in the signed_flash.bin so I am missing patch for 1.1.0 at the moment.&lt;/P&gt;&lt;P&gt;I see the address that is trying to authenticate image from is&amp;nbsp;&lt;SPAN&gt;0x401fcdc0, this corresponds to sld_hab_block&amp;nbsp; in my build log and I have added it as required to the csf_fit.txt&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Jan 2021 09:30:03 GMT</pubDate>
    <dc:creator>antonio_santagi</dc:creator>
    <dc:date>2021-01-14T09:30:03Z</dc:date>
    <item>
      <title>imx8mm secure boot enable</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mm-secure-boot-enable/m-p/1211051#M167693</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have followed document at&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imx/uboot-imx/tree/doc/imx/habv4/guides/mx8m_mx8mm_secure_boot.txt?h=imx_v2019.04_4.19.35_1.1.0" target="_blank" rel="noopener"&gt;https://source.codeaurora.org/external/imx/uboot-imx/tree/doc/imx/habv4/guides/mx8m_mx8mm_secure_boot.txt?h=imx_v2019.04_4.19.35_1.1.0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I have programmed SRK hash table fuses and verified after programming the values were correct.&lt;/P&gt;&lt;P&gt;I have tried with an unsigned image on SD card and verified that u-boot hab_status command was reporting errors in hab status.&lt;/P&gt;&lt;P&gt;I have then put an SD card with signed image and verified that u-boot hab_status was reporting :&amp;nbsp;&lt;/P&gt;&lt;P&gt;u-boot=&amp;gt; hab_status&lt;BR /&gt;&lt;BR /&gt;Secure boot disabled&lt;BR /&gt;&lt;BR /&gt;HAB Configuration: 0xf0, HAB State: 0x66&lt;BR /&gt;No HAB Events Found!&lt;/P&gt;&lt;P&gt;Then I have proceeded with next step in the document : 1.9 Closing the device :&lt;/P&gt;&lt;PRE&gt;=&amp;gt; fuse prog 1 3 0x2000000&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;after this now I can't boot the device anymore from the same SD card that was reported with hab no events found and HAB state 0x66.&lt;/P&gt;&lt;P&gt;the board gets stuck at boot with this message :&amp;nbsp;&lt;/P&gt;&lt;P&gt;U-Boot SPL 2019.04-imx_v2019.04_4.19.35_1.0.0+g85bdcc7 (Jan 04 2021 - 11:15:40 )&lt;BR /&gt;power_bd71837_init&lt;BR /&gt;DDRINFO: start DRAM init&lt;BR /&gt;DDRINFO:ddrphy calibration done&lt;BR /&gt;DDRINFO: ddrmix config done&lt;BR /&gt;Normal Boot&lt;BR /&gt;Trying to boot from MMC1&lt;BR /&gt;&lt;BR /&gt;Authenticate image from DDR location 0x401fcdc0..&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;so HAB looks is working correctly as it launches what is signed correctly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But u-boot for some reason gets stuck.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The same image, if processor is not locked to run only in secure mode, works.&lt;/P&gt;&lt;P&gt;what could be wrong or missing ?&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 10:59:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mm-secure-boot-enable/m-p/1211051#M167693</guid>
      <dc:creator>antonio_santagi</dc:creator>
      <dc:date>2021-01-13T10:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: imx8mm secure boot enable</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mm-secure-boot-enable/m-p/1211071#M167697</link>
      <description>&lt;P&gt;could it be now some memory addresses are not suitable because used by something else ?&lt;/P&gt;&lt;P&gt;I have not added HAB verification of Kernel image, I have not added a Kernel image to the SD card at all.&lt;/P&gt;&lt;P&gt;However the message "&lt;SPAN&gt;Authenticate image from DDR location 0x401fcdc0.." sounds like HAB is trying checking the Kernel image automatically, is this possible ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have not called the hab_auth_img API from u-boot.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 16:39:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mm-secure-boot-enable/m-p/1211071#M167697</guid>
      <dc:creator>antonio_santagi</dc:creator>
      <dc:date>2021-01-13T16:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: imx8mm secure boot enable</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mm-secure-boot-enable/m-p/1211515#M167728</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/120713"&gt;@antonio_santagi&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; yes, HAB is trying checking the Kernel image automatically - please try to add it.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Yuri.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2021 06:18:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mm-secure-boot-enable/m-p/1211515#M167728</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2021-01-14T06:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: imx8mm secure boot enable</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mm-secure-boot-enable/m-p/1211629#M167745</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;this is very interesting.&amp;nbsp;&lt;/P&gt;&lt;P&gt;is this mentioned somewhere in the docs ? I thought I should have manually extend the u-boot to achieve this Kernel checking.&lt;/P&gt;&lt;P&gt;I have now another SD card with different u-boot version ( the one &lt;SPAN&gt;v2019.04_4.19.35_1.1.0 ) and HAB does not do this automatic checking of the Kernel image. I can reach the u-boot prompt.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What does the HAB's choice of Kernel image checking or not checking depend upon ? Does it depend on the env variables ? Or the content of the Filesystem ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thank you&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2021 08:53:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mm-secure-boot-enable/m-p/1211629#M167745</guid>
      <dc:creator>antonio_santagi</dc:creator>
      <dc:date>2021-01-14T08:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: imx8mm secure boot enable</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mm-secure-boot-enable/m-p/1211668#M167751</link>
      <description>&lt;P&gt;Now I have added to the SD card the full rootfs and kernel image but still u-boot hangs at that point.&lt;/P&gt;&lt;P&gt;I am using U-Boot SPL 2019.04-imx_v2019.04_4.19.35_1.0.0+g85bdcc7 and I have also OPTEE in the signed_flash.bin so I am missing patch for 1.1.0 at the moment.&lt;/P&gt;&lt;P&gt;I see the address that is trying to authenticate image from is&amp;nbsp;&lt;SPAN&gt;0x401fcdc0, this corresponds to sld_hab_block&amp;nbsp; in my build log and I have added it as required to the csf_fit.txt&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2021 09:30:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mm-secure-boot-enable/m-p/1211668#M167751</guid>
      <dc:creator>antonio_santagi</dc:creator>
      <dc:date>2021-01-14T09:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: imx8mm secure boot enable</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mm-secure-boot-enable/m-p/1211693#M167754</link>
      <description>&lt;P&gt;Hello&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;apparently my problem of u-boot stuck when locked secure boot mode is enabled is solved now that I added further command to unlock the CAAM module, as per your guide this should be added and I had not added because I did not know in our particular ( non standard )&amp;nbsp; condition that was to be applied.&lt;/P&gt;&lt;P&gt;With the CAAM unlock additional command I can get to a working u-boot console .Now the u-boot is not stuck and instead it stops on console prompt because Kernel image is not signed. So you were correct in saying the HAB automatically tries to check the Kernel image.&amp;nbsp; Is this a quite recent feature ? I could not see the Kernel Image automatic verification happening when the processor was not in locked secure mode.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2021 13:51:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mm-secure-boot-enable/m-p/1211693#M167754</guid>
      <dc:creator>antonio_santagi</dc:creator>
      <dc:date>2021-01-14T13:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: imx8mm secure boot enable</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mm-secure-boot-enable/m-p/1212306#M167809</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/120713"&gt;@antonio_santagi&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; check Your U-Boot bootcmd - it can include hab_auth_img&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Yuri.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 09:49:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mm-secure-boot-enable/m-p/1212306#M167809</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2021-01-15T09:49:52Z</dc:date>
    </item>
  </channel>
</rss>

