<?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: secure boot issue on imx93 platform</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/secure-boot-issue-on-imx93-platform/m-p/2009749#M231703</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/143397"&gt;@meng_li&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry to reply to you with delay, as I've just got confirmation that i.MX91/i.MX93/i.MX8ULP products do not support for SGK and as a result, the change on SRM and related documents will be reflected in next release.&lt;/P&gt;
&lt;P&gt;So, to your question about&lt;/P&gt;
&lt;P&gt;"&lt;SPAN class=""&gt;Could you please to check whether there are something with my #Install Certificate configure?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;How should I set the parameters in section #Install Certificate ?&lt;/SPAN&gt;"&lt;/P&gt;
&lt;P&gt;The command block for #Install Certificate won't be applicable for these products, such as, i.MX91/i.MX93/i.MX8ULP. Instead of that, please refer to the&amp;nbsp;&lt;A href="https://github.com/nxp-imx/uboot-imx/blob/lf_v2024.04/doc/imx/ahab/csf_examples/csf_boot_image.txt" target="_self"&gt;csf_boot_image.txt&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://github.com/nxp-imx/uboot-imx/blob/lf_v2024.04/doc/imx/ahab/csf_examples/csf_uboot_atf.txt" target="_self"&gt;csf_uboot_atf.txt&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Please feel free to let know if your question has not been answered yet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Harvey&lt;/P&gt;</description>
    <pubDate>Mon, 09 Dec 2024 06:29:51 GMT</pubDate>
    <dc:creator>Harvey021</dc:creator>
    <dc:date>2024-12-09T06:29:51Z</dc:date>
    <item>
      <title>secure boot issue on imx93 platform</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/secure-boot-issue-on-imx93-platform/m-p/2003569#M231323</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I am working on secure boot feature on imx93 platform, and my steps as below: &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;1. cst-3.4.1 download &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;A href="https://www.nxp.com/webapp/Download?colCode=IMX_CST_TOOL_NEW&amp;amp;appType=license" target="_blank" rel="noopener"&gt;https://www.nxp.com/webapp/Download?colCode=IMX_CST_TOOL_NEW&amp;amp;appType=license&lt;/A&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;tar zxvf IMX_CST_TOOL_NEW.tgz &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;2. //Generating a PKI tree including a subordinate SGK key &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;cd cst-3.4.1/keys &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;./ahab_pki_tree.sh &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Do you want to use an existing CA key (y/n)?: n&lt;/P&gt;&lt;P&gt;Key type options (confirm targeted device supports desired key type):&lt;BR /&gt;Select the key type (possible values: rsa, rsa-pss, ecc)?: ecc&lt;BR /&gt;Enter length for elliptic curve to be used for PKI tree:&lt;BR /&gt;Possible values p256, p384, p521: p384&lt;BR /&gt;Enter the digest algorithm to use: sha384&lt;BR /&gt;Enter PKI tree duration (years): 5&lt;BR /&gt;Do you want the SRK certificates to have the CA flag set? (y/n)?: y&lt;/P&gt;&lt;P&gt;//Generating SRK Table and SRK Hash&lt;BR /&gt;cd cst-3.4.1/crts/&lt;BR /&gt;../linux64/bin/srktool -a -d sha256 -s sha384 -t SRK_1_2_3_4_table.bin -e SRK_1_2_3_4_fuse.bin -f 1 -c SRK1_sha384_secp384r1_v3_ca_crt.pem,SRK2_sha384_secp384r1_v3_ca_crt.pem,SRK3_sha384_secp384r1_v3_ca_crt.pem,SRK4_sha384_secp384r1_v3_ca_crt.pem&lt;BR /&gt;Number of certificates = 4&lt;BR /&gt;SRK table binary filename = SRK_1_2_3_4_table.bin&lt;BR /&gt;SRK Fuse binary filename = SRK_1_2_3_4_fuse.bin&lt;BR /&gt;SRK Fuse binary dump:&lt;BR /&gt;SRK HASH[0] = 0xB3E92A59&lt;BR /&gt;SRK HASH[1] = 0xA91F3763&lt;BR /&gt;SRK HASH[2] = 0xD92AE6E9&lt;BR /&gt;SRK HASH[3] = 0xB23C81A9&lt;BR /&gt;SRK HASH[4] = 0x4582BFC3&lt;BR /&gt;SRK HASH[5] = 0x290673E9&lt;BR /&gt;SRK HASH[6] = 0x9FDDE87B&lt;BR /&gt;SRK HASH[7] = 0xCAC12EFC&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;3. Programming SRK Hash with u-boot command line &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;=&amp;gt; fuse prog 16 0 0xb3e92a59&lt;BR /&gt;=&amp;gt; fuse prog 16 1 0xa91f3763&lt;BR /&gt;=&amp;gt; fuse prog 16 2 0xd92ae6e9&lt;BR /&gt;=&amp;gt; fuse prog 16 3 0xb23c81a9&lt;BR /&gt;=&amp;gt; fuse prog 16 4 0x4582bfc3&lt;BR /&gt;=&amp;gt; fuse prog 16 5 0x290673e9&lt;BR /&gt;=&amp;gt; fuse prog 16 6 0x9fdde87b&lt;BR /&gt;=&amp;gt; fuse prog 16 7 0xcac12efc&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;4. build secure boot yocto project &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;repo init -u &lt;A href="https://github.com/nxp-imx/imx-manifest" target="_blank" rel="noopener"&gt;https://github.com/nxp-imx/imx-manifest&lt;/A&gt; -b imx-linux-mickledore -m imx-6.1.55-2.2.0_security-reference-design.xml &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;repo sync DISTRO=fsl-imx-xwayland MACHINE=imx93evk source &lt;A href="http://imx-setup-release.sh" target="_blank" rel="noopener"&gt;imx-setup-release.sh&lt;/A&gt; -b build-xwayland-imx93evk-secureboot &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;bitbake-layers add-layer ../sources/meta-nxp-security-reference-design/meta-secure-boot &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;//add CST_PATH in local.conf CST_PATH = "/buildssd/mli1/wr1023-build-test/sdk-nxp-yocto-mickledore-secureboot/imx93_cst/cst-3.4.1" &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;//change the meta-secure-boot/recipes-secure-boot/cst-signer/&lt;A href="http://cst-signer.bb" target="_blank" rel="noopener"&gt;cst-signer.bb&lt;/A&gt; to use my srk and sgk &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;--- a/meta-secure-boot/recipes-secure-boot/cst-signer/cst-signer.bb&lt;BR /&gt;+++ b/meta-secure-boot/recipes-secure-boot/cst-signer/cst-signer.bb&lt;BR /&gt;@@ -18,6 +18,9 @@ BOOT_TOOLS = "imx-boot-tools"&lt;BR /&gt;do_deploy () {&lt;BR /&gt;install -d ${DEPLOYDIR}/${BOOT_TOOLS}&lt;BR /&gt;install -m 0755 ${S}/cst_signer ${DEPLOYDIR}/${BOOT_TOOLS}&lt;BR /&gt;+ sed -e 's/SRK1_sha256_prime256v1_v3_ca_crt/SRK1_sha384_secp384r1_v3_ca_crt/' -i ${S}/csf_ahab.cfg.sample&lt;BR /&gt;+ sed -e 's/sgk_file=/sgk_file=SGK1_1_sha384_secp384r1_v3_usr_crt.pem/' -i ${S}/csf_ahab.cfg.sample&lt;BR /&gt;+ sed -e 's/sgk_permissions=/sgk_permissions=0x1/' -i ${S}/csf_ahab.cfg.sample&lt;BR /&gt;install -m 0755 ${S}/csf_ahab.cfg.sample ${DEPLOYDIR}/${BOOT_TOOLS}&lt;BR /&gt;install -m 0755 ${S}/csf_hab4.cfg.sample ${DEPLOYDIR}/${BOOT_TOOLS}&lt;BR /&gt;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;bitbake imx-boot-signature &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;after building bootloader image, I get the signed-imx-boot-imx93evk-sd.bin-flash_singleboot, and burn into sd card with below command &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;sudo dd if=xxx/signed-imx-boot-imx93evk-sd.bin-flash_singleboot of=/dev/sdd bs=1k seek=32 conv=fsync,notrunc and and then power board and run below ahab_status in u-boot, there is below error event &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;u-boot=&amp;gt; ahab_status &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Lifecycle: 0x00000008, OEM Open &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;0x0287f0d6 &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;IPC = MU APD (0x2) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;CMD = ELE_OEM_CNTN_AUTH_REQ (0x87) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;IND = ELE_BAD_SIGNATURE_FAILURE_IND (0xF0) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;STA = ELE_SUCCESS_IND (0xD6) 0x0287f0d6 &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;IPC = MU APD (0x2) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;CMD = ELE_OEM_CNTN_AUTH_REQ (0x87) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;IND = ELE_BAD_SIGNATURE_FAILURE_IND (0xF0) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;STA = ELE_SUCCESS_IND (0xD6) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;BUT if I don't use the SGK key, there is not error event. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;during building bootloader, my csf.cfg as below &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;#Header&lt;BR /&gt;header_version=1.0&lt;BR /&gt;#Install SRK&lt;BR /&gt;srktable_file=SRK_1_2_3_4_table.bin&lt;BR /&gt;srk_source=SRK1_sha384_secp384r1_v3_ca_crt.pem&lt;BR /&gt;srk_source_index=0&lt;BR /&gt;srk_source_set=OEM&lt;BR /&gt;srk_revocations=0x0&lt;BR /&gt;#Install Certificate&lt;BR /&gt;sgk_file=SGK1_1_sha384_secp384r1_v3_usr_crt.pem&lt;BR /&gt;sgk_permissions=0x1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;and generate container_2.csf and container_3.csf, the reason of secure boot failure is the #Install Certificate section. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Could you please to check whether there are something with my #Install Certificate configure? &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;How should I set the parameters in section #Install Certificate ? &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;thanks, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Limeng&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2024 09:04:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/secure-boot-issue-on-imx93-platform/m-p/2003569#M231323</guid>
      <dc:creator>meng_li</dc:creator>
      <dc:date>2024-11-28T09:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: secure boot issue on imx93 platform</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/secure-boot-issue-on-imx93-platform/m-p/2009749#M231703</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/143397"&gt;@meng_li&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry to reply to you with delay, as I've just got confirmation that i.MX91/i.MX93/i.MX8ULP products do not support for SGK and as a result, the change on SRM and related documents will be reflected in next release.&lt;/P&gt;
&lt;P&gt;So, to your question about&lt;/P&gt;
&lt;P&gt;"&lt;SPAN class=""&gt;Could you please to check whether there are something with my #Install Certificate configure?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;How should I set the parameters in section #Install Certificate ?&lt;/SPAN&gt;"&lt;/P&gt;
&lt;P&gt;The command block for #Install Certificate won't be applicable for these products, such as, i.MX91/i.MX93/i.MX8ULP. Instead of that, please refer to the&amp;nbsp;&lt;A href="https://github.com/nxp-imx/uboot-imx/blob/lf_v2024.04/doc/imx/ahab/csf_examples/csf_boot_image.txt" target="_self"&gt;csf_boot_image.txt&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://github.com/nxp-imx/uboot-imx/blob/lf_v2024.04/doc/imx/ahab/csf_examples/csf_uboot_atf.txt" target="_self"&gt;csf_uboot_atf.txt&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Please feel free to let know if your question has not been answered yet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Harvey&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2024 06:29:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/secure-boot-issue-on-imx93-platform/m-p/2009749#M231703</guid>
      <dc:creator>Harvey021</dc:creator>
      <dc:date>2024-12-09T06:29:51Z</dc:date>
    </item>
  </channel>
</rss>

