[PATCH 0/3] Improve U-Boot's TPM handling in the non-EFI case

Ludwig Nussel ludwig.nussel at siemens.com
Wed Apr 29 13:41:40 CEST 2026


U-Boot might be the first component to start the event log, eg when
used in qemu. So allocate and attach the TPM event log to the TPM
device if not initialized yet. The address is copied into the device
tree for the kernel so the event log is accessible from Linux
userspace too.

I am not sure the allocation is the right way to do it for stuff
that gets passed to the kernel though. Advice welcome.



Ludwig Nussel (3):
  test: include mapmem.h explicitly
  tpm: make pcr_read command more useful
  tpm: allocate tpm event log if missing

 boot/Kconfig            |   1 +
 boot/bootm.c            |  18 +++----
 boot/image-fdt.c        |  67 ++++++++++++++++++++++++++
 cmd/tpm-v2.c            |  54 ++++++++++++++-------
 include/tpm-common.h    |   1 +
 include/tpm_tcg2.h      |   9 ++--
 lib/tpm_tcg2.c          | 101 +++++++++++++++++++++++++++++++---------
 test/boot/measurement.c |   1 +
 8 files changed, 197 insertions(+), 55 deletions(-)

-- 
2.43.0

base-commit: 70cb0b8232246c5157802cc26536258a1a446603
branch: us-tpm


More information about the U-Boot mailing list