<?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: imx8qxp-mek secure boot in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx8qxp-mek-secure-boot/m-p/1752705#M215296</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/192970"&gt;@Harvey021&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for reply,&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) which container needs to be signed for uboot final signed image flash.bin if we are following flash_spl target. As per soc.mk of imx-mkimage. flash_spl contains below 3 containers.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/nxp-imx/uboot-imx/blob/lf_v2023.04/doc/imx/ahab/guides/mx8_mx8x_spl_secure_boot.txt" target="_blank" rel="noopener"&gt;https://github.com/nxp-imx/uboot-imx/blob/lf_v2023.04/doc/imx/ahab/guides/mx8_mx8x_spl_secure_boot.txt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; a)&amp;nbsp;scfw_tcm.bin&lt;/P&gt;&lt;P&gt;&amp;nbsp; b) u-boot-spl.bin&lt;/P&gt;&lt;P&gt;c) u-boot-atf-container.img&lt;/P&gt;&lt;P&gt;From above which needs to be signed . In above link doc its describing about signing of u-boot-proper+atf only but at line L- 212, it says that&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The flash.bin file include three containers and the second container have to be&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;signed using the Code Signing Tool (CST).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;So , it means that 2nd container here "u-boot-spl.bin" also needs to get signed using cst tool. If yes then how will we get the Container offset and signature of this binary ? its not mentioned in the doc.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2) We don't have to sign the&amp;nbsp;scfw_tcm.bin ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3) I have generated the cst key having enabled the CA flags in that while generating the SRK certificate so , I am confused which csf file should i use (a)&amp;nbsp;csf_boot_image.txt or&amp;nbsp;csf_boot_image_sgk.txt ?&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please suggest on these doubts.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Regards,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Rk&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Nov 2023 09:36:39 GMT</pubDate>
    <dc:creator>rakesh3</dc:creator>
    <dc:date>2023-11-06T09:36:39Z</dc:date>
    <item>
      <title>imx8qxp-mek secure boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8qxp-mek-secure-boot/m-p/1749497#M214984</link>
      <description>&lt;P&gt;I am using the imx8qxp-mek board and implementing the secure boot.&lt;/P&gt;&lt;P&gt;But I am getting the below ahab events while running the ahab status .&lt;/P&gt;&lt;P&gt;=&amp;gt; ahab_status&lt;BR /&gt;Lifecycle: 0x0020, NXP closed&lt;/P&gt;&lt;P&gt;SECO Event[0] = 0x0087EE00&lt;BR /&gt;CMD = AHAB_AUTH_CONTAINER_REQ (0x87)&lt;BR /&gt;IND = AHAB_NO_AUTHENTICATION_IND (0xEE)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And also I am using the op-tee os and while at boot up time I am getting below warning messages.&lt;/P&gt;&lt;P&gt;I/TC: Non-secure external DT found&lt;BR /&gt;I/TC: OP-TEE version: 4e32281 (gcc version 12.2.0 (Debian 12.2.0-14)) #1 Thu Jan 1 01:00:00 UTC 1970 aarch64&lt;BR /&gt;I/TC: WARNING: This OP-TEE configuration might be insecure!&lt;BR /&gt;I/TC: WARNING: Please check &lt;A href="https://optee.readthedocs.io/en/latest/architecture/porting_guidelines.html" target="_blank"&gt;https://optee.readthedocs.io/en/latest/architecture/porting_guidelines.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could this be the cause of this ahab status events or not ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I checked the events code means, its saying that container is not signed But i have signed the image using cst tool.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please suggest me on this issue.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rk&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 10:57:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8qxp-mek-secure-boot/m-p/1749497#M214984</guid>
      <dc:creator>rakesh3</dc:creator>
      <dc:date>2023-10-31T10:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: imx8qxp-mek secure boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8qxp-mek-secure-boot/m-p/1750840#M215099</link>
      <description>&lt;P&gt;The error is telling that&amp;nbsp;&lt;SPAN&gt;container is not signed (signature is missing).&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;if you run make SOC=iMX8QX flash_spl, you should see another container signature block from print log for signing.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can refer to soc.mak for what images you need to compile.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Harvey&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2023 07:03:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8qxp-mek-secure-boot/m-p/1750840#M215099</guid>
      <dc:creator>Harvey021</dc:creator>
      <dc:date>2023-11-02T07:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: imx8qxp-mek secure boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8qxp-mek-secure-boot/m-p/1751008#M215120</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/192970"&gt;@Harvey021&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for reply.&lt;/P&gt;&lt;P&gt;I have all the required images for flash_spl , checked in the soc.mk file.&lt;/P&gt;&lt;P&gt;I am following the below file&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/nxp-imx/uboot-imx/blob/lf_v2023.04/doc/imx/ahab/guides/mx8_mx8x_secure_boot.txt" target="_blank" rel="noopener"&gt;https://github.com/nxp-imx/uboot-imx/blob/lf_v2023.04/doc/imx/ahab/guides/mx8_mx8x_secure_boot.txt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;for flash_spl which seems incorrect. I should have followed the below one instead of above one.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/nxp-imx/uboot-imx/blob/lf_v2023.04/doc/imx/ahab/guides/mx8_mx8x_spl_secure_boot.txt" target="_blank" rel="noopener"&gt;https://github.com/nxp-imx/uboot-imx/blob/lf_v2023.04/doc/imx/ahab/guides/mx8_mx8x_spl_secure_boot.txt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;since i am building the image for flash_spl&lt;/P&gt;&lt;P&gt;$cd imx-mkimage&lt;/P&gt;&lt;P&gt;$make SOC=iMX8QX flash_spl&lt;/P&gt;&lt;P&gt;In the above one document we have to sign the u-boot-atf image also and then sign the flash.bin after&amp;nbsp;&lt;/P&gt;&lt;P&gt;$make SOC=iMX8QX flash_spl&amp;nbsp;&lt;/P&gt;&lt;P&gt;But after this also I am getting the same error code,which says image is not signed .&lt;/P&gt;&lt;P&gt;SECO Event[1] = 0x0087EE00&lt;BR /&gt;CMD = AHAB_AUTH_CONTAINER_REQ (0x87)&lt;BR /&gt;IND = AHAB_NO_AUTHENTICATION_IND (0xEE)&lt;/P&gt;&lt;P&gt;flash_spl needed following bins.&lt;/P&gt;&lt;P&gt;flash_spl: $(MKIMG) $(AHAB_IMG) scfw_tcm.bin u-boot-spl.bin u-boot-atf-container.img&lt;/P&gt;&lt;P&gt;1) scfw_tcm.bin&lt;/P&gt;&lt;P&gt;2) ub-too-spl.bin&lt;/P&gt;&lt;P&gt;3) u-boot-atf-container.img&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here do we need to sign the u-boot-atf-container.img file also as mentioned in &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://github.com/nxp-imx/uboot-imx/blob/lf_v2023.04/doc/imx/ahab/guides/mx8_mx8x_spl_secure_boot.txt" target="_blank" rel="noopener"&gt;https://github.com/nxp-imx/uboot-imx/blob/lf_v2023.04/doc/imx/ahab/guides/mx8_mx8x_spl_secure_boot.txt&lt;/A&gt;?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where I am missing the steps ? Am i following the correct document or missing any steps for this . ?&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Also I am flashing the signed flash.bin image to uboot as below cmd&lt;/P&gt;&lt;P&gt;$sudo dd if=signed_flash.bin of=/dev/mmcblk0 bs=1k seek=32; sync&lt;/P&gt;&lt;P&gt;Please suggest on this! Its quite seems complicated than it mentioned in doc.&lt;/P&gt;&lt;P&gt;Please help me on this secure boot steps.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rk&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2023 09:41:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8qxp-mek-secure-boot/m-p/1751008#M215120</guid>
      <dc:creator>rakesh3</dc:creator>
      <dc:date>2023-11-02T09:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: imx8qxp-mek secure boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8qxp-mek-secure-boot/m-p/1751037#M215125</link>
      <description>&lt;P&gt;You need to sign&amp;nbsp;u-boot-atf-container.img if target is flash_spl. refer to:&amp;nbsp;&lt;A href="https://github.com/nxp-imx/uboot-imx/blob/lf_v2023.04/doc/imx/ahab/guides/mx8_mx8x_spl_secure_boot.txt" target="_blank"&gt;uboot-imx/doc/imx/ahab/guides/mx8_mx8x_spl_secure_boot.txt at lf_v2023.04 · nxp-imx/uboot-imx · GitHub&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Harvey&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2023 10:15:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8qxp-mek-secure-boot/m-p/1751037#M215125</guid>
      <dc:creator>Harvey021</dc:creator>
      <dc:date>2023-11-02T10:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: imx8qxp-mek secure boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8qxp-mek-secure-boot/m-p/1752314#M215242</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/192970"&gt;@Harvey021&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for reply,&amp;nbsp;&lt;/P&gt;&lt;P&gt;During the signing process of uboot-atf in debian rules override_dh_auto_build process, while running the below code&amp;nbsp;&lt;/P&gt;&lt;P&gt;Certain doubts:&lt;/P&gt;&lt;P&gt;1) which container needs to be signed for uboot final signed image flash.bin if we are following flash_spl target. As per soc.mk of imx-mkimage. flash_spl contains below 3 containers.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/nxp-imx/uboot-imx/blob/lf_v2023.04/doc/imx/ahab/guides/mx8_mx8x_spl_secure_boot.txt" target="_blank" rel="noopener"&gt;https://github.com/nxp-imx/uboot-imx/blob/lf_v2023.04/doc/imx/ahab/guides/mx8_mx8x_spl_secure_boot.txt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; a)&amp;nbsp;scfw_tcm.bin&lt;/P&gt;&lt;P&gt;&amp;nbsp; b) u-boot-spl.bin&lt;/P&gt;&lt;P&gt;c) u-boot-atf-container.img&lt;/P&gt;&lt;P&gt;From above which needs to be signed . In above link doc its describing about signing of u-boot-proper+atf only but at line L- 212, it says that&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;The flash.bin file include three containers and the second container have to be&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;signed using the Code Signing Tool (CST).&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;So , it means that 2nd container here "u-boot-spl.bin" also needs to get signed using cst tool. If yes then how will we get the Container offset and signature of this binary ? its not mentioned in the doc.&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;2) We don't have to sign the&amp;nbsp;scfw_tcm.bin ?&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;3) I have generated the cst key having enabled the CA flags in that while generating the SRK certificate so , I am confused which csf file should i use (a)&amp;nbsp;csf_boot_image.txt or&amp;nbsp;&lt;SPAN&gt;csf_boot_image_sgk.txt ?&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;bash ./bin/cst -i csf_uboot_atf.txt -o signed-u-boot-atf-container.img&lt;/P&gt;&lt;P&gt;I am getting the below error.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;bash:&amp;nbsp;./bin/cst: ./bin/cst: cannot execute binary file,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/release/linux64/bin$ file cst&lt;BR /&gt;cst: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=a7c94f18b0d664d9d03f1a28ed2979ac407044a1, stripped&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Seems like this cst binary is build for x86-64 ? Can we get the cst binary for ARM64 ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Could you please give some suggestion on this ! it will be helpful&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rk&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 07:59:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8qxp-mek-secure-boot/m-p/1752314#M215242</guid>
      <dc:creator>rakesh3</dc:creator>
      <dc:date>2023-11-06T07:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: imx8qxp-mek secure boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8qxp-mek-secure-boot/m-p/1752705#M215296</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/192970"&gt;@Harvey021&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for reply,&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) which container needs to be signed for uboot final signed image flash.bin if we are following flash_spl target. As per soc.mk of imx-mkimage. flash_spl contains below 3 containers.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/nxp-imx/uboot-imx/blob/lf_v2023.04/doc/imx/ahab/guides/mx8_mx8x_spl_secure_boot.txt" target="_blank" rel="noopener"&gt;https://github.com/nxp-imx/uboot-imx/blob/lf_v2023.04/doc/imx/ahab/guides/mx8_mx8x_spl_secure_boot.txt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; a)&amp;nbsp;scfw_tcm.bin&lt;/P&gt;&lt;P&gt;&amp;nbsp; b) u-boot-spl.bin&lt;/P&gt;&lt;P&gt;c) u-boot-atf-container.img&lt;/P&gt;&lt;P&gt;From above which needs to be signed . In above link doc its describing about signing of u-boot-proper+atf only but at line L- 212, it says that&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The flash.bin file include three containers and the second container have to be&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;signed using the Code Signing Tool (CST).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;So , it means that 2nd container here "u-boot-spl.bin" also needs to get signed using cst tool. If yes then how will we get the Container offset and signature of this binary ? its not mentioned in the doc.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2) We don't have to sign the&amp;nbsp;scfw_tcm.bin ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3) I have generated the cst key having enabled the CA flags in that while generating the SRK certificate so , I am confused which csf file should i use (a)&amp;nbsp;csf_boot_image.txt or&amp;nbsp;csf_boot_image_sgk.txt ?&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please suggest on these doubts.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Regards,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Rk&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 09:36:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8qxp-mek-secure-boot/m-p/1752705#M215296</guid>
      <dc:creator>rakesh3</dc:creator>
      <dc:date>2023-11-06T09:36:39Z</dc:date>
    </item>
  </channel>
</rss>

