commit | b86e688286db1aa213a436b4d0894bea80797cdc | [log] [tgz] |
---|---|---|
author | Fabio Utzig <utzig@apache.org> | Tue Dec 10 09:51:17 2019 -0300 |
committer | Fabio Utzig <utzig@utzig.org> | Tue Dec 10 12:02:15 2019 -0300 |
tree | ea08902dd24a219132d349845aa7889c945ffd95 | |
parent | 5e6ea22cff2802e0b7eb3e6bbb037099012fcf25 [diff] |
bootutil: fix random upgrade failure using swap move Fix an issue where an upgrade could fail to execute. This happened randomly in the "perm_with_fails" test in the simulator; for it to happen the first reset had to occur just after writing the metadata to mark the start of a new upgrade, but before any swap happened; if followed by a new reset happening at a point where the metadata was erased and rewritten, it would result in an upgrade failure. The images would still be valid though although in their original slots. The fix stores the detected boot status source in the state. When metadata was found in the primary slot we assume a swap has already started (even though no sector swap has happened) and avoid erasing/rewriting it. Signed-off-by: Fabio Utzig <utzig@apache.org>
This is mcuboot version 1.4.0
MCUboot is a secure bootloader for 32-bit MCUs. The goal of MCUboot is to define a common infrastructure for the bootloader, system flash layout on microcontroller systems, and to provide a secure bootloader that enables simple software upgrades.
MCUboot is operating system and hardware independent and relies on hardware porting layers from the operating. Currently, mcuboot works with both the Apache Mynewt and Zephyr operating systems, but more ports are planned in the future. RIOT is currently supported as a boot target with a complete port planned.
Instructions for different operating systems can be found here:
The issues being planned and worked on are tracked using GitHub issues. To participate please visit:
Issues were previously tracked on MCUboot JIRA , but it is now deprecated.
Information and documentation on the bootloader are stored within the source.
It was previously also documented on confluence: MCUBoot Confluence however, it is now deprecated and not currently maintained
For more information in the source, here are some pointers:
Developers welcome!