TPMyingyong

4 termials

1,find  application files

jsm@jsm:~$ cd Downloads/
jsm@jsm:~/Downloads$ ls
gmp-6.1.2                        tpmdd-2.6.16.tgz
gmp-6.1.2.tar.bz2                tpm-emulator
openssl                          tpm_keyring2-0.1.tar.gz
openssl-1.1.1-pre6               tpm-tools-1.3.9.1
openssl-1.1.1-pre6.tar.gz        tpm-tools-1.3.9.1.tar.gz
openssl_tpm_engine-0.4.2         trousers-0.3.14
openssl_tpm_engine-0.4.2.tar.gz  trousers-0.3.14.tar.gz
testsuite-0.3.tar.gz

2,tcsd

jsm@jsm:~$ su root
Password:
root@jsm:/home/jsm# tcsd -f -e
TCSD TDDL ioctl: (25) Inappropriate ioctl for device
TCSD TDDL Falling back to Read/Write device support.

TCSD trousers 0.3.14: TCSD up and running.


3,runing

root@jsm:/home/jsm/Downloads# tpmd -f -d
tpmd.c:523: Info: starting TPM Emulator daemon (1.2.0.7-475)
tpmd.c:102: Info: parsing options
tpmd.c:109: Debug: debug mode enabled
tpmd.c:228: Info: installing signal handlers
tpmd.c:387: Info: staring main loop
tpmd.c:302: Info: initializing socket /var/run/tpm/tpmd_socket:0
tpmd.c:313: Error: bind(/var/run/tpm/tpmd_socket:0) failed: Address already in use
root@jsm:/home/jsm/Downloads# tpmd -d -f


tpmd.c:452: Debug: waiting for commands...
tpmd.c:452: Debug: waiting for commands...
tpmd.c:452: Debug: waiting for commands...
tpmd.c:452: Debug: waiting for commands...
tpmd.c:452: Debug: waiting for commands...
.




4,last

jsm@jsm:~$ tpm_version

  TPM 1.2 Version Info:
  Chip Version:        1.2.0.7
  Spec Level:          2
  Errata Revision:     1
  TPM Vendor ID:       ETHZ
  TPM Version:         01010000
  Manufacturer Info:   4554485a
jsm@jsm:~$ tpm
tpm_changeownerauth  tpm_resetdalock      tpm_setownable
tpm_clear            tpm_restrictpubek    tpm_setpresence
tpm_createek         tpm_restrictsrk      tpm_takeownership
tpmd                 tpm_revokeek         tpmtoken_import
tpm_getpubek         tpm_sealdata         tpmtoken_init
tpm_nvdefine         tpm_selftest         tpmtoken_objects
tpm_nvinfo           tpm_setactive        tpmtoken_protect
tpm_nvread           tpm_setclearable     tpmtoken_setpasswd
tpm_nvrelease        tpm_setenable        tpm_unsealdata
tpm_nvwrite          tpm_setoperatorauth  tpm_version
jsm@jsm:~$ tpm
tpm_changeownerauth  tpm_resetdalock      tpm_setownable
tpm_clear            tpm_restrictpubek    tpm_setpresence
tpm_createek         tpm_restrictsrk      tpm_takeownership
tpmd                 tpm_revokeek         tpmtoken_import
tpm_getpubek         tpm_sealdata         tpmtoken_init
tpm_nvdefine         tpm_selftest         tpmtoken_objects
tpm_nvinfo           tpm_setactive        tpmtoken_protect
tpm_nvread           tpm_setclearable     tpmtoken_setpasswd
tpm_nvrelease        tpm_setenable        tpm_unsealdata
tpm_nvwrite          tpm_setoperatorauth  tpm_version
jsm@jsm:~$ lsmod | grep tpm
tpm_crb                16384  0
jsm@jsm:~$ cd /lib/mod
modprobe.d/     modules/        modules-load.d/
jsm@jsm:~$ cd /lib/modules/4.4.0-
4.4.0-127-generic/ 4.4.0-31-generic/  
jsm@jsm:~$ cd /lib/modules/4.4.0-
4.4.0-127-generic/ 4.4.0-31-generic/  
jsm@jsm:~$ uname -sr
Linux 4.4.0-127-generic
jsm@jsm:~$ cd /lib/modules/4.4.0-127-generic/
build/  initrd/ kernel/ vdso/   
jsm@jsm:~$ cd /lib/modules/4.4.0-127-generic/kernel/
arch/    drivers/ kernel/  mm/      sound/   virt/    
crypto/  fs/      lib/     net/     ubuntu/  
jsm@jsm:~$ cd /lib/modules/4.4.0-127-generic/kernel/drivers/
acpi/        extcon/      infiniband/  misc/        power/       thermal/
ata/         firewire/    input/       mmc/         powercap/    thunderbolt/
atm/         firmware/    iommu/       mtd/         pps/         tty/
auxdisplay/  fmc/         ipack/       net/         ptp/         uio/
base/        fpga/        isdn/        nfc/         pwm/         usb/
bcma/        gpio/        leds/        ntb/         rapidio/     uwb/
block/       gpu/         lightnvm/    nvdimm/      regulator/   vfio/
bluetooth/   hid/         macintosh/   nvme/        remoteproc/  vhost/
char/        hsi/         mailbox/     nvmem/       rtc/         video/
clk/         hv/          mcb/         parport/     scsi/        virtio/
cpufreq/     hwmon/       md/          pci/         spi/         vme/
crypto/      hwtracing/   media/       pcmcia/      spmi/        w1/
dca/         i2c/         memstick/    phy/         ssb/         watchdog/
dma/         idle/        message/     pinctrl/     staging/     xen/
edac/        iio/         mfd/         platform/    target/      
jsm@jsm:~$ cd /lib/modules/4.4.0-127-generic/kernel/drivers/char/
agp/       hw_random/ ipmi/      mwave/     pcmcia/    tpm/       xillybus/
jsm@jsm:~$ cd /lib/modules/4.4.0-127-generic/kernel/drivers/char/tpm
jsm@jsm:/lib/modules/4.4.0-127-generic/kernel/drivers/char/tpm$ ls
st33zp24      tpm_i2c_atmel.ko     tpm_infineon.ko
tpm_atmel.ko  tpm_i2c_infineon.ko  tpm_nsc.ko
tpm_crb.ko    tpm_i2c_nuvoton.ko   xen-tpmfront.ko
jsm@jsm:/lib/modules/4.4.0-127-generic/kernel/drivers/char/tpm$ su root
Password:
root@jsm:/lib/modules/4.4.0-127-generic/kernel/drivers/char/tpm# modprobe tpm_infineon
root@jsm:/lib/modules/4.4.0-127-generic/kernel/drivers/char/tpm# lsmod | grep t[pm
grep: Unmatched [ or [^
root@jsm:/lib/modules/4.4.0-127-generic/kernel/drivers/char/tpm# lsmod | grep tpm
tpm_infineon           20480  0
tpm_crb                16384  0
root@jsm:/lib/modules/4.4.0-127-generic/kernel/drivers/char/tpm#

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值