Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scripts: imgtool: Fix img verify for hex file format #1888

Merged
merged 1 commit into from
Jan 31, 2024

Conversation

lzala
Copy link
Contributor

@lzala lzala commented Jan 16, 2024

Currently imgtool --verify fails for hex files with:

Invalid image magic; is this an MCUboot image?

Added support for hex files by converting hex to bin using IntelHex::tobinstr().

Reusing image.load() needs a bit of rework, maybe a common load method will be done in the future.

@lzala
Copy link
Contributor Author

lzala commented Jan 16, 2024

@rustammendel can you please help with the review ?

Copy link
Contributor

@rustammendel rustammendel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a little comment, otherwise LGTM. However I'm not a maintainer on this repo.

@lzala
Copy link
Contributor Author

lzala commented Jan 23, 2024

Hi @d3zd3z can you please help with the review?

@nordicjm
Copy link
Collaborator

@lzala can you fix compliance issue?

@lzala
Copy link
Contributor Author

lzala commented Jan 30, 2024

@nordicjm I'm trying to fix the issue seems to be related to a wrong token configuration or something .. because the author and the "Sigend off by:" are the the same but it is looking for a different email address

@nordicjm
Copy link
Collaborator

@lzala this needs a rebase

Currently imgtool --verify fails for hex files with:

Invalid image magic; is this an MCUboot image?

Added support for hex files by converting hex to bin
using IntelHex::tobinstr().

Reusing image.load() needs a bit of rework, maybe a
common load method will be done in the future,

Signed-off-by: Lucian Zala <[email protected]>
@lzala
Copy link
Contributor Author

lzala commented Jan 31, 2024

@nordicjm rebase done

@nordicjm nordicjm merged commit 79c284b into mcu-tools:main Jan 31, 2024
55 checks passed
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.

4 participants