<?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 RT Crossover MCUsのトピックRe: RT1064: Signed &amp;amp; Encrypted bootloader &amp;amp; application considerations</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1064-Signed-amp-Encrypted-bootloader-amp-application/m-p/1920501#M31373</link>
    <description>&lt;P&gt;Thanks for sharing this information!&lt;/P&gt;&lt;P&gt;Do you know where you found the information about what the IV should be? I've tried to encrypt my main application image and flashed it, but my bootloader doesn't seem to accept it. I haven't done anything in the bootloader wrt. configuring the BEE, but in the Secure Provisioning Tool I increased the size of the encrypted region to encompass both my bootloader and application, so I thought it might no be necessary?&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jul 2024 12:13:48 GMT</pubDate>
    <dc:creator>dafela</dc:creator>
    <dc:date>2024-07-30T12:13:48Z</dc:date>
    <item>
      <title>RT1064: Signed &amp; Encrypted bootloader &amp; application considerations</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1064-Signed-amp-Encrypted-bootloader-amp-application/m-p/1353125#M16646</link>
      <description>&lt;P&gt;I have some questions about securing bootloader &amp;amp; application code on a RT1064 using signing and BEE encryption which I hope you can help with.&lt;BR /&gt;From a prototype running a second bootloader from FlexSPI Flash and then application code, I need a path to tens of products requiring signed, encrypted images, onto potentially thousands of products. So I'm interested in what descisions need to be made now, regarding choices on which keys and configurations to use, which will allow a smooth scale-up of the project.&lt;/P&gt;&lt;P&gt;Currently, the prototype runs a second bootloader, which runs the application. I have the MCUXpresso Secure Provisioning Tool, which I can use to encrypt an image and generate a key. However, I'm not clear here on the "Boot Type" choice: There are two XIP options given,&lt;BR /&gt;"BEE OTPMK Key", and&lt;BR /&gt;"(BEE User Keys) Authenicated"&lt;BR /&gt;What considerations would affect whether to choose one over the other here? The Keys Management tab allows the generation of (what I assume is) the master key, with a given passphrase and serial number. I assume the passphrase and serial number need to be kept confidential and will be common to all products with images encrypted with this key. What effect does the serial number value have?&lt;BR /&gt;If the "(BEE User Keys) Authenicated" option is chosen, another key has to be specified, for which there are several options for configuration, for example "User Key Data". Is there any advantage on choosing this option as I assume this will require this data to be stored confidentially also? I there a scenario where this key is needed later?&lt;/P&gt;&lt;P&gt;I watched the webinar on the NXP website showing some demos of signed &amp;amp; encrypted applications. But it didn't touch on how to have a signed &amp;amp; encrypted second bootloader then run a signed &amp;amp; encrypted application. In this scenario, is the application image generated in the same way using the Secure Provisioning Tool and how does the bootloader code verify and run this? Is there an application note which has examples of this?&lt;/P&gt;&lt;P&gt;Looking further ahead to production units where JTAG is not available, then what mechanisms can be employed to program the key data in the eFuses? Is this something that NXP would do before shipping an order of RT1064s, or would this be done programatically the first time the bootloader is run? Are there examples available for this?&lt;/P&gt;&lt;P&gt;Thanks in advance for any comments.&lt;/P&gt;</description>
      <pubDate>Sun, 10 Oct 2021 10:49:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1064-Signed-amp-Encrypted-bootloader-amp-application/m-p/1353125#M16646</guid>
      <dc:creator>damonb</dc:creator>
      <dc:date>2021-10-10T10:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: RT1064: Signed &amp; Encrypted bootloader &amp; application considerations</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1064-Signed-amp-Encrypted-bootloader-amp-application/m-p/1353468#M16650</link>
      <description>&lt;P&gt;Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.&lt;BR /&gt;1) What considerations would affect whether to choose one over the other here? &lt;BR /&gt;-- The key difference between the BEE OTPMK Key and (BEE User Keys) Authenicated option is the key selection for BEE, the OTPMK Key is unique for an individual chip, it means each chip could use a unique secret key to encrypt the SW image, so each image can only boot on the chip with the right secret key, “image copy” can be prevented.&lt;BR /&gt;Of course, you can set a common key for all chips, then all chips can run a 'common' image.&lt;BR /&gt;2) In this scenario, is the application image generated in the same way using the Secure Provisioning Tool and how does the bootloader code verify and run this? Is there an application note which has examples of this?&lt;BR /&gt;-- Please refer to the &lt;A href="https://www.nxp.com.cn/docs/en/application-note/AN12604.pdf" target="_self"&gt;application note&lt;/A&gt;.&lt;BR /&gt;3) Is this something that NXP would do before shipping an order of RT1064s, or would this be done programmatically the first time the bootloader is run? Are there examples available for this?&lt;BR /&gt;-- I think NXP can provide the burn eFuse service for the big customer, customers can use the &lt;A href="https://github.com/JayHeng/NXP-MCUBootUtility" target="_self"&gt;tool&lt;/A&gt; to burn the eFuse.&lt;BR /&gt;Have a great day.&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 10:22:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1064-Signed-amp-Encrypted-bootloader-amp-application/m-p/1353468#M16650</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2021-10-11T10:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: RT1064: Signed &amp; Encrypted bootloader &amp; application considerations</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1064-Signed-amp-Encrypted-bootloader-amp-application/m-p/1353618#M16659</link>
      <description>&lt;P&gt;Thank-you for your reply. I tried some experiments: I built the "blinky" demo application from the SDK, but with XIP_BOOT_HEADER_ENABLE set to 0 and used the Secure Provisioning Tool, with Boot Mode set to "Authenticated HAB ", to create some keys and create a signed image of "blinky". I've written this to a RT1064 eval board, including burning the fuses and it runs fine. I left the "Enable Security" check-box unchecked, so I assume this leaves the system "open" rather than "closed".&lt;/P&gt;&lt;P&gt;I wanted to verify whether indeed the HAB authentication was passing or not - I assume the only was to know this is to read the HAB events. I downloaded the 'cst' tool (Linux) and saw that it contained an application called&amp;nbsp;hab_log_parser. I attached the debugger to the running "blinky" application, paused it and exported the memory from 0x20201000 to 0x20201b8. This is the output from the tool:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="damonbeales_0-1633968491629.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/158797i97E75318AE5D715E/image-size/large?v=v2&amp;amp;px=999" role="button" title="damonbeales_0-1633968491629.png" alt="damonbeales_0-1633968491629.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So I assume this means it did not work. If it had worked, what would I see - an empty table, or an entry indicating "success" ?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What I want to do next is use this process for a second bootloader, which will then configure BEE on-the-fly decryption and run the main application. But I need to get this working correctly first. Any ideas what I may have done wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I had a quick look at the MCUBootUtility, but this doesn't look like an option for me. Is this an officially supported NXP tool? On the NXP website, the configuration tool specified is the Secure Provisioning Tool, so really this has to be used, which should be fine.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 16:32:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1064-Signed-amp-Encrypted-bootloader-amp-application/m-p/1353618#M16659</guid>
      <dc:creator>damonb</dc:creator>
      <dc:date>2021-10-11T16:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: RT1064: Signed &amp; Encrypted bootloader &amp; application considerations</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1064-Signed-amp-Encrypted-bootloader-amp-application/m-p/1354142#M16673</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Thanks for your reply.&lt;BR /&gt;1) Secure Provisioning Tool provides the log for us to check the manipulation is successful or not, so it can help you to check to enable the authentic boot or not.&lt;BR /&gt;2) What I want to do next is use this process for a second bootloader, which will then configure BEE on-the-fly decryption and run the main application. But I need to get this working correctly first. Any ideas what I may have done wrong?&lt;BR /&gt;-- Please refer to the &lt;A href="https://www.nxp.com.cn/docs/en/application-note/AN12604.pdf" target="_self"&gt;application note&lt;/A&gt;.&lt;BR /&gt;3) Is this an officially supported NXP tool?&lt;BR /&gt;-- No, it's managed by an AE coworker, and the Secure Provisioning Tool is released based on the tool actually, the MCUBootUtility is one of the favorite tools for customers during the developing phase.&lt;BR /&gt;Have a great day.&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 09:41:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1064-Signed-amp-Encrypted-bootloader-amp-application/m-p/1354142#M16673</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2021-10-12T09:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: RT1064: Signed &amp; Encrypted bootloader &amp; application considerations</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1064-Signed-amp-Encrypted-bootloader-amp-application/m-p/1354364#M16681</link>
      <description>&lt;P&gt;Thank-you.&lt;/P&gt;&lt;P&gt;I repeated the generation of the signed binary and this time it worked ok. I was able to programmatically call the HAB API and confirm that there were no HAB events generated, so this seems to be working.&lt;/P&gt;&lt;P&gt;For the BEE on-the-fly decryption, do you recommend using "XIP Encrypted (BEE User Keys) Unsigned" or "XIP Encrypted (BEE User Keys) Authenticated" for the main application, if the second bootloader has already been signed?&lt;/P&gt;&lt;P&gt;Looking at the "bee" example in the SDK, I see&amp;nbsp;BEE_USE_USER_KEY is not defined by default. So in this case, what is the key that is used for the on-the-fly decryption, I'm not clear on this. It's not clear if the comment in the code refers to the feature being defined or not defined:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="damonbeales_1-1634072614234.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/158916iEF29896760D3917A/image-size/large?v=v2&amp;amp;px=999" role="button" title="damonbeales_1-1634072614234.png" alt="damonbeales_1-1634072614234.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If I define BEE_USE_USER_KEY, then is the decryption done using the key in the SW-GP2 eFuse, which must match the "User Key Data" entered in the Secure Provisioning Tool here:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="damonbeales_0-1634070874880.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/158910i01846976E5961288/image-size/large?v=v2&amp;amp;px=999" role="button" title="damonbeales_0-1634070874880.png" alt="damonbeales_0-1634070874880.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is that right?&lt;/P&gt;&lt;P&gt;I also have a question about key generation in the Secure Provisioning Tool, under the Key Management tab: I notice there are options for "Serial number" and "Duration". Do these settings have any effect?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="damonbeales_0-1634059369217.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/158904i4EAAF81C0595183E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="damonbeales_0-1634059369217.png" alt="damonbeales_0-1634059369217.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank-you in advance for your comments.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 21:04:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1064-Signed-amp-Encrypted-bootloader-amp-application/m-p/1354364#M16681</guid>
      <dc:creator>damonb</dc:creator>
      <dc:date>2021-10-12T21:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: RT1064: Signed &amp; Encrypted bootloader &amp; application considerations</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1064-Signed-amp-Encrypted-bootloader-amp-application/m-p/1356406#M16729</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Sorry for reply late.&lt;BR /&gt;1) For the BEE on-the-fly decryption, do you recommend using "XIP Encrypted (BEE User Keys) Unsigned" or "XIP Encrypted (BEE User Keys) Authenticated" for the main application, if the second bootloader has already been signed?&lt;BR /&gt;-- You should select XIP Encrypted (BEE User Keys) Authenticated option.&lt;BR /&gt;2) Yes, the User Key Data will be burned to SW-GP2 after clicking write image.&lt;BR /&gt;3) Do these settings have any effect?&lt;BR /&gt;-- In general, you can treat it as the seed for generating the root CA and Private Key.&lt;/P&gt;
&lt;P&gt;Have a great day.&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Fri, 15 Oct 2021 10:12:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1064-Signed-amp-Encrypted-bootloader-amp-application/m-p/1356406#M16729</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2021-10-15T10:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: RT1064: Signed &amp; Encrypted bootloader &amp; application considerations</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1064-Signed-amp-Encrypted-bootloader-amp-application/m-p/1357322#M16750</link>
      <description>&lt;P&gt;Thank-you.&lt;/P&gt;&lt;P&gt;In my setup, I have a second bootloader and a main application. Both are built separately. I'm using the Secure Provisioning Tool (SPT) to sign the bootloader image and flash it to target. Then separately, I use the SPT to sign &amp;amp; encrypt the main application. But it seems the SPT is assuming the main application is the only application. I can see from the log that even though the main application start address is&amp;nbsp;0x70020000, it is erasing the flash from&amp;nbsp;0x70000000 (start of Flash memory) with this command:&lt;/P&gt;&lt;P&gt;blhost -t 50000 -u 0x15A2,0x0073 -j -- flash-erase-region 0x70000000 1089536 9&lt;/P&gt;&lt;P&gt;It is then also writing the FlexSPI NOR config block and another configuration block, which I don't think are required, as the second bootloader has already been flashed:&lt;/P&gt;&lt;P&gt;### Use tag 0xF000000F to notify FlashLoader to program FlexSPI NOR config block to the start of device ###&lt;BR /&gt;blhost -t 5000 -u 0x15A2,0x0073 -j -- fill-memory 0x3000 4 0xF000000F word&lt;BR /&gt;### Program configuration block ###&lt;BR /&gt;blhost -t 5000 -u 0x15A2,0x0073 -j -- configure-memory 9 0x3000&lt;/P&gt;&lt;P&gt;Please confirm the purpose of these two statements.&lt;/P&gt;&lt;P&gt;How can I tell the SPT that this image is going to be called from the second bootloader, so that the image is generated correctly? It is not the boot image, the second bootloader is the boot image. I can't find an option for this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 16:17:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1064-Signed-amp-Encrypted-bootloader-amp-application/m-p/1357322#M16750</guid>
      <dc:creator>damonb</dc:creator>
      <dc:date>2021-10-18T16:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: RT1064: Signed &amp; Encrypted bootloader &amp; application considerations</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1064-Signed-amp-Encrypted-bootloader-amp-application/m-p/1357468#M16754</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Thanks for your reply.&lt;BR /&gt;1) How can I tell the SPT that this image is going to be called from the second bootloader, so that the image is generated correctly? It is not the boot image, the second bootloader is the boot image. I can't find an option for this.&lt;BR /&gt;-- Until now, the Secure Provisioning Tool (SPT) hasn't supported the feature, it needs the developers to program the main application image via manipulating the Blhost's command manually.&lt;BR /&gt;Hope it helps.&lt;BR /&gt;Have a great day.&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 02:02:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1064-Signed-amp-Encrypted-bootloader-amp-application/m-p/1357468#M16754</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2021-10-19T02:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: RT1064: Signed &amp; Encrypted bootloader &amp; application considerations</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1064-Signed-amp-Encrypted-bootloader-amp-application/m-p/1357948#M16769</link>
      <description>&lt;P&gt;Thank-you for your comments.&lt;/P&gt;&lt;P&gt;I need to obtain the following two documents:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Security Reference Manual for the i.MX RT1064 Processor&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How to use HAB secure boot in i.MX RT10xx&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but the NXP site requires approval. How do I go about this, as I don't know a suitable NXP contact?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 13:53:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1064-Signed-amp-Encrypted-bootloader-amp-application/m-p/1357948#M16769</guid>
      <dc:creator>damonb</dc:creator>
      <dc:date>2021-10-19T13:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: RT1064: Signed &amp; Encrypted bootloader &amp; application considerations</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1064-Signed-amp-Encrypted-bootloader-amp-application/m-p/1358175#M16772</link>
      <description>&lt;P&gt;Hi, &lt;BR /&gt;Thanks for your reply. &lt;BR /&gt;Unfortunately, I can share these files with you directly, I'd like to suggest you contact NXP's &lt;A href="https://www.nxp.com/support/sample-and-buy/distributor-network:DISTRIBUTORS" target="_self"&gt;distributors&lt;/A&gt; to apply for the files.&lt;BR /&gt;Otherwise, you can search them via Google, as some guys may upload them.&lt;BR /&gt;Hope it helps.&lt;BR /&gt;Have a great day.&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 01:41:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1064-Signed-amp-Encrypted-bootloader-amp-application/m-p/1358175#M16772</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2021-10-20T01:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: RT1064: Signed &amp; Encrypted bootloader &amp; application considerations</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1064-Signed-amp-Encrypted-bootloader-amp-application/m-p/1358579#M16782</link>
      <description>&lt;P&gt;Thank-you, I've requested those documents from NXP.&lt;/P&gt;&lt;P&gt;For the Secure Provisioning Tool, I have a couple of questions on the CLI options in this example CLI command:&lt;/P&gt;&lt;P&gt;securep -w /workspaces/mcuxprovi4 --device MIMXRT1060 --boot-device ISSI_IS25LPxxxA_IS25WPxxxA --boot-type xip_encrypted_bee_user_keys_authenticated build --source-image /images/evkmimxrt1060_iled_blinky_xip.s19 --bee-user-keys-config bee_user_keys_config.json --img-cert crts/IMG1_1_sha256_2048_65537_v3_usr_crt.pem&lt;/P&gt;&lt;P&gt;--keys-cfg hab4_key_gen.json&lt;/P&gt;&lt;P&gt;What is the format of the hab4_key_gen.json file?&lt;/P&gt;&lt;P&gt;--bee-user-keys-config bee_user_keys_config.json&lt;/P&gt;&lt;P&gt;What is the format of the bee_user_keys_config.json?&lt;/P&gt;&lt;P&gt;I couldn't find any information on this.&lt;/P&gt;&lt;P&gt;As I mentioned previously, I wish to generate a signed, encrypted application image, which is called from a second bootloader (i.e. it's non-bootable). You mentioned that the SPT doesn't support this configuration. Is the issue with the SPT just with the uploading sequence only (blhost commands)? Is generating the build in SPT ok, or do I need to do it a different way?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 10:54:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1064-Signed-amp-Encrypted-bootloader-amp-application/m-p/1358579#M16782</guid>
      <dc:creator>damonb</dc:creator>
      <dc:date>2021-10-20T10:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: RT1064: Signed &amp; Encrypted bootloader &amp; application considerations</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1064-Signed-amp-Encrypted-bootloader-amp-application/m-p/1359278#M16800</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Thanks for your reply.&lt;BR /&gt;1) What is the format of the bee_user_keys_config.json?&lt;BR /&gt;-- I don't know actually, I guess the JSON files are deleted after the programming successfully by the SPT tool automatically.&lt;BR /&gt;2) Is the issue with the SPT just with the uploading sequence only (blhost commands)? Is generating the build in SPT ok, or do I need to do it a different way?&lt;BR /&gt;-- I'm not very clear with this question, you'd better explain or clarify it again.&lt;BR /&gt;Have a great day.&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 07:45:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1064-Signed-amp-Encrypted-bootloader-amp-application/m-p/1359278#M16800</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2021-10-21T07:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: RT1064: Signed &amp; Encrypted bootloader &amp; application considerations</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1064-Signed-amp-Encrypted-bootloader-amp-application/m-p/1359587#M16809</link>
      <description>&lt;P&gt;Sorry for not being clear.&lt;/P&gt;&lt;P&gt;I'm using a second bootloader in my target. This bootloader image will be signed. I need to flash this image to the target using JTAG (using a Segger J-Link). The option of using the Flashloader is not available to me. It seems all the NXP tools assume that the Flashloader can be uploaded and run, but that is not the case for me. I do not have USB or serial available.&lt;/P&gt;&lt;P&gt;So to build the image for my bootloader, I am using the Secure Provisioning Tool to sign the image built by MCUXpresso. But this doesn't seem to produce a complete binary image I can flash using JTAG, it is missing the first 0x1000 bytes, which contains the IVT, etc.&lt;/P&gt;&lt;P&gt;I've read many of NXPs application notes, but they all assume uploading using the NXP tools and the Flashloader.&lt;/P&gt;&lt;P&gt;How can I build a complete binary that is signed. (And then for my application, one that is signed and encrypted?)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 15:56:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1064-Signed-amp-Encrypted-bootloader-amp-application/m-p/1359587#M16809</guid>
      <dc:creator>damonb</dc:creator>
      <dc:date>2021-10-21T15:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: RT1064: Signed &amp; Encrypted bootloader &amp; application considerations</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1064-Signed-amp-Encrypted-bootloader-amp-application/m-p/1359875#M16819</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Thanks for your clarification.&lt;BR /&gt;1) How can I build a complete binary that is signed. (And then for my application, one that is signed and encrypted?)&lt;BR /&gt;-- According to your description, it seems like that you want to use the IDE to program signed or encrypted images to MCU via debug tool.&lt;BR /&gt;If my understanding is right. I'm afraid that your purpose is impossible to make it, as I know, all IDEs haven't supported the feature now and it needs to use the offline tools to implement the secure boot feature.&lt;BR /&gt;Hope this is clear.&lt;BR /&gt;Have a great day.&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 06:48:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1064-Signed-amp-Encrypted-bootloader-amp-application/m-p/1359875#M16819</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2021-10-22T06:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: RT1064: Signed &amp; Encrypted bootloader &amp; application considerations</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1064-Signed-amp-Encrypted-bootloader-amp-application/m-p/1359940#M16822</link>
      <description>&lt;P&gt;Sorry, I was not clear.&lt;/P&gt;&lt;P&gt;I compile an application in MCUXpresso, with XIP_BOOT_HEADER_ENABLE = 0.&lt;/P&gt;&lt;P&gt;I have a workspace created in Secure Provisioning Tool with some keys generated. I have "Authenicated (HAB)" boot type selected.&lt;/P&gt;&lt;P&gt;I load the .afx image file from MCUXpresso into Secure Provisioning Tool and click Build Image. This creates two binaries in bootable_images, one called _nopadding.bin.&lt;/P&gt;&lt;P&gt;To write this to my target, I can't use NXP tools like blhost, as I don't have access to USB or serial. I need to use JTAG via Segger J-Link.&lt;/P&gt;&lt;P&gt;How can I create a complete binary image which I can use with J-Link? I don't think _nopadding.bin is suitable, because it doesn't contain the correct header data. Is that correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 07:59:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1064-Signed-amp-Encrypted-bootloader-amp-application/m-p/1359940#M16822</guid>
      <dc:creator>damonb</dc:creator>
      <dc:date>2021-10-22T07:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: RT1064: Signed &amp; Encrypted bootloader &amp; application considerations</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1064-Signed-amp-Encrypted-bootloader-amp-application/m-p/1360448#M16840</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Thanks for your reply.&lt;BR /&gt;1) How can I create a complete binary image which I can use with J-Link? I don't think _nopadding.bin is suitable because it doesn't contain the correct header data. Is that correct?&lt;BR /&gt;-- Firstly, the Jlink can program the hex or bin files to an external flash, &lt;BR /&gt;Have a great day, next, it's too hard to generate a whole image file (bin or hex) for authentic boot, as I know, there's no such a tool to make it.&lt;BR /&gt;In my opinion, I'd like to suggest you modify your custom board to support the Serial Downloader mode.&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 02:30:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1064-Signed-amp-Encrypted-bootloader-amp-application/m-p/1360448#M16840</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2021-10-25T02:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: RT1064: Signed &amp; Encrypted bootloader &amp; application considerations</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1064-Signed-amp-Encrypted-bootloader-amp-application/m-p/1361029#M16850</link>
      <description>&lt;P&gt;Thank-you for your answer, although it is disappointing, I would think it is quite a common scenario to want to flash a complete signed image via JTAG.&lt;/P&gt;&lt;P&gt;I came across NXP AN12604 "Implement second bootloader on i.MXRT10xx series" which is a very useful document. There is a software package with it, AN12604SW, which I downloaded. This contains a Windows command-line tool called "image_generate.exe". AN12604 says how to use this tool to generate an encrypted image, but I don't see any reference to this tool in any other NXP document. Is there a document about this tool? Is it available on Linux? If not, can the same output be generated from another NXP tool, or should openssl be used, for example?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 20:29:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1064-Signed-amp-Encrypted-bootloader-amp-application/m-p/1361029#M16850</guid>
      <dc:creator>damonb</dc:creator>
      <dc:date>2021-10-25T20:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: RT1064: Signed &amp; Encrypted bootloader &amp; application considerations</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1064-Signed-amp-Encrypted-bootloader-amp-application/m-p/1361131#M16858</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Thanks for your reply.&lt;BR /&gt;1) Is there a document about this tool? Is it available on Linux? If not, can the same output be generated from another NXP tool, or should OpenSSL be used, for example?&lt;BR /&gt;-- No, there's no such a document now, to be honest, I'm not sure whether the tool is available on Linux, I once used it on Win10.&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 01:48:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1064-Signed-amp-Encrypted-bootloader-amp-application/m-p/1361131#M16858</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2021-10-26T01:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: RT1064: Signed &amp; Encrypted bootloader &amp; application considerations</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1064-Signed-amp-Encrypted-bootloader-amp-application/m-p/1363186#M16910</link>
      <description>&lt;P&gt;Thank-you for your answer.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;gt; I'm not sure whether the tool is available on Linux, I once used it on Win10.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Well, the tool came from NXP, so can you find out? I have no way of finding out, I'm not NXP, but you are!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What would be the equivalent openssl command to produce the same output?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Oct 2021 10:15:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1064-Signed-amp-Encrypted-bootloader-amp-application/m-p/1363186#M16910</guid>
      <dc:creator>damonb</dc:creator>
      <dc:date>2021-10-28T10:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: RT1064: Signed &amp; Encrypted bootloader &amp; application considerations</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1064-Signed-amp-Encrypted-bootloader-amp-application/m-p/1363600#M16917</link>
      <description>&lt;P&gt;Hi，&lt;BR /&gt;Thanks for your reply.&lt;BR /&gt;1) After checking, it can't run to call the below command in the Linux OS, however, I attached a new tool: image_enc which is equal to the image_generate, it can support the Linux and you can give it a try.&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;image_generate.exe ifile=iled_blinky.bin ofile=iled_blinky_encrypt.bin base_addr=0x60010000
region_key=00112233445566778899aabbccddeeff region_arg=1,[0x60010000,0xF000,0]&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 03:15:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1064-Signed-amp-Encrypted-bootloader-amp-application/m-p/1363600#M16917</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2021-10-29T03:15:59Z</dc:date>
    </item>
  </channel>
</rss>

