首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >尝试清除芯片时出现TPM2.0错误

尝试清除芯片时出现TPM2.0错误
EN

Stack Overflow用户
提问于 2018-04-10 15:57:44
回答 1查看 3.5K关注 0票数 0

我在Ubuntu 17.10上发现了tpm2.0芯片。我使用的是1.1.0版本中的tpm2-tools包。(我的笔记本上有物理芯片)。然而,当我尝试清除芯片时,我遇到了错误。

代码语言:javascript
复制
$ tpm2_takeownership -c
Clear Failed ! ErrorCode: 0x921

我也启动了tpmtest,没有更多的错误。

代码语言:javascript
复制
9 - DICTIONARY ATTACK LOCK RESET TEST
DICTIONARY ATTACK LOCK RESET TEST:
    passing case:   FAILED!  TPM Error: 0x921

16 - POLICY TESTS
POLICY TESTS:
Policy Test: PASSWORD
    passing case:   PASSED!
    passing case:   PASSED!
    passing case:   PASSED!
    passing case:   PASSED!
    passing case:   PASSED!
    passing case:   PASSED!
    passing case:   FAILED!  TPM Error: 0x9a2

24 - QUOTE CONTROL TESTS
QUOTE CONTROL TESTS:
    passing case:   FAILED!  TPM Error: 0x184

我在tpmclient中也有一个失败的测试。

代码语言:javascript
复制
$ tpmclient
[...]
STARTUP TESTS:
passing case:   PASSED!
passing case:   FAILED!  TPM Error: 0x100

我检查了resourcemgr服务是否被很好地激活。我在tpm上尝试了一些基本命令(tpm2_create、tpm2_load、tpm2_rsaencrypt、tpm2_sign等)。它们起作用了。

以下是tpm2_rc_decode的输出:

代码语言:javascript
复制
$ tpm2_rc_decode 0x921
error layer
  hex: 0x0
  identifier: TSS2_TPM_ERROR_LEVEL
  description: Error produced by the TPM
format 0 warning code
  hex: 0x21
  name: TPM_RC_LOCKOUT
  description: authorizations for objects subject to DA protection are not allowed at this time because the TPM is in DA lockout mode

$ tpm2_rc_decode 0x9a2
error layer
  hex: 0x0
  identifier: TSS2_TPM_ERROR_LEVEL
  description: Error produced by the TPM
format 1 error code
  hex: 0x22
  identifier: TPM_RC_BAD_AUTH
  description: authorization failure without DA implications
session
  hex: 0x100
  identifier: TPM_RC_1
  description:  (null) 

$ tpm2_rc_decode 0x184
error layer
  hex: 0x0
  identifier: TSS2_TPM_ERROR_LEVEL
  description: Error produced by the TPM
format 1 error code
  hex: 0x04
  identifier: TPM_RC_VALUE
  description: value is out of range or is not correct for the context
handle
  hex:0x100
  identifier:  TPM_RC_1
  description:  (null)

$ tpm2_rc_decode 0x100
error layer
  hex: 0x0
  identifier: TSS2_TPM_ERROR_LEVEL
  description: Error produced by the TPM
format 0 error code
  hex: 0x00
  name: TPM_RC_INITIALIZE
  description: TPM not initialized

我是tpm技术的新手,所以我想知道这些错误是来自tpm本身,还是来自tpm2-tools包。感谢您的帮助!

EN

回答 1

Stack Overflow用户

发布于 2018-07-20 23:26:54

RC = 0x100实际上不是100%误差。我看了一下tpm2-tss源码。在他们集成测试中,错误(且只有它)在测试启动时被忽略(文件: test/ integration /main-sapi.c test/integration/main-esapi.c)

此外,他们在报头中将错误描述为“TPM未被TPM2_Startup初始化或已初始化”。所以,最有可能的是,你的错误只是一个初始化重复。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/49748311

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档