Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TPM errors spam #23

Open
htruong opened this issue Oct 7, 2019 · 1 comment · May be fixed by #35
Open

TPM errors spam #23

htruong opened this issue Oct 7, 2019 · 1 comment · May be fixed by #35

Comments

@htruong
Copy link

htruong commented Oct 7, 2019

There are a lot of tpm errors and complains. They seem to happen every two seconds in the klog.

$ dmesg | grep tpm
[    0.355647] tpm tpm0: A TPM error (256) occurred attempting get random
[    0.367915] tpm tpm0: A TPM error (256) occurred attempting get random
[    0.375008] tpm tpm0: A TPM error (256) occurred attempting get random
[    2.994841] tpm tpm0: A TPM error (256) occurred attempting get random
@daemonp
Copy link

daemonp commented Dec 18, 2019

I have the same errors and haven't been able to get it to work, which I wish would so I can put the luks for my encrypted drive in the tpm but no luck. Have also tried updating to the R80 4.4 branch as well and can't seem to get it working.

If you don't need the TPM, you can comment out the TPM drivers in the kernel config and rebuild.

diff --git a/ansible/roles/eve-kernel/files/eve-R75-12105.B-4.4.178.config b/ansible/roles/eve-kernel/files/eve-R75-12105.B-4.4.178.config
index bd7feab..5af5ebb 100644
--- a/ansible/roles/eve-kernel/files/eve-R75-12105.B-4.4.178.config
+++ b/ansible/roles/eve-kernel/files/eve-R75-12105.B-4.4.178.config
@@ -2398,7 +2398,7 @@ CONFIG_HW_RANDOM_INTEL=y
 # CONFIG_HW_RANDOM_AMD is not set
 # CONFIG_HW_RANDOM_VIA is not set
 # CONFIG_HW_RANDOM_VIRTIO is not set
-CONFIG_HW_RANDOM_TPM=y
+# CONFIG_HW_RANDOM_TPM=y
 CONFIG_NVRAM=y
 # CONFIG_R3964 is not set
 # CONFIG_APPLICOM is not set
@@ -2407,9 +2407,9 @@ CONFIG_NVRAM=y
 CONFIG_HPET=y
 # CONFIG_HPET_MMAP is not set
 # CONFIG_HANGCHECK_TIMER is not set
-CONFIG_TCG_TPM=y
-CONFIG_TCG_TIS_CORE=y
-CONFIG_TCG_TIS=y
+# CONFIG_TCG_TPM=y
+# CONFIG_TCG_TIS_CORE=y
+# CONFIG_TCG_TIS=y
 # CONFIG_TCG_TIS_SPI is not set
 # CONFIG_TCG_TIS_I2C_ATMEL is not set
 # CONFIG_TCG_TIS_I2C_INFINEON is not set

then rebuild the kernel:
./run-ansible.sh -e "kernel_install_type=src"

@daemonp daemonp linked a pull request Dec 18, 2019 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants