public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* OVMF commit 6612ff8 24/12/2021 - Windows 11 vm - TPM 2.0 error code 10
@ 2021-12-28  9:03 Daniele Crudo
  2021-12-28 10:39 ` [edk2-devel] " Daniele Crudo
  0 siblings, 1 reply; 3+ messages in thread
From: Daniele Crudo @ 2021-12-28  9:03 UTC (permalink / raw)
  To: devel

[-- Attachment #1: Type: text/plain, Size: 667 bytes --]

Hi,
I just compiled ovmf, updated to commit 6612ff8 (24/12/2021):
https://github.com/tianocore/edk2/commit/6612ff85611bc2be16dc0fd5de0e1413df88941a

The build command:
build -a X64 -b RELEASE -D SECURE_BOOT_ENABLE -D TPM_ENABLE -D FD_SIZE_4MB -p OvmfPkg/OvmfPkgX64.dsc -t GCC5

And used OVMF_CODE.fd and OVMF_VARS.fd for my windows 11 vm in qemu.
Looking at system devices, Windows 11 now can't start TPM 2.0 device (Error code 10).
I also tried to uninstall tpm and reinstall, same issue.

Switching back to 202108 stable version and no issue.
I can try to bisect to find the commit causing the issue, but maybe you are faster in finding what broke it.

[-- Attachment #2: Type: text/html, Size: 842 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [edk2-devel] OVMF commit 6612ff8 24/12/2021 - Windows 11 vm - TPM 2.0 error code 10
  2021-12-28  9:03 OVMF commit 6612ff8 24/12/2021 - Windows 11 vm - TPM 2.0 error code 10 Daniele Crudo
@ 2021-12-28 10:39 ` Daniele Crudo
  2021-12-28 11:14   ` Daniele Crudo
  0 siblings, 1 reply; 3+ messages in thread
From: Daniele Crudo @ 2021-12-28 10:39 UTC (permalink / raw)
  To: Daniele Crudo, devel

[-- Attachment #1: Type: text/plain, Size: 245 bytes --]

I found the offending commit:
OvmfPkg: rework TPM configuration
https://github.com/tianocore/edk2/commit/4de8d61bcec02a13ceed84f92b0cf3ea58adf9c5

With this commit applied windows 11 reports error code 10 with emulated qemu/libvirt tpm 2.0

[-- Attachment #2: Type: text/html, Size: 388 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [edk2-devel] OVMF commit 6612ff8 24/12/2021 - Windows 11 vm - TPM 2.0 error code 10
  2021-12-28 10:39 ` [edk2-devel] " Daniele Crudo
@ 2021-12-28 11:14   ` Daniele Crudo
  0 siblings, 0 replies; 3+ messages in thread
From: Daniele Crudo @ 2021-12-28 11:14 UTC (permalink / raw)
  To: Daniele Crudo, devel

[-- Attachment #1: Type: text/plain, Size: 237 bytes --]

My bad, my build argument was wrong, and it was also written in the description of the commit.
-D TPM_ENABLE doesn't exist anymore, and it must be replaced with  -D TPM1_ENABLE (tpm 1.2) or with  -D TPM2_ENABLE (tpm 2.0)

Sorry!

[-- Attachment #2: Type: text/html, Size: 265 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-12-28 11:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-28  9:03 OVMF commit 6612ff8 24/12/2021 - Windows 11 vm - TPM 2.0 error code 10 Daniele Crudo
2021-12-28 10:39 ` [edk2-devel] " Daniele Crudo
2021-12-28 11:14   ` Daniele Crudo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox