← 返回命令列表

Linux command

imgtool 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Create MCUboot image

imgtool create --key [key.pem] --align 4 --version 1.0.0 [app.bin] [signed.bin]

Sign image

imgtool sign --key [key.pem] [input.bin] [output.bin]

Get image info

imgtool getinfo [image.bin]

Generate keys

imgtool keygen --key [key.pem] --type rsa-2048

说明

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.

参数

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

FAQ

What is the imgtool command used for?

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.

How do I run a basic imgtool example?

Run `imgtool create --key [key.pem] --align 4 --version 1.0.0 [app.bin] [signed.bin]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does create do in imgtool?

Create signed image.