Hello,
I'm using the nrf5340 and nrf Connect SDK 2.6.1.
Currently the MCUBoot is immutable and the cpuapp image is encrypted (it contains IP and secrets). The MCUBoot is kept confidential to not leak the private key.
We now want the MCUBoot to be upgradable as well. I only find documentation on using the NSIB as immutable bootloader and MCUBoot as second stage. But NSIB does not support encrypted images?
Is there a way or sample to configure the prj.conf to use MCUBoot as both immutable and upgradable bootloader?
If not possible, how to protect the private key in the second stage bootloader. One way would be to store it during manufacturing in the OTP (it would mean the 2nd stage bootloader always works with this fixed key)? The documentation says that only the NSIB should use the bootloader storage library.
Thanks for any advice!
Kind regards,
francis