1.安装TPM模拟器
下载安装包:https://developer.berlios.de/project/showfiles.php?group_id=2491
解压后README文件为安装和使用的说明
# tar -xvzf tpm_emulator-X.Y.tar.gz
# cd tpm_emulator-X.Y
# mkdir build
# cd build
# cmake ../
# make
# make install
2.TPM使用
(1)初始化:
#sudo tpmd deactivated
#killall tpmd
#tpmd clear
#rm /var/run/tpm/tpmd_socket:0(出现failed:address alread in use 时执行它)
(2)启动:
#sudo modprobe tpmd_dev(将该模块加入内核,如出现Module tpmd_dev not found ,则先运行depmod -a)
#tpmd -