I am getting the following error message as a list of 4 or 5 lines with differing numbers at the beginning of each line during boot for a long while:
ima: error communicating to tpm chip
I am using Ubuntu 19.04 (though this error was existing for a while at the older versions) and my computer is a Toshiba Z930.
It is simple: just enable TPM from the BIOS setup.
To change the BIOS settings you can hit F2 during boot before Ubuntu starts. Please be sure not to change anything else if your computer is working properly.
If you couldn't find TPM, it appears as Intel Platform Trust Technology in the Security section of the BIOS. I had to disable that setting in order to get rid of that error.
TPM may not be named clearly in the BIOS settings. In my BIOS, it definitely was not. The setting was initially disabled and required setting a password before it could be enabled. There was a sub-setting to allow the Operating System to make changes.
If you don't have a configuration password, check for security settings that are disabled and can not be changed. Try setting a password and enable the configuration.
I had to boot into my motherboard
Bios Setup
by pressing esc to get into theStartup Menu
then F10 to get intoComputer setup
or cut it short by pressing F10 before the OS boots up . After getting into theBios Setup
-and that primarily applies to my bios UI version and other similar ones- justSecurity
tabSystem Security
menu optionEmbedded Security Device
option would be most probably disabled.Setup Password
Embedded Security Device
to get it enabled.Device Security
option .Just as a side note, this error is somehow interconnected with
Ata comreset failed (errno=-16)
. So if by any chance someone googled this otherwise different error message and landed on this page, then then this solution might resolve the issue at this particular case .For my NUC it showed up under "Devices and Peripherals > Onboard Devices > Legacy Device Configuration > Trusted Platform Module"
Not always the BIOS gives you the options for TPM for granted. So on my Elitebook 8570P it is simple NOT possible to alter the TPM settings in any way. Of course you do not want the messages at the startup prompt during and in between the boot-splash.
Terminal: sudo nano /etc/default/grub navigate with the arrow keys on the KB to the place where it says " quiet splash" change it into "quiet loglevel=0 splash" save the file and do a sudo update-grub
Reboot and you will see that there are no messages anymore of the TPM error.
This tip is mostly for people who do not want to mess in the BIOS .
Tested this on a HP Elitebook 8570P with Jammy Jellyfish fresh installed .
Tags: Ubuntu 22.04 LTS / Jammy Jellyfish/ All Ubuntu versions up to date from time posting.