Hi David,

Thanks for advice. I ran the tpm_createek, but it failed with this output

# tpm_createek -l debug
Input file name:
Output file name:
Tspi_Context_Create success
LOG_DEBUG TSPI rpc/tcstp/rpc.c:359 Sending TSP packet to host localhost.
LOG_DEBUG TSPI rpc/tcstp/rpc.c:374 Connecting to 127.0.0.1
LOG_DEBUG TSPI rpc/tcstp/rpc_context.c:44 RPC_OpenContext_TP: Received TCS
Context: 0xa0eee900
Tspi_Context_Connect success
Tspi_Context_GetTpmObject success
Tspi_Context_CreateObject success
LOG_DEBUG TSPI rpc/tcstp/rpc_ek.c:42 RPC_CreateEndorsementKeyPair_TP: TCS
Context: 0xa0eee900
Tspi_TPM_CreateEndorsementKey failed: 0x00000008 - layer=tpm, code=0008
(8), The TPM target command has been disabled
Tspi_Context_FreeMemory success
LOG_DEBUG TSPI rpc/tcstp/rpc_context.c:60 RPC_CloseContext_TP: TCS Context:
0xa0eee900
LOG_RETERR TSPI tspi_context.c:113: 0x126
Tspi_Context_Close success


Regarding ownership, I am doing this during initial board bring-up, so I
can't image the ownership been taken already. I have gotten the this error
every time I run tpm_takeownership.

Harry


On Fri, Mar 27, 2015 at 6:32 PM, David Challener <
[email protected]> wrote:

> Usually if you can't take ownership, it is because you need ask the TPM to
> create an ek, or ownership was already taken.
>
> On Fri, Mar 27, 2015 at 8:36 PM, Harry Chan-Maestas <
> [email protected]> wrote:
>
>> Hi All,
>>
>> I trying to use the Atmel AT97SC3205T I2C TPM chip with trousers and
>> tpm-tools. Here are some version numbers
>>
>> Linux 3.13
>> trousers 0.3.10
>> tpm-tools 1.3.8
>>
>> I am running into the same problem Florian, who wrote the original post,
>> had. I followed the instructions in that thread from Kent, and enabled
>> debugging for the trousers build. The output from trousers and
>> tpm_takeownership are below.
>>
>> Would someone take a look and see what might be wrong with my system?
>>
>> Thank you.
>>
>> Harry
>>
>> ------------------------------
>> TROUSERS
>> # tcsd -f
>> TCSD tcsd_conf.c:94 platform_class_list_append:
>> platform_class_list_append start:
>> TCSD tcsd_conf.c:126 platform_class_list_append: Platform Class Added.
>> TCSD tcsd_conf.c:732 Config file /etc/tcsd.conf not found, using defaults.
>> TCSD TCS tcsi_caps_tpm.c:43 Entering Get Cap
>> To TPM: 00 C1 00 00 00 12 00 00 00 65 00 00 00 1A 00 00
>> To TPM: 00 00
>> TCSD TDDL tddl.c:171 Calling write to driver
>> TCSD TDDL tddl.c:188 ioctl: (25) Inappropriate ioctl for device
>> TCSD TDDL tddl.c:189 Falling back to Read/Write device support.
>> From TPM: 00 C4 00 00 00 1D 00 00 00 00 00 00 00 0F 00 30
>> From TPM: 01 02 42 02 00 02 03 41 54 4D 4C 00 00
>> TCSD TCS tcsi_caps_tpm.c:43 Entering Get Cap
>> To TPM: 00 C1 00 00 00 16 00 00 00 65 00 00 00 01 00 00
>> To TPM: 00 04 00 00 00 B4
>> TCSD TDDL tddl.c:171 Calling write to driver
>> From TPM: 00 C4 00 00 00 0F 00 00 00 00 00 00 00 01 00
>> TCSD TCS tcsi_caps_tpm.c:43 Entering Get Cap
>> To TPM: 00 C1 00 00 00 16 00 00 00 65 00 00 00 01 00 00
>> To TPM: 00 04 00 00 00 B6
>> TCSD TDDL tddl.c:171 Calling write to driver
>> From TPM: 00 C4 00 00 00 0F 00 00 00 00 00 00 00 01 00
>> TCSD TCS tcsi_caps_tpm.c:43 Entering Get Cap
>> To TPM: 00 C1 00 00 00 16 00 00 00 65 00 00 00 05 00 00
>> To TPM: 00 04 00 00 01 01
>> TCSD TDDL tddl.c:171 Calling write to driver
>> From TPM: 00 C4 00 00 00 12 00 00 00 00 00 00 00 04 00 00
>> From TPM: 00 18
>> TCSD TCS tcsi_caps_tpm.c:43 Entering Get Cap
>> To TPM: 00 C1 00 00 00 16 00 00 00 65 00 00 00 05 00 00
>> To TPM: 00 04 00 00 01 02
>> TCSD TDDL tddl.c:171 Calling write to driver
>> From TPM: 00 C4 00 00 00 12 00 00 00 00 00 00 00 04 00 00
>> From TPM: 00 01
>> TCSD TCS tcsi_caps_tpm.c:43 Entering Get Cap
>> To TPM: 00 C1 00 00 00 16 00 00 00 65 00 00 00 05 00 00
>> To TPM: 00 04 00 00 01 04
>> TCSD TDDL tddl.c:171 Calling write to driver
>> From TPM: 00 C4 00 00 00 12 00 00 00 00 00 00 00 04 00 00
>> From TPM: 00 09
>> TCSD TCS tcsi_caps_tpm.c:43 Entering Get Cap
>> To TPM: 00 C1 00 00 00 16 00 00 00 65 00 00 00 05 00 00
>> To TPM: 00 04 00 00 01 03
>> TCSD TDDL tddl.c:171 Calling write to driver
>> From TPM: 00 C4 00 00 00 12 00 00 00 00 00 00 00 04 41 54
>> From TPM: 4D 4C
>> TCSD TCS tcsi_caps_tpm.c:43 Entering Get Cap
>> To TPM: 00 C1 00 00 00 16 00 00 00 65 00 00 00 05 00 00
>> To TPM: 00 04 00 00 01 0D
>> TCSD TDDL tddl.c:171 Calling write to driver
>> From TPM: 00 C4 00 00 00 12 00 00 00 00 00 00 00 04 00 00
>> From TPM: 00 03
>> TCSD TCS tcs_caps.c:138 get_max_auths reports 3 auth contexts found
>> TCSD TCS tcsi_caps_tpm.c:43 Entering Get Cap
>> To TPM: 00 C1 00 00 00 12 00 00 00 65 00 00 00 07 00 00
>> To TPM: 00 00
>> TCSD TDDL tddl.c:171 Calling write to driver
>> From TPM: 00 C4 00 00 00 10 00 00 00 00 00 00 00 02 00 00
>> TCSD svrside.c:309 trousers 0.3.10: TCSD up and running.
>> TCSD svrside.c:326 accepted socket 6
>> TCSD tcsd_threads.c:232 total_recv_size 28, buf_size 1024, recd_so_far 28
>> TCSD tcsd_threads.c:284 Rx'd packet
>> TCSD TCS rpc/tcstp/rpc.c:580 Dispatching ordinal 1 (OpenContext)
>> TCSD TCS rpc/tcstp/rpc_context.c:37 tcs_wrap_OpenContext: thread
>> -1230080912
>> TCSD TCS rpc/tcstp/rpc_context.c:53 New context is 0xa0c25800
>> TCSD tcsd_threads.c:313 Sending 0x26 bytes back
>> TCSD tcsd_threads.c:232 total_recv_size 54, buf_size 1024, recd_so_far 28
>> TCSD tcsd_threads.c:277 recv_chunk_size 26 recd_so_far 28
>> TCSD tcsd_threads.c:284 Rx'd packet
>> TCSD TCS rpc/tcstp/rpc.c:580 Dispatching ordinal 50 (ReadPubek)
>> TCSD TCS rpc/tcstp/rpc_ek.c:112 tcs_wrap_ReadPubek: thread -1230080912
>> context a0c25800
>> TCSD TCS tcsi_ek.c:75 TCSP_ReadPubek_Internal: Enter
>> To TPM: 00 C1 00 00 00 1E 00 00 00 7C F3 4D 36 59 03 05
>> To TPM: C3 1E 36 E5 72 E0 CF 4A D5 28 47 9F 5D C2
>> TCSD TDDL tddl.c:171 Calling write to driver
>> From TPM: 00 C4 00 00 01 3A 00 00 00 00 00 00 00 01 00 03
>> From TPM: 00 01 00 00 00 0C 00 00 08 00 00 00 00 02 00 00
>> From TPM: 00 00 00 00 01 00 CD B1 84 08 BD 65 8D 11 12 86
>> From TPM: A6 12 95 98 19 13 2C 26 B5 40 9B 8F 48 18 53 FB
>> From TPM: 5F 3E 31 08 1C 29 E1 77 B8 7A 6F 75 1C 68 1B AE
>> From TPM: 5D 56 32 19 00 3C E1 37 11 7A 80 35 66 B1 EC 1C
>> From TPM: D9 97 54 04 59 F4 15 FD 97 CA 89 62 6A EE 83 96
>> From TPM: E1 93 DC 24 E2 01 B6 01 6A 98 03 D0 2F 52 4A A7
>> From TPM: A9 88 28 B6 73 F2 74 1D 4A DC FC 64 B5 82 CA 04
>> From TPM: 05 F0 FB 19 74 B8 8C 67 F5 9E 2A 6B 92 2C 17 51
>> From TPM: 67 69 5E BB 55 8C BE 2F E0 29 FC B0 02 BE 40 09
>> From TPM: D6 14 B1 BC EC 2B 53 9F C1 AD DF 66 02 1B 5B 1A
>> From TPM: FD 0C 9F 78 9D 16 6A 2D 7F 6D 1D 6C 8E B1 3A 32
>> From TPM: 9E D4 4A BB 30 FB BE B5 4B 28 05 5E 49 7C BB BE
>> From TPM: D6 71 DD 0F 37 80 2F 12 0E B9 E0 E9 3B 99 01 6C
>> From TPM: 03 BA E9 36 44 B4 CC 43 F0 3E E5 AA 52 8A 87 22
>> From TPM: 00 C4 00 00 01 3A 00 00 00 00 00 00 00 01 00 03
>> From TPM: 00 01 00 00 00 0C 00 00 08 00 00 00 00 02 00 00
>> From TPM: 00 00 00 00 01 00 CD B1 84 08 BD 65 8D 11 12 86
>> From TPM: A6 12 95 98 19 13 2C 26 B5 40
>> TCSD TCS tcsi_ek.c:92 TCSP_ReadPubek_Internal: result: 0x0
>> TCSD tcsd_threads.c:313 Sending 0x153 bytes back
>> TCSD tcsd_threads.c:232 total_recv_size 33, buf_size 1024, recd_so_far 28
>> TCSD tcsd_threads.c:277 recv_chunk_size 5 recd_so_far 28
>> TCSD tcsd_threads.c:284 Rx'd packet
>> TCSD TCS rpc/tcstp/rpc.c:580 Dispatching ordinal 2 (CloseContext)
>> TCSD TCS rpc/tcstp/rpc_context.c:71 tcs_wrap_CloseContext: thread
>> -1230080912 context a0c25800
>> TCSD TCS tcsi_context.c:39 Closing context A0C25800
>> TCSD TCS tcsi_context.c:51 Context A0C25800 closed
>> TCSD tcsd_threads.c:313 Sending 0x1C bytes back
>> TCSD TCS rpc/tcstp/rpc.c:68 Socket connection closed.
>> TCSD tcsd_threads.c:325 Thread exiting.
>>
>> ----------------------------------------------
>> # tpm_takeownership -z
>> Enter owner password:
>> Confirm password:
>> LOG_DEBUG TSPI rpc/tcstp/rpc.c:359 Sending TSP packet to host localhost.
>> LOG_DEBUG TSPI rpc/tcstp/rpc.c:374 Connecting to 127.0.0.1
>> LOG_DEBUG TSPI rpc/tcstp/rpc_context.c:44 RPC_OpenContext_TP: Received
>> TCS Context: 0xa0c25800
>> LOG_DEBUG TSPI rpc/tcstp/rpc_ek.c:96 RPC_ReadPubek_TP: TCS Context:
>> 0xa0c25800
>> LOG_RETERR TSPI tspi_ek.c:210: 0x128
>> Tspi_TPM_TakeOwnership failed: 0x00003128 - layer=tsp, code=0128 (296),
>> Unknown
>> LOG_DEBUG TSPI rpc/tcstp/rpc_context.c:60 RPC_CloseContext_TP: TCS
>> Context: 0xa0c25800
>> LOG_RETERR TSPI tspi_context.c:113: 0x126
>>
>>
>> ------------------------------------------------------------------------------
>> Dive into the World of Parallel Programming The Go Parallel Website,
>> sponsored
>> by Intel and developed in partnership with Slashdot Media, is your hub
>> for all
>> things parallel software development, from weekly thought leadership
>> blogs to
>> news, videos, case studies, tutorials and more. Take a look and join the
>> conversation now. http://goparallel.sourceforge.net/
>> _______________________________________________
>> TrouSerS-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/trousers-users
>>
>>
>
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
TrouSerS-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/trousers-users

Reply via email to