SPI TPM and SPI flash can not work at the same time
Sherry Zhang (BJ-RD)
Hi All,
Ubuntu16.04 with the kernel 4.16.2:
I use a spi port2 with a FIFO TPM2.0 and two flash on the spi port 0/1. First, I unload drivers of spi controller and test the TPM2.0 (built-in tpm_tis.o) #tpm2_abrmd -tcti="device:/dev/tpm0" -allow-root &
#tpm2_pcrlist
#tpm2_nvlist
And I can use tpm2-tools to test and it is normal .
Then I load spi controller driver, and test /dev/mtd0 at spi port0 that can work well. But when I run the commad "tpm2_nvlist" , it shows a error. #tpm2_nvlist
ERROR: Tss2_Sys_GetCapability(0x97) -tpm: handle(unk): incorrect structure tag
ERROR: Unable to run tpm2_nvlist
PS:
tpm2-tss 2.1.0
Tpm2-abrmd 2.0.3_rc0
Tpm2-tools 3.0.2
Best regards,
Sherry Zhang
?????
?????????????????????????????????????????????????????
CONFIDENTIAL NOTE:
This email contains confidential or legally privileged information and is for the sole use of its intended recipient. Any unauthorized review, use, copying or forwarding of this email or the content of this email is strictly prohibited.
Roberts
I wish I could help you more, but your TPM isn't returning a valid RC.
Since bit 7 is set in 0x97, this indicates that it is a FMT 1 response code.
Fmt 1 response codes have the handle encoded in bit positions 8-11 inclusive.
And is 1-based per https://trustedcomputinggroup.org/wp-content/uploads/TPM-Rev-2.0-Part-2-Structures-01.38.pdf
Section 6.6.
It seems the error bits 0-5 inclusive are 0x17 which is TPM2_RC_TAG.
Which is "a parameter that should be a structure tag has a value that is not supported by the TPM"
I'm not sure why this is failing on your TPM, do any other tpm2_getcap commands work?
Like:tpm2_getcap -c properties-fixedtpm2_getcap -c commands
Bill
Quoted 63 lines
-----Original Message-----
From: tpm2 [mailto:tpm2-bounces(a)lists.01.org] On Behalf Of Sherry Zhang(BJ- RD)
Sent: Monday, November 5, 2018 8:14 PM
To: tpm2(a)lists.01.org
Subject: [tpm2] SPI TPM and SPI flash can not work at the same timeHi All,
Ubuntu16.04 with the kernel 4.16.2:
I use a spi port2 with a FIFO TPM2.0 and two flash on the spi port 0/1.
First, I unload drivers of spi controller and test the TPM2.0 (built-in tpm_tis.o)
#tpm2_abrmd �tcti=”device:/dev/tpm0” �allow-root &
#tpm2_pcrlist
#tpm2_nvlist
And I can use tpm2-tools to test and it is normal .
Then I load spi controller driver, and test
/dev/mtd0at spi port0 that can work well.But when I run the commad “tpm2_nvlist” , it shows a error.
#tpm2_nvlist
ERROR:
Tss2_Sys_GetCapability(0x97)�tpm: handle(unk): incorrect structure tagERROR: Unable to run
tpm2_nvlistPS:
tpm2-tss 2.1.0
Tpm2-abrmd 2.0.3_rc0
Tpm2-tools 3.0.2
Best regards,
Sherry Zhang
保密声明:
本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其
内容做任何未经授权的查阅、使用、复制或转发。
CONFIDENTIAL NOTE:
This email contains confidential or legally privileged information and is for the sole use of its intended recipient. Any unauthorized review, use, copying or forwarding of this email or the content of this email is strictly prohibited.