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