aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-11-13 18:13:35 -0500
committerTom Rini <trini@konsulko.com>2021-11-13 18:13:35 -0500
commitb8a156f54ecd1e9a74f48a09a0735b4a41c90eba (patch)
tree7eda0ea12d5af71faaca35ca3f4bd55d4bfb723f /doc
parenta51673eb75de328d3471b742e593f04b166591c4 (diff)
parent2a10e06e07540694d82838793ee7cb34f4dbc59c (diff)
downloadu-boot-b8a156f54ecd1e9a74f48a09a0735b4a41c90eba.zip
u-boot-b8a156f54ecd1e9a74f48a09a0735b4a41c90eba.tar.gz
u-boot-b8a156f54ecd1e9a74f48a09a0735b4a41c90eba.tar.bz2
Merge tag 'efi-2022-01-rc2-2' of https://source.denx.de/u-boot/custodians/u-boot-efi
Pull request for efi-2022-01-rc2-2 UEFI: * fix measurement of BootOrder variable for TCG2 protocol TPM: * TIS mmio driver. This driver supports QEMU's emulated TPM.
Diffstat (limited to 'doc')
-rw-r--r--doc/board/emulation/qemu-arm.rst25
1 files changed, 25 insertions, 0 deletions
diff --git a/doc/board/emulation/qemu-arm.rst b/doc/board/emulation/qemu-arm.rst
index 8d7fda1..584ef0a 100644
--- a/doc/board/emulation/qemu-arm.rst
+++ b/doc/board/emulation/qemu-arm.rst
@@ -81,6 +81,31 @@ can be enabled with the following command line parameters:
These have been tested in QEMU 2.9.0 but should work in at least 2.5.0 as well.
+Enabling TPMv2 support
+----------------------
+
+To emulate a TPM the swtpm package may be used. It can be built from the
+following repositories:
+
+ https://github.com/stefanberger/swtpm.git
+
+Swtpm provides a socket for the TPM emulation which can be consumed by QEMU.
+
+In a first console invoke swtpm with::
+
+ swtpm socket --tpmstate dir=/tmp/mytpm1 \
+ --ctrl type=unixio,path=/tmp/mytpm1/swtpm-sock --log level=20
+
+In a second console invoke qemu-system-aarch64 with::
+
+ -chardev socket,id=chrtpm,path=/tmp/mytpm1/swtpm-sock \
+ -tpmdev emulator,id=tpm0,chardev=chrtpm \
+ -device tpm-tis-device,tpmdev=tpm0
+
+Enable the TPM on U-Boot's command line with::
+
+ tpm2 startup TPM2_SU_CLEAR
+
Debug UART
----------