FS#74421 - [edk2-ovmf] Broken TPM2 Support due to changed build flag
Attached to Project:
Arch Linux
Opened by E. Werberich (bephinix) - Saturday, 09 April 2022, 15:34 GMT
Last edited by Morten Linderud (Foxboron) - Tuesday, 19 April 2022, 19:10 GMT
Opened by E. Werberich (bephinix) - Saturday, 09 April 2022, 15:34 GMT
Last edited by Morten Linderud (Foxboron) - Tuesday, 19 April 2022, 19:10 GMT
|
Details
Description:
According to [1], upstream renamed the flag used to determine whether TPM1/2 support is enabled or not [2]. Instead of `TPM_ENABLED`, `TPM1_ENABLED` and `TPM2_ENABLED` are used. As this fact is noted but not implemented in PKGCONFIG, TPM2 does not work in KVM/QEMU VMs. Therefore e.g. Windows 11 VMs cannot be installed due to missing (not working) TPM2. Patch Draft: Replace `-D TPM_ENABLE` in PKGBUILD with: ``` -D TPM1_ENABLE -D TPM2_ENABLE ``` Links: [1]: https://groups.google.com/g/linux.debian.bugs.dist/c/KIARY7bL5RI [2]: https://github.com/tianocore/edk2/commit/4de8d61bcec02a13ceed84f92b0cf3ea58adf9c5 |
This task depends upon
Closed by Morten Linderud (Foxboron)
Tuesday, 19 April 2022, 19:10 GMT
Reason for closing: Fixed
Additional comments about closing: 202202-2
Tuesday, 19 April 2022, 19:10 GMT
Reason for closing: Fixed
Additional comments about closing: 202202-2
```
diff --git a/edk2/trunk/PKGBUILD b/edk2/trunk/PKGBUILD
index 4c3b745..6d838b3 100644
--- a/edk2/trunk/PKGBUILD
+++ b/edk2/trunk/PKGBUILD
@@ -104,7 +104,8 @@ build() {
local _efi_args=(
-D NETWORK_IP6_ENABLE
-D TPM_CONFIG_ENABLE
- -D TPM_ENABLE
+ -D TPM1_ENABLE
+ -D TPM2_ENABLE
)
# shared targets x86_64 and i686
local _x86_args=(
```
I tried the patch and it didn't work for me. The device does show up w/ no driver errors, and as "ready to use" in the TPM MMC snap-in, but it doesn't actually work.
BitLocker remains suspended after booting w/ the patched package, and if I try to unsuspend BitLocker I get a message saying "the BIOS failed to communicate w/ the TPM."
Please check whether 202202-2 fixes this for you.