<?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 Secure boot on IMX6s, HAB_INV_SIGNATURE in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Secure-boot-on-IMX6s-HAB-INV-SIGNATURE/m-p/676446#M104330</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 try to start a signed U-Boot 2015.10 on a customers board.&lt;/P&gt;&lt;P&gt;I generated 4096bit keys for signing as described here:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://boundarydevices.com/high-assurance-boot-hab-dummies/" title="https://boundarydevices.com/high-assurance-boot-hab-dummies/"&gt;High Assurance Boot (HAB) for dummies - Boundary Devices&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My SRK_1_2_3_4_fuse.bin looks like this:&lt;/P&gt;&lt;P&gt;root@Jessie:/work/cst-2.3.2_flashedkey/crts# hexdump -e '/4 "0x"' -e '/4 "%X""\n"' &amp;lt; SRK_1_2_3_4_fuse.bin&lt;BR /&gt;0xFD441C27&lt;BR /&gt;0x1B9E96A8&lt;BR /&gt;0x3A5BD436&lt;BR /&gt;0xDD9D0FCB&lt;BR /&gt;0xA89C2AE3&lt;BR /&gt;0x64FA9580&lt;BR /&gt;0x3E64FF2C&lt;BR /&gt;0x35558E4D&lt;/P&gt;&lt;P&gt;I burned the fuses and when I read they it looks like this:&lt;/P&gt;&lt;P&gt;=&amp;gt; fuse read -y 3 0&lt;BR /&gt;Reading bank 3:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Word 0x00000000: fd441c27&lt;BR /&gt;=&amp;gt; fuse read -y 3 1&lt;BR /&gt;Reading bank 3:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Word 0x00000001: 1b9e96a8&lt;BR /&gt;=&amp;gt; fuse read -y 3 2&lt;BR /&gt;Reading bank 3:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Word 0x00000002: 3a5bd436&lt;BR /&gt;=&amp;gt; fuse read -y 3 3&lt;BR /&gt;Reading bank 3:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Word 0x00000003: dd9d0fcb&lt;BR /&gt;=&amp;gt; fuse read -y 3 4&lt;BR /&gt;Reading bank 3:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Word 0x00000004: a89c2ae3&lt;BR /&gt;=&amp;gt; fuse read -y 3 5&lt;BR /&gt;Reading bank 3:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Word 0x00000005: 64fa9580&lt;BR /&gt;=&amp;gt; fuse read -y 3 6&lt;BR /&gt;Reading bank 3:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Word 0x00000006: 3e64ff2c&lt;BR /&gt;=&amp;gt; fuse read -y 3 7&lt;BR /&gt;Reading bank 3:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Word 0x00000007: 35558e4d&lt;BR /&gt;=&amp;gt; fuse read -y 3 8&lt;BR /&gt;Reading bank 3:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My u-boot.cst:&lt;/P&gt;&lt;P&gt;[Header]&lt;BR /&gt;Version = 4.1&lt;BR /&gt;Hash Algorithm = sha256&lt;BR /&gt;Engine = CAAM&lt;BR /&gt;Engine Configuration = 0&lt;BR /&gt;Certificate Format = X509&lt;BR /&gt;Signature Format = CMS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Install SRK]&lt;BR /&gt;File = "../crts/SRK_1_2_3_4_table.bin"&lt;BR /&gt;Source index = 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Install CSFK]&lt;BR /&gt;File = "../crts/CSF1_1_sha256_4096_65537_v3_usr_crt.pem"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Authenticate CSF]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Unlock]&lt;BR /&gt;&amp;nbsp; Engine = CAAM&lt;BR /&gt;&amp;nbsp; Features = RNG&lt;/P&gt;&lt;P&gt;&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;# Key to install&lt;BR /&gt;Target index = 2&lt;BR /&gt;File = "../crts/IMG1_1_sha256_4096_65537_v3_usr_crt.pem"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Authenticate Data]&lt;BR /&gt;Verification index = 2&lt;BR /&gt;Blocks = 0x177ff400 0x000 0x6dc00 "u-boot.imx"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use cst-2.3.2 to sign my u-boot.imx, added the generated file and changed the header values, but when I boot I get this events:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&amp;gt; hab_status&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secure boot disabled&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HAB Configuration: 0xf0, HAB State: 0x66&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--------- HAB Event 1 -----------------&lt;BR /&gt;event data:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xdb 0x00 0x1c 0x41 0x33 0x18 0xc0 0x00&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xca 0x00 0x14 0x00 0x02 0xc5 0x1d 0x00&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00 0x00 0x16 0x3c 0x17 0x7f 0xf4 0x00&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00 0x06 0xdc 0x00&lt;/P&gt;&lt;P&gt;&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;/P&gt;&lt;P&gt;&lt;BR /&gt;--------- HAB Event 2 -----------------&lt;BR /&gt;event data:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xdb 0x00 0x14 0x41 0x33 0x0c 0xa0 0x00&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00 0x00 0x00 0x00 0x17 0x7f 0xf4 0x00&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00 0x00 0x00 0x20&lt;/P&gt;&lt;P&gt;&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;/P&gt;&lt;P&gt;&lt;BR /&gt;--------- HAB Event 3 -----------------&lt;BR /&gt;event data:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xdb 0x00 0x14 0x41 0x33 0x0c 0xa0 0x00&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00 0x00 0x00 0x00 0x17 0x7f 0xf4 0x2c&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00 0x00 0x03 0x10&lt;/P&gt;&lt;P&gt;&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;/P&gt;&lt;P&gt;&lt;BR /&gt;--------- HAB Event 4 -----------------&lt;BR /&gt;event data:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xdb 0x00 0x14 0x41 0x33 0x0c 0xa0 0x00&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00 0x00 0x00 0x00 0x17 0x7f 0xf4 0x20&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00 0x00 0x00 0x01&lt;/P&gt;&lt;P&gt;&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;/P&gt;&lt;P&gt;&lt;BR /&gt;--------- HAB Event 5 -----------------&lt;BR /&gt;event data:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xdb 0x00 0x14 0x41 0x33 0x0c 0xa0 0x00&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00 0x00 0x00 0x00 0x17 0x80 0x00 0x00&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00 0x00 0x00 0x04&lt;/P&gt;&lt;P&gt;&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;/P&gt;&lt;P&gt;My u-boot_signed.imx starts with the IVT(and will be written to the eeprom at offset 0x400) and when I booted I find the following in the RAM:&lt;/P&gt;&lt;P&gt;IVT&lt;/P&gt;&lt;P&gt;=&amp;gt; md.b 177ff400 &lt;BR /&gt;177ff400: d1 00 20 40 00 00 80 17 00 00 00 00 2c f4 7f 17&amp;nbsp;&amp;nbsp;&amp;nbsp; .. @........,...&lt;BR /&gt;177ff410: 20 f4 7f 17 00 f4 7f 17 00 d0 86 17 00 00 00 00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...............&lt;BR /&gt;177ff420: 00 f0 7f 17 40 f9 06 00 00 00 00 00 d2 03 10 40&amp;nbsp;&amp;nbsp;&amp;nbsp; ....@..........@&lt;BR /&gt;177ff430: cc 03 0c 04 02 0e 04 bc 00 00 00 30 02 0e 04 c0&amp;nbsp;&amp;nbsp;&amp;nbsp; ...........0....&lt;BR /&gt;177ff440: 00 00 00 30 02 0e 04 c4 00 00 00 30 02 0e 04 c8&amp;nbsp;&amp;nbsp;&amp;nbsp; ...0.......0....&lt;BR /&gt;...&lt;/P&gt;&lt;P&gt;U-Boot&lt;/P&gt;&lt;P&gt;=&amp;gt; md.b 17800000&lt;BR /&gt;17800000: be 00 00 ea 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5&amp;nbsp;&amp;nbsp;&amp;nbsp; ................&lt;BR /&gt;17800010: 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5&amp;nbsp;&amp;nbsp;&amp;nbsp; ................&lt;BR /&gt;17800020: 60 00 80 17 c0 00 80 17 20 01 80 17 80 01 80 17&amp;nbsp;&amp;nbsp;&amp;nbsp; `....... .......&lt;BR /&gt;17800030: e0 01 80 17 40 02 80 17 a0 02 80 17 ef be ad de&amp;nbsp;&amp;nbsp;&amp;nbsp; ....@...........&lt;BR /&gt;17800040: de c0 ad 0b 00 f0 20 e3 00 f0 20 e3 00 f0 20 e3&amp;nbsp;&amp;nbsp;&amp;nbsp; ...... ... ... .&lt;BR /&gt;17800050: 00 f0 20 e3 00 f0 20 e3 00 f0 20 e3 00 f0 20 e3&amp;nbsp;&amp;nbsp;&amp;nbsp; .. ... ... ... .&lt;BR /&gt;17800060: 28 d0 1f e5 00 e0 8d e5 00 e0 4f e1 04 e0 8d e5&amp;nbsp;&amp;nbsp;&amp;nbsp; (.........O.....&lt;BR /&gt;17800070: 13 d0 a0 e3 0d f0 69 e1 0f e0 a0 e1 0e f0 b0 e1&amp;nbsp;&amp;nbsp;&amp;nbsp; ......i.........&lt;BR /&gt;17800080: 48 d0 4d e2 ff 1f 8d e8 50 20 1f e5 0c 00 92 e8&amp;nbsp;&amp;nbsp;&amp;nbsp; H.M.....P ......&lt;BR /&gt;17800090: 48 00 8d e2 34 50 8d e2 0e 10 a0 e1 0f 00 85 e8&amp;nbsp;&amp;nbsp;&amp;nbsp; H...4P..........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u-boot_csf.bin&lt;/P&gt;&lt;P&gt;=&amp;gt; md.b 1786d000&lt;BR /&gt;1786d000: d4 00 50 41 be 00 0c 00 03 17 00 00 00 00 00 50&amp;nbsp;&amp;nbsp;&amp;nbsp; ..PA...........P&lt;BR /&gt;1786d010: be 00 0c 02 09 00 00 01 00 00 08 90 ca 00 0c 00&amp;nbsp;&amp;nbsp;&amp;nbsp; ................&lt;BR /&gt;1786d020: 01 c5 1d 00 00 00 0d e4 b2 00 08 1d 00 00 00 02&amp;nbsp;&amp;nbsp;&amp;nbsp; ................&lt;BR /&gt;1786d030: be 00 0c 00 09 00 00 02 00 00 10 e8 ca 00 14 00&amp;nbsp;&amp;nbsp;&amp;nbsp; ................&lt;BR /&gt;1786d040: 02 c5 1d 00 00 00 16 3c 17 7f f4 00 00 06 dc 00&amp;nbsp;&amp;nbsp;&amp;nbsp; .......&amp;lt;........&lt;BR /&gt;1786d050: d7 08 40 40 e1 02 0f 21 00 00 00 80 02 00 00 03&amp;nbsp;&amp;nbsp;&amp;nbsp; ..@@...!........&lt;BR /&gt;1786d060: f7 af 6b 13 98 c4 78 96 76 c2 c3 92 29 9b f5 2f&amp;nbsp;&amp;nbsp;&amp;nbsp; ..k...x.v...)../&lt;BR /&gt;1786d070: 69 36 ef 18 25 f9 55 a4 be 91 46 ed e4 c5 8e ef&amp;nbsp;&amp;nbsp;&amp;nbsp; i6..%.U...F.....&lt;BR /&gt;1786d080: a1 0d 87 08 32 93 c6 4f ef 7f 55 e5 f0 d2 e7 24&amp;nbsp;&amp;nbsp;&amp;nbsp; ....2..O..U....$&lt;BR /&gt;1786d090: ae b0 e1 b1 bd 2f 2d 10 b1 46 e2 26 7f 76 b0 89&amp;nbsp;&amp;nbsp;&amp;nbsp; ...../-..F.&amp;amp;.v..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked if the u-boot_csf.bin is complete in the RAM, and it is. I checked the lenght of the U-Boot image too.&lt;/P&gt;&lt;P&gt;I suppose any problems because I use 4096 instead of 2048 bit keys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'm doing wrong ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 May 2017 11:49:10 GMT</pubDate>
    <dc:creator>andreasschuler</dc:creator>
    <dc:date>2017-05-11T11:49:10Z</dc:date>
    <item>
      <title>Secure boot on IMX6s, HAB_INV_SIGNATURE</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Secure-boot-on-IMX6s-HAB-INV-SIGNATURE/m-p/676446#M104330</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 try to start a signed U-Boot 2015.10 on a customers board.&lt;/P&gt;&lt;P&gt;I generated 4096bit keys for signing as described here:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://boundarydevices.com/high-assurance-boot-hab-dummies/" title="https://boundarydevices.com/high-assurance-boot-hab-dummies/"&gt;High Assurance Boot (HAB) for dummies - Boundary Devices&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My SRK_1_2_3_4_fuse.bin looks like this:&lt;/P&gt;&lt;P&gt;root@Jessie:/work/cst-2.3.2_flashedkey/crts# hexdump -e '/4 "0x"' -e '/4 "%X""\n"' &amp;lt; SRK_1_2_3_4_fuse.bin&lt;BR /&gt;0xFD441C27&lt;BR /&gt;0x1B9E96A8&lt;BR /&gt;0x3A5BD436&lt;BR /&gt;0xDD9D0FCB&lt;BR /&gt;0xA89C2AE3&lt;BR /&gt;0x64FA9580&lt;BR /&gt;0x3E64FF2C&lt;BR /&gt;0x35558E4D&lt;/P&gt;&lt;P&gt;I burned the fuses and when I read they it looks like this:&lt;/P&gt;&lt;P&gt;=&amp;gt; fuse read -y 3 0&lt;BR /&gt;Reading bank 3:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Word 0x00000000: fd441c27&lt;BR /&gt;=&amp;gt; fuse read -y 3 1&lt;BR /&gt;Reading bank 3:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Word 0x00000001: 1b9e96a8&lt;BR /&gt;=&amp;gt; fuse read -y 3 2&lt;BR /&gt;Reading bank 3:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Word 0x00000002: 3a5bd436&lt;BR /&gt;=&amp;gt; fuse read -y 3 3&lt;BR /&gt;Reading bank 3:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Word 0x00000003: dd9d0fcb&lt;BR /&gt;=&amp;gt; fuse read -y 3 4&lt;BR /&gt;Reading bank 3:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Word 0x00000004: a89c2ae3&lt;BR /&gt;=&amp;gt; fuse read -y 3 5&lt;BR /&gt;Reading bank 3:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Word 0x00000005: 64fa9580&lt;BR /&gt;=&amp;gt; fuse read -y 3 6&lt;BR /&gt;Reading bank 3:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Word 0x00000006: 3e64ff2c&lt;BR /&gt;=&amp;gt; fuse read -y 3 7&lt;BR /&gt;Reading bank 3:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Word 0x00000007: 35558e4d&lt;BR /&gt;=&amp;gt; fuse read -y 3 8&lt;BR /&gt;Reading bank 3:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My u-boot.cst:&lt;/P&gt;&lt;P&gt;[Header]&lt;BR /&gt;Version = 4.1&lt;BR /&gt;Hash Algorithm = sha256&lt;BR /&gt;Engine = CAAM&lt;BR /&gt;Engine Configuration = 0&lt;BR /&gt;Certificate Format = X509&lt;BR /&gt;Signature Format = CMS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Install SRK]&lt;BR /&gt;File = "../crts/SRK_1_2_3_4_table.bin"&lt;BR /&gt;Source index = 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Install CSFK]&lt;BR /&gt;File = "../crts/CSF1_1_sha256_4096_65537_v3_usr_crt.pem"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Authenticate CSF]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Unlock]&lt;BR /&gt;&amp;nbsp; Engine = CAAM&lt;BR /&gt;&amp;nbsp; Features = RNG&lt;/P&gt;&lt;P&gt;&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;# Key to install&lt;BR /&gt;Target index = 2&lt;BR /&gt;File = "../crts/IMG1_1_sha256_4096_65537_v3_usr_crt.pem"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Authenticate Data]&lt;BR /&gt;Verification index = 2&lt;BR /&gt;Blocks = 0x177ff400 0x000 0x6dc00 "u-boot.imx"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use cst-2.3.2 to sign my u-boot.imx, added the generated file and changed the header values, but when I boot I get this events:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&amp;gt; hab_status&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secure boot disabled&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HAB Configuration: 0xf0, HAB State: 0x66&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--------- HAB Event 1 -----------------&lt;BR /&gt;event data:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xdb 0x00 0x1c 0x41 0x33 0x18 0xc0 0x00&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xca 0x00 0x14 0x00 0x02 0xc5 0x1d 0x00&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00 0x00 0x16 0x3c 0x17 0x7f 0xf4 0x00&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00 0x06 0xdc 0x00&lt;/P&gt;&lt;P&gt;&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;/P&gt;&lt;P&gt;&lt;BR /&gt;--------- HAB Event 2 -----------------&lt;BR /&gt;event data:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xdb 0x00 0x14 0x41 0x33 0x0c 0xa0 0x00&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00 0x00 0x00 0x00 0x17 0x7f 0xf4 0x00&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00 0x00 0x00 0x20&lt;/P&gt;&lt;P&gt;&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;/P&gt;&lt;P&gt;&lt;BR /&gt;--------- HAB Event 3 -----------------&lt;BR /&gt;event data:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xdb 0x00 0x14 0x41 0x33 0x0c 0xa0 0x00&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00 0x00 0x00 0x00 0x17 0x7f 0xf4 0x2c&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00 0x00 0x03 0x10&lt;/P&gt;&lt;P&gt;&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;/P&gt;&lt;P&gt;&lt;BR /&gt;--------- HAB Event 4 -----------------&lt;BR /&gt;event data:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xdb 0x00 0x14 0x41 0x33 0x0c 0xa0 0x00&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00 0x00 0x00 0x00 0x17 0x7f 0xf4 0x20&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00 0x00 0x00 0x01&lt;/P&gt;&lt;P&gt;&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;/P&gt;&lt;P&gt;&lt;BR /&gt;--------- HAB Event 5 -----------------&lt;BR /&gt;event data:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xdb 0x00 0x14 0x41 0x33 0x0c 0xa0 0x00&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00 0x00 0x00 0x00 0x17 0x80 0x00 0x00&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00 0x00 0x00 0x04&lt;/P&gt;&lt;P&gt;&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;/P&gt;&lt;P&gt;My u-boot_signed.imx starts with the IVT(and will be written to the eeprom at offset 0x400) and when I booted I find the following in the RAM:&lt;/P&gt;&lt;P&gt;IVT&lt;/P&gt;&lt;P&gt;=&amp;gt; md.b 177ff400 &lt;BR /&gt;177ff400: d1 00 20 40 00 00 80 17 00 00 00 00 2c f4 7f 17&amp;nbsp;&amp;nbsp;&amp;nbsp; .. @........,...&lt;BR /&gt;177ff410: 20 f4 7f 17 00 f4 7f 17 00 d0 86 17 00 00 00 00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...............&lt;BR /&gt;177ff420: 00 f0 7f 17 40 f9 06 00 00 00 00 00 d2 03 10 40&amp;nbsp;&amp;nbsp;&amp;nbsp; ....@..........@&lt;BR /&gt;177ff430: cc 03 0c 04 02 0e 04 bc 00 00 00 30 02 0e 04 c0&amp;nbsp;&amp;nbsp;&amp;nbsp; ...........0....&lt;BR /&gt;177ff440: 00 00 00 30 02 0e 04 c4 00 00 00 30 02 0e 04 c8&amp;nbsp;&amp;nbsp;&amp;nbsp; ...0.......0....&lt;BR /&gt;...&lt;/P&gt;&lt;P&gt;U-Boot&lt;/P&gt;&lt;P&gt;=&amp;gt; md.b 17800000&lt;BR /&gt;17800000: be 00 00 ea 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5&amp;nbsp;&amp;nbsp;&amp;nbsp; ................&lt;BR /&gt;17800010: 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5&amp;nbsp;&amp;nbsp;&amp;nbsp; ................&lt;BR /&gt;17800020: 60 00 80 17 c0 00 80 17 20 01 80 17 80 01 80 17&amp;nbsp;&amp;nbsp;&amp;nbsp; `....... .......&lt;BR /&gt;17800030: e0 01 80 17 40 02 80 17 a0 02 80 17 ef be ad de&amp;nbsp;&amp;nbsp;&amp;nbsp; ....@...........&lt;BR /&gt;17800040: de c0 ad 0b 00 f0 20 e3 00 f0 20 e3 00 f0 20 e3&amp;nbsp;&amp;nbsp;&amp;nbsp; ...... ... ... .&lt;BR /&gt;17800050: 00 f0 20 e3 00 f0 20 e3 00 f0 20 e3 00 f0 20 e3&amp;nbsp;&amp;nbsp;&amp;nbsp; .. ... ... ... .&lt;BR /&gt;17800060: 28 d0 1f e5 00 e0 8d e5 00 e0 4f e1 04 e0 8d e5&amp;nbsp;&amp;nbsp;&amp;nbsp; (.........O.....&lt;BR /&gt;17800070: 13 d0 a0 e3 0d f0 69 e1 0f e0 a0 e1 0e f0 b0 e1&amp;nbsp;&amp;nbsp;&amp;nbsp; ......i.........&lt;BR /&gt;17800080: 48 d0 4d e2 ff 1f 8d e8 50 20 1f e5 0c 00 92 e8&amp;nbsp;&amp;nbsp;&amp;nbsp; H.M.....P ......&lt;BR /&gt;17800090: 48 00 8d e2 34 50 8d e2 0e 10 a0 e1 0f 00 85 e8&amp;nbsp;&amp;nbsp;&amp;nbsp; H...4P..........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u-boot_csf.bin&lt;/P&gt;&lt;P&gt;=&amp;gt; md.b 1786d000&lt;BR /&gt;1786d000: d4 00 50 41 be 00 0c 00 03 17 00 00 00 00 00 50&amp;nbsp;&amp;nbsp;&amp;nbsp; ..PA...........P&lt;BR /&gt;1786d010: be 00 0c 02 09 00 00 01 00 00 08 90 ca 00 0c 00&amp;nbsp;&amp;nbsp;&amp;nbsp; ................&lt;BR /&gt;1786d020: 01 c5 1d 00 00 00 0d e4 b2 00 08 1d 00 00 00 02&amp;nbsp;&amp;nbsp;&amp;nbsp; ................&lt;BR /&gt;1786d030: be 00 0c 00 09 00 00 02 00 00 10 e8 ca 00 14 00&amp;nbsp;&amp;nbsp;&amp;nbsp; ................&lt;BR /&gt;1786d040: 02 c5 1d 00 00 00 16 3c 17 7f f4 00 00 06 dc 00&amp;nbsp;&amp;nbsp;&amp;nbsp; .......&amp;lt;........&lt;BR /&gt;1786d050: d7 08 40 40 e1 02 0f 21 00 00 00 80 02 00 00 03&amp;nbsp;&amp;nbsp;&amp;nbsp; ..@@...!........&lt;BR /&gt;1786d060: f7 af 6b 13 98 c4 78 96 76 c2 c3 92 29 9b f5 2f&amp;nbsp;&amp;nbsp;&amp;nbsp; ..k...x.v...)../&lt;BR /&gt;1786d070: 69 36 ef 18 25 f9 55 a4 be 91 46 ed e4 c5 8e ef&amp;nbsp;&amp;nbsp;&amp;nbsp; i6..%.U...F.....&lt;BR /&gt;1786d080: a1 0d 87 08 32 93 c6 4f ef 7f 55 e5 f0 d2 e7 24&amp;nbsp;&amp;nbsp;&amp;nbsp; ....2..O..U....$&lt;BR /&gt;1786d090: ae b0 e1 b1 bd 2f 2d 10 b1 46 e2 26 7f 76 b0 89&amp;nbsp;&amp;nbsp;&amp;nbsp; ...../-..F.&amp;amp;.v..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked if the u-boot_csf.bin is complete in the RAM, and it is. I checked the lenght of the U-Boot image too.&lt;/P&gt;&lt;P&gt;I suppose any problems because I use 4096 instead of 2048 bit keys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'm doing wrong ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 May 2017 11:49:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Secure-boot-on-IMX6s-HAB-INV-SIGNATURE/m-p/676446#M104330</guid>
      <dc:creator>andreasschuler</dc:creator>
      <dc:date>2017-05-11T11:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Secure boot on IMX6s, HAB_INV_SIGNATURE</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Secure-boot-on-IMX6s-HAB-INV-SIGNATURE/m-p/676447#M104331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sometimes it's enough to write it down to get it. I Patched the header AFTER signing it... m(&lt;/P&gt;&lt;P&gt;Patch the header before signing and all is working perfect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 May 2017 12:51:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Secure-boot-on-IMX6s-HAB-INV-SIGNATURE/m-p/676447#M104331</guid>
      <dc:creator>andreasschuler</dc:creator>
      <dc:date>2017-05-11T12:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Secure boot on IMX6s, HAB_INV_SIGNATURE</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Secure-boot-on-IMX6s-HAB-INV-SIGNATURE/m-p/1383321#M184128</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/61825"&gt;@andreasschuler&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try to start a signed U-Boot 2016.11-toradex.&lt;/P&gt;&lt;P&gt;I generated 4096bit keys for signing.&lt;/P&gt;&lt;P&gt;I use cst-3.1.0 to sign my u-boot.but when i am booting the signed image i am getting HAB events as same as you got (Invaild signature).&lt;BR /&gt;&lt;BR /&gt;How you reslove that issues,can you please help me slove these issues.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 09:39:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Secure-boot-on-IMX6s-HAB-INV-SIGNATURE/m-p/1383321#M184128</guid>
      <dc:creator>sowmyam</dc:creator>
      <dc:date>2021-12-08T09:39:59Z</dc:date>
    </item>
  </channel>
</rss>

