This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

I have unable to do DFU because of my bootloader programmed chip

Hi

I have lost my private key for generating my dfu pakage using nrfutil.

I have 2K nrf Modules chips already programmed with bootloader & dfu enabled firmware. However, due to the corruption of the setup I have lost my key.pem file. 

Can you guide me how can i generate private key using earlier app_dfu_package.zip file. As its a complete rework for us to re-program the chips which needs firmware upgrade at project site.

Regards

Darshan

Parents
  • Hi Darshan,

    There is no way to generate the private key from an old DFU package. The reason for using cryptographic signing (ECDSA in this case) is precisely to ensure that only the holder of the private key is able to generate valid upgrade images. It is not possible to generate valid DFU packages if the private key is lost.

    There are only two possibilities in this situation:

    • Either live with the fact that it is impossible to update the devices further,
    • or find a way to re-program the bootloader via SWD (which is usually not a realistic option for end products in the field).

    Einar

Reply
  • Hi Darshan,

    There is no way to generate the private key from an old DFU package. The reason for using cryptographic signing (ECDSA in this case) is precisely to ensure that only the holder of the private key is able to generate valid upgrade images. It is not possible to generate valid DFU packages if the private key is lost.

    There are only two possibilities in this situation:

    • Either live with the fact that it is impossible to update the devices further,
    • or find a way to re-program the bootloader via SWD (which is usually not a realistic option for end products in the field).

    Einar

Children
Related