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