<?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>LayerscapeのトピックRe: Uboot signed by error key can still boot up</title>
    <link>https://community.nxp.com/t5/Layerscape/Uboot-signed-by-error-key-can-still-boot-up/m-p/501783#M1068</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi，so did you how to use the ccs and ccs commands，like mmu configure command etc，because i can't program the value into registers，if you konw，please tell me some details，thank you very much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Oct 2018 01:43:16 GMT</pubDate>
    <dc:creator>ffanhuang5</dc:creator>
    <dc:date>2018-10-17T01:43:16Z</dc:date>
    <item>
      <title>Uboot signed by error key can still boot up</title>
      <link>https://community.nxp.com/t5/Layerscape/Uboot-signed-by-error-key-can-still-boot-up/m-p/501772#M1057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I'm working on the ls1021a-iot secure boot, there is a problem about ISBC validate ESBC.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; It looks Internal Secure Boot Code(ISBC) will not compare the hash of public key in hdr_uboot_swap.out file with the hash value in fuse on my side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I followed the steps in A0001-Secure-boot.pdf file in&amp;nbsp; LS1021A-Rev2_iot-20150907 to check the secure boot validation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.&amp;nbsp; Jump J14, J19 and J20, after that boot from sdcard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2. Burn demo public key hash "57e3256c48f70bfd56132ccd1b9cb75872db80f4e3a643221f7e016a2e0632a4&lt;/P&gt;&lt;P&gt;" to the fuse on uboot with below command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SMALL&gt;mm 1e80234&lt;BR /&gt; 01e80234: 00000000?88888888&lt;BR /&gt; 01e80238: ffffffff?77777777&lt;BR /&gt; 01e8023c: ffffffff?66666666&lt;BR /&gt; 01e80240: ffffffff?55555555&lt;BR /&gt; 01e80244: ffffffff?44444444&lt;BR /&gt; 01e80248: ffffffff?33333333&lt;BR /&gt; 01e8024c: ffffffff?22222222&lt;BR /&gt; 01e80250: ffffffff?11111111&lt;BR /&gt; 01e80254: 00000000?.&lt;BR /&gt; =&amp;gt;mm 1e80254&lt;BR /&gt; 01e80254:00000000?6c25e357&lt;BR /&gt; 01e80258:00000000?fd0bf748&lt;BR /&gt; 01e8025c:00000000?cd2c1356&lt;BR /&gt; 01e80260:00000000?58b79c1b&lt;BR /&gt; 01e80264:00000000?f480db72&lt;BR /&gt; 01e80268:00000000?2243a6e3&lt;BR /&gt; 01e8026c:00000000?6a017e1f&lt;BR /&gt; 01e80270:00000000?a432062e&lt;BR /&gt; 01e80274:00000000?.&lt;BR /&gt; =&amp;gt;mw 1e80020 0x02000000&lt;BR /&gt; =&amp;gt;md 1e80020 1&lt;BR /&gt; 0x00000000&lt;/SMALL&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3. Set networking env.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4. Programme the RCW, uboot_swap.bin and hdr_uboot_swap.out files to QSPI flash.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5. Power off the board, remove the the Jump connection on J14 J19 and J20, set SW2[1] to 0 and then power on the board boot from QSPI flash.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; When I program demo images uboot_swap.bin and hdr_uboot_swap.out which provided by freescale, the uboot can boot up successfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; So I used cst tool to generate a new key pair, and used the new key to sign uboot.bin and generated new uboot_swap.bin and hdr_uboot_swap.out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The hash of new public key is not burned into the fuse. The hash value in the fuse is still the demo key's not the new keys'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I program with the new generated uboot_swap.bin and hdr_uboot_swap.out to the QSPI flash and boot from QSPI flash.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I thought the new uboot should not boot up, since the new public key's hash is not identical to the one burned in the fuse.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; But the new uboot can still boot up from QSPI flash, and there is no any error message as below.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SMALL&gt;&lt;SMALL&gt;&lt;BR /&gt; U-Boot 2015.01+ls1+g3281947 (May 04 2016 - 17:55:54)&lt;BR /&gt; &lt;BR /&gt; CPU:&amp;nbsp;&amp;nbsp; Freescale LayerScape LS1021E, Version: 2.0, (0x87081120)&lt;BR /&gt; Clock Configuration:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CPU0(ARMV7):1000 MHz, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Bus:300&amp;nbsp; MHz, DDR:800&amp;nbsp; MHz (1600 MT/s data rate), &lt;BR /&gt; Reset Configuration Word (RCW):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00000000: 0608000a 00000000 00000000 00000000&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00000010: 20000000 08407900 40225a00 21046000&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00000020: 00000000 00000000 00000000 20038000&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00000030: 20024800 881b1340 00000000 00000000&lt;BR /&gt; Board: LS1021AIOT&lt;BR /&gt; I2C:&amp;nbsp;&amp;nbsp; ready&lt;BR /&gt; DRAM:&amp;nbsp; 1 GiB&lt;BR /&gt; Using SERDES1 Protocol: 32 (0x20)&lt;BR /&gt; MMC:&amp;nbsp;&amp;nbsp; FSL_SDHC: 0&lt;BR /&gt; SF: Detected S25FL512S_256K with page size 512 Bytes, erase size 256 KiB, total 64 MiB&lt;BR /&gt; *** Warning - bad CRC, using default environment&lt;BR /&gt; &lt;BR /&gt; EEPROM: NXID v1&lt;BR /&gt; PCIe1: Root Complex x1 gen1, regs @ 0x3400000&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01:00.0&amp;nbsp;&amp;nbsp;&amp;nbsp; - 8086:08b1 - Network controller&lt;BR /&gt; PCIe1: Bus 00 - 01&lt;BR /&gt; PCIe2: Root Complex no link, regs @ 0x3500000&lt;BR /&gt; In:&amp;nbsp;&amp;nbsp;&amp;nbsp; serial&lt;BR /&gt; Out:&amp;nbsp;&amp;nbsp; serial&lt;BR /&gt; Err:&amp;nbsp;&amp;nbsp; serial&lt;BR /&gt; SEC0: RNG instantiated&lt;BR /&gt; SATA link 0 timeout.&lt;BR /&gt; AHCI 0001.0300 1 slots 1 ports ? Gbps 0x1 impl SATA mode&lt;BR /&gt; flags: 64bit ncq pm clo only pmp fbss pio slum part ccc &lt;BR /&gt; scanning bus for devices...&lt;BR /&gt; Found 0 device(s).&lt;BR /&gt; SCSI:&amp;nbsp; Net:&amp;nbsp;&amp;nbsp; eTSEC1 is in sgmii mode.&lt;BR /&gt; eTSEC2 is in sgmii mode.&lt;BR /&gt; Phy 4 not found&lt;BR /&gt; PHY reset timed out&lt;BR /&gt; eTSEC1, eTSEC2 [PRIME], eTSEC3&lt;BR /&gt; Hit any key to stop autoboot:&amp;nbsp; 0 &lt;BR /&gt; reading uImage.bin&lt;/SMALL&gt;&lt;/SMALL&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I used the RCW file to enable the secure boot (Set SB_EN=1 ), and didn't set the fuse ITS to 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Below is my command to program uboot_swap.bin and hdr_uboot_swap.out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SMALL&gt;sf probe&lt;BR /&gt; sf erase 0x0 0x200000&lt;BR /&gt; &lt;BR /&gt; tftp 0x82000000 rcw_1000_qspiboot_swap.bin&lt;BR /&gt; sf write 0x82000000 0x0 0x100&lt;BR /&gt; &lt;BR /&gt; tftp 0x82000000 uboot_swap.bin&lt;BR /&gt; sf write 0x82000000 0x10000 0x80000&lt;BR /&gt; &lt;BR /&gt; tftp 0x82000000 hdr_uboot_swap.out&lt;BR /&gt; sf write 0x82000000 0x90000 0x100000&lt;/SMALL&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If I didn't program hdr_uboot_swap.out, the uboot will not boot up and there is no any warning message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If I change the RCW file with the one disable the secure boot(Not set SB_EN=1), and didn't program&amp;nbsp; hdr_uboot_swap.out, the uboot can boot up.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; So It looks the signature of uboot will be verified if the secure boot enabled by RCW, but the public key will not be compared by the fuse.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BTW if I signed uImage file with the new key there will be warning message about "ERROR :: 400 :: Public key hash comparison failed" when uboot boot up.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; And the kernel can still boot up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SMALL&gt;&lt;SMALL&gt;U-Boot 2015.01+ls1+g3281947 (May 04 2016 - 17:55:54)&lt;BR /&gt; &lt;BR /&gt; CPU:&amp;nbsp;&amp;nbsp; Freescale LayerScape LS1021E, Version: 2.0, (0x87081120)&lt;BR /&gt; Clock Configuration:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CPU0(ARMV7):1000 MHz, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Bus:300&amp;nbsp; MHz, DDR:800&amp;nbsp; MHz (1600 MT/s data rate), &lt;BR /&gt; Reset Configuration Word (RCW):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00000000: 0608000a 00000000 00000000 00000000&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00000010: 70000000 08007900 40025a00 21046000&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00000020: 00000000 00000000 00000000 20038000&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00000030: 20024800 881b1340 00000000 00000000&lt;BR /&gt; Board: LS1021AIOT&lt;BR /&gt; I2C:&amp;nbsp;&amp;nbsp; ready&lt;BR /&gt; DRAM:&amp;nbsp; 1 GiB&lt;BR /&gt; Using SERDES1 Protocol: 112 (0x70)&lt;BR /&gt; MMC:&amp;nbsp;&amp;nbsp; FSL_SDHC: 0&lt;BR /&gt; SF: Detected S25FL512S_256K with page size 512 Bytes, erase size 256 KiB, total 64 MiB&lt;BR /&gt; *** Warning - bad CRC, using default environment&lt;BR /&gt; &lt;BR /&gt; EEPROM: NXID v1&lt;BR /&gt; PCIe1: Root Complex x1 gen1, regs @ 0x3400000&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01:00.0&amp;nbsp;&amp;nbsp;&amp;nbsp; - 8086:08b1 - Network controller&lt;BR /&gt; PCIe1: Bus 00 - 01&lt;BR /&gt; PCIe2: Root Complex no link, regs @ 0x3500000&lt;BR /&gt; In:&amp;nbsp;&amp;nbsp;&amp;nbsp; serial&lt;BR /&gt; Out:&amp;nbsp;&amp;nbsp; serial&lt;BR /&gt; Err:&amp;nbsp;&amp;nbsp; serial&lt;BR /&gt; SEC0: RNG instantiated&lt;BR /&gt; SATA link 0 timeout.&lt;BR /&gt; AHCI 0001.0300 1 slots 1 ports ? Gbps 0x1 impl SATA mode&lt;BR /&gt; flags: 64bit ncq pm clo only pmp fbss pio slum part ccc &lt;BR /&gt; scanning bus for devices...&lt;BR /&gt; Found 0 device(s).&lt;BR /&gt; SCSI:&amp;nbsp; Net:&amp;nbsp;&amp;nbsp; eTSEC2 is in sgmii mode.&lt;BR /&gt; Phy 4 not found&lt;BR /&gt; PHY reset timed out&lt;BR /&gt; eTSEC1, eTSEC2 [PRIME], eTSEC3&lt;BR /&gt; Hit any key to stop autoboot:&amp;nbsp; 0 &lt;BR /&gt; reading uImage.bin&lt;BR /&gt; 5130672 bytes read in 245 ms (20 MiB/s)&lt;BR /&gt; reading ls1021aiot.dtb&lt;BR /&gt; 21183 bytes read in 20 ms (1 MiB/s)&lt;BR /&gt; reading ls1021aiot.rootfs&lt;BR /&gt; 66442965 bytes read in 2953 ms (21.5 MiB/s)&lt;BR /&gt; reading hdr_linux.out&lt;BR /&gt; 1152 bytes read in 15 ms (74.2 KiB/s)&lt;BR /&gt; reading hdr_rootfs.out&lt;BR /&gt; 1152 bytes read in 15 ms (74.2 KiB/s)&lt;BR /&gt; reading hdr_dtb.out&lt;BR /&gt; 1152 bytes read in 15 ms (74.2 KiB/s)&lt;BR /&gt; &lt;SPAN style="color: #cc0000;"&gt;&lt;EM&gt;ERROR :: 400 :: Public key hash comparison failed&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt; esbc_validate command successful&lt;BR /&gt; esbc_validate command successful&lt;BR /&gt; ## Booting kernel from Legacy Image at 82000000 ...&lt;/SMALL&gt;&lt;/SMALL&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used command md to check the values in fuse address after boot from sd card as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SMALL&gt;=&amp;gt; md 1e80234&lt;BR /&gt; 01e80234: ffffffff ffffffff ffffffff ffffffff&amp;nbsp;&amp;nbsp;&amp;nbsp; ................&lt;BR /&gt; 01e80244: ffffffff ffffffff ffffffff ffffffff&amp;nbsp;&amp;nbsp;&amp;nbsp; ................&lt;BR /&gt; 01e80254: 6c25e357 fd0bf748 cd2c1356 58b79c1b&amp;nbsp;&amp;nbsp;&amp;nbsp; W.%lH...V.,....X&lt;BR /&gt; 01e80264: f480db72 2243a6e3 6a017e1f a432062e&amp;nbsp;&amp;nbsp;&amp;nbsp; r.....C".~.j..2.&lt;BR /&gt; 01e80274: 00000000 00000000 00000000 00000000&amp;nbsp;&amp;nbsp;&amp;nbsp; ................&lt;BR /&gt; 01e80284: 00000000 ffffffff ffffffff ffffffff&amp;nbsp;&amp;nbsp;&amp;nbsp; ................&lt;BR /&gt; 01e80294: ffffffff ffffffff ffffffff ffffffff&amp;nbsp;&amp;nbsp;&amp;nbsp; ................&lt;BR /&gt; 01e802a4: ffffffff 00000000 00000000 00000000&amp;nbsp;&amp;nbsp;&amp;nbsp; ................&lt;BR /&gt; 01e802b4: 00000000 00000000 00000000 00000000&amp;nbsp;&amp;nbsp;&amp;nbsp; ................&lt;BR /&gt; 01e802c4: 00000000 00000000 00000000 00000000&amp;nbsp;&amp;nbsp;&amp;nbsp; ................&lt;BR /&gt; 01e802d4: 00000000 00000000 00000000 00000000&amp;nbsp;&amp;nbsp;&amp;nbsp; ................&lt;BR /&gt; 01e802e4: 00000000 00000000 00000000 00000000&amp;nbsp;&amp;nbsp;&amp;nbsp; ................&lt;BR /&gt; 01e802f4: 00000000 00000000 00000000 00000000&amp;nbsp;&amp;nbsp;&amp;nbsp; ................&lt;BR /&gt; 01e80304: 00000000 00000000 00000000 00000000&amp;nbsp;&amp;nbsp;&amp;nbsp; ................&lt;BR /&gt; 01e80314: 00000000 00000000 00000000 00000000&amp;nbsp;&amp;nbsp;&amp;nbsp; ................&lt;BR /&gt; 01e80324: 00000000 00000000 00000000 00000000&amp;nbsp;&amp;nbsp;&amp;nbsp; ................&lt;BR /&gt; =&amp;gt; md 1e80020 1&lt;BR /&gt; 01e80020: 00000000 &lt;/SMALL&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know why the uboot signed by the error key can still boot up, is it because I enable secure boot in RCW not with fuse ITS?&lt;/P&gt;&lt;P&gt;Is there any error message output if the uboot(ESBC) can't pass the validation of ISBC, or just the uboot can't boot up and no any output.&lt;/P&gt;&lt;P&gt;Is there something wrong in my steps when I validate the secure boot?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 07:17:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Uboot-signed-by-error-key-can-still-boot-up/m-p/501772#M1057</guid>
      <dc:creator>hillmanhuo</dc:creator>
      <dc:date>2016-05-05T07:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Uboot signed by error key can still boot up</title>
      <link>https://community.nxp.com/t5/Layerscape/Uboot-signed-by-error-key-can-still-boot-up/m-p/501773#M1058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;SPAN class="jive-username-link jiveTT-hover-user"&gt;Hillman Huo,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="jive-username-link jiveTT-hover-user"&gt;Please pay attention to one point for secure boot, the target r&lt;/SPAN&gt;uns out of POR with RCW having SB_EN=1 and location of header programmed in DCFG SCRATCHRW1 register via PBI commands. Boot ROM will read the SCRATCH REGISTER for location of the HEADER and then perform the validation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hdr address: to be updated in PBI commands for updating SCRATCHRW1.&lt;/P&gt;&lt;P&gt;Uboot address: to be updated in input file and eventually inside the header&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could use QCVS tool to assist you to generate the PBL file including PBI.&lt;/P&gt;&lt;P&gt;For details, you could refer to &lt;SPAN&gt;QorIQ SDK 1.9 document&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Yiping&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2016 10:07:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Uboot-signed-by-error-key-can-still-boot-up/m-p/501773#M1058</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2016-05-06T10:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Uboot signed by error key can still boot up</title>
      <link>https://community.nxp.com/t5/Layerscape/Uboot-signed-by-error-key-can-still-boot-up/m-p/501774#M1059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;SPAN class="jive-username-link jiveTT-hover-user"&gt;Hillman Huo,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="jive-username-link jiveTT-hover-user"&gt;Would you please provide the input file used for generating u-boot hdr header file? Probably there is problem is this file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="jive-username-link jiveTT-hover-user"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Yiping&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2016 11:04:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Uboot-signed-by-error-key-can-still-boot-up/m-p/501774#M1059</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2016-05-06T11:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Uboot signed by error key can still boot up</title>
      <link>https://community.nxp.com/t5/Layerscape/Uboot-signed-by-error-key-can-still-boot-up/m-p/501775#M1060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used the u-boot-dtb.bin file to generate the swap and hdr file wit cst &lt;/P&gt;&lt;P&gt;tool.&lt;/P&gt;&lt;P&gt;Please refer to the attachment.&lt;/P&gt;&lt;P&gt;uboot_swap_error.bin is the swap file generated by u-boot-dtb.bin.&lt;/P&gt;&lt;P&gt;hdr_uboot_swap_error.out is the hdr file generated by u-boot-dtb.bin &lt;/P&gt;&lt;P&gt;with cst tool(using error key the right key hash has burned to the fuse).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2016 11:44:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Uboot-signed-by-error-key-can-still-boot-up/m-p/501775#M1060</guid>
      <dc:creator>hillmanhuo</dc:creator>
      <dc:date>2016-05-06T11:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Uboot signed by error key can still boot up</title>
      <link>https://community.nxp.com/t5/Layerscape/Uboot-signed-by-error-key-can-still-boot-up/m-p/501776#M1061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So there is something wrong in the PBL on my board, right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2016 11:47:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Uboot-signed-by-error-key-can-still-boot-up/m-p/501776#M1061</guid>
      <dc:creator>hillmanhuo</dc:creator>
      <dc:date>2016-05-06T11:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Uboot signed by error key can still boot up</title>
      <link>https://community.nxp.com/t5/Layerscape/Uboot-signed-by-error-key-can-still-boot-up/m-p/501777#M1062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;SPAN class="replyToName"&gt;Hillman Huo,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Please check the value of HPSR[SSM_ST](11-8).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Security monitor state. This field contains the encoded state of the security monitor's internal state&lt;/P&gt;&lt;P&gt;machine. The encoding of the possible states are:&lt;/P&gt;&lt;P&gt;0000 Init&lt;/P&gt;&lt;P&gt;1001 Check&lt;/P&gt;&lt;P&gt;1011 Non-Secure&lt;/P&gt;&lt;P&gt;1101 Trusted&lt;/P&gt;&lt;P&gt;1111 Secure&lt;/P&gt;&lt;P&gt;0011 Soft Fail&lt;/P&gt;&lt;P&gt;0001 Hard Fail&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition, d&lt;SPAN class="replyToName"&gt;uring the stage of design and testing, it is not recommended to permanently write SRKH mirror registers data from the mirror registers into the fuse array.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;We recommend customers use the following the following procedure to do testing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;1.Put the core in boot hold off at startup.&lt;/P&gt;&lt;P&gt;For this load the RCW with BOOT_HO = 1 .&lt;/P&gt;&lt;P&gt;2.Configure ccs&lt;/P&gt;&lt;P&gt;ccs::config_server 0 10000&lt;/P&gt;&lt;P&gt;ccs::config_chain {{8 1} ls1020a dap {8 1} }&lt;/P&gt;&lt;P&gt;3.Write the keys in SFP_SRKRH shadow registers.&lt;/P&gt;&lt;P&gt;ccs::write_mem 15 0x1e80254 4 0 0x&amp;lt; Reg_1&amp;gt;&lt;/P&gt;&lt;P&gt;ccs::write_mem 15 0x1e80258 4 0 0x&amp;lt; Reg_2&amp;gt;&lt;/P&gt;&lt;P&gt;ccs::write_mem 15 0x1e8025c 4 0 0x&amp;lt; Reg_3&amp;gt;&lt;/P&gt;&lt;P&gt;ccs::write_mem 15 0x1e80260 4 0 0x&amp;lt; Reg_4&amp;gt;&lt;/P&gt;&lt;P&gt;ccs::write_mem 15 0x1e80264 4 0 0x&amp;lt; Reg_5&amp;gt;&lt;/P&gt;&lt;P&gt;ccs::write_mem 15 0x1e80268 4 0 0x&amp;lt; Reg_6&amp;gt;&lt;/P&gt;&lt;P&gt;ccs::write_mem 15 0x1e8026c 4 0 0x&amp;lt; Reg_7&amp;gt;&lt;/P&gt;&lt;P&gt;ccs::write_mem 15 0x1e80270 4 0 0x&amp;lt; Reg_8&amp;gt;&lt;/P&gt;&lt;P&gt;4.Get the core out of boot hold off.&lt;/P&gt;&lt;P&gt;ccs::write_mem 15 0x1ee00e4 4 0 0x1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Yiping&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2016 08:27:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Uboot-signed-by-error-key-can-still-boot-up/m-p/501777#M1062</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2016-05-09T08:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Uboot signed by error key can still boot up</title>
      <link>https://community.nxp.com/t5/Layerscape/Uboot-signed-by-error-key-can-still-boot-up/m-p/501778#M1063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for your patient explain.&lt;/P&gt;&lt;P&gt;Can tell more detail about how to configure ccs?&lt;/P&gt;&lt;P&gt;Will it be configured with code warrior?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2016 10:38:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Uboot-signed-by-error-key-can-still-boot-up/m-p/501778#M1063</guid>
      <dc:creator>hillmanhuo</dc:creator>
      <dc:date>2016-05-09T10:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Uboot signed by error key can still boot up</title>
      <link>https://community.nxp.com/t5/Layerscape/Uboot-signed-by-error-key-can-still-boot-up/m-p/501779#M1064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please install CodeWarrior for ARMv7, and open CCS console from Start-&amp;gt;Freescale CodeWarrior-&amp;gt;CodeWarrior Connection Server, please refer to page 9 in the doc &lt;A href="https://community.nxp.com/docs/DOC-329648"&gt;Secure Boot/Debug Configuration for LS1&lt;/A&gt; to configure CCS environment to write SRKH fuse values into mirror registers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yiping&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2016 11:07:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Uboot-signed-by-error-key-can-still-boot-up/m-p/501779#M1064</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2016-05-09T11:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: Uboot signed by error key can still boot up</title>
      <link>https://community.nxp.com/t5/Layerscape/Uboot-signed-by-error-key-can-still-boot-up/m-p/501780#M1065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,I met the same problem，but I use the P2040 secure boot.Could you solve the problem now,if you can ,tell me the solution please.Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2018 12:59:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Uboot-signed-by-error-key-can-still-boot-up/m-p/501780#M1065</guid>
      <dc:creator>ffanhuang5</dc:creator>
      <dc:date>2018-10-10T12:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Uboot signed by error key can still boot up</title>
      <link>https://community.nxp.com/t5/Layerscape/Uboot-signed-by-error-key-can-still-boot-up/m-p/501781#M1066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The NXP guys told me it's reasonable, since I didn't really burn the &lt;/P&gt;&lt;P&gt;root trust public key hash value into the board and just simulate this &lt;/P&gt;&lt;P&gt;process.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2018 01:27:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Uboot-signed-by-error-key-can-still-boot-up/m-p/501781#M1066</guid>
      <dc:creator>hillmanhuo</dc:creator>
      <dc:date>2018-10-11T01:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: Uboot signed by error key can still boot up</title>
      <link>https://community.nxp.com/t5/Layerscape/Uboot-signed-by-error-key-can-still-boot-up/m-p/501782#M1067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok,Thank u very much!But now I wanna program the correct public key hash into mirror register as Yiping Wang'said above,I can't success.Because I set Boot_ho=1,power on the board,u-boot can print strange code cyclically,then I open the CCS console window,writing SRKH mirror register by entering CCS&amp;nbsp; command ccs::write_mem 0 0xfe0e807c 4 0 0x********,but I enter ccs::display_mem 0 0xfe0e807c 4 0 1to read the corresponding register,finding the value still is 0x00000000,it doesn't work as i expected.Did you meet the same problem?&lt;/P&gt;&lt;P&gt;And do you know complete ccs console commands format,I only konw how to write and read memory,I can't find any reference.If you konw anything,please send me relate documents.Thank u again!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2018 01:18:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Uboot-signed-by-error-key-can-still-boot-up/m-p/501782#M1067</guid>
      <dc:creator>ffanhuang5</dc:creator>
      <dc:date>2018-10-12T01:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: Uboot signed by error key can still boot up</title>
      <link>https://community.nxp.com/t5/Layerscape/Uboot-signed-by-error-key-can-still-boot-up/m-p/501783#M1068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi，so did you how to use the ccs and ccs commands，like mmu configure command etc，because i can't program the value into registers，if you konw，please tell me some details，thank you very much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2018 01:43:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Uboot-signed-by-error-key-can-still-boot-up/m-p/501783#M1068</guid>
      <dc:creator>ffanhuang5</dc:creator>
      <dc:date>2018-10-17T01:43:16Z</dc:date>
    </item>
  </channel>
</rss>

