[PATCH] doc: qemu: switch swtpm instruction to 'tpm autostart'

We don't have a documentation page for our TPM subsystem. I plan on sending one in the future, but in the meantime document the new 'tpm autostart' command in the QEMU instructions while using a SWTPM
Signed-off-by: Ilias Apalodimas ilias.apalodimas@linaro.org --- doc/board/emulation/qemu-arm.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/board/emulation/qemu-arm.rst b/doc/board/emulation/qemu-arm.rst index 16f66388eb1f..30819637723d 100644 --- a/doc/board/emulation/qemu-arm.rst +++ b/doc/board/emulation/qemu-arm.rst @@ -113,7 +113,7 @@ In a second console invoke qemu-system-aarch64 with::
Enable the TPM on U-Boot's command line with::
- tpm2 startup TPM2_SU_CLEAR + tpm autostart
Debug UART ----------

On Fri, 16 Jun 2023 at 09:43, Ilias Apalodimas ilias.apalodimas@linaro.org wrote:
We don't have a documentation page for our TPM subsystem. I plan on sending one in the future, but in the meantime document the new 'tpm autostart' command in the QEMU instructions while using a SWTPM
Signed-off-by: Ilias Apalodimas ilias.apalodimas@linaro.org
doc/board/emulation/qemu-arm.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Simon Glass sjg@chromium.org

On 6/16/23 10:42, Ilias Apalodimas wrote:
We don't have a documentation page for our TPM subsystem. I plan on sending one in the future, but in the meantime document the new 'tpm autostart' command in the QEMU instructions while using a SWTPM
Signed-off-by: Ilias Apalodimas ilias.apalodimas@linaro.org Reviewed-by: Simon Glass sjg@chromium.org
doc/board/emulation/qemu-arm.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/board/emulation/qemu-arm.rst b/doc/board/emulation/qemu-arm.rst index 16f66388eb1f..30819637723d 100644 --- a/doc/board/emulation/qemu-arm.rst +++ b/doc/board/emulation/qemu-arm.rst @@ -113,7 +113,7 @@ In a second console invoke qemu-system-aarch64 with::
Enable the TPM on U-Boot's command line with::
- tpm2 startup TPM2_SU_CLEAR
- tpm autostart
Do you really intend switch from TPM v2 to the deprecated TPM v1?
I assume you mean "tpm2 autostart".
Best regards
Heinrich
Debug UART

Hi Heinrich,
On Fri, 8 Sept 2023 at 22:16, Heinrich Schuchardt xypron.glpk@gmx.de wrote:
On 6/16/23 10:42, Ilias Apalodimas wrote:
We don't have a documentation page for our TPM subsystem. I plan on sending one in the future, but in the meantime document the new 'tpm autostart' command in the QEMU instructions while using a SWTPM
Signed-off-by: Ilias Apalodimas ilias.apalodimas@linaro.org Reviewed-by: Simon Glass sjg@chromium.org
doc/board/emulation/qemu-arm.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/board/emulation/qemu-arm.rst b/doc/board/emulation/qemu-arm.rst index 16f66388eb1f..30819637723d 100644 --- a/doc/board/emulation/qemu-arm.rst +++ b/doc/board/emulation/qemu-arm.rst @@ -113,7 +113,7 @@ In a second console invoke qemu-system-aarch64 with::
Enable the TPM on U-Boot's command line with::
- tpm2 startup TPM2_SU_CLEAR
- tpm autostart
Do you really intend switch from TPM v2 to the deprecated TPM v1?
I assume you mean "tpm2 autostart".
Both tpm v1/v2 commands will call do_tpm(). That function will properly call a v1 or v2 API depending on the device it discovered. So the autostart function will work for both variants correctly.
P.S: Looking at commit e663b2ff4ba2("tpm: Add 'tpm autostart' shell command"), I apparently messed up a c/p and autostart is missing from the v1 version of the command. I'll send a patch to fix that
Thanks /Ilias
Best regards
Heinrich
Debug UART
participants (3)
-
Heinrich Schuchardt
-
Ilias Apalodimas
-
Simon Glass