Hi. I’m trying to use AOSP + OPTEE
My board is hikey960 with 4GB RAM and host machine is VMware Linux ubuntu 18.04.1
But I couldn’t boot well though there’s NO ERROR log in my process.
I’m stuck in here for a week. Please help me if you know.
First, here are my rough processes
-
clone optee android git master (3.6.1) branch
git clone https://github.com/linaro-swg/optee_android_manifest -
sync and build
./sync-p-hikey960.sh
./build-p-hikey960.sh -
copy image files and flash using fastboot
cp -a out/target/product/hikey960/*.img device/linaro/hikey/installer/hikey960/
sudo ./device/linaro/hikey/installer/hikey960/flash-all.sh /dev/ttyUSBn
(this command MUST have run under optee_android_manifest directory and it drove me crazy.)
hikey960 normal boot UART logs after finished fastboot flashing (selected critical part to my thought)
==================================================================
Press ESCAPE for boot options .EFI stub: Booting Linux Kernel…
EFI stub: EFI_RNG_PROTOCOL unavailable, no randomness supplied
EFI stub: Using DTB from configuration table
Failed to handle fs_proto
EFI stub: ERROR: Failed initrd from command line!
EFI stub: Exiting boot services and installing virtual address map…
D/TC:1 generic_boot_cpu_on_handler:1148 cpu 1: a0 0x0
D/TC:1 init_secondary_helper:1133 Secondary CPU Switching to normal world boot
D/TC:2 generic_boot_cpu_on_handler:1148 cpu 2: a0 0x0
D/TC:2 init_secondary_helper:1133 Secondary CPU Switching to normal world boot
D/TC:3 generic_boot_cpu_on_handler:1148 cpu 3: a0 0x0
D/TC:3 init_secondary_helper:1133 Secondary CPU Switching to normal world boot
D/TC:4 generic_boot_cpu_on_handler:1148 cpu 4: a0 0x0
D/TC:4 select_vector:909 SMCCC_ARCH_WORKAROUND_1 (0x80008000) available
D/TC:4 select_vector:910 SMC Workaround for CVE-2017-5715 used
D/TC:4 init_secondary_helper:1133 Secondary CPU Switching to normal world boot
D/TC:5 generic_boot_cpu_on_handler:1148 cpu 5: a0 0x0
====================================================================
…
====================================================================
[ 13.859513] init: SVC_EXEC pid 2434 (uid 0 gid 0+1 context default) started; waiting…
[ 13.868120] init: Service ‘tee-supplicant’ (pid 2431) exited with status 0
D/TC:? 0 tee_ta_init_pseudo_ta_session:280 Lookup pseudo TA dba51a17-0563-11e7[ 13.8a052871wait_for_keymaster_optee: Waiting for Keymaster device
D/TC:? 0 load_ldelf:707 ldelf load address 0x40006000
D/LD: ldelf:134 Loading TA dba51a17-0563-11e7-93b1-6fa7b0071a51
D/TC:? 0 tee_ta_init_pseudo_ta_session:280 Lookup pseudo TA 3a2f8978-5dc0-11e8-9c2d-fa7ae01bbebc
[ 13.922643] init: Received control message ‘interface_start’ for ‘android.hardware.keymaster@3.0::IKeymasterDevice/default’ from pid: 2421 (/system/bin/hwservicemanager)
D/TC:? 0 tee_ta_init_pseudo_ta_session:293 Open system.pta
D/TC:? 0 tee_ta_init_pseudo_ta_session:307 system.pta : 3a2f8978-5dc0-11e8-9c2d-fa7ae01bbebc
D/TC:? 0 system_open_ta_binary:239 Lookup user TA ELF dba51a17-0563-11e[ 11.952873]7in5t: Raceived control message ‘interface_start’ for ‘android.hardware.keymaster@3.0::IKeymasterDevice/default’ from pid: 2421 (/system/bin/hwservicemanager)
D/TC:? 0 system_open_ta_binary:242 res=0xffff0008
D/TC:? 0 system_open_ta_binary:239 Lookup user TA ELF dba51a17-0563-11e7-93b1-6fa7b0071a51 (Secure Storage TA)
D/TC:? 0 system_open_ta_binary:242 res=0xf0100003
D/TC:? 0 system_open_ta_binary:239 Lookup user TA ELF dba51a17-0563-11e7-93b1-6fa7b0071a51 (REE [buffered])
D/TC:? 0 system_open_ta_binary:242 res=0x0
D/LD: ldelf:169 ELF (dba51a17-0563-11e7-93b1-6fa7b0071a51) at 0x40035000
D/TC:? 0 tee_ta_close_session:498 csess 0x3f0a22e0 id 1
D/TC:? 0 tee_ta_close_session:517 Destroy session
D/TA: TA_CreateEntryPoint:50 TA_CreateEntryPoint 50
D/TA: TA_create_secret_key:98 TA_create_secret_key 98
E/TA: TA_create_secret_key:140 Failed to open secret key, res=f0100003
E/TA: TA_CreateEntryPoint:56 Something wrong with secret key (f0100003)
D/TC:? 0 tee_ta_close_session:498 csess 0x3f0a2b00 id 1
D/TC:? 0 tee_ta_close_session:517 Destroy session
D/TC:? 0 destroy_context:297 Destroy TA ctx (0x3f0a2aa0)
E/TC:? 0 tee_ta_open_session:727 Failed. Return error 0xf0100003
[ 14.923453] ServiceManagement: Waited one second for android.hardware.keymaster@3.0::IKeymasterDevice/default. Waiting another…
[ 15.938679] ServiceManagement: Waited one second for android.hardware.keymaster@3.0::IKeymasterDevice/default. Waiting another…
=====================================================================
I think “Failed to handle fs_proto” is the problem but I can’t solve
“ServiceManagement: Waited one second for android.hardware.keymaster@3.0::IKeymasterDevice/default. Waiting another…” prints repeatedly below and I’m stuck in here.
I have full log file but I can’t attach due to 32000 character limit
Please tell me if you want to see some part or full log