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