Hi,
Recently, I tested optee feature, and found that when hse enabled, the optee will fail, messages as following:
NOTICE: Reset status: Power-On Reset
NOTICE: BL2: v2.10.0 (release):bsp41.0-2.10
NOTICE: BL2: Built : 09:32:10, May 27 2024
NOTICE: BL2: Booting BL31
I/TC:
I/TC: Non-secure external DT found
I/TC: OP-TEE version: bsp41.0-4.0-dev (gcc version 11.4.0 (GCC)) #1 Thu May 23 14:46:51 UTC 2024 aarch64
I/TC: WARNING: This OP-TEE configuration might be insecure!
I/TC: WARNING: Please check https://optee.readthedocs.io/en/latest/architecture/porting_guidelines.html
I/TC: Primary CPU initializing
E/TC:0 0 crypto_driver_init:1224 Firmware not initialised
E/TC:0 0 crypto_driver_init:1336 HSE Crypto Driver init failed with err 0xffff0007
E/TC:0 0 call_initcalls:43 Initcall __text_start + 0x00075b28 failed
I/TC: WARNING: Using fixed value for stack canary
I/TC: Primary CPU switching to normal world boot
I/TC: WARNING: Using fixed value for stack canary
...
Auto Linux BSP 41.0 s32g399ardb3 ttyLF0
s32g399ardb3 login: root
root@s32g399ardb3:~#
root@s32g399ardb3:~#
root@s32g399ardb3:~# xtest -l 15
Run test suite Iith WARNING (i
sEE re t npiguration)started ovo get monotTnE instanee for REE ##,#u#i####
##################################
#
# regression
#
######################################################
* regression_1E/LD: e ie_f tes8s sys_open_ta_bin(d96a5b40-c3e5-21e3-8794-1002a5d5c61b)
E/TC:? 0 ldelf_init_with_ldelf:152 ldelf failed with res: 0xffff0001
/usr/src/debug/optee-test/4.0.0-r0/git/host/xtest/regression_1000.c:299: res has an unexpected value: 0xffff0001 = E/ED_ERiOR_ACCf:486 sys_o ex_eatbdn(d96a5b40-cSUCCESS3
7r4-1002a5d510s
iled with res: 0xffff0001
/usr/src/debug/optee-test/4.0.0-r0/git/host/xtest/regression_1000.c:338: res has an unexpected value: 0xffff0001 = TEEC_ERROR_ACCESS_DENIED, expected 0x0 = TEEC_SUCCESS
/usr/src/debug/optee-test/4.0.0-r0/git/host/xtest/regression_1000.c:350: TEEC_InvokeCommand( &session, 1, &op, &ret_orig) has an unexpected value: 0xffff0006 = TEEC_ERROR_BAD_PARAMETERS
Segmentation fault
root@s32g399ardb3:~#
root@s32g399ardb3:~# uname -a
Linux s32g399ardb3 6.6.25-rt29-g8c8864ffb5db #1 SMP PREEMPT Mon May 27 16:30:16 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux
root@s32g399ardb3:~#
And the hse firmware is v0.2.51.0 for S32G3 v1.1 version, and the following line:
DISTRO_FEATURES:append = " hse optee"
is added into the conf/local.conf of the bsp41 project.
The whole test log is attached.
Would you please help to check the issue?
Thanks,
Zhantao