Porting android on sbc-s32v234

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

Porting android on sbc-s32v234

2,155 Views
truonghuy
Contributor II

Hello,

I'm porting android on s32v234sbc board. It can now run android on serial console. I'm working on graphics part. As I know s32v234sbc board have a VIVANTE gc3000 gpu. On i.MX8 aosp, NXP provide libEGL_VIVANTE.so, libGLESv1_CM_VIVANTE.so, libGLESv2_VIVANTE.so libraries. I have tried to use these library in my project, but it didn't work. the log below:

01-01 00:00:07.623 1132 1132 I SurfaceFlinger: Enabling HWC virtual displays
01-01 00:00:07.623 1132 1132 I SurfaceFlinger: Disabling Triple Buffering
01-01 00:00:07.624 1132 1132 I SurfaceFlinger: Treble testing override: 'false'
01-01 00:00:07.624 1132 1132 I SurfaceFlinger: SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
01-01 00:00:07.624 1132 1132 I SurfaceFlinger: Phase offest NS: 1000000
01-01 00:00:07.627 1132 1132 D vndksupport: Loading /vendor/lib64/egl/libEGL_VIVANTE.so from current namespace instead of sphal namespace.
01-01 00:00:07.682 1132 1132 D libEGL : loaded /vendor/lib64/egl/libEGL_VIVANTE.so
01-01 00:00:07.832 1132 1132 D vndksupport: Loading /vendor/lib64/egl/libGLESv1_CM_VIVANTE.so from current namespace instead of sphal namespace.
01-01 00:00:07.834 1132 1132 E libEGL : load_driver(/vendor/lib64/egl/libGLESv1_CM_VIVANTE.so): dlopen failed: cannot locate symbol "gcoINDEX_SetSharedLock" referenced by "/system/vendor/lib64/egl/libGLESv1_CM_VIVANTE.so"...
01-01 00:00:07.834 1132 1132 D vndksupport: Loading /vendor/lib64/egl/libGLESv2_VIVANTE.so from current namespace instead of sphal namespace.
01-01 00:00:07.837 1132 1132 E libEGL : load_driver(/vendor/lib64/egl/libGLESv2_VIVANTE.so): dlopen failed: cannot locate symbol "gcoPROFILER_NEW_Disable" referenced by "/system/vendor/lib64/egl/libGLESv2_VIVANTE.so"...
01-01 00:00:07.870 1132 1132 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
01-01 00:00:07.870 1132 1132 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
01-01 00:00:07.871 1132 1132 W SurfaceFlinger: no suitable
EGLConfig found, trying a simpler query
01-01 00:00:07.873 1132 1132 I SurfaceFlinger: EGL information:
01-01 00:00:07.873 1132 1132 I SurfaceFlinger: vendor : Android
01-01 00:00:07.873 1132 1132 I SurfaceFlinger: version : 1.4 Android META-EGL
01-01 00:00:07.873 1132 1132 I SurfaceFlinger: extensions: EGL_KHR_get_all_proc_addresses EGL_ANDROID_presentation_time EGL_KHR_swap_buffers_with_damage EGL_ANDROID_get_native_client_buffer EGL_ANDROID_front_buffer_auto_refresh EGL_ANDROID_get_frame_timestamps EGL_EXT_surface_SMPTE2086_metadata EGL_EXT_surface_CTA861_3_metadata EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_KHR_lock_surface EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_reusable_sync EGL_KHR_fence_sync EGL_KHR_create_context EGL_KHR_surfaceless_context EGL_EXT_create_context_robustness EGL_ANDROID_image_native_buffer EGL_KHR_wait_sync EGL_ANDROID_recordable EGL_EXT_buffer_age EGL_EXT_protected_content
01-01 00:00:07.873 1132 1132 I SurfaceFlinger: Client API: OpenGL_ES
01-01 00:00:07.873 1132 1132 I SurfaceFlinger: EGLSurface: 8-8-8-8, config=0xb
01-01 00:00:07.876 1132 1132 F SurfaceFlinger: EGLContext creation failed
--------- beginning of crash
01-01 00:00:07.876 1132 1132 F libc : Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 1132 (surfaceflinger), pid 1132 (surfaceflinger)
01-01 00:00:07.896 1245 1245 I crash_dump64: type=1400 audit(0.0:193): avc: denied { getattr } for path="/vendor" dev="mmcblk0p2" ino=63 scontext=u:r:crash_dump:s0 tcontext=u:object_r:unlabeled:s0 tclass=lnk_file permissive=1
01-01 00:00:07.896 1245 1245 I crash_dump64: type=1400 audit(0.0:194): avc: denied { read } for name="vendor" dev="mmcblk0p2" ino=63 scontext=u:r:crash_dump:s0 tcontext=u:object_r:unlabeled:s0 tclass=lnk_file permissive=1
01-01 00:00:07.896 1245 1245 I crash_dump64: type=1400 audit(0.0:195): avc: denied { getattr } for path="/odm" dev="mmcblk0p2" ino=32 scontext=u:r:crash_dump:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
01-01 00:00:07.924 1245 1245 E cutils-trace: Error opening trace file: No such file or directory (2)
01-01 00:00:07.934 1246 1246 I crash_dump64: obtaining output fd from tombstoned, type: kDebuggerdTombstone
01-01 00:00:07.935 1151 1151 I /system/bin/tombstoned: received crash request for pid 1132
01-01 00:00:07.939 1246 1246 I crash_dump64: performing dump of process 1132 (target tid = 1132)
01-01 00:00:07.944 1246 1246 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
01-01 00:00:07.944 1246 1246 F DEBUG : Build fingerprint: 'Android/treeruner/treeruner:9/PQ1A.181205.006.A1/fsoft01030950:eng/debug,test-keys'
01-01 00:00:07.944 1246 1246 F DEBUG : Revision: '0'
01-01 00:00:07.944 1246 1246 F DEBUG : ABI: 'arm64'
01-01 00:00:07.944 1246 1246 F DEBUG : pid: 1132, tid: 1132, name: surfaceflinger >>> /system/bin/surfaceflinger <<<
01-01 00:00:07.944 1246 1246 F DEBUG : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
01-01 00:00:07.944 1246 1246 F DEBUG : Abort message: 'EGLContext creation failed'
01-01 00:00:07.944 1246 1246 F DEBUG : x0 0000000000000000 x1 000000000000046c x2 0000000000000006 x3 0000000000000008
01-01 00:00:07.944 1246 1246 F DEBUG : x4 0000000000000000 x5 0000000000000000 x6 0000000000000000 x7 0000000000000080
01-01 00:00:07.944 1246 1246 F DEBUG : x8 0000000000000083 x9 00000075a1df5738 x10 fffffff87fffffdf x11 0000000000000001
01-01 00:00:07.944 1246 1246 F DEBUG : x12 0000007fcc82b4c0 x13 0000000000000038 x14 ffffffffffffffff x15 0000059038000000
01-01 00:00:07.944 1246 1246 F DEBUG : x16 00000075a1e312a8 x17 00000075a1d6f220 x18 0000007fcc82acaa x19 000000000000046c
01-01 00:00:07.944 1246 1246 F DEBUG : x20 000000000000046c x21 0000000000000083 x22 00000075a2f125e0 x23 000000000000000b
01-01 00:00:07.944 1246 1246 F DEBUG : x24 0000000000000001 x25 0000000000000000 x26 0000000000000000 x27 0000007fcc82b980
01-01 00:00:07.945 1246 1246 F DEBUG : x28 0000007fcc82bac0 x29 0000007fcc82b3e0
01-01 00:00:07.945 1246 1246 F DEBUG : sp 0000007fcc82b3a0 lr 00000075a1d639d8 pc 00000075a1d63a04
01-01 00:00:07.965 1246 1246 F DEBUG :
01-01 00:00:07.965 1246 1246 F DEBUG : backtrace:
01-01 00:00:07.965 1246 1246 F DEBUG : #00 pc 0000000000021a04 /system/lib64/libc.so (abort+124)
01-01 00:00:07.965 1246 1246 F DEBUG : #01 pc 00000000000080f8 /system/lib64/liblog.so (__android_log_assert+296)
01-01 00:00:07.965 1246 1246 F DEBUG : #02 pc 00000000000a03f8 /system/lib64/libsurfaceflinger.so (android::RE::impl::RenderEngine::create(int, unsigned int)+1400)
01-01 00:00:07.965 1246 1246 F DEBUG : #03 pc 00000000000a55e8 /system/lib64/libsurfaceflinger.so (android::SurfaceFlinger::init()+832)
01-01 00:00:07.965 1246 1246 F DEBUG : #04 pc 0000000000002f48 /system/bin/surfaceflinger (main+320)
01-01 00:00:07.965 1246 1246 F DEBUG : #05 pc 00000000000ab4f0 /system/lib64/libc.so (__libc_init+88)
01-01 00:00:08.009 1115 1115 D AndroidRuntime: >>>>>> START com.android.internal.os.ZygoteInit uid 0 <<<<<<
01-01 00:00:08.110 1246 1246 E crash_dump64: unable to connect to activity manager: No such file or directory
01-01 00:00:08.119 1151 1151 E /system/bin/tombstoned: Tombstone written to: /data/tombstones/tombstone_22
01-01 00:00:08.128 1115 1115 E cutils-trace: Error opening trace file: No such file or directory (2)
01-01 00:00:08.132 1 1 I init : type=1400 audit(0.0:196): avc: denied { dac_read_search } for capability=2 scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=capability permissive=1

So my question is, Does NXP provide open gles library for s32v234 board? and where can I get them?

0 Kudos
Reply
0 Replies