Score:1

How to solve error communicating to TPM chip

au flag

I want to know how to enable TPM I found the TPM settings in the bios by I am not able to click.

gq flag
This is not about Ubuntu. You are better off asking on some more appropriate stackexchange site.
C.S.Cameron avatar
cn flag
Every time I boot Ubuntu I also get a warning about not finding TPM chip. I don't get this warning booting other OS, so it must be about Ubuntu.
zx485 avatar
us flag
@C.S.Cameron: No, it's not a Ubuntu issue. But Ubuntu is the only OS that tells you the issue.
C.S.Cameron avatar
cn flag
@zx485: Where are you getting your information from. Does it say this in Ask Ubuntu Help? Please provide reference.
zx485 avatar
us flag
@C.S.Cameron: No. Point is that most OS's don't tell you about the issues experienced. Linux/Ubuntu, on the contrary, can be very verbose. Unless you really **have** a TPM module that is not detected (by any OS), it is very likely that only a Linux variant will tell you the actual state. ""Only"" was probably a bit of an overstatement, but in contrast to Windows (or maybe macOS), it will give you far more info about the current state.
C.S.Cameron avatar
cn flag
@zx485: My point is that there is no reason to close this question. It's answer will be of interest to many people.
zx485 avatar
us flag
@C.S.Cameron: I agree that it shouldn't be closed. And I didn't vote to close it (I just checked it, twice). And I didn't downvote it.
C.S.Cameron avatar
cn flag
@zx485: My apologies.
Elder Geek avatar
cn flag
@Ubuntu What is the make and model of your system or motherboard? Why do you believe that your system has a TPM chip?
Score:0
cn flag

Most systems today support TPM but it's typically not enabled by default as many of us never use it. All that aside, the first thing you need to do is to enable TPM in your UEFI/BIOS. How to access and enable that varies depending on Manufacturer, so check your system manual or motherboard manual to locate directions for the process. Once you've toggled support on you can check with

ls -la /lib/modules/`uname -r`/kernel/drivers/char/tpm

Here's my output:

drwxr-xr-x 3 root root  4096 Jun 24 06:11 .
drwxr-xr-x 9 root root  4096 Jun 24 06:11 ..
drwxr-xr-x 2 root root  4096 Jun 24 06:11 st33zp24
-rw-r--r-- 1 root root 12513 Jun 18 11:49 tpm_atmel.ko
-rw-r--r-- 1 root root 12481 Jun 18 11:49 tpm_i2c_atmel.ko
-rw-r--r-- 1 root root 16657 Jun 18 11:49 tpm_i2c_infineon.ko
-rw-r--r-- 1 root root 23025 Jun 18 11:49 tpm_i2c_nuvoton.ko
-rw-r--r-- 1 root root 22937 Jun 18 11:49 tpm_infineon.ko
-rw-r--r-- 1 root root 17753 Jun 18 11:49 tpm_nsc.ko
-rw-r--r-- 1 root root 12761 Jun 18 11:49 tpm_tis_spi.ko
-rw-r--r-- 1 root root 19449 Jun 18 11:49 tpm_vtpm_proxy.ko
-rw-r--r-- 1 root root 15289 Jun 18 11:49 xen-tpmfront.ko

Then you can check for support with

tpm_version

If you get

Command 'tpm_version' not found, but can be installed with:

sudo apt install tpm-tools

Install as instructed and try again.

If you get:

tpm_version Tspi_Context_Connect failed: 0x00003011 - layer=tsp, code=0011 (17), Communication failure

Odds are good you don't have TPM support or don't have a TPM chip or you've failed to properly toggle TPM support on in your UEFI/BIOS.

TPMs don't necessarily appear in the ACPI tables, but the modules do print a message when they find a supported module; for example

[  134.026892] tpm_tis 00:08: 1.2 TPM (device-id 0xB, rev-id 16)

So dmesg | grep -i tpm is a good way to check.

Sources:

https://mhsamsal.wordpress.com/2014/12/11/how-to-enable-tpm-in-linux-communicate-with-it-and-check-the-pcr-values/

https://unix.stackexchange.com/questions/341629/how-to-determine-if-computer-has-tpm-trusted-platform-module-available

Score:0
us flag

Probably you will be able to activate TPM in the UEFI/BIOS after you applied/mounted a TPM-Chip/Module to the TPM-Header of your mainboard (see the manual).

Windows 11 will like it if it's a version 2.0 module.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.