EGL_BAD_ALLOC on Android

Started by tonvi, January 09, 2014, 05:39:06 PM

Previous topic - Next topic

tonvi

 hi guys
I have some problem with Android 4.0.3 on the a13 board

when I try to boot with a kernel image (v 3.0.8+) that I've recompiled

I get the following error at boot time:

D/dalvikvm(  317): GC_EXPLICIT freed 36K, 9% free 2224K/2435K, paused 2ms+2ms
D/libEGL  (  322): loaded /system/lib/egl/libGLESv1_CM_mali.so
D/libEGL  (  322): loaded /system/lib/egl/libGLESv2_mali.so
W/libEGL  (  322): 0: eglInitialize(0x1) failed (EGL_BAD_ALLOC)
E/libEGL  (  322): initialize:290 error 3001 (EGL_NOT_INITIALIZED)
E/libEGL  (  322): validate_display:190 error 3001 (EGL_NOT_INITIALIZED)
E/libEGL  (  322): validate_display:190 error 3001 (EGL_NOT_INITIALIZED)
F/libc    (  322): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1)


And the screen remains black.

It seems that I don't have the right version of libGLESv1_CM_mali.so and libGLESv2_mali.so
Any hints about how I can solve this problem?

the version of mali.ko e ump.ko is DX910-SW-99002-r2p3-01rel0
I got this from the kernel sources...

Thank you

tonvi

I've solved this problem on my own. It was due to a mismatch between the driver version and the gralloc library version.

In the current precompiled version, the gralloc library expects version:

DX910-SW-99002-r2p4-02rel1

So, you have to compile this version to make things work.

Bye