mcuboot/boot/mynewt
Jerzy Kasenberg e3f895d7ef Add downgrade prevention for swaps
Currently, downgrade prevention was limited to overwrite only
builds (version check) or devices with hardware storage for
security counter.

This extends downgrade prevention to be used when swap update
is selected.
Unlike MCUBOOT_HW_ROLLBACK_PROT option it does not require user
code to provide external way to store security counter.
Security counter from slot 1 image is used for comparison.
With security counter usage it is possible to have limited
software rollback if security counter was not incremented.

It is possible to use image version where strict rule for
image version comparison prevents any downgrades.

Downgrade prevention is also added to mynewt configuration.

If image in slot 1 is marked as pending and downgrade prevention
is in place, image will be deleted to avoid check on next boot.

Signed-off-by: Jerzy Kasenberg <jerzy.kasenberg@codecoup.pl>
2022-10-04 08:52:57 -06:00
..
boot_uart boot_uart: mynewt; option for faster speed with serial. 2018-12-24 08:47:25 -02:00
flash_map_backend boot/ports: Provide getter function for flash area object access 2021-07-06 14:42:53 -06:00
mcuboot_config Add downgrade prevention for swaps 2022-10-04 08:52:57 -06:00
src mynewt: Add call to custom pre-boot function 2021-11-30 18:47:25 -03:00
README.md doc: Fixed consistency of bootloader term 2021-10-21 06:45:13 -03:00
pkg.yml mynewt: Make cflags consistent for if or ifdef usage 2019-10-21 17:22:34 -03:00
syscfg.yml mynewt: Allow custom boot to be provided by pkg 2022-06-13 19:57:09 -03:00

README.md

MCUboot - apps/boot

This sample app implements a bootloader for the Mynewt OS (apache.mynewt.org). This app requires the following Mynewt repositories: * @mcuboot (this one) * @apache-mynewt-core