mcuboot
mcuboot copied to clipboard
Serial recovery & encryption & swap fails to build
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
.
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.
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.
@nvlsianpu @d3zd3z @de-nordic Are there any plans to support serial recovery of encrypted images using dual slot mode any time soon ?
@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.
There are any news about serial recovery of encrypted images using dual slot mode ?