Releases: AudioStreamingPlatform/sdk-nrf
Releases · AudioStreamingPlatform/sdk-nrf
manifest: mcuboot=v1.9.99-ncs3-mozart-v4
Fix corruption of mcuboot-s1 and netcore partitions
b0 bootloader: new optional image trailer to support upgradable mcuboot
upgradable mcuboot bootloader option, to validate and select which mcuboot slot to boot:
optional trailer at the end of of flash partitions for mcuboot slot0 and slot1
- mcuboot erase flash sector for mcuboot_image_trailer
- mcuboot writes new image to flash (e.g. "mcumgr image upload")
- mcuboot writes mcuboot_image_trailer with value mcuboot_image_trailer_init as final step of image upload
- device is rebooted via "mcumgr reboot" or external reset
- b0 checks if one or both mcuboot slots have a trailer.magic, if not normal boot proceeds
- b0 updates mcuboot_image_trailer.status appropriately:
From TESTING to BOOTING (if any TESTING)
From BOOTING to INACTIVE (if any BOOTING) - b0 gives a slot 1st priority if its trailer.status=TESTING
otherwise it prioritizes trailer.status=ACTIVE - mcuboot changes trailer.status of booted image to ACTIVE if confirmed by "mcumgr image confirm"
and simultaneously marks the not-booted image as INACTIVE
NOTE: if any image fails to validate, the other bank will still be attempted as well.
Hence b0 can "fallback" to an image otherwise marked as INACTIVE.