commit | d4d90f8eea61cb38dc23f5d05fe06e5a0d5a86cf | [log] [tgz] |
---|---|---|
author | George Beckstein <george.beckstein@gmail.com> | Tue May 11 02:00:00 2021 -0400 |
committer | David Brown <davidb@davidb.org> | Fri May 14 14:57:17 2021 -0600 |
tree | 519b120c7d9edaae6cee695d6320a109f65bf46e | |
parent | fe0bfcfba96a1b36bb37e6c3dbf6534f8750ed0d [diff] |
Fix version comparison result causing boot failure The variable `rc` is used in `context_boot_go` for a number of operations, mostly checking return codes for an error. It is also used to store the result of comparing the installed application version numbers (using `boot_version_cmp`). At the end of `context_boot_go`, `rc` is returned as the result of the operation. In some configurations, namely direct XIP (without revert or any other extra boot checks), it is possible for the comparison result to be the last value of `rc`. In most cases, this will cause `context_boot_go` to report a failure (ie: non-zero return code), as the value of `rc` will be 1 or -1 if the installed applications aren't the same version. This commit resets the value of `rc` to 0 after the version comparison has taken place. Fixes #976 Signed-off-by: George Beckstein <george.beckstein@gmail.com>
This is mcuboot version 1.8.0-dev
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!