<?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: imx8mm not starting kernel when enabling verified boot</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx8mm-not-starting-kernel-when-enabling-verified-boot/m-p/1189372#M165527</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can refer ro this file&lt;A href="https://www.nxp.com/docs/en/application-note/AN4581.pdf" target="_self"&gt;https://www.nxp.com/docs/en/application-note/AN4581.pdf&lt;/A&gt;&amp;nbsp;and other community about HABV4.&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Zhiming&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Nov 2020 02:38:20 GMT</pubDate>
    <dc:creator>Zhiming_Liu</dc:creator>
    <dc:date>2020-11-26T02:38:20Z</dc:date>
    <item>
      <title>imx8mm not starting kernel when enabling verified boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mm-not-starting-kernel-when-enabling-verified-boot/m-p/1187584#M165380</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to get verified boot to work on a custom board based on the i.MX 8M Mini EVK.&lt;/P&gt;&lt;P&gt;I have modified the code in the branch branch&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; imx_v2020.04_5.4.47_2.2.0&lt;/P&gt;&lt;P&gt;from the repo&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &lt;A href="https://source.codeaurora.org/external/imx/uboot-imx" target="_blank"&gt;https://source.codeaurora.org/external/imx/uboot-imx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;to match my board and I am able to boot Linux.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I follow the receipe in&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; doc/uImage.FIT/signature.txt&lt;/P&gt;&lt;P&gt;and add a public key to my dts file and the following to my defconfig&lt;/P&gt;&lt;P&gt;CONFIG_FIT_SIGNATURE=y&lt;BR /&gt;CONFIG_SPL_RSA=y&lt;/P&gt;&lt;P&gt;What I observe is that the signature is successfully verified but the Kernel is not started.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The last print out from u-boot is:&lt;/P&gt;&lt;P&gt;==========================================================&lt;/P&gt;&lt;P&gt;## Loading fdt from FIT Image at 40480000 ...&lt;BR /&gt;Using 'conf-1' configuration&lt;BR /&gt;Verifying Hash Integrity ... OK&lt;BR /&gt;Trying 'fdt-0' fdt subimage&lt;BR /&gt;Description: Flattened Device Tree blob&lt;BR /&gt;Type: Flat Device Tree&lt;BR /&gt;Compression: uncompressed&lt;BR /&gt;Data Start: 0x413b3b6c&lt;BR /&gt;Data Size: 37477 Bytes = 36.6 KiB&lt;BR /&gt;Architecture: AArch64&lt;BR /&gt;Hash algo: sha1&lt;BR /&gt;Hash value: d17e6dae443d3b59eb5ae62e41ad65c2cd54e75b&lt;BR /&gt;Sign algo: sha1,rsa2048:dev&lt;BR /&gt;Sign value: 4d28bdd3ce1df8e9d93e37b1f9ec6f60e89d1e278f94ca72958b1d7f35ab5abb9586900cf7a9e31440765af3339434713514116c1435&lt;BR /&gt;Verifying Hash Integrity ... sha1,rsa2048:dev+ sha1+ OK&lt;BR /&gt;Booting using the fdt blob at 0x413b3b6c&lt;BR /&gt;Loading Kernel Image&lt;BR /&gt;Using Device Tree in place at 00000000413b3b6c, end 00000000413bfdd0&lt;/P&gt;&lt;P&gt;Starting kernel ...&lt;/P&gt;&lt;P&gt;unable to select a mode&lt;BR /&gt;device_remove: Device 'mmc@30b60000.blk' failed to remove, but children are gone&lt;/P&gt;&lt;P&gt;==========================================================&lt;/P&gt;&lt;P&gt;The signature check was successful and u-boot should now boot the same Linux kernel that we know to work.&lt;/P&gt;&lt;P&gt;The last thing u-boot is doing is to call armv8_switch_to_el2() in the file arch/arm/lib/bootm.c.&lt;/P&gt;&lt;P&gt;Note that the mmc error message is also present when I am able to boot Linux without verified boot.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anyone out there that recognize this behavior and can provide me with some clues? Perhaps some missing configs?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lars&lt;/P&gt;</description>
      <pubDate>Mon, 23 Nov 2020 15:53:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mm-not-starting-kernel-when-enabling-verified-boot/m-p/1187584#M165380</guid>
      <dc:creator>LarsIndresaeter</dc:creator>
      <dc:date>2020-11-23T15:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: imx8mm not starting kernel when enabling verified boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mm-not-starting-kernel-when-enabling-verified-boot/m-p/1189372#M165527</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can refer ro this file&lt;A href="https://www.nxp.com/docs/en/application-note/AN4581.pdf" target="_self"&gt;https://www.nxp.com/docs/en/application-note/AN4581.pdf&lt;/A&gt;&amp;nbsp;and other community about HABV4.&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Zhiming&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2020 02:38:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mm-not-starting-kernel-when-enabling-verified-boot/m-p/1189372#M165527</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2020-11-26T02:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: imx8mm not starting kernel when enabling verified boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mm-not-starting-kernel-when-enabling-verified-boot/m-p/1189783#M165596</link>
      <description>&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;What I am attempting to do is to extend the root of trust from u-boot using verified boot. U-boot will eventually be signed by HABv4.&lt;/P&gt;&lt;P&gt;The kernel and ramdisk is signed using a separate process and the public key from this process is embedded in u-boot.bin.&lt;/P&gt;&lt;P&gt;I have tried this with the branch imx_v2018.03_4.14.98_2.1.0 (and corresponding versions for the kernel and atf). With this version I can get HABv4 to work and I can get verified boot to work but not both at the same time.&lt;/P&gt;&lt;P&gt;Since it is a good idea to use a more recent version of u-boot I decided to use u-boot branch&amp;nbsp;imx_v2020.04_5.4.47_2.2.0 but now I am not able to get verified boot to work.&lt;BR /&gt;&lt;BR /&gt;All this makes me wonder if HABv4 and verified boot works together and if it is tested by NXP.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2020 14:41:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mm-not-starting-kernel-when-enabling-verified-boot/m-p/1189783#M165596</guid>
      <dc:creator>LarsIndresaeter</dc:creator>
      <dc:date>2020-11-26T14:41:27Z</dc:date>
    </item>
  </channel>
</rss>

