tpm2-software / tpm2-tools

The source repository for the Trusted Platform Module (TPM2.0) tools
https://tpm2-software.github.io
717 stars 378 forks source link

tpm2_eventlog missing in /usr/bin/ #3000

Closed kuldeepmarker-eaton closed 2 years ago

kuldeepmarker-eaton commented 2 years ago

I am using OPENSTLINUX distro and my board is stm32mp157f-dk2. I have included tpm2 and flashed the image. I have also included fTPM TA in my image. I want to get the tpm event log so I thought of using tpm2_evenlog command but in my image I am not seeing the command in /usr/bin/. Could you please tell me why the command is not part of my image. Following is a list of tpm2 commands available.

root@stm32mp1:~# ls /usr/bin/ | grep "tpm2" tpm2_activatecredential tpm2_certify tpm2_certifycreation tpm2_changeauth tpm2_changeeps tpm2_changepps tpm2_checkquote tpm2_clear tpm2_clearcontrol tpm2_clockrateadjust tpm2_create tpm2_createak tpm2_createek tpm2_createpolicy tpm2_createprimary tpm2_dictionarylockout tpm2_duplicate tpm2_encryptdecrypt tpm2_evictcontrol tpm2_flushcontext tpm2_getcap tpm2_getekcertificate tpm2_getrandom tpm2_gettestresult tpm2_gettime tpm2_hash tpm2_hierarchycontrol tpm2_hmac tpm2_import tpm2_incrementalselftest tpm2_load tpm2_loadexternal tpm2_makecredential tpm2_nvcertify tpm2_nvdefine tpm2_nvextend tpm2_nvincrement tpm2_nvread tpm2_nvreadlock tpm2_nvreadpublic tpm2_nvsetbits tpm2_nvundefine tpm2_nvwrite tpm2_nvwritelock tpm2_pcrallocate tpm2_pcrevent tpm2_pcrextend tpm2_pcrread tpm2_pcrreset tpm2_policyauthorize tpm2_policyauthorizenv tpm2_policyauthvalue tpm2_policycommandcode tpm2_policycountertimer tpm2_policyduplicationselect tpm2_policylocality tpm2_policynamehash tpm2_policynv tpm2_policynvwritten tpm2_policyor tpm2_policypassword tpm2_policypcr tpm2_policyrestart tpm2_policysecret tpm2_policysigned tpm2_policytemplate tpm2_policyticket tpm2_print tpm2_quote tpm2_rc_decode tpm2_readclock tpm2_readpublic tpm2_rsadecrypt tpm2_rsaencrypt tpm2_selftest tpm2_send tpm2_setclock tpm2_setprimarypolicy tpm2_shutdown tpm2_sign tpm2_startauthsession tpm2_startup tpm2_stirrandom tpm2_testparms tpm2_unseal tpm2_verifysignature root@stm32mp1:~#

idesai commented 2 years ago

@kuldeepmarker-eaton what version are these tools? I can see eventlog in my installation


ll /home/tpm2-tools-install/bin/ | grep tpm2 | grep event
lrwxrwxrwx 1  4 May 13 16:51 tpm2_eventlog -> tpm2*
lrwxrwxrwx 1  4 May 13 16:51 tpm2_pcrevent -> tpm2*