All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [tpm2] It is a problem about device or resource busy when I use the tpm2-tools
@ 2018-11-01 15:47 Tadeusz Struk
  0 siblings, 0 replies; 3+ messages in thread
From: Tadeusz Struk @ 2018-11-01 15:47 UTC (permalink / raw)
  To: tpm2

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

On 10/31/18 8:04 PM, Sherry Zhang(BJ-RD) wrote:
> Hi all,
> 
> The packages that I have installed(ubuntu16.04.2 with kernel-4.16.2) :
> 
> # install TSS itself
> 
> git clone https://github.com/tpm2-software/tpm2-tss.git
> 
> cd tpm2-tss
> 
> ./bootstrap
> 
> ./configure --enable-unit
> 
> make check
> 
> sudo make install
> 
>  
> 
> # Install abrmd itself
> 
> git clone https://github.com/tpm2-software/tpm2-abrmd.git
> 
> cd tpm2-abrmd
> 
> ./bootstrap
> 
> ./configure --enable-unit --with-dbuspolicydir=/etc/dbus-1/system.d
> 
> dbus-launch make check
> 
> sudo make install
> 
>  
> 
> # Install tools itself
> 
> git clone https://github.com/tpm2-software/tpm2-tools.git
> 
> cd tpm2-tools
> 
> ./bootstrap
> 
> ./configure --enable-unit
> 
> make check
> 
> sudo make install
> 
> And I can see /dev/tpm0 and /dev/tpmrm0 with the the tpm_tis.ko in the kernel-4.16.2.
> 
> But I have a problem as follows:
> 
> (1)#strace tpm2-abrmd --tcti="device:/dev/tpm0"  --allow-root
> 
> (2)In a C  program:
> 
>      fd = open("/dev/tpm0",O_RDWR);
> 
> *result:*
> 
> open("/dev/tpm0", O_RDWR)               = -1 EBUSY (Device or resource busy)
> 
> *So could someone give advice  to me how to solve this problem? *

Could you make sure that there isn't another instance of tpm2-abrmd running
in the background already?

# systemctl status tpm2-abrmd

-- 
Tadeusz

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [tpm2] It is a problem about device or resource busy when I use the tpm2-tools
@ 2018-11-05  3:08 Sherry Zhang
  0 siblings, 0 replies; 3+ messages in thread
From: Sherry Zhang @ 2018-11-05  3:08 UTC (permalink / raw)
  To: tpm2

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

Hi Tadeusz,
I reinstalled  tpm-tss , tpm-abrmd, tpm-tools.
Now they can use with /dev/tpm0.

Thank you!
Sherry


?????
?????????????????????????????????????????????????????
CONFIDENTIAL NOTE:
This email contains confidential or legally privileged information and is for the sole use of its intended recipient. Any unauthorized review, use, copying or forwarding of this email or the content of this email is strictly prohibited.

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [tpm2] It is a problem about device or resource busy when I use the tpm2-tools
@ 2018-11-01  3:04 Sherry Zhang
  0 siblings, 0 replies; 3+ messages in thread
From: Sherry Zhang @ 2018-11-01  3:04 UTC (permalink / raw)
  To: tpm2

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

Hi all,
The packages that I have installed(ubuntu16.04.2 with kernel-4.16.2) :
# install TSS itself
git clone https://github.com/tpm2-software/tpm2-tss.git
cd tpm2-tss
./bootstrap
./configure --enable-unit
make check
sudo make install

# Install abrmd itself
git clone https://github.com/tpm2-software/tpm2-abrmd.git
cd tpm2-abrmd
./bootstrap
./configure --enable-unit --with-dbuspolicydir=/etc/dbus-1/system.d
dbus-launch make check
sudo make install

# Install tools itself
git clone https://github.com/tpm2-software/tpm2-tools.git
cd tpm2-tools
./bootstrap
./configure --enable-unit
make check
sudo make install
And I can see /dev/tpm0 and /dev/tpmrm0 with the the tpm_tis.ko in the kernel-4.16.2.
But I have a problem as follows:
(1)#strace tpm2-abrmd --tcti="device:/dev/tpm0"  --allow-root
[cid:image001.png(a)01D471D2.AD346530]
(2)In a C  program:
     fd = open("/dev/tpm0",O_RDWR);
result:
open("/dev/tpm0", O_RDWR)               = -1 EBUSY (Device or resource busy)
So could someone give advice  to me how to solve this problem?



?????
?????????????????????????????????????????????????????
CONFIDENTIAL NOTE:
This email contains confidential or legally privileged information and is for the sole use of its intended recipient. Any unauthorized review, use, copying or forwarding of this email or the content of this email is strictly prohibited.

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

[-- Attachment #3: image001.png --]
[-- Type: image/png, Size: 115549 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-11-05  3:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-01 15:47 [tpm2] It is a problem about device or resource busy when I use the tpm2-tools Tadeusz Struk
  -- strict thread matches above, loose matches on Subject: below --
2018-11-05  3:08 Sherry Zhang
2018-11-01  3:04 Sherry Zhang

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.