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

Suggestions for customizing NCS immutable and MCUBoot boot loaders?

Are there any suggestions for creating slightly customized versions of the immutable and MCUBoot boot loaders?

Currently I'm using CONFIG_SECURE_BOOT=y & CONFIG_BOOTLOADER_MCUBOOT=y to get the immutable and MCUBoot boot loaders.  I would like to add some code to those boot loaders to show various states of the boot loader on our custom board (via LED & Display).  What would be the easiest approach to do this?

Ideally, I'd like to use as much of the current immutable and MCUBoot as possible and just have a custom "main" with my changes.  And have those boot loaders be used in the multi-image build instead.

Parents Reply
  • I talked with a developer about this. What you're explaining is not possible unfortunately, or it requires a lot of work. You would have to modify nrf/modules/mcuboot/CMakeLists.txt. I would recommend you to just create a file mcuboot.patch file inside the application, that contains all the changes you've applied to the mcuboot. Then just run git -C <path to mcuboot> apply from the application folder. This is less work that the approach I suggested (maintaining your own west module).

    Best regards,

    Simon

Children
Related