AnsweredAssumed Answered

Android 9(Pie) Bringup issue on imx based custom Board : Problem with surfaceflinger

Question asked by aks aks on Jul 30, 2020
Latest reply on Aug 10, 2020 by Joan Xie

We are trying to bringing up Android 9-pie on imx based custom board. We are facing problem with board bring up. Device is not booting properly and continuously rebooting. We noticed problem with surfaceflinger. Surfaceflinger related errors from logs are highlighted here and also attached full log file for reference purpose. PFA for log file.
Please, Check it and provide the solution for it.


Boot.scr Kernel Command Line Setting:
setenv bootargs "$bootargs console=${console},115200 vmalloc=264M consoleblank=0 rootwait androidboot.console=$console,115200 androidboot.selinux=permisssive androidboot.selinux=disabled early_printk verity=0 androidboot.veritymode=logging androidboot.dm_verity=disabled androidboot.watchdogd=disabled androidboot.primary_display=imx-drm  firmware_class.path=/vendor/firmware androidboot.fbTileSupport=enable init=/init"


Faced Error/Problem:
init: starting service 'surfaceflinger'...
android_work: sent uevent USB_STATE=DISCONNECTED
logd.auditd: 45 output lines suppressed due to ratelimiting
DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
DEBUG: Build fingerprint: 'Android/cid/cid:9/2.2.0-ga-rc3/irrayaneperi07220421:eng/dev-keys'
DEBUG: Revision: '0'
DEBUG: ABI: 'arm'
DEBUG: pid: 664, tid: 664, name: surfaceflinger  >>> /system/bin/surfaceflinger <<<
DEBUG: signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
DEBUG: Abort message: 'EGLContext creation failed'
DEBUG:     r0  00000000  r1  00000298  r2  00000006  r3  abce0700
DEBUG:     r4  00000298  r5  00000298  r6  bee72fb4  r7  0000010c
DEBUG:     r8  00000001  r9  ab62d550  r10 00000001  r11 0000000b
DEBUG:     ip  bee73450  sp  bee72fa0  lr  abc6c0ad  pc  abc63e3a
DEBUG: backtrace:
DEBUG:     #00 pc 0001ce3a  /system/lib/ (abort+62)
DEBUG:     #01 pc 00006dd5  /system/lib/ (__android_log_assert+156)
DEBUG:     #02 pc 0006d3bf  /system/lib/ (android::RE::impl::RenderEngine::create(int, unsigned int)+950)
DEBUG:     #03 pc 00071257  /system/lib/ (android::SurfaceFlinger::init()+606)
DEBUG:     #04 pc 00002679  /system/bin/surfaceflinger (main+232)
DEBUG:     #05 pc 0008bd29  /system/lib/ (__libc_init+48)
DEBUG:     #06 pc 0000254f  /system/bin/surfaceflinger (_start_main+46)
DEBUG:     #07 pc 00018037  /system/bin/linker (__dl__ZN6soinfoD1Ev+14)
DEBUG:     #08 pc 00020add  [stack:bee53000]
ci_hdrc ci_hdrc.1: remove, state 1


Waiting for your reply.