Debian Codegraph @

doc/tcti-spi-ltt2go.md

raw symbols SCIP
1 # SPI TCTI LTT2GO
2 The SPI TCTI LTT2GO can be used for communication with LetsTrust-TPM2Go USB TPM.
3 The LTT2GO module utilizes the `tcti-spi-helper` library for PTP SPI protocol handling
4 and the `libusb-1.0-0-dev` library for USB communication.
5
6 # EXAMPLES
7
8 Set udev rules for LetsTrust-TPM2Go by creating a file `/etc/udev/rules.d/60-tpm2go.rules`:
9 ```
10 ATTRS{idVendor}=="365d", ATTRS{idProduct}=="1337", TAG+="uaccess"
11 ```
12
13 Activate the udev rules:
14 ```console
15 sudo udevadm control --reload
16 ```
17
18 You should see the following after plugging in the LetsTrust-TPM2Go:
19 ```
20 dmesg
21 [ 1019.115823] usb 3-2: new full-speed USB device number 5 using xhci_hcd
22 [ 1019.480333] usb 3-2: New USB device found, idVendor=365d, idProduct=1337, bcdDevice= 0.00
23 [ 1019.480360] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
24 [ 1019.480382] usb 3-2: Product: LetsTrust-TPM2Go
25 [ 1019.480405] usb 3-2: Manufacturer: www.pi3g.com
26 [ 1019.480426] usb 3-2: SerialNumber: Y23CW29NR00000RND987654321012
27
28 sudo udevadm info -e | grep LetsTrust
29 E: ID_MODEL=LetsTrust-TPM2Go
30 E: ID_MODEL_ENC=LetsTrust-TPM2Go
31 E: ID_SERIAL=www.pi3g.com_LetsTrust-TPM2Go_Y23CW29NR00000RND987654321012
32 ```
33
34 Use tcti-spi-ltt2go to communicate with LetsTrust-TPM2Go:
35 ```console
36 tpm2_startup -Tspi-ltt2go -c
37 tpm2_getrandom -Tspi-ltt2go 8 --hex
38 ```
39
40 Enable abrmd:
41 ```console
42 export DBUS_SESSION_BUS_ADDRESS=`dbus-daemon --session --print-address --fork`
43 tpm2-abrmd --allow-root --session --tcti=spi-ltt2go &
44
45 export TPM2TOOLS_TCTI="tabrmd:bus_name=com.intel.tss2.Tabrmd,bus_type=session"
46 tpm2_startup -c
47 tpm2_getrandom 8 --hex
48 ```