-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ftpm_tee_probe failed when trying to create a session #5347
Comments
Hello @kuldeepmarker-eaton, I suspect |
HI @jforissier, Thanks for your quick reply, I can see that tee-supplicant is running from the logs but ftpm_tee_probe is happening first and then the tee-supplicant service is starting. So how can I handle this scenario. E/LD: init_elf:437 sys_open_ta_bin(bc50d971-d4c9-42c4-82cb-343fb7f37896) |
On the platform I am currently working on (RockPi4B):
|
Thanks @jforissier for your inputs so do you think I have to be concerned here. And also I wanted to know how did you tested fTPM TA using OPTEE client API. |
Well it depends on what you expect I suppose ;-)
I don't know the details about the fTPM, but AFAIK the TA is called by the Linux TPM driver. On my board I consider that all is well when I see no error message on boot and the following command prints out some measurements:
|
HI @jforissier , I have appended tpm2 as a feature in my distro and after the flashing the image on board I am not seeing tpm2_eventlog in my /usr/bin folder. Any idea what am I missing here. Below is the list of tpm2 commands in my /usr/bin folder. Also I am not seeing tpm0 entry in /sys/kernel/security/. As a result of this I am not able to test fTPM TA. root@stm32mp1:~# ls /usr/bin/ | grep "tpm" |
This issue has been marked as a stale issue because it has been open (more than) 30 days with no activity. Remove the stale label or add a comment, otherwise this issue will automatically be closed in 5 days. Note, that you can always re-open a closed issue at any time. |
HI, I am trying to execute fTPM as a TA in OPTEE. I have build the fTPM as a TA using a yocto recipe. I am using OPENSTLINUX distro and my boad is stm32mp157f-dk2. I have configured the kernel config to enable TPM_FTPM_TEE driver and also the fTPM TA is getting build and I can see it in /lib/optee_armtz folder. I have also modified the device tree for the board to create an entry for tpm@0. When I boot the board I am getting below logs where in the TEE_CLIENT_OPEN_SESSION failed.
[ 35.656290] Bluetooth: hci0: BCM43430A1 'brcm/BCM43430A1.hcd' Patch
[ 35.724523] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 35.900595] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
[ 36.179999] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
[ 36.290162] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43430/1 wl0: Feb 16 2020 22:39:24 version 7.45.98.97 (r724416 CY) FWID 01-bf41ed64
[ 36.324120] Bluetooth: hci0: BCM4343WA1 37.4MHz Murata Type-1DX BT4.2-0093
[ 36.329791] Bluetooth: hci0: BCM43430A1 (001.002.009) build 0395
E/LD: init_elf:437 sys_open_ta_bin(bc50d971-d4c9-42c4-82cb-343fb7f37896)
E/TC:? 0 ldelf_init_with_ldelf:126 ldelf failed with res: 0xffff000c
[ 36.409300] ftpm-tee tpm@0: ftpm_tee_probe: tee_client_open_session failed, err=ffff000c
[ 36.416048] ftpm-tee: probe of tpm@0 failed with error -22
[ 36.783842] cs42l51 0-004a: Cirrus Logic CS42L51, Revision: 01
I have checked the return code and it says that TEEC_OUT_OF_MEMORY. I have configured the size of #define CFG_TZDRAM_SIZE 0x01e00000. So could you please help me out here.
The text was updated successfully, but these errors were encountered: