How to install and use TPM 1.2 under Linux

Check if TPM is supported:

$ ls -la /lib/modules/`uname -r`/kernel/drivers/char/tpm

Load modules:

$ sudo /sbin/modprobe tpm_bios
$ sudo /sbin/modprobe tpm
$ sudo /sbin/modprobe tpm_tis interrupts=0 force=1

Sanity check. Should print a lot of things and then "tpm_tis tpm_tis: 1.2 TPM (device-id 0x4A10, rev-id 78)"

$ dmesg
   ...
   tpm_tis tpm_tis: 1.2 TPM (device-id 0x4A10, rev-id 78)

Install trousers and tpm-tools to communicate with TPM device:

$ sudo yum install trousers tpm-tools

Start trousers daemon:

$ sudo /etc/init.d/tcsd start

Check TPM version:

$ sudo /usr/sbin/tpm_version
  TPM 1.2 Version Info:
  Chip Version:        1.2.7.0
  Spec Level:          2
  Errata Revision:     2
  TPM Vendor ID:       STM 
  TPM Version:         01010000
  Manufacturer Info:   53544d20
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License