Check /dev/
ls /dev/tpm*
If a TPM is present, you may see:
/dev/tpm0
Check /sys/
ls /sys/class/tpm/
Check the kernel logs for any TPM related entries:
dmesg | grep -i tpm
Check for TPM related information in System Management BIOS (SMBIOS) or Desktop Management Interface (DMI) tables:
dmidecode -t bios
Check loaded modules:
lsmod | grep tpm
Install tpm2-tools
:
- Arch-based:
pacman -S tpm2-tools
- Debian-based:
apt-get install tpm2-tools
- Red Hat-based:
yum install tpm2-tools
List properties:
tpm2_getcap properties-fixed
Self test:
tpm2_selftest
Try reading Platform Configuration Registers (PCRs):
tpm2_pcrread sha1:0+sha256:0