Professional Documents
Culture Documents
After booting to the kernel, check for the following sysfs entry
ls sys/class/tpm
tpm0 will be created.
Note: Above steps are taken from the Link mentioned below (install.md)
Note: If error : TPM device provided does not exist or is not writable
observed then run cmd : sudo chmod go+rw /dev/tpm0
3.3.2 Tpm2-abrmd
git clone https://github.com/tpm2-software/tpm2-abrmd.git
cd tpm2-abrmd
git checkout 01a3f6297261085b8ff5b6deb3fbacf14b5e50d6
sudo ./bootstrap
sudo ./configure --with-dbuspolicydir=/etc/dbus-1/system.d --with-
systemdsystemunitdir=/lib/systemd/system
[AMD Official Use Only]
--with-systemdpresetdir=/lib/systemd/system-preset --enable-
integration --enable-unit
sudo make -j$(nproc) check
sudo make install
Note: Above steps are taken from the Link mentioned below (install.md)
For more detailed Build and installation ,please follow link
https://github.com/tpm2-software/tpm2-abrmd/blob/master/IN STALL.md
3.3.3 TPM2.0-Tools
Note : Make sure the TSS stack and the resource manager is installed before running the
tools test
[WHY TPM clear is needed in the BIOS]: This option simply resets the Trusted Platform
Module (TPM) to its default state.
Run Hello World program with below steps :
Run software TPM server
cd ibmtpm/src/
./tpm_server &
tpm2-abrmd daemon must run as user tss or root (with option –allow-root) as
below:
The above command should be run in a separate terminal (or in the background)
Simple and basic test to make sure that the fTPM is alive and running:
$ cd tpm2-tools/tool/
$ ./tpm2_getrandom --hex 20
Note: This should give a 4-byte response. This response should be different every time
you run this command.
Running the hello world :
Navigate to : cd tpm2-tools/tool/
./tpm2_pcrread result should be as below with
sha1 :
0 : 0000000000000000000000000000000000000003
1 : 0000000000000000000000000000000000000000
2 : 0000000000000000000000000000000000000000
3 : 0000000000000000000000000000000000000000
4 : 0000000000000000000000000000000000000000
5 : 0000000000000000000000000000000000000000
<snip>
Navigate to : cd /tpm2-tools/test/unit/
An run executables eg1 : ./test_pcr
[AMD Official Use Only]
Hello world program should result as below if tpm2-tools intialised properly. Link : https://github.com/tpm2-
software/tpm2-tools/wiki/Getting-Started
[AMD Official Use Only]
$ ./tpm2_getrandom --hex 20
2). tpm2-tss:
Got to tpm2-tss directory
sudo make check (make sure it is running unit & integration tests)
(While configuring tpm2-tss we have already enabled with unit& integration steps).
[AMD Official Use Only]
3). tpm2-abrmd:
sudo make check (make sure it is running unit & integration tests)
While configuring tpm2-tss we have already enabled with unit& integration steps
4). tpm2-tools:
sudo make check (make sure it is running unit & integration tests)
While configuring tpm2-tss we have already enabled with unit& integration steps