* Re: [tpm2] [Help] what the default parameter of tpm2-tools
@ 2019-08-23 17:15 Roberts, William C
0 siblings, 0 replies; 4+ messages in thread
From: Roberts, William C @ 2019-08-23 17:15 UTC (permalink / raw)
To: tpm2
[-- Attachment #1: Type: text/plain, Size: 3558 bytes --]
I'm on git sha's:
Tpm2-tools: 1fe9e8
Tpm2-tss: 3440cd
Tpm2-abrmd: 69e00f
I cannot reproduce.
./tools/tpm2_getrandom 3 | xxd
00000000: 6fa7 e0 o..
wcrobert(a)wcrobert-MOBL1:~/workspace/tpm2-tools$
> -----Original Message-----
> From: tpm2 [mailto:tpm2-bounces(a)lists.01.org] On Behalf Of Zhao, Shirley
> Sent: Thursday, August 15, 2019 4:14 AM
> To: tpm2(a)lists.01.org
> Subject: [tpm2] [Help] what the default parameter of tpm2-tools
>
> Hi, all,
>
>
>
> I just downloaded tpm2-tss, tpm2-tool, and tpm2-abrmd from master, compile
> and install using the following command.
>
> * Tpm2-tss
>
> $ git clone https://github.com/tpm2-software/tpm2-tss.git
>
> $ cd tpm2-tss
>
> $ ./bootstrap
>
> $ ./configure --prefix=/usr
>
> $ make -j5
>
> $ sudo make install
>
> * Tpm2-abrmd
>
> $ git clone https://github.com/tpm2-software/tpm2-abrmd.git
>
> $ cd tpm2-abrmd
>
> $ ./bootstrap
>
> $ ./configure --with-dbuspolicydir=/etc/dbus-1/system.d
>
> --with-udevrulesdir=/usr/lib/udev/rules.d
>
> --with-systemdsystemunitdir=/usr/lib/systemd/system
>
> --libdir=/usr/lib64 --prefix=/usr
>
> $ make -j5
>
> $ sudo make install
>
> * Tpm2-tools
>
> $ git clone https://github.com/tpm2-software/tpm2-tools.git
>
> $ cd tpm2-tools
>
> $ ./bootstrap
>
> $ ./configure --prefix=/usr
>
> $ make -j5
>
> $ sudo make install
>
>
>
>
>
> Start tpm simulator and tpm2-abrmd as below:
>
> $tpm_server –rm
>
> $sudo tpm2-abrmd --allow-root --tcti=mssim
>
>
>
> Previously, run tpm2_tool command can connect to simulator directly.
>
> But this time, I got error like.
>
> $tpm2_getrandom 3
>
> ERROR:tcti:src/tss2-tcti/tcti-device.c:440:Tss2_Tcti_Device_Init() Failed to open
> device file /dev/tpm0: No such file or directory
>
> WARNING:tcti:src/tss2-tcti/tctildr.c:62:tcti_from_init() TCTI init for function
> 0x7fc15195c1f1 failed with a000a
>
> WARNING:tcti:src/tss2-tcti/tctildr.c:92:tcti_from_info() Could not initialize TCTI
> named: tcti-device
>
> ERROR:tcti:src/tss2-tcti/tctildr-dl.c:150:tcti_from_file() Could not initialize TCTI
> file: libtss2-tcti-default.so
>
> ERROR:tcti:src/tss2-tcti/tcti-device.c:440:Tss2_Tcti_Device_Init() Failed to open
> device file /dev/tpmrm0: No such file or directory
>
> WARNING:tcti:src/tss2-tcti/tctildr.c:62:tcti_from_init() TCTI init for function
> 0x7fc15195c1f1 failed with a000a
>
> WARNING:tcti:src/tss2-tcti/tctildr.c:92:tcti_from_info() Could not initialize TCTI
> named: tcti-device
>
> ERROR:tcti:src/tss2-tcti/tctildr-dl.c:150:tcti_from_file() Could not initialize TCTI
> file: libtss2-tcti-device.so.0
>
> ERROR:tcti:src/tss2-tcti/tcti-device.c:440:Tss2_Tcti_Device_Init() Failed to open
> device file /dev/tpm0: No such file or directory
>
> WARNING:tcti:src/tss2-tcti/tctildr.c:62:tcti_from_init() TCTI init for function
> 0x7fc15195c1f1 failed with a000a
>
> WARNING:tcti:src/tss2-tcti/tctildr.c:92:tcti_from_info() Could not initialize TCTI
> named: tcti-device
>
> ERROR:tcti:src/tss2-tcti/tctildr-dl.c:150:tcti_from_file() Could not initialize TCTI
> file: libtss2-tcti-device.so.0
>
>
>
>
>
> If I point to simulator, got some unknown text, like:
>
> $tpm2_getrandom 3 --tcti=mssim
>
> ▒g▒
>
>
>
> What’s wrong with my step? Is there any new guide to run these tools?
>
>
>
> Thanks.
>
>
>
> - Shirley
>
>
>
>
>
>
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [tpm2] [Help] what the default parameter of tpm2-tools
@ 2019-08-24 9:33 Zhao, Shirley
0 siblings, 0 replies; 4+ messages in thread
From: Zhao, Shirley @ 2019-08-24 9:33 UTC (permalink / raw)
To: tpm2
[-- Attachment #1: Type: text/plain, Size: 1034 bytes --]
Hi, Tadeusz,
Still can't work after create the link
$ ln -s /usr/local/lib/libtss2-tcti-mssim.so /usr/local/lib/libtss2-tcti-default.so.
Does it have version requirement?
I use the version of 2.1.0.
- Shirley
-----Original Message-----
From: Struk, Tadeusz
Sent: Saturday, August 24, 2019 1:45 AM
To: Zhao, Shirley <shirley.zhao(a)intel.com>; tpm2(a)lists.01.org
Subject: Re: [tpm2] [Help] what the default parameter of tpm2-tools
On 8/15/19 2:14 AM, Zhao, Shirley wrote:
> Previously, run tpm2_tool command can connect to simulator directly.
>
> But this time, I got error like.
>
Hi,
Have you uninstalled (make uninstall) the previous versions of the software before installing the more recent versions?
You can make the tools talking directly to the simulator by creating a link libtss2-tcti-default.so pointing to libtss2-tcti-mssim.so:
$ unlink /usr/local/lib/libtss2-tcti-default.so
$ ln -s /usr/local/lib/libtss2-tcti-mssim.so /usr/local/lib/libtss2-tcti-default.so
--
Tadeusz
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [tpm2] [Help] what the default parameter of tpm2-tools
@ 2019-08-23 17:45 Tadeusz Struk
0 siblings, 0 replies; 4+ messages in thread
From: Tadeusz Struk @ 2019-08-23 17:45 UTC (permalink / raw)
To: tpm2
[-- Attachment #1: Type: text/plain, Size: 576 bytes --]
On 8/15/19 2:14 AM, Zhao, Shirley wrote:
> Previously, run tpm2_tool command can connect to simulator directly.
>
> But this time, I got error like.
>
Hi,
Have you uninstalled (make uninstall) the previous versions of the software
before installing the more recent versions?
You can make the tools talking directly to the simulator by creating a link
libtss2-tcti-default.so pointing to libtss2-tcti-mssim.so:
$ unlink /usr/local/lib/libtss2-tcti-default.so
$ ln -s /usr/local/lib/libtss2-tcti-mssim.so /usr/local/lib/libtss2-tcti-default.so
--
Tadeusz
^ permalink raw reply [flat|nested] 4+ messages in thread
* [tpm2] [Help] what the default parameter of tpm2-tools
@ 2019-08-15 9:14 Zhao, Shirley
0 siblings, 0 replies; 4+ messages in thread
From: Zhao, Shirley @ 2019-08-15 9:14 UTC (permalink / raw)
To: tpm2
[-- Attachment #1: Type: text/plain, Size: 2656 bytes --]
Hi, all,
I just downloaded tpm2-tss, tpm2-tool, and tpm2-abrmd from master, compile and install using the following command.
* Tpm2-tss
$ git clone https://github.com/tpm2-software/tpm2-tss.git
$ cd tpm2-tss
$ ./bootstrap
$ ./configure --prefix=/usr
$ make -j5
$ sudo make install
* Tpm2-abrmd
$ git clone https://github.com/tpm2-software/tpm2-abrmd.git
$ cd tpm2-abrmd
$ ./bootstrap
$ ./configure --with-dbuspolicydir=/etc/dbus-1/system.d
--with-udevrulesdir=/usr/lib/udev/rules.d
--with-systemdsystemunitdir=/usr/lib/systemd/system
--libdir=/usr/lib64 --prefix=/usr
$ make -j5
$ sudo make install
* Tpm2-tools
$ git clone https://github.com/tpm2-software/tpm2-tools.git
$ cd tpm2-tools
$ ./bootstrap
$ ./configure --prefix=/usr
$ make -j5
$ sudo make install
Start tpm simulator and tpm2-abrmd as below:
$tpm_server -rm
$sudo tpm2-abrmd --allow-root --tcti=mssim
Previously, run tpm2_tool command can connect to simulator directly.
But this time, I got error like.
$tpm2_getrandom 3
ERROR:tcti:src/tss2-tcti/tcti-device.c:440:Tss2_Tcti_Device_Init() Failed to open device file /dev/tpm0: No such file or directory
WARNING:tcti:src/tss2-tcti/tctildr.c:62:tcti_from_init() TCTI init for function 0x7fc15195c1f1 failed with a000a
WARNING:tcti:src/tss2-tcti/tctildr.c:92:tcti_from_info() Could not initialize TCTI named: tcti-device
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:150:tcti_from_file() Could not initialize TCTI file: libtss2-tcti-default.so
ERROR:tcti:src/tss2-tcti/tcti-device.c:440:Tss2_Tcti_Device_Init() Failed to open device file /dev/tpmrm0: No such file or directory
WARNING:tcti:src/tss2-tcti/tctildr.c:62:tcti_from_init() TCTI init for function 0x7fc15195c1f1 failed with a000a
WARNING:tcti:src/tss2-tcti/tctildr.c:92:tcti_from_info() Could not initialize TCTI named: tcti-device
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:150:tcti_from_file() Could not initialize TCTI file: libtss2-tcti-device.so.0
ERROR:tcti:src/tss2-tcti/tcti-device.c:440:Tss2_Tcti_Device_Init() Failed to open device file /dev/tpm0: No such file or directory
WARNING:tcti:src/tss2-tcti/tctildr.c:62:tcti_from_init() TCTI init for function 0x7fc15195c1f1 failed with a000a
WARNING:tcti:src/tss2-tcti/tctildr.c:92:tcti_from_info() Could not initialize TCTI named: tcti-device
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:150:tcti_from_file() Could not initialize TCTI file: libtss2-tcti-device.so.0
If I point to simulator, got some unknown text, like:
$tpm2_getrandom 3 --tcti=mssim
▒g▒
What's wrong with my step? Is there any new guide to run these tools?
Thanks.
- Shirley
[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 19910 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-08-24 9:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-23 17:15 [tpm2] [Help] what the default parameter of tpm2-tools Roberts, William C
-- strict thread matches above, loose matches on Subject: below --
2019-08-24 9:33 Zhao, Shirley
2019-08-23 17:45 Tadeusz Struk
2019-08-15 9:14 Zhao, Shirley
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.