On 09/21/2017 11:48 PM, Stuart Yoder wrote:
I'm trying to build/test tpm2-tools and am running into an issue.
This is on
an Ubuntu 16.04 machine and I know the tpm is alive and functioning
because the distro tpm2-tools package worked. That's an older codebase, so I
wanted to build everything from source.
So I've successfully built: tpm2-tss, tpm2-tools, tpm2-abrmd.
I followed the build/install instructions here:
...which seem to follow what is recommended in INSTALL.md.
Since your distro is Ubuntu, and you want to use the tabrmd resource manager and
the simulator, I would double check your steps with the ones made by the Travis
CI, since it does the same that you want:
If you find any divergence between what's done there and the INSTALL file, please
file an issue.
I start tpm2-abrmd like this:
sudo -u tss tpm2-abrmd --tcti=device &
I think the problem is that you are using --tcti=device (and so telling the RM
to access the TPM device directly). But IIUC you want to use the simulator, so
instead need to do:
$ sudo -u tss tpm2-abrmd --tcti=socket
..and it runs, but when running a command like
tpm2_pcrlist I get this error:
ERROR: Failed to initialize tcti context: 0x1
Also, I built abrmb with these options:
...and ran make check. The unit tests pass, but the
integration tests fail.
Anything obvious I am missing?
Javier Martinez Canillas
Software Engineer - Desktop Hardware Enablement