-
Notifications
You must be signed in to change notification settings - Fork 3
Fuse key verification #140
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
base: main
Are you sure you want to change the base?
Conversation
4a286a7 to
a22ed0b
Compare
3mkusiak
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two nitpicks, LGTM otherwise.
I still need to test it on qemu.
a42c68e to
32fcecd
Compare
3mkusiak
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, verified in qemu.
Not merging since there are more reviewers assigned.
SergiiDmytruk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bash doesn't allow using '-' in function names
It does, even in POSIX-compliance mode (bash --posix). Maybe you got the error from a fake bash of busybox or something. man bash:
When in posix mode, fname must be a valid shell name and may not be the name of one of the POSIX
special builtins. In default mode, a function name can be any unquoted shell word that does not contain $.
That way there won't be duplication which we might forgot to update. Before this change, sourcing "$DTS_ENV" in shell connected to via ssh wasn't possible as "$DTS_HAL" was empty, which resulted in ssh session ending. Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
This is to allow using some functions in source `$DTS_FUNCTIONS` without entering dts-boot first e.g. board_config. Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
* Add argument parsing * allow passing expected key hash and firmware file to check. * Add error checks * Download expected key hash from dts-configs repository instead of hardcoding Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
443fc82 to
db6ad78
Compare
|
@SergiiDmytruk you are right, I checked again and got no error this time. Reverted. Not sure where I got this error from. I can reproduce it by entering |
Manual usage of
btg_key_validator. Error paths on QEMU:Hash not defined in
dts-configsFailed to read flash:
Failed to export key manifest:
Hashes don't match:
Happy path:
Usage:
Fuse workflow on QEMU (emulated NovaCustom) with correctly signed binary:
Fuse workflow on QEMU (emulated NovaCustom) with update binary signed with wrong key:
ref: zhs-397