Test op-tee test on ls board

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Test op-tee test on ls board

Jump to solution
3,262 Views
fenghua_jiang
Contributor IV

op-tee memory address

https://github.com/OP-TEE/optee_os/blob/3.15.0/core/arch/arm/include/mm/generic_ram_layout.h#L62-L74

my board is ls1046afrwy.

how to set the address of CFG_TZSRAM_START?

now,memory addresses:

CFG_TZDRAM_START = 0xfc000000
CFG_TZDRAM_SIZE = 0x3e00000
CFG_SHMEM_START= 0xffe00000
CFG_SHMEM_SIZE = 0x200000

 

0 Kudos
Reply
1 Solution
3,245 Views
SebastianG
NXP TechSupport
NXP TechSupport
3 Replies
3,246 Views
SebastianG
NXP TechSupport
NXP TechSupport
3,253 Views
fenghua_jiang
Contributor IV

root@localhost:~# xtest -t regression 1004
Test ID: 1004
Run test Dsuite /TC:? 0 tee_ta_init_pseudo_ta_session:299 Lookup pseudo TA cb3e5ba0-adf1-11e0-998b-0002a5d5c51b
ith level=0

TEE test application started overD/TC:? 0 ldelf_load_ldelf:91 ldelf load address 0x40006000
default TEE instance
#########D/LD: ldelf:134 Loading TS cb3e5ba0-adf1-11e0-998b-0002a5d5c51b
################################D/TC:? 0 ldelf_syscall_open_bin:145 Lookup user TA ELF cb3e5ba0-adf1-11e0-998b-0002a5d5c51b (Secure Storage TA)
#############
#
# regression
D/TC:? 0 tee_svc_storage_file_ops:33 CFG_REE_FS!
#
#############################D/TC:? 0 ree_fs_open_primitive:415 create =0
################D/TC:? 0 get_rpc_arg:424 params[0].attr is 0x1!
#########

* regression_1004 D/TC:? 0 get_rpc_arg:426 params[0].vlue.a is 0x0!
Test User Crypt TA
D/TC:? 0 get_rpc_arg:428 params[0]vlue.b is 0x1000!
D/TC:? 0 get_rpc_arg:430 params[0].vlue.c is 0x8!
D/TC:? 0 get_rpc_arg:469 arg->params[0].attr is 1!
D/TC:? 0 get_rpc_arg:471 arg->ret is -65536!
D/TC:? 0 thread_rpc_alloc:631 entry thread_rpc_alloc
^CD/TC:? 0 get_rpc_alloc_res:562 arg->num_params is 1
D/TC:? 0 get_rpc_alloc_res:563 arg->ret is 0xffff000c
D/TC:? 0 get_rpc_alloc_res:567 arg is null
D/TC:? 0 thread_rpc_shm_cache_alloc:1682 mobj null!
D/TC:? 0 operation_open_dfh:44 TTEEEE_EERRRR_OOUUTT_MMMM
D/TC:? 0 ree_fs_open_primitive:421 res=0xffff000c
D/TC:? 0 tee_fs_dirfile_open:131 res=0xffff000c
D/TC:? 0 tee_fs_dirfile_open:168 res=0xffff000c
D/TC:? 0 get_dirh:570 res=0xffff000c
D/TC:? 0 ree_fs_open:622 res=0xffff000c
D/TC:? 0 ree_fs_open:655 res=0xffff000c
D/TC:? 0 tadb_open:234 res=0xffff000c
D/TC:? 0 tee_tadb_open:253 res=0xffff000c
D/TC:? 0 tee_tadb_ta_open:658 res=0xffff000c
D/TC:? 0 secstor_ta_open:22 res=0xffff000c
D/TC:? 0 ldelf_syscall_open_bin:149 res=0xffff000c
E/LD: init_elf:437 sys_open_ta_bin(cb3e5ba0-adf1-11e0-998b-0002a5d5c51b)
E/TC:? 0 ldelf_init_with_ldelf:126 ldelf failed with res: 0xffff000c
D/TC:? 0 tee_ta_open_session:721 init session failed 0xffff000c

0 Kudos
Reply
3,200 Views
fenghua_jiang
Contributor IV

root@localhost:~# xtest -t regression 1006
Test ID: 1006D/TC:? 0 tee_ta_init_pseudo_ta_session:299 Lookup pseudo TA 5b9e0e40-2636-11e1-ad9e-0002a5d5c51b

Run test suite with level=0
D/TC:? 0 ldelf_load_ldelf:91 ldelf load address 0x40006000

TEE test applicD/LD: ldelf:134 Loading TS 5b9e0e40-2636-11e1-ad9e-0002a5d5c51b
ation started ovD/TC:? 0 ldelf_syscall_open_bin:142 Lookup user TA ELF 5b9e0e40-2636-11e1-ad9e-0002a5d5c51b (Secure Storage TA)
er default TEE instance
######################################################
#
# regression
#
######################################################

* regression_1006 Test Basic OS features
D/TC:? 0 ldelf_syscall_open_bin:146 res=0xffff0008
D/TC:? 0 ldelf_syscall_open_bin:142 Lookup user TA ELF 5b9e0e40-2636-11e1-ad9e-0002a5d5c51b (REE)
D/TC:? 0 ldelf_syscall_open_bin:146 res=0
D/TC:? 0 ldelf_syscall_open_bin:142 Lookup user TA ELF ffd2bded-ab7d-4988-95ee-e4962fff7154 (Secure Storage TA)
D/TC:? 0 ldelf_syscall_open_bin:146 res=0xffff0008
D/TC:? 0 ldelf_syscall_open_bin:142 Lookup user TA ELF ffd2bded-ab7d-4988-95ee-e4962fff7154 (REE)
D/TC:? 0 ldelf_syscall_open_bin:146 res=0
D/LD: ldelf:168 ELF (5b9e0e40-2636-11e1-ad9e-0002a5d5c51b) at 0x40074000
D/LD: ldelf:168 ELF (ffd2bded-ab7d-4988-95ee-e4962fff7154) at 0x401c1000
D/TC:2 0 abort_handler:531 [abort] abort in User mode (TA will panic)
E/TC:? 0
E/TC:? 0 User mode undef-abort at address 0x401c6178
E/TC:? 0 esr 0x6232f801 ttbr0 0x20000fc120040 ttbr1 0x00000000 cidr 0x0
E/TC:? 0 cpu #2 cpsr 0x80000100
E/TC:? 0 x0 0000000040172d50 x1 00000000400789f4
E/TC:? 0 x2 0000000040172d50 x3 0000000000000000
E/TC:? 0 x4 00000000400789f4 x5 0000000000000000
E/TC:? 0 x6 0000000000000000 x7 0000000000000000
E/TC:? 0 x8 0000000000000000 x9 0000000000000000
E/TC:? 0 x10 0000000000000000 x11 0000000000000000
E/TC:? 0 x12 0000000000000000 x13 000000004001f780
E/TC:? 0 x14 0000000000000000 x15 0000000000000000
E/TC:? 0 x16 00000000401da318 x17 00000000401c6400
E/TC:? 0 x18 0000000000000000 x19 0000000000000000
E/TC:? 0 x20 0000000000000000 x21 0000000000000000
E/TC:? 0 x22 0000000000000000 x23 0000000000000000
E/TC:? 0 x24 0000000000000000 x25 0000000000000000
E/TC:? 0 x26 0000000000000000 x27 0000000000000000
E/TC:? 0 x28 0000000000000000 x29 000000004001f690
E/TC:? 0 x30 00000000401c61a8 elr 00000000401c6178
E/TC:? 0 sp_el0 000000004001f680
E/LD: Status of TA 5b9e0e40-2636-11e1-ad9e-0002a5d5c51b
E/LD: arch: aarch64
E/LD: region 0: va 0x40004000 pa 0xfc200000 size 0x002000 flags rw-s (ldelf)
E/LD: region 1: va 0x40006000 pa 0xfc202000 size 0x011000 flags r-xs (ldelf)
E/LD: region 2: va 0x40017000 pa 0xfc213000 size 0x001000 flags rw-s (ldelf)
E/LD: region 3: va 0x40018000 pa 0xfc214000 size 0x004000 flags rw-s (ldelf)
E/LD: region 4: va 0x4001c000 pa 0xfc218000 size 0x001000 flags r--s
E/LD: region 5: va 0x4001d000 pa 0xfc319000 size 0x003000 flags rw-s (stack)
E/LD: region 6: va 0x40074000 pa 0x00001000 size 0x01a000 flags r-xs [0]
E/LD: region 7: va 0x4008e000 pa 0x0001b000 size 0x0e6000 flags rw-s [0]
E/LD: region 8: va 0x401c1000 pa 0x00000000 size 0x018000 flags r-xs [1]
E/LD: region 9: va 0x401d9000 pa 0x00017000 size 0x002000 flags rw-s [1]
E/LD: [0] 5b9e0e40-2636-11e1-ad9e-0002a5d5c51b @ 0x40074000
E/LD: [1] ffd2bded-ab7d-4988-95ee-e4962fff7154 @ 0x401c1000
E/LD: Call stack:
E/LD: 0x00000000401c6178
E/LD: 0x00000000401c657c
E/LD: 0x00000000401c6114
E/LD: 0x000000004007bf88
E/LD: 0x00000000400789f0
D/TC:? 0 user_ta_enter:176 tee_user_ta_enter: TA panicked with code 0xdeadbeef
D/TC:? 0 tee_ta_close_session:512 csess 0xfc109350 id 1
D/TC:? 0 tee_ta_close_session:531 Destroy session
D/TC:? 0 destroy_context:308 Destroy TA ctx (0xfc1092f0)
E/TC:? 0 tee_ta_open_session:768 Failed. Return error 0xffff3024
/home/jiang/autocore/nxp/flexbuild_lsdk2108/components/apps/security/optee_test/host/xtest/regression_1000.c:548: xtest_teec_open_session(&session, &os_test_ta_uuid, ((void *)0), &ret_orig) has an unexpected value: 0xffff3024 = TEE_ERROR_TARGET_DEAD, expected 0x0 = TEEC_SUCCESS
regression_1006 FAILED
+-----------------------------------------------------
Result of testsuite regression filtered by "1006":
regression_1006 FAILED first error at /home/jiang/autocore/nxp/flexbuild_lsdk2108/components/apps/security/optee_test/host/xtest/regression_1000.c:548
+-----------------------------------------------------
1 subtest of which 1 failed
1 test case of which 1 failed
91 test cases were skipped
TEE test application done!
root@localhost:~#

0 Kudos
Reply