mcuboot icon indicating copy to clipboard operation
mcuboot copied to clipboard

Serial recovery & encryption & swap fails to build

Open sw opened this issue 2 years ago • 1 comments

We encountered this issue on Nordic's fork (https://github.com/nrfconnect/sdk-mcuboot) but I believe upstream is affected as well.

We are using the following Kconfig settings:

CONFIG_BOOT_ENCRYPT_EC256=y
CONFIG_MCUBOOT_SERIAL=y
CONFIG_SINGLE_APPLICATION_SLOT=n

I.e. swap between primary and secondary slot, encryption and serial recovery enabled.

The problem is that boot_serial.c::bs_upload() wants to call single_loader.c::boot_handle_enc_fw(), but the latter module is only built when CONFIG_SINGLE_APPLICATION_SLOT=y.

sw avatar Jun 03 '22 11:06 sw

Encyption in serial recovery mode is limited to single slot mode. Ref. https://github.com/mcu-tools/mcuboot/pull/1255 For dual slot mode it is not implemented.

nvlsianpu avatar Jun 03 '22 14:06 nvlsianpu

This issue has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 14 days. Note, that you can always re-open a closed issue at any time.

github-actions[bot] avatar Dec 01 '22 02:12 github-actions[bot]

@nvlsianpu @d3zd3z @de-nordic Are there any plans to support serial recovery of encrypted images using dual slot mode any time soon ?

jimmyzumthurm avatar Jan 16 '23 14:01 jimmyzumthurm

@nvlsianpu @d3zd3z @de-nordic Are there any plans to support serial recovery of encrypted images using dual slot mode any time soon ?

@jimmyzumthurm You can log an issue/enhancement for that. It may get picked up if somebody finds time to do it. You can also propose your own implementation if you are up to the task.

de-nordic avatar Jan 16 '23 16:01 de-nordic

There are any news about serial recovery of encrypted images using dual slot mode ?

Gioelinho avatar Aug 22 '23 12:08 Gioelinho