<?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のトピックSecure boot on iMX8MM using HABv4</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Secure-boot-on-iMX8MM-using-HABv4/m-p/1550133#M197316</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;We are using iMX8MM board and trying to achieve Secure boot through HAB4.&lt;/P&gt;&lt;P&gt;Here is my flash.bin build log:&lt;/P&gt;&lt;P&gt;$ make SOC=iMX8MM flash_sx8m_flexspi&lt;/P&gt;&lt;P&gt;./mkimage_imx8 -version v1 -dev flexspi -fit -loader u-boot-spl-ddr.bin 0x7E2000 -second_loader u-boot-sx8m.itb 0x40200000 0x60000 -out flash.bin&lt;BR /&gt;Platform: i.MX8M (mScale)&lt;BR /&gt;ROM VERSION: v1&lt;BR /&gt;BOOT DEVICE: flexspi&lt;BR /&gt;Using FIT image&lt;BR /&gt;LOADER IMAGE: u-boot-spl-ddr.bin start addr: 0x007e2000&lt;BR /&gt;SECOND LOADER IMAGE: u-boot-sx8m.itb start addr: 0x40200000 offset: 0x00060000&lt;BR /&gt;Output: flash.bin&lt;BR /&gt;========= IVT HEADER [HDMI FW] =========&lt;BR /&gt;header.tag: 0x0&lt;BR /&gt;header.length: 0x0&lt;BR /&gt;header.version: 0x0&lt;BR /&gt;entry: 0x0&lt;BR /&gt;reserved1: 0x0&lt;BR /&gt;dcd_ptr: 0x0&lt;BR /&gt;boot_data_ptr: 0x0&lt;BR /&gt;self: 0x0&lt;BR /&gt;csf: 0x0&lt;BR /&gt;reserved2: 0x0&lt;BR /&gt;boot_data.start: 0x0&lt;BR /&gt;boot_data.size: 0x0&lt;BR /&gt;boot_data.plugin: 0x0&lt;BR /&gt;========= IVT HEADER [PLUGIN] =========&lt;BR /&gt;header.tag: 0x0&lt;BR /&gt;header.length: 0x0&lt;BR /&gt;header.version: 0x0&lt;BR /&gt;entry: 0x0&lt;BR /&gt;reserved1: 0x0&lt;BR /&gt;dcd_ptr: 0x0&lt;BR /&gt;boot_data_ptr: 0x0&lt;BR /&gt;self: 0x0&lt;BR /&gt;csf: 0x0&lt;BR /&gt;reserved2: 0x0&lt;BR /&gt;boot_data.start: 0x0&lt;BR /&gt;boot_data.size: 0x0&lt;BR /&gt;boot_data.plugin: 0x0&lt;BR /&gt;========= IVT HEADER [LOADER IMAGE] =========&lt;BR /&gt;header.tag: 0xd1&lt;BR /&gt;header.length: 0x2000&lt;BR /&gt;header.version: 0x41&lt;BR /&gt;entry: 0x7e2000&lt;BR /&gt;reserved1: 0x5f000&lt;BR /&gt;dcd_ptr: 0x0&lt;BR /&gt;boot_data_ptr: 0x7e1fe0&lt;BR /&gt;self: 0x7e1fc0&lt;BR /&gt;csf: 0x80d9c0&lt;BR /&gt;reserved2: 0x0&lt;BR /&gt;boot_data.start: 0x7e0fc0&lt;BR /&gt;boot_data.size: 0x2ea00&lt;BR /&gt;boot_data.plugin: 0x0&lt;BR /&gt;========= OFFSET dump =========&lt;BR /&gt;Loader IMAGE:&lt;BR /&gt;header_image_off 0x1000&lt;BR /&gt;dcd_off 0x1000&lt;BR /&gt;image_off 0x1040&lt;BR /&gt;csf_off 0x2ca00&lt;BR /&gt;spl hab block: 0x7e1fc0 0x1000 0x2ba00&lt;/P&gt;&lt;P&gt;Second Loader IMAGE:&lt;BR /&gt;sld_header_off 0x60000&lt;BR /&gt;sld_csf_off 0x61020&lt;BR /&gt;sld hab block: 0x401fcdc0 0x60000 0x1020&lt;BR /&gt;./../scripts/fspi_packer.sh ../scripts/fspi_header 0&lt;BR /&gt;0+1 records in&lt;BR /&gt;0+1 records out&lt;BR /&gt;512 bytes copied, 0.00017218 s, 3.0 MB/s&lt;BR /&gt;1803+1 records in&lt;BR /&gt;1803+1 records out&lt;BR /&gt;1846768 bytes (1.8 MB, 1.8 MiB) copied, 0.014392 s, 128 MB/s&lt;BR /&gt;1+0 records in&lt;BR /&gt;1+0 records out&lt;BR /&gt;512 bytes copied, 0.000259238 s, 2.0 MB/s&lt;BR /&gt;F(Q)SPI IMAGE PACKED&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And here is my print_fit_hab_flexspi log:&lt;/P&gt;&lt;P&gt;$ make SOC=iMX8MM print_fit_hab_flexspi&lt;BR /&gt;./../scripts/pad_image.sh bl31.bin&lt;BR /&gt;TEE_LOAD_ADDR=0xbe000000 ATF_LOAD_ADDR=0x00920000 BOOT_DEV="flexspi" ./print_fit_hab.sh 0x60000 imx8mm-cgtsx8m.dtb&lt;BR /&gt;0x40200000 0x63000 0x14E348&lt;BR /&gt;0x920000 0x1B1348 0xA1D8&lt;BR /&gt;0x4034E348 0x1BB520 0x8915&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have attached the csf_spl.txt and csf_fit.txt files.&lt;/P&gt;&lt;P&gt;I am able to generate csf_spl.bn using Code signing Tool (cst-3.1.0) with the same csf_spl.txt file. But, when I try to generate csf_fit.bin,I get the following error:&lt;BR /&gt;&lt;BR /&gt;Invalid Block arguments, Blocks start offset and length together exceed file size in command AuthenticateData&lt;/P&gt;&lt;P&gt;I came across similar questions on the forum where people suggested to pass "VERSION=v1" parameter to print_fit_hab, but that doesnt make any difference in the output for me (which makes perfect sense when I looked into the print_fit_hab.sh file. "VERSION=v1" changes "ivt_off" variable in the file. but the variable is not used when "BOOT_DEV" is "felxspi", which is my case).&lt;BR /&gt;Hence, this solution does not work for me.&lt;/P&gt;&lt;P&gt;Please help in this regard&lt;/P&gt;&lt;P&gt;Thank you&lt;BR /&gt;Sanath&lt;/P&gt;</description>
    <pubDate>Tue, 08 Nov 2022 07:11:08 GMT</pubDate>
    <dc:creator>_sanath_</dc:creator>
    <dc:date>2022-11-08T07:11:08Z</dc:date>
    <item>
      <title>Secure boot on iMX8MM using HABv4</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Secure-boot-on-iMX8MM-using-HABv4/m-p/1550133#M197316</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;We are using iMX8MM board and trying to achieve Secure boot through HAB4.&lt;/P&gt;&lt;P&gt;Here is my flash.bin build log:&lt;/P&gt;&lt;P&gt;$ make SOC=iMX8MM flash_sx8m_flexspi&lt;/P&gt;&lt;P&gt;./mkimage_imx8 -version v1 -dev flexspi -fit -loader u-boot-spl-ddr.bin 0x7E2000 -second_loader u-boot-sx8m.itb 0x40200000 0x60000 -out flash.bin&lt;BR /&gt;Platform: i.MX8M (mScale)&lt;BR /&gt;ROM VERSION: v1&lt;BR /&gt;BOOT DEVICE: flexspi&lt;BR /&gt;Using FIT image&lt;BR /&gt;LOADER IMAGE: u-boot-spl-ddr.bin start addr: 0x007e2000&lt;BR /&gt;SECOND LOADER IMAGE: u-boot-sx8m.itb start addr: 0x40200000 offset: 0x00060000&lt;BR /&gt;Output: flash.bin&lt;BR /&gt;========= IVT HEADER [HDMI FW] =========&lt;BR /&gt;header.tag: 0x0&lt;BR /&gt;header.length: 0x0&lt;BR /&gt;header.version: 0x0&lt;BR /&gt;entry: 0x0&lt;BR /&gt;reserved1: 0x0&lt;BR /&gt;dcd_ptr: 0x0&lt;BR /&gt;boot_data_ptr: 0x0&lt;BR /&gt;self: 0x0&lt;BR /&gt;csf: 0x0&lt;BR /&gt;reserved2: 0x0&lt;BR /&gt;boot_data.start: 0x0&lt;BR /&gt;boot_data.size: 0x0&lt;BR /&gt;boot_data.plugin: 0x0&lt;BR /&gt;========= IVT HEADER [PLUGIN] =========&lt;BR /&gt;header.tag: 0x0&lt;BR /&gt;header.length: 0x0&lt;BR /&gt;header.version: 0x0&lt;BR /&gt;entry: 0x0&lt;BR /&gt;reserved1: 0x0&lt;BR /&gt;dcd_ptr: 0x0&lt;BR /&gt;boot_data_ptr: 0x0&lt;BR /&gt;self: 0x0&lt;BR /&gt;csf: 0x0&lt;BR /&gt;reserved2: 0x0&lt;BR /&gt;boot_data.start: 0x0&lt;BR /&gt;boot_data.size: 0x0&lt;BR /&gt;boot_data.plugin: 0x0&lt;BR /&gt;========= IVT HEADER [LOADER IMAGE] =========&lt;BR /&gt;header.tag: 0xd1&lt;BR /&gt;header.length: 0x2000&lt;BR /&gt;header.version: 0x41&lt;BR /&gt;entry: 0x7e2000&lt;BR /&gt;reserved1: 0x5f000&lt;BR /&gt;dcd_ptr: 0x0&lt;BR /&gt;boot_data_ptr: 0x7e1fe0&lt;BR /&gt;self: 0x7e1fc0&lt;BR /&gt;csf: 0x80d9c0&lt;BR /&gt;reserved2: 0x0&lt;BR /&gt;boot_data.start: 0x7e0fc0&lt;BR /&gt;boot_data.size: 0x2ea00&lt;BR /&gt;boot_data.plugin: 0x0&lt;BR /&gt;========= OFFSET dump =========&lt;BR /&gt;Loader IMAGE:&lt;BR /&gt;header_image_off 0x1000&lt;BR /&gt;dcd_off 0x1000&lt;BR /&gt;image_off 0x1040&lt;BR /&gt;csf_off 0x2ca00&lt;BR /&gt;spl hab block: 0x7e1fc0 0x1000 0x2ba00&lt;/P&gt;&lt;P&gt;Second Loader IMAGE:&lt;BR /&gt;sld_header_off 0x60000&lt;BR /&gt;sld_csf_off 0x61020&lt;BR /&gt;sld hab block: 0x401fcdc0 0x60000 0x1020&lt;BR /&gt;./../scripts/fspi_packer.sh ../scripts/fspi_header 0&lt;BR /&gt;0+1 records in&lt;BR /&gt;0+1 records out&lt;BR /&gt;512 bytes copied, 0.00017218 s, 3.0 MB/s&lt;BR /&gt;1803+1 records in&lt;BR /&gt;1803+1 records out&lt;BR /&gt;1846768 bytes (1.8 MB, 1.8 MiB) copied, 0.014392 s, 128 MB/s&lt;BR /&gt;1+0 records in&lt;BR /&gt;1+0 records out&lt;BR /&gt;512 bytes copied, 0.000259238 s, 2.0 MB/s&lt;BR /&gt;F(Q)SPI IMAGE PACKED&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And here is my print_fit_hab_flexspi log:&lt;/P&gt;&lt;P&gt;$ make SOC=iMX8MM print_fit_hab_flexspi&lt;BR /&gt;./../scripts/pad_image.sh bl31.bin&lt;BR /&gt;TEE_LOAD_ADDR=0xbe000000 ATF_LOAD_ADDR=0x00920000 BOOT_DEV="flexspi" ./print_fit_hab.sh 0x60000 imx8mm-cgtsx8m.dtb&lt;BR /&gt;0x40200000 0x63000 0x14E348&lt;BR /&gt;0x920000 0x1B1348 0xA1D8&lt;BR /&gt;0x4034E348 0x1BB520 0x8915&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have attached the csf_spl.txt and csf_fit.txt files.&lt;/P&gt;&lt;P&gt;I am able to generate csf_spl.bn using Code signing Tool (cst-3.1.0) with the same csf_spl.txt file. But, when I try to generate csf_fit.bin,I get the following error:&lt;BR /&gt;&lt;BR /&gt;Invalid Block arguments, Blocks start offset and length together exceed file size in command AuthenticateData&lt;/P&gt;&lt;P&gt;I came across similar questions on the forum where people suggested to pass "VERSION=v1" parameter to print_fit_hab, but that doesnt make any difference in the output for me (which makes perfect sense when I looked into the print_fit_hab.sh file. "VERSION=v1" changes "ivt_off" variable in the file. but the variable is not used when "BOOT_DEV" is "felxspi", which is my case).&lt;BR /&gt;Hence, this solution does not work for me.&lt;/P&gt;&lt;P&gt;Please help in this regard&lt;/P&gt;&lt;P&gt;Thank you&lt;BR /&gt;Sanath&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 07:11:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Secure-boot-on-iMX8MM-using-HABv4/m-p/1550133#M197316</guid>
      <dc:creator>_sanath_</dc:creator>
      <dc:date>2022-11-08T07:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: Secure boot on iMX8MM using HABv4</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Secure-boot-on-iMX8MM-using-HABv4/m-p/1551995#M197428</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/204017"&gt;@_sanath_&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure what the target is you are building.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can try to compare the actual size of these images with those in your csf.&amp;nbsp; seem that&lt;SPAN&gt;&amp;nbsp;signature length is larger than the actual file。&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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, 10 Nov 2022 13:40:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Secure-boot-on-iMX8MM-using-HABv4/m-p/1551995#M197428</guid>
      <dc:creator>Harvey021</dc:creator>
      <dc:date>2022-11-10T13:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: Secure boot on iMX8MM using HABv4</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Secure-boot-on-iMX8MM-using-HABv4/m-p/1552625#M197480</link>
      <description>&lt;P&gt;Hello &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;1. We want to have the u-boot in FlexSPI, hence building u-boot for the same. I have attached the soc.mak&amp;nbsp; and print_fit_hab.sh for reference.&lt;/P&gt;&lt;P&gt;2. I did compare the sizes of the images and they are all matching.&lt;/P&gt;&lt;P&gt;One observation is that, if I exclude the .dtb image from the Authenticate data block ( I have attached the modified "csf_fit.txt" file for reference), I am able to generate the csf_fit.bin.&lt;/P&gt;&lt;P&gt;But the size of dtb mentioned in the csf file is same as the actual size of dtb.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 13:05:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Secure-boot-on-iMX8MM-using-HABv4/m-p/1552625#M197480</guid>
      <dc:creator>_sanath_</dc:creator>
      <dc:date>2022-11-11T13:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: Secure boot on iMX8MM using HABv4</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Secure-boot-on-iMX8MM-using-HABv4/m-p/2015492#M232110</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/204017"&gt;@_sanath_&lt;/a&gt;&amp;nbsp;we are trying secure boot on sx8m did you able to enable? Crossed this error.? Actually we are struck. There is hab events generated in uboot&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2024 18:47:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Secure-boot-on-iMX8MM-using-HABv4/m-p/2015492#M232110</guid>
      <dc:creator>srinu_inaganti1</dc:creator>
      <dc:date>2024-12-17T18:47:24Z</dc:date>
    </item>
  </channel>
</rss>

