TPM 2.0 on Debian/Ubuntu
We are running one of the newest Intel NUCs with TPM 2.0 chip (what the vendor is, I haven't been able to figure out). At the moment I am just trying to load the drivers to get it visible to the system, but no dice so far
I have tried Linux Kernels 3.2, 3.16 and 4.2. According to kernelnewbies kernel 4.0 is when TPM 2.0 drivers were introduced.
My current steps to load drivers:
ls -la /lib/modules/`uname -r`/kernel/drivers/char/tpm
to list available tpm drivers
modprobe <items from above>
. Plenty of people say that tpm_tis is the only thing they needed, but no dice for me- Checking
/sys/class/tpm
on 4.* and/sys/class/misc/
on 3.* for tpm0 hardware - Running
tcsd -f
just gives me a communication error - Triple checked the BIOS to see if TPM is enabled. It was actually enabled out of the box which apparently it isn't supposed to be?
Output of ls -la /lib/modules/`uname -r`/kernel/drivers/char/tpm
:
total 248
drwxr-xr-x 3 root root 4096 Dec 10 18:38 .
drwxr-xr-x 7 root root 4096 Dec 10 18:38 ..
drwxr-xr-x 2 root root 4096 Dec 10 18:38 st33zp24
-rw-r--r-- 1 root root 10984 Nov 18 05:26 tpm_atmel.ko
-rw-r--r-- 1 root root 11760 Nov 18 05:26 tpm_crb.ko
-rw-r--r-- 1 root root 11160 Nov 18 05:26 tpm_i2c_atmel.ko
-rw-r--r-- 1 root root 14904 Nov 18 05:26 tpm_i2c_infineon.ko
-rw-r--r-- 1 root root 20816 Nov 18 05:26 tpm_i2c_nuvoton.ko
-rw-r--r-- 1 root root 24808 Nov 18 05:26 tpm_infineon.ko
-rw-r--r-- 1 root root 66552 Nov 18 05:26 tpm.ko
-rw-r--r-- 1 root root 15784 Nov 18 05:26 tpm_nsc.ko
-rw-r--r-- 1 root root 31624 Nov 18 05:26 tpm_tis.ko
-rw-r--r-- 1 root root 14072 Nov 18 05:26 xen-tpmfront.ko
Any additional steps / direction / tips would be greatly appreciated.
Update
I managed to get 4.4 kernel installed, it manages to load up drivers (I see tpm0 in /sys/class/tpm/tpm0
now). But running tcsd -f
give me the following error:
TCSD TDDL ioctl: (25) Inappropriate ioctl for device
TCSD TDDL Falling back to Read/Write device support.
TCSD TCS ERROR: TCS GetCapability failed with result = 0x1e
Also to make sure that I have the latest version of Trousers I compiled that from source as well, still no dice. One thing I have noticed is that inside tpm0
there is no pcrs
file
drivers kernel tpm
add a comment |
We are running one of the newest Intel NUCs with TPM 2.0 chip (what the vendor is, I haven't been able to figure out). At the moment I am just trying to load the drivers to get it visible to the system, but no dice so far
I have tried Linux Kernels 3.2, 3.16 and 4.2. According to kernelnewbies kernel 4.0 is when TPM 2.0 drivers were introduced.
My current steps to load drivers:
ls -la /lib/modules/`uname -r`/kernel/drivers/char/tpm
to list available tpm drivers
modprobe <items from above>
. Plenty of people say that tpm_tis is the only thing they needed, but no dice for me- Checking
/sys/class/tpm
on 4.* and/sys/class/misc/
on 3.* for tpm0 hardware - Running
tcsd -f
just gives me a communication error - Triple checked the BIOS to see if TPM is enabled. It was actually enabled out of the box which apparently it isn't supposed to be?
Output of ls -la /lib/modules/`uname -r`/kernel/drivers/char/tpm
:
total 248
drwxr-xr-x 3 root root 4096 Dec 10 18:38 .
drwxr-xr-x 7 root root 4096 Dec 10 18:38 ..
drwxr-xr-x 2 root root 4096 Dec 10 18:38 st33zp24
-rw-r--r-- 1 root root 10984 Nov 18 05:26 tpm_atmel.ko
-rw-r--r-- 1 root root 11760 Nov 18 05:26 tpm_crb.ko
-rw-r--r-- 1 root root 11160 Nov 18 05:26 tpm_i2c_atmel.ko
-rw-r--r-- 1 root root 14904 Nov 18 05:26 tpm_i2c_infineon.ko
-rw-r--r-- 1 root root 20816 Nov 18 05:26 tpm_i2c_nuvoton.ko
-rw-r--r-- 1 root root 24808 Nov 18 05:26 tpm_infineon.ko
-rw-r--r-- 1 root root 66552 Nov 18 05:26 tpm.ko
-rw-r--r-- 1 root root 15784 Nov 18 05:26 tpm_nsc.ko
-rw-r--r-- 1 root root 31624 Nov 18 05:26 tpm_tis.ko
-rw-r--r-- 1 root root 14072 Nov 18 05:26 xen-tpmfront.ko
Any additional steps / direction / tips would be greatly appreciated.
Update
I managed to get 4.4 kernel installed, it manages to load up drivers (I see tpm0 in /sys/class/tpm/tpm0
now). But running tcsd -f
give me the following error:
TCSD TDDL ioctl: (25) Inappropriate ioctl for device
TCSD TDDL Falling back to Read/Write device support.
TCSD TCS ERROR: TCS GetCapability failed with result = 0x1e
Also to make sure that I have the latest version of Trousers I compiled that from source as well, still no dice. One thing I have noticed is that inside tpm0
there is no pcrs
file
drivers kernel tpm
I did just read that Linux 4.4 may have more complete TPM 2.0 support
– Mattisdada
Dec 11 '15 at 0:06
Yep, I've been testing 4.4 TPM 2.0 support, see lkml.org/lkml/2015/11/21/125 for some details on how this can be achieved.
– Colin Ian King
Dec 11 '15 at 1:36
add a comment |
We are running one of the newest Intel NUCs with TPM 2.0 chip (what the vendor is, I haven't been able to figure out). At the moment I am just trying to load the drivers to get it visible to the system, but no dice so far
I have tried Linux Kernels 3.2, 3.16 and 4.2. According to kernelnewbies kernel 4.0 is when TPM 2.0 drivers were introduced.
My current steps to load drivers:
ls -la /lib/modules/`uname -r`/kernel/drivers/char/tpm
to list available tpm drivers
modprobe <items from above>
. Plenty of people say that tpm_tis is the only thing they needed, but no dice for me- Checking
/sys/class/tpm
on 4.* and/sys/class/misc/
on 3.* for tpm0 hardware - Running
tcsd -f
just gives me a communication error - Triple checked the BIOS to see if TPM is enabled. It was actually enabled out of the box which apparently it isn't supposed to be?
Output of ls -la /lib/modules/`uname -r`/kernel/drivers/char/tpm
:
total 248
drwxr-xr-x 3 root root 4096 Dec 10 18:38 .
drwxr-xr-x 7 root root 4096 Dec 10 18:38 ..
drwxr-xr-x 2 root root 4096 Dec 10 18:38 st33zp24
-rw-r--r-- 1 root root 10984 Nov 18 05:26 tpm_atmel.ko
-rw-r--r-- 1 root root 11760 Nov 18 05:26 tpm_crb.ko
-rw-r--r-- 1 root root 11160 Nov 18 05:26 tpm_i2c_atmel.ko
-rw-r--r-- 1 root root 14904 Nov 18 05:26 tpm_i2c_infineon.ko
-rw-r--r-- 1 root root 20816 Nov 18 05:26 tpm_i2c_nuvoton.ko
-rw-r--r-- 1 root root 24808 Nov 18 05:26 tpm_infineon.ko
-rw-r--r-- 1 root root 66552 Nov 18 05:26 tpm.ko
-rw-r--r-- 1 root root 15784 Nov 18 05:26 tpm_nsc.ko
-rw-r--r-- 1 root root 31624 Nov 18 05:26 tpm_tis.ko
-rw-r--r-- 1 root root 14072 Nov 18 05:26 xen-tpmfront.ko
Any additional steps / direction / tips would be greatly appreciated.
Update
I managed to get 4.4 kernel installed, it manages to load up drivers (I see tpm0 in /sys/class/tpm/tpm0
now). But running tcsd -f
give me the following error:
TCSD TDDL ioctl: (25) Inappropriate ioctl for device
TCSD TDDL Falling back to Read/Write device support.
TCSD TCS ERROR: TCS GetCapability failed with result = 0x1e
Also to make sure that I have the latest version of Trousers I compiled that from source as well, still no dice. One thing I have noticed is that inside tpm0
there is no pcrs
file
drivers kernel tpm
We are running one of the newest Intel NUCs with TPM 2.0 chip (what the vendor is, I haven't been able to figure out). At the moment I am just trying to load the drivers to get it visible to the system, but no dice so far
I have tried Linux Kernels 3.2, 3.16 and 4.2. According to kernelnewbies kernel 4.0 is when TPM 2.0 drivers were introduced.
My current steps to load drivers:
ls -la /lib/modules/`uname -r`/kernel/drivers/char/tpm
to list available tpm drivers
modprobe <items from above>
. Plenty of people say that tpm_tis is the only thing they needed, but no dice for me- Checking
/sys/class/tpm
on 4.* and/sys/class/misc/
on 3.* for tpm0 hardware - Running
tcsd -f
just gives me a communication error - Triple checked the BIOS to see if TPM is enabled. It was actually enabled out of the box which apparently it isn't supposed to be?
Output of ls -la /lib/modules/`uname -r`/kernel/drivers/char/tpm
:
total 248
drwxr-xr-x 3 root root 4096 Dec 10 18:38 .
drwxr-xr-x 7 root root 4096 Dec 10 18:38 ..
drwxr-xr-x 2 root root 4096 Dec 10 18:38 st33zp24
-rw-r--r-- 1 root root 10984 Nov 18 05:26 tpm_atmel.ko
-rw-r--r-- 1 root root 11760 Nov 18 05:26 tpm_crb.ko
-rw-r--r-- 1 root root 11160 Nov 18 05:26 tpm_i2c_atmel.ko
-rw-r--r-- 1 root root 14904 Nov 18 05:26 tpm_i2c_infineon.ko
-rw-r--r-- 1 root root 20816 Nov 18 05:26 tpm_i2c_nuvoton.ko
-rw-r--r-- 1 root root 24808 Nov 18 05:26 tpm_infineon.ko
-rw-r--r-- 1 root root 66552 Nov 18 05:26 tpm.ko
-rw-r--r-- 1 root root 15784 Nov 18 05:26 tpm_nsc.ko
-rw-r--r-- 1 root root 31624 Nov 18 05:26 tpm_tis.ko
-rw-r--r-- 1 root root 14072 Nov 18 05:26 xen-tpmfront.ko
Any additional steps / direction / tips would be greatly appreciated.
Update
I managed to get 4.4 kernel installed, it manages to load up drivers (I see tpm0 in /sys/class/tpm/tpm0
now). But running tcsd -f
give me the following error:
TCSD TDDL ioctl: (25) Inappropriate ioctl for device
TCSD TDDL Falling back to Read/Write device support.
TCSD TCS ERROR: TCS GetCapability failed with result = 0x1e
Also to make sure that I have the latest version of Trousers I compiled that from source as well, still no dice. One thing I have noticed is that inside tpm0
there is no pcrs
file
drivers kernel tpm
drivers kernel tpm
edited Dec 11 '15 at 5:29
Mattisdada
asked Dec 11 '15 at 0:03
MattisdadaMattisdada
12115
12115
I did just read that Linux 4.4 may have more complete TPM 2.0 support
– Mattisdada
Dec 11 '15 at 0:06
Yep, I've been testing 4.4 TPM 2.0 support, see lkml.org/lkml/2015/11/21/125 for some details on how this can be achieved.
– Colin Ian King
Dec 11 '15 at 1:36
add a comment |
I did just read that Linux 4.4 may have more complete TPM 2.0 support
– Mattisdada
Dec 11 '15 at 0:06
Yep, I've been testing 4.4 TPM 2.0 support, see lkml.org/lkml/2015/11/21/125 for some details on how this can be achieved.
– Colin Ian King
Dec 11 '15 at 1:36
I did just read that Linux 4.4 may have more complete TPM 2.0 support
– Mattisdada
Dec 11 '15 at 0:06
I did just read that Linux 4.4 may have more complete TPM 2.0 support
– Mattisdada
Dec 11 '15 at 0:06
Yep, I've been testing 4.4 TPM 2.0 support, see lkml.org/lkml/2015/11/21/125 for some details on how this can be achieved.
– Colin Ian King
Dec 11 '15 at 1:36
Yep, I've been testing 4.4 TPM 2.0 support, see lkml.org/lkml/2015/11/21/125 for some details on how this can be achieved.
– Colin Ian King
Dec 11 '15 at 1:36
add a comment |
1 Answer
1
active
oldest
votes
I Think your tpm
is working (check it with dmesg | grep -i tpm
) but tpm-tools
is only compatible with tpm 1.2 devices (source).
Some new projects exists, may they help us:
- IBM: http://sourceforge.net/projects/ibmtpm20tss/
- Intel: https://github.com/01org/TPM2.0-TSS
- TSS2 based tpm2-tools: https://github.com/01org/tpm2.0-tools
Do you know if anyone as written any good documentation for tpm2-tools yet? Or is it just what's on the Github repo for now?
– Mattisdada
May 12 '16 at 2:21
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f708344%2ftpm-2-0-on-debian-ubuntu%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I Think your tpm
is working (check it with dmesg | grep -i tpm
) but tpm-tools
is only compatible with tpm 1.2 devices (source).
Some new projects exists, may they help us:
- IBM: http://sourceforge.net/projects/ibmtpm20tss/
- Intel: https://github.com/01org/TPM2.0-TSS
- TSS2 based tpm2-tools: https://github.com/01org/tpm2.0-tools
Do you know if anyone as written any good documentation for tpm2-tools yet? Or is it just what's on the Github repo for now?
– Mattisdada
May 12 '16 at 2:21
add a comment |
I Think your tpm
is working (check it with dmesg | grep -i tpm
) but tpm-tools
is only compatible with tpm 1.2 devices (source).
Some new projects exists, may they help us:
- IBM: http://sourceforge.net/projects/ibmtpm20tss/
- Intel: https://github.com/01org/TPM2.0-TSS
- TSS2 based tpm2-tools: https://github.com/01org/tpm2.0-tools
Do you know if anyone as written any good documentation for tpm2-tools yet? Or is it just what's on the Github repo for now?
– Mattisdada
May 12 '16 at 2:21
add a comment |
I Think your tpm
is working (check it with dmesg | grep -i tpm
) but tpm-tools
is only compatible with tpm 1.2 devices (source).
Some new projects exists, may they help us:
- IBM: http://sourceforge.net/projects/ibmtpm20tss/
- Intel: https://github.com/01org/TPM2.0-TSS
- TSS2 based tpm2-tools: https://github.com/01org/tpm2.0-tools
I Think your tpm
is working (check it with dmesg | grep -i tpm
) but tpm-tools
is only compatible with tpm 1.2 devices (source).
Some new projects exists, may they help us:
- IBM: http://sourceforge.net/projects/ibmtpm20tss/
- Intel: https://github.com/01org/TPM2.0-TSS
- TSS2 based tpm2-tools: https://github.com/01org/tpm2.0-tools
answered May 10 '16 at 11:53
MathieuMathieu
1316
1316
Do you know if anyone as written any good documentation for tpm2-tools yet? Or is it just what's on the Github repo for now?
– Mattisdada
May 12 '16 at 2:21
add a comment |
Do you know if anyone as written any good documentation for tpm2-tools yet? Or is it just what's on the Github repo for now?
– Mattisdada
May 12 '16 at 2:21
Do you know if anyone as written any good documentation for tpm2-tools yet? Or is it just what's on the Github repo for now?
– Mattisdada
May 12 '16 at 2:21
Do you know if anyone as written any good documentation for tpm2-tools yet? Or is it just what's on the Github repo for now?
– Mattisdada
May 12 '16 at 2:21
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f708344%2ftpm-2-0-on-debian-ubuntu%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I did just read that Linux 4.4 may have more complete TPM 2.0 support
– Mattisdada
Dec 11 '15 at 0:06
Yep, I've been testing 4.4 TPM 2.0 support, see lkml.org/lkml/2015/11/21/125 for some details on how this can be achieved.
– Colin Ian King
Dec 11 '15 at 1:36