All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tricca, Philip B <philip.b.tricca at intel.com>
To: tpm2@lists.01.org
Subject: Re: [tpm2] TCTI initialization fails with error 0xc000b
Date: Tue, 13 Feb 2018 18:38:38 +0000	[thread overview]
Message-ID: <DB638850A6A2434A93ECADDA0BC838905F1239F6@ORSMSX103.amr.corp.intel.com> (raw)
In-Reply-To: DBXPR03MB575FC9581BAFA16C820EA07F6F60@DBXPR03MB575.eurprd03.prod.outlook.com

[-- Attachment #1: Type: text/plain, Size: 4064 bytes --]

I triaged this last night. It’s a bug in the logic that selects the default TCTI. I’ve got an issue in the tracker for it here: https://github.com/tpm2-software/tpm2-abrmd/issues/327. You can work around it by explicitly selecting the device TCTI with the following option: `--tcti=libtcti-device.so`. I’ll be fixing this up today and likely changing the way we specify the TCTI to align with the tools `--tcti` option.

Best,
Philip

From: Moneeb Azhar [mailto:moneeb777(a)hotmail.com]
Sent: 13 February, 2018 04:50
To: Tricca, Philip B <philip.b.tricca(a)intel.com>
Cc: tpm2(a)lists.01.org
Subject: Re: TCTI initialization fails with error 0xc000b


Hey,



So from what I have gathered, tabrmd is designed to connect directly to the simulator without the need to pass any options by using --tcti. I tried doing this and get the exact same error:


ubuntu:~/Desktop/ibmtpm974/src$ sudo tpm2-abrmd  --allow-root
** (tpm2-abrmd:105445): WARNING **: Failed to get reference to symbol: tpm2-abrmd: undefined symbol: Tss2_Tcti_Info
** (tpm2-abrmd:105445): CRITICAL **: TCTI initialization failed: 0xc000b

I  must be doing something wrong but I don't know what. Are there any log files I can go through  which could tell me what is happening?

Regards,
Moneeb



________________________________
From: Tricca, Philip B <philip.b.tricca(a)intel.com<mailto:philip.b.tricca(a)intel.com>>
Sent: Monday, February 12, 2018 9:04 PM
To: Moneeb Azhar
Cc: tpm2(a)lists.01.org<mailto:tpm2(a)lists.01.org>
Subject: RE: TCTI initialization fails with error 0xc000b


Apologies in advance for top posting. I’m stuck on a windows system while traveling.



It seems as though your issue is related to a recent change to the way we’re initializing the TCTI modules. This caused a few changes to the relevant command line options like `--tcti`. If you’re connecting the tabrmd up to the TPM device and not the simulator as is described in the wiki page you link, then you’ll either need to either leave the `--tcti` option out (the device TCTI should be the default) or use the new form of the `--tcti` option which is documented in our man pages. The source for the man page and the relevant option can be found here: https://github.com/tpm2-software/tpm2-abrmd/blob/master/man/tpm2-abrmd.8.in#L21. Since we’re now loading the TCTI shared object using dlopen the string passed via the `--tcti` option is passed directly to dlopen so the same lookup rules apply. `--tcti=libtcti-device.so` should work for you assuming your LD_CONFIG_PATH is set up right.



Just a heads up though: https://github.com/tpm2-software/tpm2-abrmd/issues/321 is tracking our work to align the `--tcti` option across the tabrmd and the tools. The tabrmd is very probably going to adopt the same convention that Bill implemented for the tools before the next release.



Hope this helps,

Philip



From: tpm2 [mailto:tpm2-bounces(a)lists.01.org] On Behalf Of Moneeb Azhar
Sent: 12 February, 2018 05:43
To: tpm2(a)lists.01.org<mailto:tpm2(a)lists.01.org>
Subject: [tpm2] TCTI initialization fails with error 0xc000b



Hi,

I am trying to setup a TPM development environment on ubuntu16.04 by following the installation wiki here: https://github.com/tpm2-software/tpm2-tools/wiki/Getting-Started#installing

Everything installs correctly but I get the following error:

$ sudo -u tss tpm2-abrmd --tcti=device
** (tpm2-abrmd:104197): WARNING **: failed to dlopen file device: device: cannot open shared object file: No such file or directory
** (tpm2-abrmd:104197): CRITICAL **: TCTI initialization failed: 0xc000b

systemctl  show me the following:
$ sudo systemctl status tpm2-abrmd.service
● tpm2-abrmd.service - TPM2 Access Broker and Resource Management Daemon
   Loaded: loaded (/lib/systemd/system/tpm2-abrmd.service; enabled; vendor preset: enabl
   Active: inactive (dead)

How would I go about figuring out what is wrong? I am new to this so any help would be highly appreciated.

Regards,
Moneeb

[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 12856 bytes --]

             reply	other threads:[~2018-02-13 18:38 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-13 18:38 Tricca, Philip B [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-02-23 19:49 [tpm2] TCTI initialization fails with error 0xc000b Philip Tricca
2018-02-23 17:23 Roberts, William C
2018-02-22 22:13 Anderson, Daniel
2018-02-22 20:38 Javier Martinez Canillas
2018-02-22 17:17 Anderson, Daniel
2018-02-22 16:51 Javier Martinez Canillas
2018-02-22 16:01 Anderson, Daniel
2018-02-22  8:48 Javier Martinez Canillas
2018-02-20 19:40 Anderson, Daniel
2018-02-16 16:52 Roberts, William C
2018-02-14 10:05 Moneeb Azhar
2018-02-14  8:02 Javier Martinez Canillas
2018-02-14  7:42 Moneeb Azhar
2018-02-13 22:11 Tricca, Philip B
2018-02-13 20:44 Moneeb Azhar
2018-02-13 12:49 Moneeb Azhar
2018-02-12 16:04 Tricca, Philip B
2018-02-12 13:43 Moneeb Azhar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DB638850A6A2434A93ECADDA0BC838905F1239F6@ORSMSX103.amr.corp.intel.com \
    --to=tpm2@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.