commit | 4d7396d7f27e4b82dbed0fa993f15ef936f2d4fe | [log] [tgz] |
---|---|---|
author | Fabio Utzig <utzig@apache.org> | Thu Sep 05 18:38:05 2019 -0300 |
committer | Fabio Utzig <utzig@utzig.org> | Mon Sep 09 10:00:09 2019 -0300 |
tree | 152823ba5f2bb7afcc91e806e7c6ddda35aca6c9 | |
parent | e4576b888cc5c397cb0649b07b280423ccef6503 [diff] |
Fix swap status control This fixes two issues related to swap status control: 1. During a swap, the status was written offset by one, because it was being incremented before it was written to flash. With the increment happening early the offset was calculated always one position after where it should be, which would leave the first status index free, and override the last one (worst case scenario). 2. When an image is too big it requires the swap status to be temporarily stored on scratch, to allow the last sector on the primary slot to be erased. The status is written to scratch for 2 status updates, and afterwards copied back to the primary slot, which then receives future status updates. The code that copied the status back from scratch to the primary slot was erroneously copying the space of 3 status writes, which would result in a write over non-erased area for the third byte. Signed-off-by: Fabio Utzig <utzig@apache.org>
This is mcuboot, version 1.3.1
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 easy software upgrade.
MCUboot is operating system and hardware independent and relies on hardware porting layers from the operating system it works with. 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!