How can the bin file be encrypted and signed?

Hi,

The SDK version I am using is 2.6.1 and the example is "matter lock".

I wrote the following configuration into \child_image\mcuboot\prj.conf.

 

And add the code to CMakeLists.txt. Are these steps correct?

Is app_update.bin a generated encrypted file?

Parents Reply
  • Hi,

    It seems that my configuration is also 0xF7000. What do you mean by  the gap of 0x4200?

    If version 2.6.1 does not support "CONFIG_BOOT_ENCRYPT_IMAGE", is bin file encrypted by default?

Children
  • My bad, you are right since you had also modified the start.

    Could you upload the build errors you're getting when trying to build with this configuration.

    Kind regards,
    Andreas

  • Hi,

    The current problem is the previous reply.

  • That is not the log I'm referring to, but I'm sure the issue is where you're pointing. Could you please enable logging and 

    1) Upload the build log

    2) Upload the device logs from both bootloader and application

    Kind regards,
    Andreas

  • Hi,

    The attachment is BUILD LOG, the device will not send any messagebuild log.7z

    Can you confirm it for me first?

    If version 2.6.1 does not support "CONFIG_BOOT_ENCRYPT_IMAGE", is bin file encrypted by default?
  • Thank you,

    SunHuang said:

    Can you confirm it for me first?

    If version 2.6.1 does not support "CONFIG_BOOT_ENCRYPT_IMAGE", is bin file encrypted by default?

    MCUboot supports encrypted DFU, but there's not support for it in the SDK v2.6.1 out of the box.

    The sample in the unofficial repository you refer to shows how you can modify the firmware to have encrypted DFU (https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/keys_and_signatures/mcuboot_smp_encryption) in NCS v2.6.1.

    There's 4 warnings in the build configuration that is not present when building the default lock sample in the SDK. I recommend you to clear these up to reduce the possibility that this is an XY problem.

    And have you managed to get this working on a sample that is less complex than the Matter door lock? I understand that your end goal is to get it up and running for this app, but I would suggest you verify that it works on a minimal sample first to avoid any XY situations

    Kind regards,
    Andreas