LinuxCommandLibrary

imgtool

manages MCUboot firmware images

TLDR

Create MCUboot image

$ imgtool create --key [key.pem] --align 4 --version 1.0.0 [app.bin] [signed.bin]
copy
Sign image
$ imgtool sign --key [key.pem] [input.bin] [output.bin]
copy
Get image info
$ imgtool getinfo [image.bin]
copy
Generate keys
$ imgtool keygen --key [key.pem] --type rsa-2048
copy

SYNOPSIS

imgtool command [options]

DESCRIPTION

imgtool manages MCUboot firmware images. It creates, signs, and inspects bootloader-compatible images.
The tool is essential for secure boot workflows. It handles image headers, signatures, and version information.

PARAMETERS

COMMAND

Operation to perform.
create
Create signed image.
sign
Sign existing image.
getinfo
Show image information.
keygen
Generate signing keys.
--key FILE
Key file.
--help
Display help information.

CAVEATS

Part of MCUboot project. Specific image format. Cryptographic keys required.

HISTORY

imgtool is part of MCUboot, an open-source secure bootloader for microcontrollers.

SEE ALSO

mcuboot(1), openssl(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community