Finally , Compilation success.
(Had to use PC with 16GB RAM. Previously, I was trying on PC with 8GB RAM and I am facing jack server issues)
Now , except boot_fat.uefi.img, remaining all files were generated
(l-loader.bin , ptable-linux-8g.img, fip.bin, nvme.img , system.img, cache.img , userdata.img)
I flashed above files and board booted successfully.
There is another file , boot.img , I left that alone .
Now , tried xtest and output as follows :
hikey:/system/bin # xtest
xtest
Run test suite with level=0
TEE test application started with device [(null)]
######################################################
XTEST_TEE_TEST
######################################################
-
XTEST_TEE_1001 Core self tests
ERR [12408] TEEC:TEEC_OpenSession:502: TEE_IOC_OPEN_SESSION failed
XTEST_TEE_1001 OK
-
XTEST_TEE_1004 Test User Crypt TA
ERR [12408] TEEC:TEEC_OpenSession:502: TEE_IOC_OPEN_SESSION failed
external/optee_test/host/xtest/xtest_1000.c:286: xtest_teec_open_session( &session, &crypt_user_ta_uuid, ((void*)0), &ret_orig) has an unexpected value: 0xffff0000 = TEEC_ERROR_GEN
ERIC, expected 0x0 = TEEC_SUCCESS
XTEST_TEE_1004 FAILED
-
XTEST_TEE_1005 Many sessions
ERR [12408] TEEC:TEEC_OpenSession:502: TEE_IOC_OPEN_SESSION failed
external/optee_test/host/xtest/xtest_1000.c:341: xtest_teec_open_session(&sessions[i], &concurrent_ta_uuid, ((void*)0), &ret_orig) has an unexpected value: 0xffff0000 = TEEC_ERROR_
GENERIC, expected 0x0 = TEEC_SUCCESS
XTEST_TEE_1005 FAILED
lot many lines like the above !!! and at the end , summary is as below -
350 subtests of which 177 failed
70 test cases of which 65 failed
0 test case was skipped
TEE test application done!
key:/system # tee-supplicant &
tee-supplicant &
[1] 9186
hikey:/system # ERR [9186] TEES:main:397: failed to find an OP-TEE supplicant device
So , after all these errors , I flashed boot.img , now , I am not getting adb shell . I guess I can sort this out.
But , how can I solve tee-supplicant error above .
Am I missing anything ?