Do all of following as root in your terminal, e.g., sudo bash.
mkdir /opt/ibmtpm1119
copy ibmtpm1119.tar to /opt/ibmtpm1119
tar -xvf ibmtpm1119.tar
cd src
make
cd /opt
ln -s ibmtpm1119 ibmtpmThis will fail on 32 bit Linux because of a mismatch in RADIX_BITS
(assumed to be 64 for Linux). To fix this edit Implementation.h and
change RADIX_BITS to 32. Once changed re-run make and setup a
symlink as outlined above.
mkdir /opt/ibmtss1119
mv ibmtss1119.tar /opt/ibmtss1119
tar -xvf ibmtss1119.tar
cd utils
make
cd /opt
ln -s ibmtss1119 ibmtssOnce complete test the install by starting the simulator in a terminal new window.
sudo /opt/ibmtpm/src/tpm_serverand then execute /opt/ibmtss/utils/reg.sh -a which runs all of the tests.
Set access permissions to all files:
chmod 755 -R /opt/ibmt*When this is complete you can now exit from the root shell.
To run the code without requiring root or sudo, set environment variables:
export LD_LIBRARY_PATH=/opt/ibmtss/utils
export PATH=$PATH:/opt/ibmtss/utilsIf you are using a hardware TPM then set the following:
export TPM_INTERFACE_TYPE=devIf not using a hardware TPM then set the simulator:
export TPM_INTERFACE_TYPE=socsim