-
Notifications
You must be signed in to change notification settings - Fork 105
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
x86 fsp backport #443
x86 fsp backport #443
Conversation
If CPU enter a triple fault, it goes in shutdown mode and the reset vector is invoked again, without a proper PLTRST#. MemoryInit API fails in this case. Check if CPU is in shutdown mode and reset the platform if so.
4c14129
to
8cd363d
Compare
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.
Please remove the tools/x86_fsp, tools/tgl, tools/qemu directories and move them under tools/scripts as we discussed. Adjust paths in the doc accordingly.
it's needed to compute the hash of PCR TPM register
- use sha256 as hashing algo - enable measure_boot and tpm seal
8cd363d
to
53d012f
Compare
the function relies a non-general delay() function, so move the function in a more target-specific file.
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.
Well done, the port seems very clean. Could possibly use more documentation e.g. on the ATA state machine and other internals. Added config options should be covered in docs/
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.
Thanks for adding the docs. A few minor typos/rewording.
docs/ata_security.md
Outdated
|
||
## Disabling the password | ||
|
||
If you need to disable the password, a master password should be already set on the device. Then you can use the following option to compile wolfBoot so that it will disable the password from the drive and panic: |
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.
s/option/options
docs/ata_security.md
Outdated
If the ATA disk has no password set, the disk will be locked with the password provided at the first boot. | ||
|
||
## Unlocking the Disk with a TPM-Sealed Secret | ||
wolfBoot allows to seal secret safely in the TPM in a way that it can be unsealed only under specific conditions. Please refer to files TPM.md and measured_boot.md for more information. If the option `WOLFBOOT_TPM_SEAL` is enabled and `DISK_LOCK` is enabled, wolfBoot will use a TPM sealed secret as the password to unlock the disk. The following options controls the sealing and unsealing of the secret: |
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.
If the options WOLFBOOT_TPM_SEAL
and DISK_LOCK
are enabled, wolfboot uses
src/stage2_params.c
Outdated
@@ -0,0 +1,132 @@ | |||
/* stage2_params.h |
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.
stage2_params.c
test-app/app_x86_fsp_qemu.c
Outdated
|
||
#ifdef PLATFORM_x86_fsp_qemu | ||
|
||
#include<printf.h> |
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.
Add space. #include <printf.h>
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.
looks good now.
notes:
(non-complete) list of commits that may have side-effects out of x86 fsp context: