<?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 Re: High Assurance Boot Application Note wrong for HAB and mfgtool? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/High-Assurance-Boot-Application-Note-wrong-for-HAB-and-mfgtool/m-p/801413#M123817</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yuri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the uuu executable as built by the mfgtool project cloned from here:&amp;nbsp;&lt;A class="link-titled" href="https://github.com/NXPmicro/mfgtools" rel="nofollow noopener noreferrer" title="https://github.com/NXPmicro/mfgtools" target="_blank"&gt;GitHub - NXPmicro/mfgtools: Freescale/NXP I.MX Chip image deploy tools.&lt;/A&gt;&amp;nbsp;My uuu.auto script contains:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE style="padding-left: 30px;"&gt;SDP: boot -f u-boot.imx.hab-signed.mfgtool -nojump
SDP: write -f zImage -addr 0x80800000
SDP: write -f rootfs.cpio.uboot -addr 0x83800000
SDP: write -f imx7dea-2piasg.dtb -addr 0x83000000
SDP: jump -f u-boot.imx.hab-signed.mfgtool -ivt&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;u-boot.imx.hab-signed.mfgtool is&amp;nbsp;a concatenation of boot.imx and&amp;nbsp;u-boot.imx.mfgtool.csf.bin.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;u-boot.imx.mfgtool.csf.bin is generated with cst using the following input:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE style="padding-left: 30px;"&gt;[Header]
Version = 4.1
Security Configuration = Open
Hash Algorithm = sha256
Engine Configuration = 0
Certificate Format = X509
Signature Format = CMS
Engine = CAAM

[Install SRK]
File = "otau/cst/crts/SRK_1_2_3_4_table.bin"
Source index = 0

[Install CSFK]
File = "otau/cst/crts/CSF1_1_sha256_2048_65537_v3_usr_crt.pem"

[Authenticate CSF]

[Install Key]
# Key slot index used to authenticate the key to be installed
Verification index = 0
# Key to install
Target index = 2
File = "otau/cst/crts/IMG1_1_sha256_2048_65537_v3_usr_crt.pem"

[Authenticate Data]
Verification index = 2
# Address Offset Length DataFilePath
Blocks = 0x877ff400 0 0x4ec00 "/home/smipi1/Projects/apex.new/build_dir/arm/boot/u-boot.imx", \
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x910000 0x2c 0x01b0 "/home/smipi1/Projects/apex.new/build_dir/arm/boot/u-boot.imx"&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;As already stated, the above works, but it shouldn't. I should be using a DCD pointer zeroed variant of u-boot.imx to create the signature for it to work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Jan 2019 11:56:02 GMT</pubDate>
    <dc:creator>pieter1</dc:creator>
    <dc:date>2019-01-02T11:56:02Z</dc:date>
    <item>
      <title>High Assurance Boot Application Note wrong for HAB and mfgtool?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/High-Assurance-Boot-Application-Note-wrong-for-HAB-and-mfgtool/m-p/801411#M123815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been&amp;nbsp;spending a lot of time getting HAB working on an i.MX7 for the mfgtool (uuu). I eventually got it working after a lot of troubleshooting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem is: The way I got it working runs completely counter to what&amp;nbsp;&lt;A class="link-titled" href="https://www.nxp.com/docs/en/application-note/AN4581.pdf" title="https://www.nxp.com/docs/en/application-note/AN4581.pdf"&gt;https://www.nxp.com/docs/en/application-note/AN4581.pdf&lt;/A&gt;&amp;nbsp;specifies!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Appendix F.1. in AN4581, it clearly explains that the CSF signature should be&amp;nbsp;generated against the u-boot image with the DCD table pointer zeroed, and that the DCD table should also be signed as if located in OCRAM.&amp;nbsp;The resulting signature can then be attached to the back of the image with the DCD table pointer restored to its original value. This does not work on the silicon&amp;nbsp;on my desk. On the device&amp;nbsp;I get a `HAB_INV_SIGNATURE` as the first event followed by a further 5 events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I skip the DCD table pointer zeroing,&amp;nbsp;I get `No HAB Events Found!`. So it works... But will it keep on working&amp;nbsp;for future `mfgtool` or silicon versions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody explain what I am seeing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Dec 2018 13:43:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/High-Assurance-Boot-Application-Note-wrong-for-HAB-and-mfgtool/m-p/801411#M123815</guid>
      <dc:creator>pieter1</dc:creator>
      <dc:date>2018-12-14T13:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: High Assurance Boot Application Note wrong for HAB and mfgtool?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/High-Assurance-Boot-Application-Note-wrong-for-HAB-and-mfgtool/m-p/801412#M123816</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;&amp;nbsp; Do You use the mfg or uuu?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Yuri&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, 28 Dec 2018 06:00:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/High-Assurance-Boot-Application-Note-wrong-for-HAB-and-mfgtool/m-p/801412#M123816</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2018-12-28T06:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: High Assurance Boot Application Note wrong for HAB and mfgtool?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/High-Assurance-Boot-Application-Note-wrong-for-HAB-and-mfgtool/m-p/801413#M123817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yuri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the uuu executable as built by the mfgtool project cloned from here:&amp;nbsp;&lt;A class="link-titled" href="https://github.com/NXPmicro/mfgtools" rel="nofollow noopener noreferrer" title="https://github.com/NXPmicro/mfgtools" target="_blank"&gt;GitHub - NXPmicro/mfgtools: Freescale/NXP I.MX Chip image deploy tools.&lt;/A&gt;&amp;nbsp;My uuu.auto script contains:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE style="padding-left: 30px;"&gt;SDP: boot -f u-boot.imx.hab-signed.mfgtool -nojump
SDP: write -f zImage -addr 0x80800000
SDP: write -f rootfs.cpio.uboot -addr 0x83800000
SDP: write -f imx7dea-2piasg.dtb -addr 0x83000000
SDP: jump -f u-boot.imx.hab-signed.mfgtool -ivt&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;u-boot.imx.hab-signed.mfgtool is&amp;nbsp;a concatenation of boot.imx and&amp;nbsp;u-boot.imx.mfgtool.csf.bin.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;u-boot.imx.mfgtool.csf.bin is generated with cst using the following input:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE style="padding-left: 30px;"&gt;[Header]
Version = 4.1
Security Configuration = Open
Hash Algorithm = sha256
Engine Configuration = 0
Certificate Format = X509
Signature Format = CMS
Engine = CAAM

[Install SRK]
File = "otau/cst/crts/SRK_1_2_3_4_table.bin"
Source index = 0

[Install CSFK]
File = "otau/cst/crts/CSF1_1_sha256_2048_65537_v3_usr_crt.pem"

[Authenticate CSF]

[Install Key]
# Key slot index used to authenticate the key to be installed
Verification index = 0
# Key to install
Target index = 2
File = "otau/cst/crts/IMG1_1_sha256_2048_65537_v3_usr_crt.pem"

[Authenticate Data]
Verification index = 2
# Address Offset Length DataFilePath
Blocks = 0x877ff400 0 0x4ec00 "/home/smipi1/Projects/apex.new/build_dir/arm/boot/u-boot.imx", \
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x910000 0x2c 0x01b0 "/home/smipi1/Projects/apex.new/build_dir/arm/boot/u-boot.imx"&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;As already stated, the above works, but it shouldn't. I should be using a DCD pointer zeroed variant of u-boot.imx to create the signature for it to work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2019 11:56:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/High-Assurance-Boot-Application-Note-wrong-for-HAB-and-mfgtool/m-p/801413#M123817</guid>
      <dc:creator>pieter1</dc:creator>
      <dc:date>2019-01-02T11:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: High Assurance Boot Application Note wrong for HAB and mfgtool?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/High-Assurance-Boot-Application-Note-wrong-for-HAB-and-mfgtool/m-p/801414#M123818</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;&amp;nbsp; The issue may be concern with MFG using. Is it possible to reproduce the issue with the MFG (instead of UUU)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yuri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2019 08:14:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/High-Assurance-Boot-Application-Note-wrong-for-HAB-and-mfgtool/m-p/801414#M123818</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2019-01-08T08:14:51Z</dc:date>
    </item>
  </channel>
</rss>

