<?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>Generating DFU package for Bootloader image</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/61559/generating-dfu-package-for-bootloader-image</link><description>Hi, 
 
 I am using nRF52840, S140 V7.0.1. 
 I am using Secure Serial Bootloader and able to do DFU of Application. 
 
 DFU of application 
 Using below command able to generate DFU package. 
 nrfutil pkg generate --hw-version 52 --application-version</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 19 May 2020 08:38:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/61559/generating-dfu-package-for-bootloader-image" /><item><title>RE: Generating DFU package for Bootloader image</title><link>https://devzone.nordicsemi.com/thread/250618?ContentTypeID=1</link><pubDate>Tue, 19 May 2020 08:38:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95ff385b-a456-4628-babe-41c99467b47b</guid><dc:creator>beemavishnu</dc:creator><description>&lt;p&gt;Thank you for your inputs.&lt;/p&gt;
&lt;p&gt;Yes you are correct. I was trying different options by not giving key, boot-loader version,&amp;nbsp;&lt;span&gt;sd-req etc...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Might be I would have generated without key. Yes I say the warning you mentioned.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks &amp;amp; Regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Vishnu Beema&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generating DFU package for Bootloader image</title><link>https://devzone.nordicsemi.com/thread/250617?ContentTypeID=1</link><pubDate>Tue, 19 May 2020 06:40:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26cca6e0-5d92-4019-b6da-ca5a0319c566</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Vishnu,&lt;/p&gt;
[quote user="beemavishnu"]1) Yes, I used same command to generate bootloader package. You mentioned unsigned. Is this based on &amp;quot;signature_type: UNSIGNED&amp;quot; in snapshot ?[/quote]
&lt;p&gt;Yes, that is what I mean. You will get this if you don&amp;#39;t specify a key, by omitting the&amp;nbsp;--key-file option. In this case, the DFU package can only be used with bootloaders that don&amp;#39;t require signed updates. If you do, nrfutil also prints the following warning:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;|===============================================================|
|##      ##    ###    ########  ##    ## #### ##    ##  ######  |
|##  ##  ##   ## ##   ##     ## ###   ##  ##  ###   ## ##    ## |
|##  ##  ##  ##   ##  ##     ## ####  ##  ##  ####  ## ##       |
|##  ##  ## ##     ## ########  ## ## ##  ##  ## ## ## ##   ####|
|##  ##  ## ######### ##   ##   ##  ####  ##  ##  #### ##    ## |
|##  ##  ## ##     ## ##    ##  ##   ###  ##  ##   ### ##    ## |
| ###  ###  ##     ## ##     ## ##    ## #### ##    ##  ######  |
|===============================================================|
|You are not providing a signature key, which means the DFU     |
|files will not be signed, and are vulnerable to tampering.     |
|This is only compatible with a signature-less bootloader and is|
|not suitable for production environments.                      |
|===============================================================|&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I am not aware of any other way to generate DFU packages without a signature.&lt;/p&gt;
[quote user="beemavishnu"]2) Below is the verion of nrfutil[/quote]
&lt;p&gt;nrfutil version 5.2 should be OK. I have not found any references to issues with signing packages like this in that or other versions.&lt;/p&gt;
[quote user="beemavishnu"]3) I deleted existing package and regenerated. After that its shown as &amp;quot;signature_type: ECDSA_P256_SHA256&amp;quot; and able to do DFU of bootloader. But I am not sure why it was creating issue with previous package.[/quote]
&lt;p&gt;It is good that it works now. Could it be that you just forgot the&amp;nbsp;--key-file option when you generated the package initially, and now you remembered it?&lt;/p&gt;
&lt;p&gt;Br,&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generating DFU package for Bootloader image</title><link>https://devzone.nordicsemi.com/thread/250616?ContentTypeID=1</link><pubDate>Mon, 18 May 2020 15:00:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4bbcb21b-814f-4bd6-8bb8-fce4465881a4</guid><dc:creator>beemavishnu</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please find further details.&lt;/p&gt;
&lt;p&gt;1) Yes, I used same command to generate bootloader package. You mentioned unsigned. Is this based on &amp;quot;signature_type: UNSIGNED&amp;quot; in snapshot ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2) Below is the verion of nrfutil&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-7eb0f4e10aae4012aa46bc0e7fcda581/pastedimage1589811724953v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;3) I deleted existing package and regenerated. After that its shown as &amp;quot;signature_type: ECDSA_P256_SHA256&amp;quot; and able to do DFU of bootloader. But I am not sure why it was creating issue with previous package.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; Regards&lt;/p&gt;
&lt;p&gt;Vishnu Beema&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generating DFU package for Bootloader image</title><link>https://devzone.nordicsemi.com/thread/250615?ContentTypeID=1</link><pubDate>Mon, 18 May 2020 13:18:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86f624df-70a6-42dc-a980-971b9accb0f2</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Vishnu,&lt;/p&gt;
[quote user="beemavishnu"]1) Please find snapshot &amp;quot;nrfutil pkg display&amp;quot;[/quote]
&lt;p&gt;This shows a package withoug signature.&amp;nbsp;Did you get this using the following command (from your initial question)?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfutil pkg generate --hw-version 52 --bootloader-version 3 --bootloader secure_bootloader_uart_mbr_pca10056.hex --sd-req 0xCA --key-file private.key Secure_Bootloader_V3_package.zip&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The command looks OK, and when I copy-paste it and test I get a correctly signed DFU image. Can you double-check? If this command really did produce an unsigned image it would be interesting to know the exact nrfutil version you are using (&amp;quot;nrfutil version&amp;quot;).&lt;/p&gt;
[quote user="beemavishnu"]2) Yes, I am trying on nRF Development kit. To disable mass storage do you mean &amp;quot;&lt;strong&gt;Disabling the Mass Storage Device functionality&lt;/strong&gt;&amp;quot;. Will cause any problem after disabling. Is there a way to enable Mass storage in future.[/quote]
&lt;p&gt;It is clear that there is an issue with your DFU package, so this is likely not related to the issue you are seeing. However, to answer your question you can re-enable the mass storage functionality using &amp;quot;MSDEnable&amp;quot;.&lt;/p&gt;
&lt;p&gt;Br,&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generating DFU package for Bootloader image</title><link>https://devzone.nordicsemi.com/thread/250614?ContentTypeID=1</link><pubDate>Fri, 15 May 2020 21:33:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6872b0b6-7dcb-4819-824a-1b1b1ad65639</guid><dc:creator>beemavishnu</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;1) Please find snapshot &amp;quot;nrfutil pkg display&amp;quot;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-7eb0f4e10aae4012aa46bc0e7fcda581/pastedimage1589578285690v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;/p&gt;
&lt;p&gt;2) Yes, I am trying on nRF Development kit. To disable mass storage do you mean &amp;quot;&lt;strong&gt;Disabling the Mass Storage Device functionality&lt;/strong&gt;&amp;quot;. Will cause any problem after disabling. Is there a way to enable Mass storage in future.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; Regards&lt;/p&gt;
&lt;p&gt;Vishnu Beema&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generating DFU package for Bootloader image</title><link>https://devzone.nordicsemi.com/thread/250613?ContentTypeID=1</link><pubDate>Fri, 15 May 2020 15:37:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e41a7878-c2b2-4354-b395-47b11272f189</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Vishnu,&lt;/p&gt;
&lt;p&gt;1. It looks good to me. Can you check the DFU image with &amp;quot;nrfutil pkg display &amp;lt;zip&amp;gt;&amp;quot;? What does it say? If that does not provide any hints, then&amp;nbsp; I wonder if you are testing on a DK or custom HW? If you are testing on a DK, then it could be good to &lt;a href="https://docs.zephyrproject.org/1.12.0/tools/nordic_segger.html#usb-cdc-acm-serial-port-setup"&gt;disable the mass storage device feature of the onboard debugger&lt;/a&gt;&amp;nbsp;as that could cause UART data corruption.&lt;/p&gt;
&lt;p&gt;2. Yes, the version number should be increasing.&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>