<?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: imx8qxp-mek kernel signing</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx8qxp-mek-kernel-signing/m-p/1746343#M214706</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/212816"&gt;@rakesh3&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I hope you're doing well! Sorry for the late reply.&lt;/P&gt;&lt;P&gt;Make sure you have all needed files in your directory in order to successfully build the image. I'd suggest reviewing the following guide&amp;nbsp;&lt;A href="https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX8-Boot-process-and-creating-a-bootable-image/ta-p/1101253" target="_blank"&gt;i.MX8 Boot process and creating a bootable image - NXP Community&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also double check the following (from &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"&gt;uboot-imx/doc/imx/ahab/guides/mx8_mx8x_secure_boot.txt at lf_v2023.04 · nxp-imx/uboot-imx · GitHub&lt;/A&gt;&lt;LI-EMOJI id="lia_disappointed-face" title=":disappointed_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Before continuing, be sure to have already downloaded and built the
following:

- imx-mkimage downloaded and built with i.MX 8 container support.
- SECO firmware downloaded.
- U-Boot downloaded and built. Please check section 1.2.
- ARM Trusted Firmware (ATF) downloaded and built for your target.
- System Controller Firmware (SCFW).
- Kernel image.&lt;/LI-CODE&gt;&lt;P&gt;Let me know if this was of any help!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Hector.&lt;/P&gt;</description>
    <pubDate>Wed, 25 Oct 2023 19:53:48 GMT</pubDate>
    <dc:creator>hector_delgado</dc:creator>
    <dc:date>2023-10-25T19:53:48Z</dc:date>
    <item>
      <title>imx8qxp-mek kernel signing</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8qxp-mek-kernel-signing/m-p/1743167#M214453</link>
      <description>&lt;P&gt;Hi team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;I am using the linux kernel branch&amp;nbsp;lf-6.1.36_2.1.0, I am implementig the secure boot in imx8qxp-mek board .&lt;/P&gt;&lt;P&gt;But how to get the signed image of kernel ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Somewhere it is mention about to use&amp;nbsp; the imx-mkimage tool. I tried that also but getting error.&lt;/P&gt;&lt;P&gt;$/imx-mkimage (lf-6.1.36_2.1.0)$ make SOC=iMX8QX flash_linux_m4&lt;BR /&gt;Compiling mkimage_imx8&lt;BR /&gt;include misc.mak&lt;BR /&gt;include m4.mak&lt;BR /&gt;include android.mak&lt;BR /&gt;include test.mak&lt;BR /&gt;include autobuild.mak&lt;BR /&gt;include alias.mak&lt;BR /&gt;make[1]: *** No rule to make target 'mx8qxb0-ahab-container.img', needed by 'flash_linux_m4'. Stop.&lt;BR /&gt;make: *** [Makefile:26: flash_linux_m4] Error 2&lt;/P&gt;&lt;P&gt;is the metione imx-mkimage command looks fine ? any reference for signing kernel.&lt;/P&gt;&lt;P&gt;imx-mkimage&amp;nbsp; command to create the signed img ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please suggest on this issue&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards,&lt;/P&gt;&lt;P&gt;RK&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 19:04:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8qxp-mek-kernel-signing/m-p/1743167#M214453</guid>
      <dc:creator>rakesh3</dc:creator>
      <dc:date>2023-10-19T19:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: imx8qxp-mek kernel signing</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8qxp-mek-kernel-signing/m-p/1746343#M214706</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/212816"&gt;@rakesh3&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I hope you're doing well! Sorry for the late reply.&lt;/P&gt;&lt;P&gt;Make sure you have all needed files in your directory in order to successfully build the image. I'd suggest reviewing the following guide&amp;nbsp;&lt;A href="https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX8-Boot-process-and-creating-a-bootable-image/ta-p/1101253" target="_blank"&gt;i.MX8 Boot process and creating a bootable image - NXP Community&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also double check the following (from &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"&gt;uboot-imx/doc/imx/ahab/guides/mx8_mx8x_secure_boot.txt at lf_v2023.04 · nxp-imx/uboot-imx · GitHub&lt;/A&gt;&lt;LI-EMOJI id="lia_disappointed-face" title=":disappointed_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Before continuing, be sure to have already downloaded and built the
following:

- imx-mkimage downloaded and built with i.MX 8 container support.
- SECO firmware downloaded.
- U-Boot downloaded and built. Please check section 1.2.
- ARM Trusted Firmware (ATF) downloaded and built for your target.
- System Controller Firmware (SCFW).
- Kernel image.&lt;/LI-CODE&gt;&lt;P&gt;Let me know if this was of any help!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Hector.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2023 19:53:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8qxp-mek-kernel-signing/m-p/1746343#M214706</guid>
      <dc:creator>hector_delgado</dc:creator>
      <dc:date>2023-10-25T19:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: imx8qxp-mek kernel signing</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8qxp-mek-kernel-signing/m-p/1748755#M214916</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/207913"&gt;@hector_delgado&lt;/a&gt;&amp;nbsp; for reply,&lt;/P&gt;&lt;P&gt;I have flashed the key with the below details of uboot build for&amp;nbsp;&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;I had got below details while building the uboot .&lt;/P&gt;&lt;P&gt;145408 bytes (145 kB, 142 KiB) copied, 0.00288485 s, 50.4 MB/s&lt;BR /&gt;282+1 records in&lt;BR /&gt;282+1 records out&lt;BR /&gt;144623 bytes (145 kB, 141 KiB) copied, 0.00315915 s, 45.8 MB/s&lt;BR /&gt;SOC: QX&lt;BR /&gt;REVISION: B0&lt;BR /&gt;DCD: skip&lt;BR /&gt;New Container: 0&lt;BR /&gt;SCFW: scfw_tcm.bin&lt;BR /&gt;AP: u-boot-spl.bin core: a35 addr: 0x00100000&lt;BR /&gt;Output: flash.bin&lt;BR /&gt;CONTAINER FUSE VERSION: 0x00&lt;BR /&gt;CONTAINER SW VERSION: 0x0000&lt;BR /&gt;ivt_offset: 1024&lt;BR /&gt;rev: 2&lt;BR /&gt;Platform: i.MX8QXP B0&lt;BR /&gt;ivt_offset: 1024&lt;BR /&gt;container image offset (aligned):13400&lt;BR /&gt;csf_off 0x13800&lt;BR /&gt;flags: 0x10&lt;BR /&gt;Hash of the images =&lt;BR /&gt;SCFW file_offset = 0x13400 size = 0x28400&lt;BR /&gt;Hash of the images =&lt;BR /&gt;AP file_offset = 0x3b800 size = 0x23800&lt;BR /&gt;CST: CONTAINER 0 offset: 0x400&lt;BR /&gt;CST: CONTAINER 0: Signature Block: offset is at 0x510&lt;BR /&gt;Offsets = 0x400 0x510&lt;BR /&gt;DONE.&lt;BR /&gt;Note: Please copy image to offset: IVT_OFFSET + IMAGE_OFFSET&lt;BR /&gt;append u-boot-atf-container.img at 380 KB&lt;BR /&gt;3146+0 records in&lt;BR /&gt;3146+0 records out&lt;BR /&gt;3221504 bytes (3.2 MB, 3.1 MiB) copied, 0.00977448 s, 330 MB/s&lt;/P&gt;&lt;P&gt;From the above details i had created the csf_boot_image.txt, Attached the csf file.&lt;/P&gt;&lt;P&gt;and created the uboot signed image.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the o/p of keys which i have flashed.&lt;/P&gt;&lt;P&gt;=&amp;gt; fuse read 0 730 16&lt;BR /&gt;Reading bank 0:&lt;/P&gt;&lt;P&gt;Word 0x000002da: 0f2b72e0 b198e649 a323e0e5 bb649ea0&lt;BR /&gt;Word 0x000002de: 5469e0f0 683d36d1 4efe867f e661f8ce&lt;BR /&gt;Word 0x000002e2: e40850fe 7ff51662 97772618 da8f51fa&lt;BR /&gt;Word 0x000002e6: 43854e5c 8c7b2d7d 0b7bbb73 49aab9c8&lt;BR /&gt;=&amp;gt;&lt;/P&gt;&lt;P&gt;I cross checked the keys with hash table as mentioned in&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/introduction_ahab.txt" target="_blank" rel="noopener"&gt;https://github.com/nxp-imx/uboot-imx/blob/lf_v2023.04/doc/imx/ahab/introduction_ahab.txt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But unfortunately , after flashing the keys while checking the ahab_status, I am getting the below SECO events.&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;sc_seco_get_event: idx: 1, res:3&lt;BR /&gt;&amp;nbsp;I also checked this event in&amp;nbsp;AN12312.pdf , its saying container image is not signed But I am sure its signed with the keys using CST tool.&lt;/P&gt;&lt;P&gt;Also I am getting the same size of signed and unsigned u-boot image.&lt;/P&gt;&lt;P&gt;$ls -l&lt;/P&gt;&lt;P&gt;-rw-r--r-- 1&amp;nbsp; user user 3610624 Oct 30 19:11 flash.signed.bin&lt;BR /&gt;-rw-r--r-- 1 user&amp;nbsp; user&amp;nbsp; 3610624 Oct 30 19:10 flash.bin&lt;/P&gt;&lt;P&gt;Is this correct ? Or should signed image be larger then unsigned img.?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please suggest on this issue, As its quite risky to flash the keys in another device&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rk&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 14:18:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8qxp-mek-kernel-signing/m-p/1748755#M214916</guid>
      <dc:creator>rakesh3</dc:creator>
      <dc:date>2023-10-30T14:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: imx8qxp-mek kernel signing</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8qxp-mek-kernel-signing/m-p/1757060#M215709</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/212816"&gt;@rakesh3&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Could you confirm if you're working with an M4 image?&amp;nbsp;&lt;/P&gt;&lt;P&gt;If so, please be aware of this note found on&amp;nbsp;&lt;A href="https://github.com/nxp-imx/uboot-imx/blob/lf_v2023.04/doc/imx/ahab/guides/mx8_mx8x_secure_boot.txt#L155C1-L155C1" target="_blank"&gt;uboot-imx/doc/imx/ahab/guides/mx8_mx8x_secure_boot.txt at lf_v2023.04 · nxp-imx/uboot-imx · GitHub&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Please note that on this example we not including an Cortex-M4 Image, on i.MX8/8x MEK boards the SCU console may be replaced by the M4 console not being possible to run the steps documented in section "1.5.5 Verify SECO events".&lt;/LI-CODE&gt;&lt;P&gt;Just making sure since your original post it seems to be an M4 image and you're using one of our MEK boards. Please let me know!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Hector.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2023 17:08:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8qxp-mek-kernel-signing/m-p/1757060#M215709</guid>
      <dc:creator>hector_delgado</dc:creator>
      <dc:date>2023-11-14T17:08:54Z</dc:date>
    </item>
  </channel>
</rss>

