Android 5.0 on iMX6Q

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

Android 5.0 on iMX6Q

Jump to solution
4,039 Views
ddejean
Contributor II

Hello Community !

I'm trying to port Android 5.0 to a board based on iMX6Q processor with Vivante Vivante GC2000 GPU. Im' facing the followin crash during the boot:

D/OpenGLRenderer( 2931): Render dirty regions requested: true

D/Atlas   ( 2931): Validating map...

D/PhoneStatusBar( 2931): disable: < expand icons alerts system_info back home recent clock search >

E/BluetoothAdapter( 2931): Bluetooth binder is null

D/PhoneStatusBar( 2931): heads up is enabled

I/art     ( 2931): Clamp target GC heap from 19MB to 16MB

E/BufferQueueProducer( 2274): [com.android.systemui.ImageWallpaper] dequeueBuffer: can't dequeue multiple buffers without setting the buffer count

I/Choreographer( 2931): Skipped 67 frames!  The application may be doing too much work on its main thread.

D/ViewRootImpl( 2931): changeCanvasOpacity: opaque=true

I/OpenGLRenderer( 2931): Initialized EGL, version 1.4

D/OpenGLRenderer( 2931): Enabling debug mode 0

E/BufferQueueProducer( 2274): [StatusBar] dequeueBuffer: can't dequeue multiple buffers without setting the buffer count

D/WifiService( 2834): New client listening to asynchronous messages

D/OpenGLRenderer( 2931): setting property extraRasterBucket to 0.95

D/OpenGLRenderer( 2931):     failed

D/OpenGLRenderer( 2931): setting property extraRasterBucket to 0.0

D/OpenGLRenderer( 2931):     failed

E/BufferQueueProducer( 2274): [StatusBar] dequeueBuffer: can't dequeue multiple buffers without setting the buffer count

F/OpenGLRenderer( 2931): Encountered EGL error 12299 EGL_BAD_NATIVE_WINDOW during rendering

F/libc    ( 2931): Fatal signal 6 (SIGABRT), code -6 in tid 3227 (RenderThread)

I/DEBUG   ( 2277): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

I/DEBUG   ( 2277): Build fingerprint: 'BT-Ground/btbox/btbox:5.0/LRX21V/ddejean12041005:userdebug/test-keys'

I/DEBUG   ( 2277): Revision: '405522'

I/DEBUG   ( 2277): ABI: 'arm'

I/DEBUG   ( 2277): pid: 2931, tid: 3227, name: RenderThread  >>> com.android.systemui <<<

I/DEBUG   ( 2277): signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------

I/DEBUG   ( 2277): Abort message: 'Encountered EGL error 12299 EGL_BAD_NATIVE_WINDOW during rendering'

E/DEBUG   ( 2277): AM write failure (32 / Broken pipe)

I/DEBUG   ( 2277):     r0 00000000  r1 00000c9b  r2 00000006  r3 00000000

I/DEBUG   ( 2277):     r4 4c515db8  r5 00000006  r6 00000002  r7 0000010c

I/DEBUG   ( 2277):     r8 4bd012ac  r9 4c515d08  sl 400ff5c9  fp 4c515db0

I/DEBUG   ( 2277):     ip 00000c9b  sp 4c5157c8  lr 400ffe01  pc 40123c18  cpsr 600f0010

I/DEBUG   ( 2277):

I/DEBUG   ( 2277): backtrace:

I/DEBUG   ( 2277):     #00 pc 0003ac18  /system/lib/libc.so (tgkill+12)

I/DEBUG   ( 2277):     #01 pc 00016dfd  /system/lib/libc.so (pthread_kill+52)

I/DEBUG   ( 2277):     #02 pc 00017a1b  /system/lib/libc.so (raise+10)

I/DEBUG   ( 2277):     #03 pc 00014271  /system/lib/libc.so (__libc_android_abort+36)

I/DEBUG   ( 2277):     #04 pc 00012a40  /system/lib/libc.so (abort+4)

I/DEBUG   ( 2277):     #05 pc 00007b65  /system/lib/libcutils.so (__android_log_assert+88)

I/DEBUG   ( 2277):     #06 pc 0003cae5  /system/lib/libhwui.so

I/DEBUG   ( 2277):     #07 pc 0003b589  /system/lib/libhwui.so

I/DEBUG   ( 2277):     #08 pc 0003b745  /system/lib/libhwui.so

I/DEBUG   ( 2277):     #09 pc 0003c631  /system/lib/libhwui.so

I/DEBUG   ( 2277):     #10 pc 0003e12f  /system/lib/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+66)

I/DEBUG   ( 2277):     #11 pc 00010531  /system/lib/libutils.so (android::Thread::_threadLoop(void*)+112)

I/DEBUG   ( 2277):     #12 pc 0005e035  /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+72)

I/DEBUG   ( 2277):     #13 pc 000100a1  /system/lib/libutils.so

I/DEBUG   ( 2277):     #14 pc 000165e7  /system/lib/libc.so (__pthread_start(void*)+30)

I/DEBUG   ( 2277):     #15 pc 000145db  /system/lib/libc.so (__start_thread+6)

I/DEBUG   ( 2277):

I/DEBUG   ( 2277): Tombstone written to: /data/tombstones/tombstone_03


I'm trying to determine waht should change or what I missed to avoid this crash. Could you help me ?


Thanks,


Damien.

Labels (2)
0 Kudos
1 Solution
1,386 Views
igorpadykov
NXP Employee
NXP Employee

Hi Damien

I think it is possible using local FAE/marketing channel.

~igor

View solution in original post

0 Kudos
8 Replies
1,386 Views
igorpadykov
NXP Employee
NXP Employee

Hi Damien

probably you used wrong Vivante drivers.

Each kernel version uses own set of Vivante drivers, one can

look through

i.MX6Q|i.MX 6Quad Processors|Quad Core|Freescale

FSL Community BSP 1.7 (L3.10.31) dizzy documentation

http://freescale.github.io/doc/release-notes/1.7/index.html

Best regards

igor

1,386 Views
ddejean
Contributor II

Hi Igor,

Thanks for your answer, I'll check. But I'm surprised 'cause I'm starting from Android Freescale 4.4 release which seems to run on a 3.0.35 kernel, can you confirm ?

Best regards,

Damien.

0 Kudos
1,386 Views
igorpadykov
NXP Employee
NXP Employee

Hi Damien

yes it is 3.0.35 kernel. You can try attached latest patches ported to KK4.4.2.

~igor

0 Kudos
1,386 Views
ddejean
Contributor II

Hi Igor !

I tryied the patches you gave me, but it does nothing :smileysad:

After a small investigation I discovered that the EGL_BAD_PARAMETER was nothing except a small warning in android libEGL. But the EGL_BAD_NATIVE_WINDOW during eglSwapBuffers() is still there. I saw the post about Freescale Android porting Android 5.0 with working display (here: https://community.freescale.com/docs/DOC-102786). Could anyone give me an hint to fix this ?

Thanks in advance,

Damien.

0 Kudos
1,386 Views
igorpadykov
NXP Employee
NXP Employee

Hi Damien

I think on that link was used Android with 3.10.31 kernel (from new upcoming

release) and new gpu libraries

http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/log/?h=imx_3.10.31_1.1.0_beta

also I would suggest to post this to meta-fsl-arm mailing list, so that someone familiar with

your board and OpenGLES could try to assist you.

https://lists.yoctoproject.org/listinfo/meta-freescale

Best regards

igor

1,386 Views
ddejean
Contributor II

Thanks for the hint. Would it be possible to get a "preview version" of the binaries for Android 5.0 ? I mean I'll be able to update the kernel but not the gpu librairies ...

0 Kudos
1,387 Views
igorpadykov
NXP Employee
NXP Employee

Hi Damien

I think it is possible using local FAE/marketing channel.

~igor

0 Kudos
1,386 Views
ddejean
Contributor II

Thanks for the patches.I'm currently running on the kernel provided by the board manufacturer (UDOO) and the patches do not apply. I'm gonna try with Freescale-only kernel.

Meanwhile you gave me an idea, I updated the proprietary blobs from Freescale and I don't have EGL_BAD_DISPLAY at startup anymore, but now regularly the following trace appears:

E/libEGL  ( 2274): eglSetSwapRectangleANDROID:1566 error 300c (EGL_BAD_PARAMETER)

and later the crash:

E/libEGL  ( 2274): eglSetSwapRectangleANDROID:1566 error 300c (EGL_BAD_PARAMETER)

D/Launcher( 2865): 11683562 - bindAddScreens()

D/Launcher( 2865): 11683562 -   orderedScreenIds:

D/Launcher.Workspace( 2865): 11683562 - addExtraEmptyScreen()

D/Launcher.Workspace( 2865): 11683562 - insertNewWorkspaceScreen(): -201 at index: 0

I/ActivityManager( 2572): Displayed com.android.launcher3/.Launcher: +1s803ms

I/art     ( 2572): Background sticky concurrent mark sweep GC freed 12852(897KB) AllocSpace objects, 6(449KB) LOS objects, 10% free, 12MB/13MB, paused 24.806ms total 91.806ms

I/OpenGLRenderer( 2664): setSurface(0x0x45f48408) -> createSurface

I/OpenGLRenderer( 2664): Initialized EGL, version 1.4

D/OpenGLRenderer( 2664): Enabling debug mode 0

E/BufferQueueProducer( 2274): [com.android.launcher3/com.android.launcher3.Launcher] dequeueBuffer: can't dequeue multiple buffers without setting the buffer count

E/BufferQueueProducer( 2274): [StatusBar] dequeueBuffer: can't dequeue multiple buffers without setting the buffer count

F/OpenGLRenderer( 2865): Encountered EGL error 12299 EGL_BAD_NATIVE_WINDOW during rendering

--------- beginning of crash

F/libc    ( 2865): Fatal signal 6 (SIGABRT), code -6 in tid 3008 (RenderThread)

I/OpenGLRenderer( 2664): EGLSurface 1240501920 created from 0x45f48408

I/DEBUG   ( 2277): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

I/DEBUG   ( 2277): Build fingerprint: 'BT-Ground/btbox/btbox:5.0/LRX21V/ddejean12041005:userdebug/test-keys'

I/DEBUG   ( 2277): Revision: '405522'

I/DEBUG   ( 2277): ABI: 'arm'

I/DEBUG   ( 2277): pid: 2865, tid: 3008, name: RenderThread  >>> com.android.launcher3 <<<

I/DEBUG   ( 2277): signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------

I/DEBUG   ( 2277): Abort message: 'Encountered EGL error 12299 EGL_BAD_NATIVE_WINDOW during rendering'

I/DEBUG   ( 2277):     r0 00000000  r1 00000bc0  r2 00000006  r3 00000000

I/DEBUG   ( 2277):     r4 4b5fddb8  r5 00000006  r6 00000002  r7 0000010c

I/DEBUG   ( 2277):     r8 516a3f2c  r9 4b5fdd08  sl 402225c9  fp 4b5fddb0

I/DEBUG   ( 2277):     ip 00000bc0  sp 4b5fd7c8  lr 40222e01  pc 40246c18  cpsr 600f0010

I/DEBUG   ( 2277):

I/DEBUG   ( 2277): backtrace:

I/DEBUG   ( 2277):     #00 pc 0003ac18  /system/lib/libc.so (tgkill+12)

I/DEBUG   ( 2277):     #01 pc 00016dfd  /system/lib/libc.so (pthread_kill+52)

I/DEBUG   ( 2277):     #02 pc 00017a1b  /system/lib/libc.so (raise+10)

I/DEBUG   ( 2277):     #03 pc 00014271  /system/lib/libc.so (__libc_android_abort+36)

I/DEBUG   ( 2277):     #04 pc 00012a40  /system/lib/libc.so (abort+4)

I/DEBUG   ( 2277):     #05 pc 00007b65  /system/lib/libcutils.so (__android_log_assert+88)

I/DEBUG   ( 2277):     #06 pc 0003cb19  /system/lib/libhwui.so

I/DEBUG   ( 2277):     #07 pc 0003b5bd  /system/lib/libhwui.so

I/DEBUG   ( 2277):     #08 pc 0003b779  /system/lib/libhwui.so

I/DEBUG   ( 2277):     #09 pc 0003c665  /system/lib/libhwui.so

I/DEBUG   ( 2277):     #10 pc 0003e17f  /system/lib/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+66)

I/DEBUG   ( 2277):     #11 pc 00010531  /system/lib/libutils.so (android::Thread::_threadLoop(void*)+112)

I/DEBUG   ( 2277):     #12 pc 0005e035  /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+72)

I/DEBUG   ( 2277):     #13 pc 000100a1  /system/lib/libutils.so

I/DEBUG   ( 2277):     #14 pc 000165e7  /system/lib/libc.so (__pthread_start(void*)+30)

I/DEBUG   ( 2277):     #15 pc 000145db  /system/lib/libc.so (__start_thread+6)

I'm still investigating, I'll keep you in touch.

0 Kudos