commit | e026c3679b43a1e50b1858b70aaf9458aa3fad43 | [log] [tgz] |
---|---|---|
author | Piotr Dymacz <pepe2k@gmail.com> | Fri Feb 24 12:09:33 2023 +0100 |
committer | Fabio Utzig <utzig@utzig.org> | Fri Mar 10 17:30:38 2023 -0300 |
tree | 9ff718d702b9b02f4b31e26c64a9ad19e005c056 | |
parent | 4d51038cd5578b816cd4c349e9a23f65f9c3c260 [diff] |
imgtool: sign: allow using 16-bit custom TLVs from valid range The TLV type field in trailer TLV struct is defined as unsigned 16-bit (in LE byte order). Currently, due to Python's struct format specified as 'BBH', the 'imgtool' accepts only single byte for this field. This results in error when trying to use 16-bit TLV type with option '--custom-tlv': struct.error: ubyte format requires 0 <= number <= 255 This changes format to 'HH' which allows using 16-bit TLV types and while at it, adds also simple range validation for custom TLV type. As defined in image.h header, the vendor reserved TLVs value should be from 0x00a0 to 0xfffe range. Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
This is MCUboot version 1.10.0-dev
MCUboot is a secure bootloader for 32-bits microcontrollers. It defines a common infrastructure for the bootloader and the system flash layout on microcontroller systems, and provides a secure bootloader that enables easy software upgrade.
MCUboot is not dependent on any specific operating system and hardware and relies on hardware porting layers from the operating system it works with. Currently, MCUboot works with the following operating systems and SoCs:
RIOT is supported only as a boot target. We will accept any new port contributed by the community once it is good enough.
See the following pages for instructions on using MCUboot with different operating systems and SoCs:
There are also instructions for the Simulator.
The issues being planned and worked on are tracked using GitHub issues. To give your input, visit MCUboot GitHub Issues.
You can find additional documentation on the bootloader in the source files. For more information, use the following links:
Developers are welcome!
Use the following links to join or see more about the project: