Discussion:
[TrouSerS-users] problem with TPM connection - error 0x00003011
antonio ascrizzi
2016-11-16 07:42:39 UTC
Permalink
Hi,

I am pretty new to the field...
Starting from the following sample code I am trying to get *connected to
the TPM *after generating a Context:

[...]
*# result = Tspi_Context_Create(&hContext);*


*# result = Tspi_Context_Connect(hContext, NULL);*

The second call gives me: "Connection failure" with error *0x00003011.*
From the Bios TPM is enabled and active (I rebooted the board many times).
Do you have any idea?

Thank you very much

aa
Tadd Seiff
2016-12-07 18:48:09 UTC
Permalink
Hi aa,

A few details that might help:
1) what platform are you on? (PC make/model, chipset/motherboard...)
2) In what OS are you developing?
In Ubuntu I would check the following:
Is the TPM device present: # ls /dev/tpm* (tpm0 should be there)
If so, does it have an EK: # cat /sys/class/misc/tpm0/device/pubek
3) You didn't mention if you OWN the TPM (Take_Ownership command), which is
a logical next step after enabling it, BUT, afaik, you should still be able
to get a context so this shouldn't cause this error.

Also, the TCSD (that's the daemon that actually talks to the TPM device and
manages connections) should log some things to the syslog in this case, so
check dmesg and /var/log/syslog immediately after reproducing this issue.

-Tadd
Post by antonio ascrizzi
Hi,
I am pretty new to the field...
Starting from the following sample code I am trying to get *connected to
[...]
*# result = Tspi_Context_Create(&hContext);*
*# result = Tspi_Context_Connect(hContext, NULL);*
The second call gives me: "Connection failure" with error *0x00003011.*
From the Bios TPM is enabled and active (I rebooted the board many times).
Do you have any idea?
Thank you very much
aa
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
_______________________________________________
TrouSerS-users mailing list
https://lists.sourceforge.net/lists/listinfo/trousers-users
Loading...