Skip to content

Pick updates to imgtool from upstream MCUboot#654

Open
de-nordic wants to merge 5 commits into
nrfconnect:mainfrom
de-nordic:imgtool-picks
Open

Pick updates to imgtool from upstream MCUboot#654
de-nordic wants to merge 5 commits into
nrfconnect:mainfrom
de-nordic:imgtool-picks

Conversation

@de-nordic
Copy link
Copy Markdown
Contributor

No description provided.

@tomchy tomchy requested a review from a team April 22, 2026 12:43
danieldegrasse and others added 5 commits May 6, 2026 16:07
Add --test flag, which allows users to append a trailer that marks the
image as ready for a test swap. This can be used for cases where the
user wants to load an image to flash that MCUBoot will boot in test mode
after system reset.

Signed-off-by: Daniel DeGrasse <ddegrasse@tenstorrent.com>
(cherry picked from commit 48b0f6d)
Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
…directory

Moved pytest tests from imgtool/keys to tests directory.

Signed-off-by: Lukasz Fundakowski <lukasz.fundakowski@nordicsemi.no>
(cherry picked from commit 5b6f045)
Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
… key file

Fixes an issue whereby ed25519 public keys were not supported for
verifying images which would wrongly give an error about the key
type not matching the TLV record

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
(cherry picked from commit a2ee0a7)
Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
Signed-off-by: Petr Ledvina <ledvinap@gmail.com>
(cherry picked from commit 6faf53a)
Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
Add -f, --format option to support multiple output formats (human, yaml,
json). Default yaml for file, default human for stdout - backward
compatible.

Details:
- Human output is unchanged
- Refactored dump_imginfo() to separate data reading from formatting
- JSON output uses hex strings for binary data (e.g., "e3a333ca...")
- YAML and JSON have both "type" (int) and "type_name" (str) for TLVs
- Image filename (basename) is included in all output formats
- Argument `--silent` is silently ignored. Doesn't make sense for a
  command that outputs data. i.e. No output on success. This is the same
  as for other sub commands

Signed-off-by: Simon Frank <simon.frank@lohmega.com>
(cherry picked from commit 7448115)
Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 7, 2026

NordicBuilder added a commit to NordicBuilder/sdk-nrf that referenced this pull request May 7, 2026
Automatically created by action-manifest-pr GH action from PR:
nrfconnect/sdk-mcuboot#654

Signed-off-by: Nordic Builder <pylon@nordicsemi.no>
@de-nordic de-nordic self-assigned this May 7, 2026
de-nordic pushed a commit to NordicBuilder/sdk-nrf that referenced this pull request May 14, 2026
Automatically created by action-manifest-pr GH action from PR:
nrfconnect/sdk-mcuboot#654

Signed-off-by: Nordic Builder <pylon@nordicsemi.no>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants