<?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のトピックcode signing tool</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/code-signing-tool/m-p/881011#M133525</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am unable to sign my product code using the CST. The script fails while generating the CSF binary with an undefined error, and always its on line 2 or before.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;keys$ ../linux32/bin/cst --o csf-uboot.bin --i csf-uboot&lt;BR /&gt;error: line 2: syntax error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand the cst tool has a limitation that requires the command be run from the keys directory. I have had the u-boot.imx image moved to the keys directory. But that hasnt helped. I am missing something here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Feb 2019 17:12:18 GMT</pubDate>
    <dc:creator>praveen_bharath</dc:creator>
    <dc:date>2019-02-21T17:12:18Z</dc:date>
    <item>
      <title>code signing tool</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/code-signing-tool/m-p/881011#M133525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am unable to sign my product code using the CST. The script fails while generating the CSF binary with an undefined error, and always its on line 2 or before.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;keys$ ../linux32/bin/cst --o csf-uboot.bin --i csf-uboot&lt;BR /&gt;error: line 2: syntax error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand the cst tool has a limitation that requires the command be run from the keys directory. I have had the u-boot.imx image moved to the keys directory. But that hasnt helped. I am missing something here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2019 17:12:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/code-signing-tool/m-p/881011#M133525</guid>
      <dc:creator>praveen_bharath</dc:creator>
      <dc:date>2019-02-21T17:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: code signing tool</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/code-signing-tool/m-p/881012#M133526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can refer chapter 7 of this document&lt;BR /&gt;&lt;A href="https://community.nxp.com/docs/DOC-340994" target="test_blank"&gt;https://community.nxp.com/docs/DOC-340994&lt;/A&gt;&lt;BR /&gt;regarding to Code Signing Tool usage.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2019 03:50:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/code-signing-tool/m-p/881012#M133526</guid>
      <dc:creator>b36401</dc:creator>
      <dc:date>2019-02-22T03:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: code signing tool</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/code-signing-tool/m-p/881013#M133527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am past that issue. I am now able to build the csf file, sign the boot loader image. I flash using the manufacturing tool. However there is something wrong due to which the HAB is disabled during boot.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the CSF I am using (copied from AN4581). I am not sure if I can use the address in the example straight in my product. I have seen people posting their CSFs in the forum with all kinds of addresses and thats the reason for my doubt. The part we are using is IMX7 Dual and I used the linux32 bit version of cst to sign my image as I understand the IMX7 is a 32 bit device.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#Illustrative Command Sequence File Description&lt;BR /&gt;[Header]&lt;BR /&gt; Version = 4.2&lt;BR /&gt; Hash Algorithm = sha256&lt;BR /&gt; Engine = ANY&lt;BR /&gt; Engine Configuration = 0&lt;BR /&gt; Certificate Format = X509&lt;BR /&gt; Signature Format = CMS&lt;/P&gt;&lt;P&gt;[Install SRK]&lt;BR /&gt; File = "../../crts/SRK_1_2_3_4_table.bin"&lt;BR /&gt; # Index of the key location in the SRK table to be installed&lt;BR /&gt; Source index = 0&lt;/P&gt;&lt;P&gt;[Install CSFK]&lt;BR /&gt; # Key used to authenticate the CSF data&lt;BR /&gt; File = "../../crts/CSF1_1_sha256_2048_65537_v3_usr_crt.pem"&lt;/P&gt;&lt;P&gt;[Authenticate CSF]&lt;/P&gt;&lt;P&gt;[Install Key]&lt;BR /&gt; # Key slot index used to authenticate the key to be installed&lt;BR /&gt; Verification index = 0&lt;BR /&gt; # Target key slot in HAB key store where key will be installed&lt;BR /&gt; Target Index = 2&lt;BR /&gt; # Key to install&lt;BR /&gt; File= "../../crts/IMG1_1_sha256_2048_65537_v3_usr_crt.pem"&lt;/P&gt;&lt;P&gt;[Authenticate Data]&lt;BR /&gt; # Key slot index used to authenticate the image data&lt;BR /&gt; Verification index = 2&lt;BR /&gt; # Address Offset Length Data File Path&lt;BR /&gt; Blocks = 0x877fb000 0x00000000 0x00054c00 "./u-boot-dtb.imx", \&lt;BR /&gt; 0x00910000 0x0000002c 0x0000e040 "./u-boot-dtb.imx"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And here are the errors in hab_status&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U-Boot 2017.03-g97b9227-dirty (Feb 28 2019 - 17:15:41 -0600)&lt;/P&gt;&lt;P&gt;CPU: Freescale i.MX7D rev1.2 996 MHz (running at 792 MHz)&lt;BR /&gt;CPU: Extended Commercial temperature grade (-20C to 105C) at 29C&lt;BR /&gt;Reset cause: POR&lt;BR /&gt;Model: ICU i.MX7D CE32 Board&lt;BR /&gt;Board: i.MX7D CE3.2 RevC&lt;BR /&gt; Watchdog enabled&lt;BR /&gt;DRAM: 512 MiB&lt;BR /&gt;PMIC: PFUZE3000 DEV_ID=0x30 REV_ID=0x11&lt;BR /&gt;MMC: FSL_SDHC: 0, FSL_SDHC: 1&lt;BR /&gt;*** Warning - bad CRC, using default environment&lt;/P&gt;&lt;P&gt;In: serial&lt;BR /&gt;Out: serial&lt;BR /&gt;Err: serial&lt;BR /&gt;flash target is MMC:1&lt;BR /&gt;Net: CPU Net Initialization Failed&lt;BR /&gt;No ethernet found.&lt;BR /&gt;&lt;BR /&gt;=&amp;gt; hab_status&lt;/P&gt;&lt;P&gt;Secure boot disabled&lt;/P&gt;&lt;P&gt;HAB Configuration: 0xf0, HAB State: 0x66&lt;/P&gt;&lt;P&gt;--------- HAB Event 1 -----------------&lt;BR /&gt;event data:&lt;BR /&gt; 0xdb 0x00 0x1c 0x42 0x33 0x18 0xc0 0x00&lt;BR /&gt; 0xca 0x00 0x14 0x00 0x02 0xc5 0x00 0x00&lt;BR /&gt; 0x00 0x00 0x0d 0x34 0x87 0x7f 0xb0 0x00&lt;BR /&gt; 0x00 0x05 0x4c 0x00&lt;/P&gt;&lt;P&gt;STS = HAB_FAILURE (0x33)&lt;BR /&gt;RSN = HAB_INV_SIGNATURE (0x18)&lt;BR /&gt;CTX = HAB_CTX_COMMAND (0xC0)&lt;BR /&gt;ENG = HAB_ENG_ANY (0x00)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;--------- HAB Event 2 -----------------&lt;BR /&gt;event data:&lt;BR /&gt; 0xdb 0x00 0x14 0x42 0x33 0x0c 0xa0 0x00&lt;BR /&gt; 0x00 0x00 0x00 0x00 0x87 0x7f 0xf4 0x00&lt;BR /&gt; 0x00 0x00 0x00 0x20&lt;/P&gt;&lt;P&gt;STS = HAB_FAILURE (0x33)&lt;BR /&gt;RSN = HAB_INV_ASSERTION (0x0C)&lt;BR /&gt;CTX = HAB_CTX_ASSERT (0xA0)&lt;BR /&gt;ENG = HAB_ENG_ANY (0x00)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;--------- HAB Event 3 -----------------&lt;BR /&gt;event data:&lt;BR /&gt; 0xdb 0x00 0x14 0x42 0x33 0x0c 0xa0 0x00&lt;BR /&gt; 0x00 0x00 0x00 0x00 0x87 0x7f 0xf4 0x2c&lt;BR /&gt; 0x00 0x00 0x01 0xe0&lt;/P&gt;&lt;P&gt;STS = HAB_FAILURE (0x33)&lt;BR /&gt;RSN = HAB_INV_ASSERTION (0x0C)&lt;BR /&gt;CTX = HAB_CTX_ASSERT (0xA0)&lt;BR /&gt;ENG = HAB_ENG_ANY (0x00)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;--------- HAB Event 4 -----------------&lt;BR /&gt;event data:&lt;BR /&gt; 0xdb 0x00 0x14 0x42 0x33 0x0c 0xa0 0x00&lt;BR /&gt; 0x00 0x00 0x00 0x00 0x87 0x7f 0xf4 0x20&lt;BR /&gt; 0x00 0x00 0x00 0x01&lt;/P&gt;&lt;P&gt;STS = HAB_FAILURE (0x33)&lt;BR /&gt;RSN = HAB_INV_ASSERTION (0x0C)&lt;BR /&gt;CTX = HAB_CTX_ASSERT (0xA0)&lt;BR /&gt;ENG = HAB_ENG_ANY (0x00)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;--------- HAB Event 5 -----------------&lt;BR /&gt;event data:&lt;BR /&gt; 0xdb 0x00 0x14 0x42 0x33 0x0c 0xa0 0x00&lt;BR /&gt; 0x00 0x00 0x00 0x00 0x87 0x80 0x00 0x00&lt;BR /&gt; 0x00 0x00 0x00 0x04&lt;/P&gt;&lt;P&gt;STS = HAB_FAILURE (0x33)&lt;BR /&gt;RSN = HAB_INV_ASSERTION (0x0C)&lt;BR /&gt;CTX = HAB_CTX_ASSERT (0xA0)&lt;BR /&gt;ENG = HAB_ENG_ANY (0x00)&lt;/P&gt;&lt;P&gt;=&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2019 23:01:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/code-signing-tool/m-p/881013#M133527</guid>
      <dc:creator>praveen_bharath</dc:creator>
      <dc:date>2019-03-08T23:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: code signing tool</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/code-signing-tool/m-p/1587303#M200579</link>
      <description>&lt;P&gt;I do not have access to that document. How do I get it?&lt;/P&gt;&lt;P&gt;I need information on all the config options for the file.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 18:54:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/code-signing-tool/m-p/1587303#M200579</guid>
      <dc:creator>psbanga</dc:creator>
      <dc:date>2023-01-24T18:54:27Z</dc:date>
    </item>
  </channel>
</rss>

