blob: 339f38b46c83fab1096d2a74787aacf6af1473d3 [file] [log] [blame] [view]
David Brown37f8afd2017-09-12 10:59:39 -06001# MCUboot Release Notes
2
3- Table of Contents
4{:toc}
5
David Brown342e8752020-04-15 10:57:28 -06006## Version 1.6.0
7
8The 1.6.0 release of MCUboot adds support for the PSOC6 platform,
9X25519 encrypted images, rollback protection, hardware keys, and a
10shared boot record to communicate boot attestation information to
11later boot stages. There are bug fixes, and associated imgtool
12updates as well.
13
14### About this release
15
16- Initial support for the Cypress PSOC6 plaformt. This platform
17 builds using the Cypress SDK, which has been added as submodules.
18- CBOR decoding in serial recovery replaced by code generated from a
19 CDDL description.
20- Add support for X25519 encrypted images.
21- Add rollback protection. There is support for a HW rollback counter
22 (which must be provided as part of the platform), as well as a SW
23 solution that protects against some types of rollback.
24- Add an optional boot record in shared memory to communicate boot
25 attributes to later-run code.
26- Add support for hardware keys.
27- Various fixes to work with the latest Zephyr version.
28
29### Security issues addressed
30
31- CVE-2020-7595 "xmlStringLenDecodeEntities in parser.c in libxml2
32 2.9.10 has an infinite loop in a certain end-of-file situation." Fix
33 by updating a dependency in documentation generation.
34
Fabio Utzigef7fbd72020-02-05 12:43:23 -030035## Version 1.5.0
36
37The 1.5.0 release of MCUboot adds support for encrypted images using
38ECIES with secp256r1 as an Elliptic Curve alternative to RSA-OAEP. A
39new swap method was added which allows for upgrades without using a
40scratch partition. There are also lots of bug fixes, extra simulator
41testing coverage and some imgtool updates.
42
43### About this release
44
45- TLVs were updated to use 16-bit lengths (from previous 8). This
46 should work with no changes for little-endian targets, but will
47 break compatibility with big-endian targets.
48- A benchmark framework was added to Zephyr
49- ed25519 signature validation can now build without using mbedTLS
50 by relying on a bundled tinycrypt based sha-512 implementation.
51- imgtool was updated to correctly detect trailer overruns by image.
52- Encrypted image TLVs can be saved in swap metadata during a swap
53 upgrade instead of the plain AES key.
54- imgtool can dump private keys in C format (getpriv command), which
55 can be added as decryption keys. Optionally can remove superfluous
56 fields from the ASN1 by passing it `--minimal`.
57- Lots of other smaller bugs fixes.
58- Added downgrade prevention feature (available when the overwrite-based
59 image update strategy is used)
60
61### Known issues
62
63- TLV size change breaks compatibility with big-endian targets.
64
David Brown4d0c5fa2019-10-08 09:57:31 -060065## Version 1.4.0
66
67The 1.4.0 release of MCUboot primarily adds support for multi-image
68booting. With this release, MCUboot can manage two images that can be
69updated independently. With this, it also supports additions to the
70TLV that allow these dependencies to be specified.
71
72Multi-image support adds backward-incompatible changes to the format
73of the images: specifically adding support for protected TLV entries.
74If multiple images and dependencies are not used, the images will be
75compatible with previous releases of MCUboot.
76
77### About this release
78
David Brownd7581772019-10-15 12:00:25 -060079- Fixed CVE-2019-5477, and CVE-2019-16892. These fix issue with
80 dependencies used in the generation of the documentation on github.
David Brown4d0c5fa2019-10-08 09:57:31 -060081- Numerous code cleanups and refactorings
82- Documentation updates for multi-image features
83- Update imgtool.py to support the new features
David Brownd7581772019-10-15 12:00:25 -060084- Updated the mbed TLS submodule to current stable version 2.16.3
85- Moved the mbed TLS submodule from within sim/mcuboot-sys to ext.
86 This will make it easier for other board supports to use this code.
87- Added some additional overflow and bound checks to data in the image
88 header, and TLV data.
89- Add a `-x` (or `--hex_addr`) flag to imgtool to set the base address
90 written to a hex-format image. This allows the image to be flashed
91 at an offset, without having to use additional tools to modify the
92 image.
David Brown4d0c5fa2019-10-08 09:57:31 -060093
Szymon Janc7fea8462019-07-04 14:45:52 +020094## Version 1.3.1
95
96The 1.3.1 release of MCUboot consists mostly of small bug fixes and updates.
97There are no breaking changes in functionality. This release should work with
98Mynewt 1.6.0 and up, and any Zephyr `master` after sha
99f51e3c296040f73bca0e8fe1051d5ee63ce18e0d.
100
101### About this release
102
103- Fixed a revert interruption bug
104- Added ed25519 signing support
105- Added RSA-3072 signing support
106- Allow ec256 to run on CC310 interface
107- Some preparation work was done to allow for multi image support, which
108 should land in 1.4.0. This includes a simulator update for testing
109 multi-images, and a new name for slot0/slot1 which are now called
110 "primary slot" and "secondary slot".
111- Other minor bugfixes and improvements
112
David Brownb1d15a72019-01-22 16:22:08 -0700113## Version 1.3.0
114
115The 1.3.0 release of MCUboot brings in many fixes and updates. There
116are no breaking changes in functionality. Many of the changes are
117refactorings that will make the code easier to maintain going forward.
118In addition, support has been added for encrypted images. See [the
119docs](encrypted_images.md) for more information.
120
121### About this release
122
123- Modernize the Zephyr build scripts.
124- Add a `ptest` utility to help run the simulator in different
125 configurations.
126- Migrate the simulator to Rust 2018 edition. The sim now requires at
127 least Rust 1.32 to build.
128- Simulator cleanups. The simulator code is now built the same way
129 for every configuration, and queries the MCUboot code for how it was
130 compiled.
131- Abstract logging in MCUboot. This was needed to support the new
132 logging system used in Zephyr.
133- Add multiple flash support. Allows slot1/scratch to be stored in an
134 external flash device.
135- Add support for [encrypted images](encrypted_images.md).
136- Add support for flash devices that read as '0' when erased.
137- Add support to Zephyr for the `nrf52840_pca10059`. This board
138 supports serial recovery over USB with CDC ACM.
139- imgtool is now also available as a python package on pypi.org.
140- Add an option to erase flash pages progressively during recovery to
141 avoid possible timeouts (required especially by serial recovery
142 using USB with CDC ACM).
143- imgtool: big-endian support
144- imgtool: saves in intel-hex format when output filename has `.hex`
145 extension; otherwise saves in binary format.
146
Fabio Utzig3c939012018-06-25 13:26:32 -0300147## Version 1.2.0
148
149The 1.2.0 release of MCUboot brings a lot of fixes/updates, where much of the
150changes were on the boot serial functionality and imgtool utility. There are
151no breaking changes in MCUBoot functionality, but some of the CLI parameters
152in imgtool were changed (either removed or added or updated).
153
154### About this release
155
156- imgtool accepts .hex formatted input
157- Logging system is now configurable
158- Most Zephyr configuration has been switched to Kconfig
159- Build system accepts .pem files in build system to autogenerate required
160 key arrays used internally
161- Zephyr build switched to using built-in flash_map and TinyCBOR modules
162- Serial boot has substantially decreased in space usage after refactorings
163- Serial boot build doesn't require newlib-c anymore on Zephyr
164- imgtool updates:
165 + "create" subcommand can be used as an alias for "sign"
166 + To allow imgtool to always perform the check that firmware does not
167 overflow the status area, `--slot-size` was added and `--pad` was updated
168 to act as a flag parameter.
169 + `--overwrite-only` can be passed if not using swap upgrades
170 + `--max-sectors` can be used to adjust the maximum amount of sectors that
171 a swap can handle; this value must also be configured for the bootloader
172 + `--pad-header` substitutes `--included-header` with reverted semantics,
173 so it's not required for firmware built by Zephyr build system
174
175### Known issues
176
177None
178
Fabio Utzig49045cc2018-01-09 15:56:29 -0200179## Version 1.1.0
180
Carles Cufi90eda802018-01-29 18:33:20 +0100181The 1.1.0 release of MCUboot brings a lot of fixes/updates to its
Fabio Utzig49045cc2018-01-09 15:56:29 -0200182inner workings, specially to its testing infrastructure which now
183enables a more thorough quality assurance of many of the available
184options. As expected of the 1.x.x release cycle, no breaking changes
185were made. From the tooling perpective the main addition is
186newt/imgtool support for password protected keys.
187
188### About this release
189
190- serial recovery functionality support under Zephyr
191- simulator: lots of refactors were applied, which result in the
192 simulator now leveraging the Rust testing infrastructure; testing
193 of ecdsa (secp256r1) was added
194- imgtool: removed PKCS1.5 support, added support for password
195 protected keys
196- tinycrypt 0.2.8 and the mbed-tls ASN1 parser are now bundled with
197 mcuboot (eg secp256r1 is now free of external dependencies!)
198- Overwrite-only mode was updated to erase/copy only sectors that
199 actually store firmware
200- A lot of small code and documentation fixes and updates.
201
202### Known issues
203
204None
205
David Brown37f8afd2017-09-12 10:59:39 -0600206## Version 1.0.0
207
Carles Cufi90eda802018-01-29 18:33:20 +0100208The 1.0.0 release of MCUboot introduces a format change. It is
David Brown37f8afd2017-09-12 10:59:39 -0600209important to either use the `imgtool.py` also from this release, or
210pass the `-2` to recent versions of the `newt` tool in order to
211generate image headers with the new format. There should be no
212incompatible format changes throughout the 1.x.y release series.
213
214### About this release
215
216- Header format change. This change was made to move all of the
217 information about signatures out of the header and into the TLV
218 block appended to the image. This allows
219 - The signature to be replaced without changing the image.
220 - Multiple signatures to be applied. This can be used, for example,
221 to sign an image with two algorithms, to support different
222 bootloader configurations based on these image.
223 - The public key is referred to by its SHA1 hash (or a prefix of the
224 hash), instead of an index that has to be maintained with the
225 bootloader.
226 - Allow new types of signatures in the future.
227- Support for PKCS#1 v1.5 signatures has been dropped. All RSA
228 signatures should be made with PSS. The tools have been changed to
229 reflect this.
230- The source for Tinycrypt has been placed in the MCUboot tree. A
231 recent version of Tinycrypt introduced breaking API changes. To
232 allow MCUboot to work across various platforms, we stop using the
233 Tinycrypt bundled with the OS platform, and use our own version. A
234 future release of MCUboot will update the Tinycrypt version.
235- Support for some new targets:
236 - Nordic nRF51 and nRF52832 dev kits
237 - Hexiwear K64
238- Clearer sample applications have been added under `samples`.
Fabio Utzig4dce6aa2018-02-12 15:31:32 -0200239- Test plans for [zephyr](testplan-zephyr.md), and
240 [mynewt](testplan-mynewt.md).
David Brown37f8afd2017-09-12 10:59:39 -0600241- The simulator is now able to test RSA signatures.
242- There is an unimplemented `load_addr` header for future support for
243 RAM loading in the bootloader.
244- Numerous documentation.
245
246### Known issues
247
248None
249
250## Version 0.9.0
251
Carles Cufi90eda802018-01-29 18:33:20 +0100252This is the first release of MCUboot, a secure bootloader for 32-bit MCUs.
David Brown37f8afd2017-09-12 10:59:39 -0600253It is designed to be operating system-agnostic and works over any transport -
254wired or wireless. It is also hardware independent, and relies on hardware
255porting layers from the operating system it works with. For the first release,
256we have support for three open source operating systems: Apache Mynewt, Zephyr
257and RIOT.
258
259### About this release
260
261- This release supports building with and running Apache Mynewt and Zephyr
262 targets.
263- RIOT is supported as a running target.
264- Image integrity is provided with SHA256.
265- Image originator authenticity is provided supporting the following
266 signature algorithms:
267 - RSA 2048 and RSA PKCS#1 v1.5 or v2.1
268 - Elliptic curve DSA with secp224r1 and secp256r1
269- Two firmware upgrade algorithms are provided:
270 - An overwrite only which upgrades slot 0 with the image in slot 1.
271 - A swapping upgrade which enables image test, allowing for rollback to a
272 previous known good image.
273- Supports both mbed-TLS and tinycrypt as backend crypto libraries. One of them
274 must be defined and the chosen signing algorithm will require a particular
275 library according to this list:
276 - RSA 2048 needs mbed TLS
277 - ECDSA secp224r1 needs mbed TLS
278 - ECDSA secp256r1 needs tinycrypt as well as the ASN.1 code from mbed TLS
279 (so still needs that present).
280
281### Known issues
282
283- The image header and TLV formats are planned to change with release 1.0:
284 https://runtimeco.atlassian.net/browse/MCUB-66