On 04/03/2018 11:30 AM, fixed-term.Jan.Bissinger wrote:
I just setup the complete stack with the following versions:
tpm2-tools: master (as of 03/04/2018)
tpm2-tss: master (as of 03/04/2018)
Did you build in this order? You should instead build:
Otherwise the tpm2-tools won't be built with tpm2-abrmd support.
I am running Ubuntu 14.02 on my machine.
I have two questions:
_1) Executing of tpm2_* commands_
I was able to compile and install all files. Now, I want to execute e.g.
the command tpm2_getrandom 4, so this is what I am doing:
$ sudo ./~/tpm2/tpm2-simulator/src/tpm_server & // starts
successfully and also logs when tpm2-abrmd is connected
$ sudo ./~/tpm2/tpm-abrmd/tpm2-abrmd --tcti=socket // without
--tcti=socket I get the error "TCTI initialization failed: 0xa000a"
I believe the default is to use the device TCTI, can you check the
permission bits for /dev/tpm* ?
$ sudo ./~/tpm2/tpm-tools/tools/tpm2_startup // as required in
documentation of the TPM2-simulator
$ sudo ./~/tpm2/tpm-tools/tools/tpm2_getrandom 4
However, there is nothing happening. I can only cancel with CRTL+C. Same
behavior for e.g. tpm2_pcrlist
_2) Not full range of tpm2_* commands_
The executables in my ~/tpm2/tpm-tools/tools/-directory are not
complete. Several commands, like e.g. tpm2_version or tpm2_takeownership
I don't think there was ever tpm2_version tool... but tpm2_takeownership
doesn't exist in master anymore. Now you should use tpm2_changeauth.
How is that possible?
Javier Martinez Canillas
Software Engineer - Desktop Hardware Enablement