<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Change of key in bootloader and application</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/98981/change-of-key-in-bootloader-and-application</link><description>We would like to update the public key in bootloader and application in our product using the OTA mechanism. 
 For the example let&amp;#39;s assume the following naming: 
 pub1: existing public key in the device 
 priv1: private key used to sign firmware files</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 26 Apr 2023 11:59:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/98981/change-of-key-in-bootloader-and-application" /><item><title>RE: Change of key in bootloader and application</title><link>https://devzone.nordicsemi.com/thread/422498?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2023 11:59:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cdce8c37-1734-4740-ad13-8241ea82bf22</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;No problem. Yes, bootloader updates are supported according to the SDK documentation:&amp;nbsp;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1682510289624v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Just use &amp;#39;--bootloader&amp;#39; instead of &amp;#39;--application&amp;#39; when you generate the dfu package with nrfutil. Also keep in mind that the bootloader version number must be incremented for every update. The bootloader does not permit downgrades.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change of key in bootloader and application</title><link>https://devzone.nordicsemi.com/thread/422480?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2023 11:14:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f58d9155-d530-4d56-a70a-3b55511ff9e8</guid><dc:creator>Simon_89</dc:creator><description>&lt;p&gt;Sorry, one more thing:&lt;/p&gt;
&lt;p&gt;Is it possible to update the bootloader separately using the OTA process? Using &amp;quot;nrfutil pkg generate&amp;quot;, can I create a package that contains the bootloader, which can then be transferred via Thread and installed by the device? Assuming the bootloader can then detect that it should replace itself?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change of key in bootloader and application</title><link>https://devzone.nordicsemi.com/thread/422079?ContentTypeID=1</link><pubDate>Mon, 24 Apr 2023 13:38:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f59446aa-5116-46d1-be2f-caaa57b04928</guid><dc:creator>Simon_89</dc:creator><description>&lt;p&gt;&lt;span&gt;Thank you very much, I think with this information we can decide which way we want to continue with the product.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change of key in bootloader and application</title><link>https://devzone.nordicsemi.com/thread/422059?ContentTypeID=1</link><pubDate>Mon, 24 Apr 2023 13:01:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73b2eb85-940f-4476-b850-61957d5bfd08</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;No problem, but as you mentioned, I am afraid that the solution may have to be not to repeat the signature validation step in the bootloader, but instead trust that the update image has been properly validated by the application. The only other solution I can think of is to allocate a shared memory section accessible from both the application and bootloader and store the key there. This approach&amp;nbsp;would be a bit more complex since the key will have to be written to the flash section by either the bootloader or the application. The reason for this is that the DFU protocol does not support writing data to arbitrary addresses. That is, you&amp;nbsp;will not be able to specify where to store the key in the init packet. The bootloader will only store the image to the application or bootloader region depending on what the image type is set to in the init command.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;When I said you could perform key rotation by updating the bootloader, I was thinking of DFU within the bootloader with the serial or BLE transport. DFU over thread is only available from the application and the bootloader/app must be uploaded separately.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change of key in bootloader and application</title><link>https://devzone.nordicsemi.com/thread/422028?ContentTypeID=1</link><pubDate>Mon, 24 Apr 2023 11:48:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd096ab0-5524-4e8a-93c8-524318e3f7d9</guid><dc:creator>Simon_89</dc:creator><description>&lt;p&gt;Hi Vidar,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for the quick reply! We are still in development phase. From your perspective, do you recommend to verify the integrity in firmware and as well in bootloader? Or would a verification at one&amp;nbsp;end be enough?&lt;/p&gt;
&lt;p&gt;Furthermore we are not using &amp;quot;Soft device&amp;quot;. How would be the suggestion to handle such updates of bootloader and application, as a combination of only Bootloader and Application is apparently not supported by Nordic?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change of key in bootloader and application</title><link>https://devzone.nordicsemi.com/thread/422015?ContentTypeID=1</link><pubDate>Mon, 24 Apr 2023 11:24:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef1802f0-6b7c-4a48-8dc1-e42a42e75321</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Normally you can perform key rotation by updating the bootloader to a new one that has a different key. But as the update needs to be validated by both the app and bootloader in your case, I am not sure if there really is a good solution to this.&amp;nbsp;Is this a question for an existing product or a product in development?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>