meta-iotedge
meta-iotedge copied to clipboard
Running iotedge without tpm module
Describe the bug
After adding a config.toml with proper hostname and connection string
[provisioning] source = "manual" connection_string = "..."
and applying the config, the command iotedge system logs
tells me WARNING:tcti:../tpm2-tss-3.2.2/src/tss2-tcti/tcti-device.c:440:Tss2_Tcti_Device_Init() Failed to open default TCTI device file /dev/tpmrm0: No such file or directory
. Thing is that I run this on a Raspberry Pi 4 without TPM module but I cannot find a way to disable tpm.
To Reproduce
Build yocto with meta-iotedge for raspberry pi4, configure config.toml with hostname and connection string, apply config and read iotedge system logs iotedge system logs
Expected behavior Configuration parameter to disable tpm usage?
Logs
aziot-tpmd[4224]: WARNING:tcti:../tpm2-tss-3.2.2/src/tss2-tcti/tcti-device.c:440:Tss2_Tcti_Device_Init() Failed to open default TCTI device file /dev/tpmrm0: No such file or directory aziot-tpmd[4224]: WARNING:tcti:../tpm2-tss-3.2.2/src/tss2-tcti/tcti-device.c:440:Tss2_Tcti_Device_Init() Failed to open default TCTI device file /dev/tpm0: No such file or directory aziot-tpmd[4224]: ERROR:tcti:../tpm2-tss-3.2.2/src/tss2-tcti/tcti-device.c:445:Tss2_Tcti_Device_Init() Could not open any default TCTI device file aziot-tpmd[4224]: ERROR:tcti:../tpm2-tss-3.2.2/src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: device aziot-tpmd[4224]: ERROR:tcti:../tpm2-tss-3.2.2/src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI aziot-tpmd[4224]: 2024-01-26T15:43:57Z [ERR!] - service encountered an error aziot-tpmd[4224]: 2024-01-26T15:43:57Z [ERR!] - caused by: internal error aziot-tpmd[4224]: 2024-01-26T15:43:57Z [ERR!] - caused by: could not initialize TPM aziot-tpmd[4224]: 2024-01-26T15:43:57Z [ERR!] - caused by: tcti:IO failure aziot-tpmd[4224]: 2024-01-26T15:43:57Z [ERR!] - 0: <unknown> aziot-tpmd[4224]: 1: <unknown> aziot-tpmd[4224]: 2: <unknown> aziot-tpmd[4224]: 3: <unknown> aziot-tpmd[4224]: 4: <unknown> aziot-tpmd[4224]: 5: <unknown> aziot-tpmd[4224]: 6: <unknown> aziot-tpmd[4224]: 7: <unknown> aziot-tpmd[4224]: 8: <unknown> aziot-tpmd[4224]: 9: <unknown> aziot-tpmd[4224]: 10: <unknown> aziot-tpmd[4224]: 11: __libc_start_call_main aziot-tpmd[4224]: at usr/src/debug/glibc/2.35-r0/git/csu/../sysdeps/nptl/libc_start_call_main.h:58:16 aziot-tpmd[4224]: 12: __libc_start_main_impl aziot-tpmd[4224]: at usr/src/debug/glibc/2.35-r0/git/csu/libc-start.c:389:3 systemd[1]: aziot-tpmd.service: Main process exited, code=exited, status=1/FAILURE systemd[1]: aziot-tpmd.service: Failed with result 'exit-code'.
Build System (please complete the following information):
- OS: Ubuntu
- Version 22.04
Target System (please complete the following information):
- OS: yocto kirkstone
- Version 4.0.14 (kirkstone)
Additional context Add any other context about the problem here.