问题描述
我从azure iot sdk运行tpm_device_provision时遇到TPM驱动程序错误。
I'm getting a TPM driver error while running tpm_device_provision from the azure iot sdk.
我安装了moby-engine,moby-cli,iotedge和libiothsm- std在具有TPM芯片的ARM设备上。
I've installed moby-engine, moby-cli, iotedge and libiothsm-std on an ARM device that has a TPM chip.
我已经构建了azure-iot-sdk-c(2019-04-11)项目,包括provisioning_client代码。
I've built the azure-iot-sdk-c (2019-04-11) project, including the provisioning_client code.
当我尝试通过以root用户身份执行tpm_device_provision来获取设备上的自动配置信息(运行ubuntu 18.04.2)时,我收到以下错误:
When I attempt to get auto-provisioning information on the device (running ubuntu 18.04.2) by executing tpm_device_provision as the root user, I get the following error(s):
./ tpm_device_provision
收集注册信息...
错误:时间:星期二五月 2019年20:14:24文件:/home/ubuntu/azure-iot-sdk-c/provisioning_client/deps/utpm/src/tpm_codec.c Func:TSS_CreatePersistentKey线路:217无法呼叫TPM2_ReadPublic 0x9a
错误:时间:星期二五月 2019年20:14:24文件:/home/ubuntu/azure-iot-sdk-c/provisioning_client/adapters/hsm_client_tpm.c Func:initialize_tpm_device行:459无法调用为背书密钥创建持久密钥
错误:时间:星期二五月 2019年20:14:24文件:/home/ubuntu/azure-iot-sdk-c/provisioning_client/adapters/hsm_client_tpm.c Func:hsm_client_tpm_create行:492初始化tpm设备失败。
错误:时间:5月上旬 2019年20:14:24文件:/home/ubuntu/azure-iot-sdk-c/provisioning_client/src/prov_auth_client.c Func:prov_auth_create行:306创建设备auth模块失败。
失败创建安全设备句柄
./tpm_device_provision
Gathering the registration information...
Error: Time:Tue May 7 20:14:24 2019 File:/home/ubuntu/azure-iot-sdk-c/provisioning_client/deps/utpm/src/tpm_codec.c Func:TSS_CreatePersistentKey Line:217 Failed calling TPM2_ReadPublic 0x9a
Error: Time:Tue May 7 20:14:24 2019 File:/home/ubuntu/azure-iot-sdk-c/provisioning_client/adapters/hsm_client_tpm.c Func:initialize_tpm_device Line:459 Failure calling creating persistent key for Endorsement key
Error: Time:Tue May 7 20:14:24 2019 File:/home/ubuntu/azure-iot-sdk-c/provisioning_client/adapters/hsm_client_tpm.c Func:hsm_client_tpm_create Line:492 Failure initializing tpm device.
Error: Time:Tue May 7 20:14:24 2019 File:/home/ubuntu/azure-iot-sdk-c/provisioning_client/src/prov_auth_client.c Func:prov_auth_create Line:306 failed create device auth module.
failed creating security device handle
设备上安装的TPM芯片支持TPM 1.2,但不支持TPM 2.大多数支持Linux的TPM设备(除英特尔台式机外)都在TPM 1.2,不是TPM 2.0。 (参见kernel.org的文档:devicetree / bindings / i2c / trivial-devices.txt)
The TPM chip installed on the device supports TPM 1.2, but not TPM 2. The majority of linux-supported TPM devices (aside from Intel desktops) are at TPM 1.2, not TPM 2.0. (See for instance kernel.org's documentation: devicetree/bindings/i2c/trivial-devices.txt)
我可以使用其他工具(裤子和Java)打开TPM基于TPM的库。
I'm able to open the TPM just fine using other tools (trousers and a Java-based TPM library).
azure工具在名称以TPM2为前缀的函数中失败,这表明azure iot可能不支持TPM 1.2(?)
The azure tool fails in a function whose name is prefixed with TPM2, suggesting that maybe azure iot doesn't support TPM 1.2 (?)
Microsoft是否支持TPM 1.2?
Is it the case that Microsoft does not support TPM 1.2?
如果是,是否有任何计划和时间表来解决此限制?
If so, are there any plans and a timeframe for fixing this limitation?
谢谢。
推荐答案
您是否关注任何文件?步骤?请查看有关操作系统支持的更多详细信息。
Are you following any documentation for the steps? Please check the platform support for more details on operating system support.
这篇关于设备上只支持TPM 2.0?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!