Tool/software: Linux
Hello,
I am working on the J6 board with android O, the OS is from omappedia.org, I followed the user guide, the device can run to the android init file system, but since the sgx issue, the surfaceflinger can't bring up successfully, we should load the "gralloc.jacinto6.so" from IT binary, but it is unsuccessful, so it lead to zygote restarts repeatedly. if we remove the "gralloc.jacinto6.so" , only used the default library "gralloc.default.so", the zygote can work fine, but the surfaceflinger can't bring up successfully, so could you please help to check the sgx issue. also I attached the log.
Locat logs:
01-01 00:08:09.128 8172 8172 I wificond: wificond is starting up...
--------- beginning of crash
01-01 00:08:12.672 8229 8229 F DEBUG : r8 be9c99e8 r9 a9e98840 sl 00000000 fp 23ab980d
01-01 00:08:12.672 8229 8229 F DEBUG : ip 00000000 sp be9c93a0 lr aa1663c7 pc aa196a9c cpsr 200f0010
01-01 00:08:12.717 8229 8229 F DEBUG :
01-01 00:08:12.717 8229 8229 F DEBUG : backtrace:
01-01 00:08:12.717 8229 8229 F DEBUG : #00 pc 0004aa9c /system/lib/libc.so (tgkill+12)
01-01 00:08:12.717 8229 8229 F DEBUG : #01 pc 0001a3c3 /system/lib/libc.so (abort+54)
01-01 00:08:12.717 8229 8229 F DEBUG : #02 pc 0000663f /system/lib/liblog.so (__android_log_assert+154)
01-01 00:08:12.717 8229 8229 F DEBUG : #03 pc 00004267 /vendor/lib/hw/android.hardware.graphics.allocator@2.0-impl.so (_ZN7android8hardware8graphics9allocator4V2_014implementation17Gralloc0AllocatorC1EPK11hw_module_t+70)
01-01 00:08:12.717 8229 8229 F DEBUG : #04 pc 0000413d /vendor/lib/hw/android.hardware.graphics.allocator@2.0-impl.so (HIDL_FETCH_IAllocator+100)
01-01 00:08:12.717 8229 8229 F DEBUG : #05 pc 0001d4bd /system/lib/libhidltransport.so (_ZN7android8hardware25PassthroughServiceManager3getERKNS0_11hidl_stringES4_+1372)
01-01 00:08:12.717 8229 8229 F DEBUG : #06 pc 0000ea87 /system/lib/android.hardware.graphics.allocator@2.0.so (_ZN7android8hardware8graphics9allocator4V2_010IAllocator10getServiceERKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEb+926)
01-01 00:08:12.718 8229 8229 F DEBUG : #07 pc 00000cab /vendor/bin/hw/android.hardware.graphics.allocator@2.0-service
01-01 00:08:12.718 8229 8229 F DEBUG : #08 pc 00000c55 /vendor/bin/hw/android.hardware.graphics.allocator@2.0-service
01-01 00:08:12.718 8229 8229 F DEBUG : #09 pc 00000bfb /vendor/bin/hw/android.hardware.graphics.allocator@2.0-service
01-01 00:08:12.718 8229 8229 F DEBUG : #10 pc 00017d45 /system/lib/libc.so (__libc_init+48)
01-01 00:08:12.718 8229 8229 F DEBUG : #11 pc 00000ac0 /vendor/bin/hw/android.hardware.graphics.allocator@2.0-service (_start+100)
01-01 00:08:14.134 8256 8256 I wificond: wificond is starting up...
01-01 00:08:17.518 8299 8299 F libc : Fatal signal 6 (SIGABRT), code -6 in tid 8299 (android.hardwar)
01-01 00:08:17.695 8309 8309 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
01-01 00:08:17.695 8309 8309 F DEBUG : Build fingerprint: 'TI/full_jacinto6evm/jacinto6evm:8.0.0/OPR6.170623.023/fyh02081349:userdebug/test-keys'
01-01 00:08:17.695 8309 8309 F DEBUG : Revision: '0'
01-01 00:08:17.695 8309 8309 F DEBUG : ABI: 'arm'
01-01 00:08:17.695 8309 8309 F DEBUG : pid: 8299, tid: 8299, name: android.hardwar >>> /vendor/bin/hw/android.hardware.graphics.allocator@2.0-service <<<
01-01 00:08:17.695 8309 8309 F DEBUG : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
01-01 00:08:17.698 8309 8309 F DEBUG : Abort message: 'failed to open gralloc0 device: Not a typewriter'
01-01 00:08:17.698 8309 8309 F DEBUG : r0 00000000 r1 0000206b r2 00000006 r3 00000008
01-01 00:08:17.698 8309 8309 F DEBUG : r4 0000206b r5 0000206b r6 bea853b0 r7 0000010c
01-01 00:08:17.698 8309 8309 F DEBUG : r8 bea859e8 r9 aa518840 sl 00000000 fp 0ffaf2bd
01-01 00:08:17.698 8309 8309 F DEBUG : ip 00000000 sp bea853a0 lr aab363c7 pc aab66a9c cpsr 200f0010
01-01 00:08:17.726 8309 8309 F DEBUG :
01-01 00:08:17.726 8309 8309 F DEBUG : backtrace:
01-01 00:08:17.726 8309 8309 F DEBUG : #00 pc 0004aa9c /system/lib/libc.so (tgkill+12)
01-01 00:08:17.726 8309 8309 F DEBUG : #01 pc 0001a3c3 /system/lib/libc.so (abort+54)
01-01 00:08:17.726 8309 8309 F DEBUG : #02 pc 0000663f /system/lib/liblog.so (__android_log_assert+154)
01-01 00:08:17.727 8309 8309 F DEBUG : #03 pc 00004267 /vendor/lib/hw/android.hardware.graphics.allocator@2.0-impl.so (_ZN7android8hardware8graphics9allocator4V2_014implementation17Gralloc0AllocatorC1EPK11hw_module_t+70)
01-01 00:08:17.727 8309 8309 F DEBUG : #04 pc 0000413d /vendor/lib/hw/android.hardware.graphics.allocator@2.0-impl.so (HIDL_FETCH_IAllocator+100)
01-01 00:08:17.727 8309 8309 F DEBUG : #05 pc 0001d4bd /system/lib/libhidltransport.so (_ZN7android8hardware25PassthroughServiceManager3getERKNS0_11hidl_stringES4_+1372)
01-01 00:08:17.727 8309 8309 F DEBUG : #06 pc 0000ea87 /system/lib/android.hardware.graphics.allocator@2.0.so (_ZN7android8hardware8graphics9allocator4V2_010IAllocator10getServiceERKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEb+926)
01-01 00:08:17.727 8309 8309 F DEBUG : #07 pc 00000cab /vendor/bin/hw/android.hardware.graphics.allocator@2.0-service
01-01 00:08:17.727 8309 8309 F DEBUG : #08 pc 00000c55 /vendor/bin/hw/android.hardware.graphics.allocator@2.0-service
01-01 00:08:17.727 8309 8309 F DEBUG : #09 pc 00000bfb /vendor/bin/hw/android.hardware.graphics.allocator@2.0-service
01-01 00:08:17.727 8309 8309 F DEBUG : #10 pc 00017d45 /system/lib/libc.so (__libc_init+48)
01-01 00:08:17.727 8309 8309 F DEBUG : #11 pc 00000ac0 /vendor/bin/hw/android.hardware.graphics.allocator@2.0-service (_start+100)
The library in the board:
jacinto6evm:/ # ls -lha /vendor/lib/hw/gralloc.*
-rw-r--r-- 1 root root 21K 2018-02-08 09:21 /vendor/lib/hw/gralloc.default.so
-rw-r--r-- 1 root root 43K 2018-02-08 09:21 /vendor/lib/hw/gralloc.jacinto6.so
jacinto6evm:/ #
the thread in the board:
jacinto6evm:/ # ps -ef
UID PID PPID C STIME TTY TIME CMD
logd 146 1 1 00:00:05 ? 00:00:09 logd
system 147 1 0 00:00:05 ? 00:00:00 servicemanager
system 148 1 0 00:00:05 ? 00:00:02 hwservicemanager
system 149 1 0 00:00:05 ? 00:00:00 vndservicemanager /dev/vndbinder
system 151 1 0 00:00:05 ? 00:00:00 android.hardware.keymaster@3.0-service
root 155 2 0 00:00:05 ? 00:00:00 [kauditd]
root 156 1 0 00:00:05 ? 00:00:00 vold --blkid_context=u:r:blkid:s0 --blkid_untrusted_context=u:r:blkid_untrusted:s0 --fsck_context=u:r:fsck:s0 --fsck_untrusted_context=u:r:fsck_untrusted:s0
system 173 1 0 00:00:05 ? 00:00:00 android.hidl.allocator@1.0-service
cameraserver 178 1 0 00:00:06 ? 00:00:00 android.hardware.camera.provider@2.4-service
system 180 1 0 00:00:06 ? 00:00:00 android.hardware.configstore@1.0-service
system 184 1 0 00:00:06 ? 00:00:00 android.hardware.usb@1.0-service
wifi 186 1 0 00:00:06 ? 00:00:00 android.hardware.wifi@1.0-service
root 189 1 0 00:00:06 ? 00:00:00 healthd
root 191 1 0 00:00:06 ? 00:00:00 lmkd
root 212 2 0 00:00:06 ? 00:00:00 [pvr_timer]
root 213 2 0 00:00:06 ? 00:00:00 [PVR Linux Fence]
root 214 2 0 00:00:06 ? 00:00:00 [pvr_sync_workqu]
root 218 2 0 00:00:06 ? 00:00:00 [pvr_workqueue]
root 221 2 0 00:00:06 ? 00:00:00 [f_mtp]
shell 223 1 0 00:00:06 ttyS0 00:00:00 sh
root 224 2 0 00:00:06 ? 00:00:00 [irq/477-4806a00]
shell 225 1 0 00:00:06 ? 00:00:00 adbd --root_seclabel=u:r:su:s0
system 228 1 0 00:00:06 ? 00:00:00 lad_dra7xx -g
drm 231 1 0 00:00:06 ? 00:00:00 drmserver
root 232 1 0 00:00:06 ? 00:00:00 installd
keystore 233 1 0 00:00:06 ? 00:00:00 keystore /data/misc/keystore
media 234 1 0 00:00:06 ? 00:00:00 mediadrmserver
mediaex 235 1 0 00:00:06 ? 00:00:00 media.extractor aextractor
media 236 1 0 00:00:06 ? 00:00:00 media.metrics diametrics
root 238 1 0 00:00:06 ? 00:00:00 storaged
mediacodec 240 1 0 00:00:06 ? 00:00:00 media.codec hw/android.hardware.media.omx@1.0-service
system 241 1 0 00:00:06 ? 00:00:00 gatekeeperd /data/misc/gatekeeper
tombstoned 253 1 0 00:00:07 ? 00:00:00 tombstoned
root 702 223 0 00:00:33 ttyS0 00:00:00 sh
root 5201 2 0 00:05:07 ? 00:00:01 [kworker/0:0]
root 8317 2 0 00:08:16 ? 00:00:00 [kworker/u4:1]
root 8592 2 0 00:08:32 ? 00:00:00 [kworker/1:0]
root 10269 2 0 00:10:11 ? 00:00:00 [kworker/0:2]
root 13761 2 0 00:13:37 ? 00:00:00 [kworker/1:2]
audioserver 14727 1 4 00:14:33 ? 00:00:00 audioserver
cameraserver 14728 1 4 00:14:33 ? 00:00:00 cameraserver
media 14729 1 4 00:14:33 ? 00:00:00 mediaserver
wifi 14735 1 1 00:14:33 ? 00:00:00 wificond
audioserver 14737 1 3 00:14:33 ? 00:00:00 android.hardware.audio@2.0-service
root 14763 702 4 00:14:35 ttyS0 00:00:00 ps -ef
root 14764 1 3 00:14:36 ? 00:00:00 netd
root 14765 14764 1 00:14:36 ? 00:00:00 iptables-restore --noflush -w -v
root 14766 14764 1 00:14:36 ? 00:00:00 ip6tables-restore --noflush -w -v
thanks
Jackie