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
  • One way of going about this is to fork the nrf and bootloader repositories and modify the mentioned samples, then upload it to your personal GitHub and add the urls to those repos into a west.yml located in your application.

    You have to make your application the manifest repository (instead of the nrf repository), by running west init -m <url to manifest> and west update to get all the other repos (including the modified nrf and mcuboo repos).

    Check out how it's done here: https://github.com/OeySa/nRF9160-Hello_Board (this will import the west.yml file from the nrf repo, since import is set to true)

    Does that suffice?

    There may be some other ways of going about this. I can look into it if the above approach is not what you're looking for.

Children
Related