-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
[do not merge] Combined TPM eventlog #517
base: dasharo
Are you sure you want to change the base?
Conversation
b0c8288
to
aac7bc9
Compare
aac7bc9
to
e5b3dfd
Compare
e5b3dfd
to
6b33572
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.
Approved, but edk2 must be merged first.
@SergiiDmytruk Not sure if it's due to your PR but when I tested latest artifact: https://github.com/Dasharo/coreboot/actions/runs/9800367204/job/27062155366 on Protectli VP2420 |
Probably caused by lack of Dasharo/edk2#148 after the bug was introduced in Dasharo/edk2#144 / Dasharo/DasharoModulePkg#50 |
6b33572
to
1b53a6d
Compare
@m-iwanicki I saw that but assumed a messed up |
1b53a6d
to
daa6111
Compare
This was supposed to fix it: d3b8531 Do we have some insights why it doesn't work/what is the problem exactly? |
This PR is older than that commit. |
daa6111
to
7bdab15
Compare
@macpijan do we have some working setups with socketable TPM1.2 and TPM2.0 in the lab? |
IIRC one of KGPEs should still have TPM1.2 which was used for AEM. Note that it currently has ASUS BIOS, on 16Mb chip. |
@krystian-hebel something that will run on this coreboot version :) |
7bdab15
to
97909e2
Compare
Force-pushed to get deterministic variable measurements. |
Change-Id: Iacee23253d2766d9f3835860d0d64d84b5bcd880 Signed-off-by: Sergii Dmytruk <[email protected]>
EDK will publish its own version of the log after parsing and importing coreboot's log discovered through CBMEM. Publishing is done by appending a table, so coreboot must avoid adding corresponding log tables to let OS find a more complete one from EDK. Change-Id: Iec92c2b5c426ee003e81996937862d81cb4ead24 Signed-off-by: Sergii Dmytruk <[email protected]>
This prevents name clashes with drivers/spi/tpm and allows both to be potentially compiled in at the same time. Change-Id: I0aa2686103546e0696ab8dcf77e2b99bf9734915 Signed-off-by: Sergii Dmytruk <[email protected]> Reviewed-on: https://review.coreboot.org/c/coreboot/+/81860 Tested-by: build bot (Jenkins) <[email protected]> Reviewed-by: Julius Werner <[email protected]>
…ersion) Starting from here CONFIG_TPM1 and CONFIG_TPM2 are no longer mutually exclusive. Change-Id: I44c5a1d825afe414c2f5c2c90f4cfe41ba9bef5f Ticket: https://ticket.coreboot.org/issues/433 Signed-off-by: Sergii Dmytruk <[email protected]> Reviewed-on: https://review.coreboot.org/c/coreboot/+/69162 Reviewed-by: Julius Werner <[email protected]> Tested-by: build bot (Jenkins) <[email protected]> Signed-off-by: Sergii Dmytruk <[email protected]>
No functional changes. This replaces a macro with an inline function to make code more readable and more convenient to extend in the future. Change-Id: I456bc3bb749a9b58fba72f5562195525e55290bf Signed-off-by: Sergii Dmytruk <[email protected]>
This event log format option automatically selects TCG log format depending on which TPM is present. Change-Id: I1997396f24ff6362fe64ac56f8e61efcf2ffb0f7 Signed-off-by: Sergii Dmytruk <[email protected]>
iPXE configuration of the boards were broken after a rebase, so this also involved setting CONFIG_BUILD_IPXE=y which now enables build. Change-Id: Ib2af25f7259c31f2e89dc10f473331733c255796 Signed-off-by: Sergii Dmytruk <[email protected]>
Change-Id: I7117aa165596ea3b25d7582ebdad3a8591a72f38 Signed-off-by: Sergii Dmytruk <[email protected]>
97909e2
to
2825d4c
Compare
Rebased: updated EDK2 hash which also fixed merge conflict. |
coreboot can only extend a single PCR bank of TPM2 and this change results in all available PCRs being extended. This is an alternative to making coreboot extend all active PCRs. Change-Id: I4e21ab77f191e9b36cb467cd61ad0a3e347035cb Signed-off-by: Sergii Dmytruk <[email protected]>
Change-Id: I8573a65bdbd7727dc11f0634fdbd62711b36ddac Signed-off-by: Maciej Pijanowski <[email protected]>
Actual code changes are in EDK, coreboot only needs to not publish related ACPI entries.
Testing on APUs won't work without reverting modifications in src/drivers/pc80/tpm/tis.c which somehow disables a working TPM.EDK PR: Dasharo/edk2#139
This now also includes picking TCG log format at runtime.