[ROM][4.4][UNOFFICIAL] CM11 without graphics

Search This thread
Feb 11, 2014
29
31
Hey there,

It is time to publish my CM11 tree for our Razr I phones.

There is nothing working so far.

It's a stock CM11 tree with integrated kernel from oxavelar (https://github.com/oxavelar/XT890-Kernel-Gamma), many things taken from hazou (https://github.com/HazouPH/android_device_motorola_smi) and surfaceflinger patches from steven676 (https://gist.github.com/steven676/7276901).

Recovery PHILZ 6.14.2 (CWM v6.0.4.7) should be working fine, although mount paths are not setup really well (vold mounts missing, aromafm can't automount). There might also be some confusion around the SD card paths, so I really recommend not to use it for wiping and backing up any SD related stuff. As recovery does work fine for installing and backing up, I post a fastboot flashable recovery.img. Note: This is really not well tested by me!
Additional Warning: You may lose your data on INTERNAL SD when you wipe DATA!
To use aromafm, push the supplied aromafm.zip to /external_sd/clockworkmod/aromafm/aromafm.zip using adb in recovery or your running rom (then use the stock path for external SD. Internal should also work but I prefer not to use that)

You can find recovery here: http://android.matthias-larisch.de/razr-i/recovery/

Device tree is here: https://github.com/NerdyProjects/android_device_motorola_smi

More Github links to other forked projects will follow shortly, there are more changes.
 
Last edited:
Feb 11, 2014
29
31
So let's begin with talking about some errors:

Code:
D/libEGL  (  128): loaded /vendor/lib/egl/libEGL_POWERVR_SGX540_121.so
D/libEGL  (  128): loaded /vendor/lib/egl/libGLESv1_CM_POWERVR_SGX540_121.so
D/libEGL  (  128): loaded /vendor/lib/egl/libGLESv2_POWERVR_SGX540_121.so
I/GrallocFB(  128): framebuffer opened 
D/hwcomposer(  128): bool IntelHWComposerDrm::drmInit(): successfully. mDrmFd 18
I/SurfaceFlinger(  128): Using composer version 0.0
W/SurfaceFlinger(  128): getting VSYNC period from fb HAL: 16666666
W/SurfaceFlinger(  128): no suitable EGLConfig found, trying without EGL_FRAMEBUFFER_TARGET_ANDROID
W/SurfaceFlinger(  128): no suitable EGLConfig found, trying without EGL_RECORDABLE_ANDROID
I/SurfaceFlinger(  128): EGL informations:
I/SurfaceFlinger(  128): vendor    : Android
I/SurfaceFlinger(  128): version   : 1.4 Android META-EGL
I/SurfaceFlinger(  128): extensions: EGL_KHR_get_all_proc_addresses EGL_ANDROID_presentation_time EGL_KHR_image EGL_KHR_image_base EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_fence_sync EGL_ANDROID_image_native_buffer EGL_ANDROID_recordable 
I/SurfaceFlinger(  128): Client API: OpenGL_ES
I/SurfaceFlinger(  128): EGLSurface: 8-8-8-8, config=0x12
I/SurfaceFlinger(  128): OpenGL ES informations:
I/SurfaceFlinger(  128): vendor    : Imagination Technologies
I/SurfaceFlinger(  128): renderer  : PowerVR SGX 540
I/SurfaceFlinger(  128): version   : OpenGL ES 2.0 build 1.9@2158934
I/SurfaceFlinger(  128): extensions: GL_EXT_debug_marker GL_OES_rgb8_rgba8 GL_OES_depth24 GL_OES_vertex_half_float GL_OES_texture_float GL_OES_texture_half_float GL_OES_element_index_uint GL_OES_mapbuffer GL_OES_fragment_precision_high GL_OES_compressed_ETC1_RGB8_texture GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_required_internalformat GL_OES_depth_texture GL_OES_get_program_binary GL_OES_packed_depth_stencil GL_OES_standard_derivatives GL_OES_vertex_array_object GL_OES_egl_sync GL_EXT_multi_draw_arrays GL_EXT_texture_format_BGRA8888 GL_EXT_discard_framebuffer GL_EXT_shader_texture_lod GL_IMG_shader_binary GL_IMG_texture_compression_pvrtc GL_IMG_texture_npot GL_IMG_texture_format_BGRA8888 GL_IMG_read_format GL_IMG_program_binary GL_IMG_uniform_buffer_object GL_IMG_multisampled_render_to_texture
I/SurfaceFlinger(  128): GL_MAX_TEXTURE_SIZE = 2048
I/SurfaceFlinger(  128): GL_MAX_VIEWPORT_DIMS = 2048
E/cutils-trace(  128): Error opening trace file: No such file or directory (2)
E/IMGSRV  (  128): :0: ValidateWindowConfigFormat: Window and Config pixel formats do not match
E/IMGSRV  (  128): :0: ValidateWindowConfigFormat: Window format was 1, Config format was 5
E/libEGL  (  128): eglQuerySurface:590 error 300d (EGL_BAD_SURFACE)
E/libEGL  (  128): eglQuerySurface:590 error 300d (EGL_BAD_SURFACE)
E/libEGL  (  128): call to OpenGL ES API with no current context (logged once per thread)
D/SurfaceFlinger(  128): Screen acquired, type=0 flinger=0xb94bf820
D/hwcomposer(  128): int IntelDisplayPlaneManager::setZOrderConfig(int, int): set zorder: 3
E/IMGSRV  (  128): :0: compositionComplete: GLESFlushBuffersGCNoContext failed
E/IMGSRV  (  128): :0: compositionComplete: Foreign (probably software) GLES detected! Enabling workarounds.
E/libEGL  (  128): validate_display:254 error 3008 (EGL_BAD_DISPLAY)
E/hwcomposer(  128): int hwc_set(hwc_composer_device_t*, hwc_display_t, hwc_surface_t, hwc_layer_list_t*): failed to commit
D/libEGL  (  195): loaded /vendor/lib/egl/libEGL_POWERVR_SGX540_121.so
D/libEGL  (  195): loaded /vendor/lib/egl/libGLESv1_CM_POWERVR_SGX540_121.so
E/libEGL  (  128): validate_display:254 error 3008 (EGL_BAD_DISPLAY)
E/hwcomposer(  128): int hwc_set(hwc_composer_device_t*, hwc_display_t, hwc_surface_t, hwc_layer_list_t*): failed to commit
D/libEGL  (  195): loaded /vendor/lib/egl/libGLESv2_POWERVR_SGX540_121.so
E/cutils-trace(  195): Error opening trace file: No such file or directory (2)
E/IMGSRV  (  195): :0: ValidateWindowConfigFormat: Window and Config pixel formats do not match
E/IMGSRV  (  195): :0: ValidateWindowConfigFormat: Window format was 1, Config format was 5
I/AudioPolicyManagerBase(  131): loadAudioPolicyConfig() loaded /system/etc/audio_policy.conf
E/libEGL  (  195): eglQuerySurface:590 error 300d (EGL_BAD_SURFACE)
E/libEGL  (  195): eglQuerySurface:590 error 300d (EGL_BAD_SURFACE)
E/libEGL  (  195): eglMakeCurrent:775 error 3009 (EGL_BAD_MATCH)
E/libEGL  (  128): validate_display:254 error 3008 (EGL_BAD_DISPLAY)
E/hwcomposer(  128): int hwc_set(hwc_composer_device_t*, hwc_display_t, hwc_surface_t, hwc_layer_list_t*): failed to commit

Graphics is therefore not working. I also looked into the Samsung Galaxy Tab 3 10.1 porting effort and they seemed to not have any problem with the GFX at this stage. They have SGX544, though. Any ideas? Does also not work without surfaceflinger patches (Open-GL ES1.1 fallback). The ValidateWindowConfigFormat errors are the problems, I think.
 

YaPeL

Senior Member
Mar 1, 2011
453
154
Graphics is therefore not working. I also looked into the Samsung Galaxy Tab 3 10.1 porting effort and they seemed to not have any problem with the GFX at this stage. They have SGX544, though. Any ideas? Does also not work without surfaceflinger patches (Open-GL ES1.1 fallback). The ValidateWindowConfigFormat errors are the problems, I think.

You are going to be more lucky looking at the patches from the galaxy nexus since we share the same gpu.
 

Hazou

Senior Member
Feb 5, 2012
1,644
2,216
So let's begin with talking about some errors:

Code:
D/libEGL  (  128): loaded /vendor/lib/egl/libEGL_POWERVR_SGX540_121.so
D/libEGL  (  128): loaded /vendor/lib/egl/libGLESv1_CM_POWERVR_SGX540_121.so
D/libEGL  (  128): loaded /vendor/lib/egl/libGLESv2_POWERVR_SGX540_121.so
I/GrallocFB(  128): framebuffer opened 
D/hwcomposer(  128): bool IntelHWComposerDrm::drmInit(): successfully. mDrmFd 18
I/SurfaceFlinger(  128): Using composer version 0.0
W/SurfaceFlinger(  128): getting VSYNC period from fb HAL: 16666666
W/SurfaceFlinger(  128): no suitable EGLConfig found, trying without EGL_FRAMEBUFFER_TARGET_ANDROID
W/SurfaceFlinger(  128): no suitable EGLConfig found, trying without EGL_RECORDABLE_ANDROID
I/SurfaceFlinger(  128): EGL informations:
I/SurfaceFlinger(  128): vendor    : Android
I/SurfaceFlinger(  128): version   : 1.4 Android META-EGL
I/SurfaceFlinger(  128): extensions: EGL_KHR_get_all_proc_addresses EGL_ANDROID_presentation_time EGL_KHR_image EGL_KHR_image_base EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_fence_sync EGL_ANDROID_image_native_buffer EGL_ANDROID_recordable 
I/SurfaceFlinger(  128): Client API: OpenGL_ES
I/SurfaceFlinger(  128): EGLSurface: 8-8-8-8, config=0x12
I/SurfaceFlinger(  128): OpenGL ES informations:
I/SurfaceFlinger(  128): vendor    : Imagination Technologies
I/SurfaceFlinger(  128): renderer  : PowerVR SGX 540
I/SurfaceFlinger(  128): version   : OpenGL ES 2.0 build 1.9@2158934
I/SurfaceFlinger(  128): extensions: GL_EXT_debug_marker GL_OES_rgb8_rgba8 GL_OES_depth24 GL_OES_vertex_half_float GL_OES_texture_float GL_OES_texture_half_float GL_OES_element_index_uint GL_OES_mapbuffer GL_OES_fragment_precision_high GL_OES_compressed_ETC1_RGB8_texture GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_required_internalformat GL_OES_depth_texture GL_OES_get_program_binary GL_OES_packed_depth_stencil GL_OES_standard_derivatives GL_OES_vertex_array_object GL_OES_egl_sync GL_EXT_multi_draw_arrays GL_EXT_texture_format_BGRA8888 GL_EXT_discard_framebuffer GL_EXT_shader_texture_lod GL_IMG_shader_binary GL_IMG_texture_compression_pvrtc GL_IMG_texture_npot GL_IMG_texture_format_BGRA8888 GL_IMG_read_format GL_IMG_program_binary GL_IMG_uniform_buffer_object GL_IMG_multisampled_render_to_texture
I/SurfaceFlinger(  128): GL_MAX_TEXTURE_SIZE = 2048
I/SurfaceFlinger(  128): GL_MAX_VIEWPORT_DIMS = 2048
E/cutils-trace(  128): Error opening trace file: No such file or directory (2)
E/IMGSRV  (  128): :0: ValidateWindowConfigFormat: Window and Config pixel formats do not match
E/IMGSRV  (  128): :0: ValidateWindowConfigFormat: Window format was 1, Config format was 5
E/libEGL  (  128): eglQuerySurface:590 error 300d (EGL_BAD_SURFACE)
E/libEGL  (  128): eglQuerySurface:590 error 300d (EGL_BAD_SURFACE)
E/libEGL  (  128): call to OpenGL ES API with no current context (logged once per thread)
D/SurfaceFlinger(  128): Screen acquired, type=0 flinger=0xb94bf820
D/hwcomposer(  128): int IntelDisplayPlaneManager::setZOrderConfig(int, int): set zorder: 3
E/IMGSRV  (  128): :0: compositionComplete: GLESFlushBuffersGCNoContext failed
E/IMGSRV  (  128): :0: compositionComplete: Foreign (probably software) GLES detected! Enabling workarounds.
E/libEGL  (  128): validate_display:254 error 3008 (EGL_BAD_DISPLAY)
E/hwcomposer(  128): int hwc_set(hwc_composer_device_t*, hwc_display_t, hwc_surface_t, hwc_layer_list_t*): failed to commit
D/libEGL  (  195): loaded /vendor/lib/egl/libEGL_POWERVR_SGX540_121.so
D/libEGL  (  195): loaded /vendor/lib/egl/libGLESv1_CM_POWERVR_SGX540_121.so
E/libEGL  (  128): validate_display:254 error 3008 (EGL_BAD_DISPLAY)
E/hwcomposer(  128): int hwc_set(hwc_composer_device_t*, hwc_display_t, hwc_surface_t, hwc_layer_list_t*): failed to commit
D/libEGL  (  195): loaded /vendor/lib/egl/libGLESv2_POWERVR_SGX540_121.so
E/cutils-trace(  195): Error opening trace file: No such file or directory (2)
E/IMGSRV  (  195): :0: ValidateWindowConfigFormat: Window and Config pixel formats do not match
E/IMGSRV  (  195): :0: ValidateWindowConfigFormat: Window format was 1, Config format was 5
I/AudioPolicyManagerBase(  131): loadAudioPolicyConfig() loaded /system/etc/audio_policy.conf
E/libEGL  (  195): eglQuerySurface:590 error 300d (EGL_BAD_SURFACE)
E/libEGL  (  195): eglQuerySurface:590 error 300d (EGL_BAD_SURFACE)
E/libEGL  (  195): eglMakeCurrent:775 error 3009 (EGL_BAD_MATCH)
E/libEGL  (  128): validate_display:254 error 3008 (EGL_BAD_DISPLAY)
E/hwcomposer(  128): int hwc_set(hwc_composer_device_t*, hwc_display_t, hwc_surface_t, hwc_layer_list_t*): failed to commit

Graphics is therefore not working. I also looked into the Samsung Galaxy Tab 3 10.1 porting effort and they seemed to not have any problem with the GFX at this stage. They have SGX544, though. Any ideas? Does also not work without surfaceflinger patches (Open-GL ES1.1 fallback). The ValidateWindowConfigFormat errors are the problems, I think.

And u did include all the patches from steven about the pixelflinger?
 
Last edited:
Feb 11, 2014
29
31
And u did include all the patches from steven about the pixelflinger?

Jep, I thought I did. I really have to post the rest of the code, it's a bit complicated as I did not use the repo tool for most... Hope to make it this evening.
Patches applied to surfaceflinger:
Workaroung Bug XZ, pbuffer disable, egl2 disable, try-disabling-some-features-before-falling-back-to-egl1.

Following log with pbuffer without egl2:
Code:
BOARD_EGL_WORKAROUND_BUG_10194508 := true
#TARGET_DISABLE_SURFACEFLINGER_PBUFFERS := true
TARGET_DISABLE_SURFACEFLINGER_GLES2 := true

Code:
I/SurfaceFlinger(  127): SurfaceFlinger is starting
I/SurfaceFlinger(  127): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
D/libEGL  (  127): loaded /vendor/lib/egl/libEGL_POWERVR_SGX540_121.so
D/libEGL  (  127): loaded /vendor/lib/egl/libGLESv1_CM_POWERVR_SGX540_121.so
D/libEGL  (  127): loaded /vendor/lib/egl/libGLESv2_POWERVR_SGX540_121.so
I/GrallocFB(  127): framebuffer opened 
D/hwcomposer(  127): bool IntelHWComposerDrm::drmInit(): successfully. mDrmFd 18
I/SurfaceFlinger(  127): Using composer version 0.0
W/SurfaceFlinger(  127): getting VSYNC period from fb HAL: 16666666
W/SurfaceFlinger(  127): OpenGL ES 2.0 disabled for this device
W/SurfaceFlinger(  127): no suitable EGLConfig found, trying OpenGL ES 1.1
W/SurfaceFlinger(  127): no suitable EGLConfig found, trying without EGL_FRAMEBUFFER_TARGET_ANDROID
I/SurfaceFlinger(  127): EGL informations:
I/SurfaceFlinger(  127): vendor    : Android
I/SurfaceFlinger(  127): version   : 1.4 Android META-EGL
I/SurfaceFlinger(  127): extensions: EGL_KHR_get_all_proc_addresses EGL_ANDROID_presentation_time EGL_KHR_image EGL_KHR_image_base EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_fence_sync EGL_ANDROID_image_native_buffer EGL_ANDROID_recordable 
I/SurfaceFlinger(  127): Client API: OpenGL_ES
I/SurfaceFlinger(  127): EGLSurface: 8-8-8-8, config=0x2
E/cutils-trace(  127): Error opening trace file: No such file or directory (2)
E/IMGSRV  (  127): :0: ValidateWindowConfigFormat: Window and Config pixel formats do not match
E/IMGSRV  (  127): :0: ValidateWindowConfigFormat: Window format was 1, Config format was 5
E/libEGL  (  127): eglQuerySurface:590 error 300d (EGL_BAD_SURFACE)
E/libEGL  (  127): eglQuerySurface:590 error 300d (EGL_BAD_SURFACE)
E/libEGL  (  127): eglMakeCurrent:775 error 3009 (EGL_BAD_MATCH)
I/SurfaceFlinger(  127): OpenGL ES informations:
I/SurfaceFlinger(  127): vendor    : Imagination Technologies
I/SurfaceFlinger(  127): renderer  : PowerVR SGX 540
I/SurfaceFlinger(  127): version   : OpenGL ES-CM 1.1
I/SurfaceFlinger(  127): extensions: GL_EXT_debug_marker GL_OES_byte_coordinates GL_OES_fixed_point GL_OES_single_precision GL_OES_matrix_get GL_OES_read_format GL_OES_compressed_paletted_texture GL_OES_point_sprite GL_OES_point_size_array GL_OES_matrix_palette GL_OES_draw_texture GL_OES_query_matrix GL_OES_texture_env_crossbar GL_OES_texture_mirrored_repeat GL_OES_texture_cube_map GL_OES_blend_subtract GL_OES_blend_func_separate GL_OES_blend_equation_separate GL_OES_stencil_wrap GL_OES_extended_matrix_palette GL_OES_framebuffer_object GL_OES_rgb8_rgba8 GL_OES_depth24 GL_OES_stencil8 GL_OES_compressed_ETC1_RGB8_texture GL_OES_mapbuffer GL_OES_EGL_image GL_OES_EGL_image_external GL_EXT_multi_draw_arrays GL_OES_required_internalformat GL_IMG_read_format GL_IMG_texture_compression_pvrtc GL_IMG_texture_format_BGRA8888 GL_EXT_texture_format_BGRA8888 GL_OES_egl_sync GL_IMG_vertex_array_object GL_APPLE_texture_2D_limited_npot
I/SurfaceFlinger(  127): GL_MAX_TEXTURE_SIZE = 2048
I/SurfaceFlinger(  127): GL_MAX_VIEWPORT_DIMS = 2048
D/SurfaceFlinger(  127): Screen acquired, type=0 flinger=0xb790d820
D/hwcomposer(  127): int IntelDisplayPlaneManager::setZOrderConfig(int, int): set zorder: 3
E/SurfaceFlinger(  127): GL error 0x0501
E/libEGL  (  127): eglMakeCurrent:775 error 3009 (EGL_BAD_MATCH)
E/IMGSRV  (  127): :0: Post2: Passed an empty slot for the composition buffer, but no composition was posted since last Post2()
E/hwcomposer(  127): bool IntelHWComposer::commit(hwc_display_t, hwc_surface_t, hwc_layer_list_t*): Post2 failed with errno -14
E/hwcomposer(  127): int hwc_set(hwc_composer_device_t*, hwc_display_t, hwc_surface_t, hwc_layer_list_t*): failed to commit
E/libEGL  (  127): eglMakeCurrent:775 error 3009 (EGL_BAD_MATCH)
D/libEGL  (  195): loaded /vendor/lib/egl/libEGL_POWERVR_SGX540_121.so
D/libEGL  (  195): loaded /vendor/lib/egl/libGLESv1_CM_POWERVR_SGX540_121.so
D/libEGL  (  195): loaded /vendor/lib/egl/libGLESv2_POWERVR_SGX540_121.so
E/cutils-trace(  195): Error opening trace file: No such file or directory (2)
E/SurfaceFlinger(  127): GL error 0x0501
E/libEGL  (  127): eglMakeCurrent:775 error 3009 (EGL_BAD_MATCH)
E/IMGSRV  (  127): :0: Post2: Passed an empty slot for the composition buffer, but no composition was posted since last Post2()
E/hwcomposer(  127): bool IntelHWComposer::commit(hwc_display_t, hwc_surface_t, hwc_layer_list_t*): Post2 failed with errno -14
E/hwcomposer(  127): int hwc_set(hwc_composer_device_t*, hwc_display_t, hwc_surface_t, hwc_layer_list_t*): failed to commit
E/libEGL  (  127): eglMakeCurrent:775 error 3009 (EGL_BAD_MATCH)
E/IMGSRV  (  195): :0: ValidateWindowConfigFormat: Window and Config pixel formats do not match
E/IMGSRV  (  195): :0: ValidateWindowConfigFormat: Window format was 1, Config format was 5
E/libEGL  (  195): eglQuerySurface:590 error 300d (EGL_BAD_SURFACE)
E/libEGL  (  195): eglQuerySurface:590 error 300d (EGL_BAD_SURFACE)
E/libEGL  (  195): eglMakeCurrent:775 error 3009 (EGL_BAD_MATCH)
E/SurfaceFlinger(  127): GL error 0x0501
E/libEGL  (  127): eglMakeCurrent:775 error 3009 (EGL_BAD_MATCH)
E/IMGSRV  (  127): :0: Post2: Passed an empty slot for the composition buffer, but no composition was posted since last Post2()
E/hwcomposer(  127): bool IntelHWComposer::commit(hwc_display_t, hwc_surface_t, hwc_layer_list_t*): Post2 failed with errno -14
E/hwcomposer(  127): int hwc_set(hwc_composer_device_t*, hwc_display_t, hwc_surface_t, hwc_layer_list_t*): failed to commit
E/libEGL  (  127): eglMakeCurrent:775 error 3009 (EGL_BAD_MATCH)
(boot continues as normal)

As I see we should not encounter BUG 10194508 as the disabled feature does not show up in the capability list. I have to say that I never did anything with OpenGL except some very basic vertice programming in Delphi when I was a kid. Did never tinker with any of those error messages above.

Code:
BOARD_EGL_WORKAROUND_BUG_10194508 := true
TARGET_DISABLE_SURFACEFLINGER_PBUFFERS := true
#TARGET_DISABLE_SURFACEFLINGER_GLES2 := true
may be a bit more interesting as it gives us:
Code:
I/SurfaceFlinger(  127): SurfaceFlinger is starting
I/SurfaceFlinger(  127): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
D/libEGL  (  127): loaded /vendor/lib/egl/libEGL_POWERVR_SGX540_121.so
D/libEGL  (  127): loaded /vendor/lib/egl/libGLESv1_CM_POWERVR_SGX540_121.so
D/libEGL  (  127): loaded /vendor/lib/egl/libGLESv2_POWERVR_SGX540_121.so
I/GrallocFB(  127): framebuffer opened 
D/hwcomposer(  127): bool IntelHWComposerDrm::drmInit(): successfully. mDrmFd 18
I/SurfaceFlinger(  127): Using composer version 0.0
W/SurfaceFlinger(  127): getting VSYNC period from fb HAL: 16666666
W/SurfaceFlinger(  127): no suitable EGLConfig found, trying without EGL_FRAMEBUFFER_TARGET_ANDROID
I/SurfaceFlinger(  127): EGL informations:
I/SurfaceFlinger(  127): vendor    : Android
I/SurfaceFlinger(  127): version   : 1.4 Android META-EGL
I/SurfaceFlinger(  127): extensions: EGL_KHR_get_all_proc_addresses EGL_ANDROID_presentation_time EGL_KHR_image EGL_KHR_image_base EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_fence_sync EGL_ANDROID_image_native_buffer EGL_ANDROID_recordable 
I/SurfaceFlinger(  127): Client API: OpenGL_ES
I/SurfaceFlinger(  127): EGLSurface: 8-8-8-8, config=0x13
E/cutils-trace(  127): Error opening trace file: No such file or directory (2)
E/IMGSRV  (  127): :0: ValidateWindowConfigFormat: Window and Config pixel formats do not match
E/IMGSRV  (  127): :0: ValidateWindowConfigFormat: Window format was 1, Config format was 5
E/libEGL  (  127): eglQuerySurface:590 error 300d (EGL_BAD_SURFACE)
E/libEGL  (  127): eglQuerySurface:590 error 300d (EGL_BAD_SURFACE)
E/libEGL  (  127): call to OpenGL ES API with no current context (logged once per thread)
F/libc    (  127): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 127 (surfaceflinger)
I/DEBUG   (  125): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG   (  125): Build fingerprint: 'motorola/cm_smi/smi:4.4.2/KOT49H/e72f0c2fd7:userdebug/test-keys'
I/DEBUG   (  125): Revision: '0'
I/DEBUG   (  125): pid: 127, tid: 127, name: surfaceflinger  >>> /system/bin/surfaceflinger <<<
I/DEBUG   (  125): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000
I/DEBUG   (  125):     eax 00000000  ebx b75fce74  ecx 00000000  edx 00000000
I/DEBUG   (  125):     esi b867f720  edi 00000000
I/DEBUG   (  125):     xcs 00000073  xds 0000007b  xes 0000007b  xfs 00000000  xss 0000007b
I/DEBUG   (  125):     eip b7687076  ebp bfc3143c  esp bfc313cc  flags 00010246
E/Corkscrew(  125): unrecognized DW_CFA_* instruction: 0x10
I/DEBUG   (  125): 
I/DEBUG   (  125): backtrace:
I/DEBUG   (  125):     #00  pc 0005c076  /system/lib/libc.so (strlen+6)
I/DEBUG   (  125):     #01  pc 0001485a  /system/lib/libutils.so (android::String8::setTo(char const*)+42)
I/DEBUG   (  125):     #02  pc 0003f241  /system/lib/libsurfaceflinger.so (android::GLExtensions::initWithGLStrings(unsigned char const*, unsigned char const*, unsigned char const*, unsigned char const*)+49)
I/DEBUG   (  125):     #03  pc 0003f78c  /system/lib/libsurfaceflinger.so (android::RenderEngine::logEGLInfo()+156)
I/DEBUG   (  125):     #04  pc 00041655  /system/lib/libsurfaceflinger.so (android::GLES20RenderEngine::initializeGL()+341)
I/DEBUG   (  125):     #05  pc 0002af69  /system/lib/libsurfaceflinger.so (android::SurfaceFlinger::init()+1033)
I/DEBUG   (  125):     #06  pc 00000931  /system/bin/surfaceflinger (main+209)
I/DEBUG   (  125): 
I/DEBUG   (  125): stack:
I/DEBUG   (  125):          bfc3138c  b7638f89  /system/lib/libc.so (pthread_mutex_unlock+25)
I/DEBUG   (  125):          bfc31390  b867d8c0  [heap]
I/DEBUG   (  125):          bfc31394  bfc313e0  [stack]
I/DEBUG   (  125):          bfc31398  bfc314b8  [stack]
I/DEBUG   (  125):          bfc3139c  b752359e  /system/lib/libEGL.so (android::gl_no_context()+30)
I/DEBUG   (  125):          bfc313a0  00000000  
I/DEBUG   (  125):          bfc313a4  b7523586  /system/lib/libEGL.so (android::gl_no_context()+6)
I/DEBUG   (  125):          bfc313a8  b776a8b4  /system/lib/libsurfaceflinger.so
I/DEBUG   (  125):          bfc313ac  b73eb4c6  /system/lib/libGLESv1_CM.so (glViewport+54)
I/DEBUG   (  125):          bfc313b0  00000000  
I/DEBUG   (  125):          bfc313b4  00000000  
I/DEBUG   (  125):          bfc313b8  b7638db9  /system/lib/libc.so (pthread_mutex_lock+9)
I/DEBUG   (  125):          bfc313bc  b76e3fcc  /system/lib/libc.so
I/DEBUG   (  125):          bfc313c0  00000033  
I/DEBUG   (  125):          bfc313c4  b867f720  [heap]
I/DEBUG   (  125):          bfc313c8  00000000  
I/DEBUG   (  125):     #00  bfc313cc  b75e785b  /system/lib/libutils.so (android::String8::setTo(char const*)+43)
I/DEBUG   (  125):     #01  bfc313d0  00000000  
I/DEBUG   (  125):          bfc313d4  bfc313e0  [stack]
I/DEBUG   (  125):          bfc313d8  00000000  
I/DEBUG   (  125):          bfc313dc  00000000  
I/DEBUG   (  125):          bfc313e0  7f800000  
I/DEBUG   (  125):          bfc313e4  00000000  
I/DEBUG   (  125):          bfc313e8  00000000  
I/DEBUG   (  125):          bfc313ec  00000000  
I/DEBUG   (  125):          bfc313f0  00000000  
I/DEBUG   (  125):          bfc313f4  7f800000  
I/DEBUG   (  125):          bfc313f8  00000000  
I/DEBUG   (  125):          bfc313fc  b776a8b4  /system/lib/libsurfaceflinger.so
I/DEBUG   (  125):          bfc31400  b867f720  [heap]
I/DEBUG   (  125):          bfc31404  00000000  
I/DEBUG   (  125):          bfc31408  bfc3143c  [stack]
I/DEBUG   (  125):          bfc3140c  b7752242  /system/lib/libsurfaceflinger.so (android::GLExtensions::initWithGLStrings(unsigned char const*, unsigned char const*, unsigned char const*, unsigned char const*)+50)
I/DEBUG   (  125):     #02  bfc31410  b867f724  [heap]
I/DEBUG   (  125):          bfc31414  00000000  
I/DEBUG   (  125):          bfc31418  b75fce74  /system/lib/libutils.so
I/DEBUG   (  125):          bfc3141c  b7638f89  /system/lib/libc.so (pthread_mutex_unlock+25)
I/DEBUG   (  125):          bfc31420  b866a030  [heap]
I/DEBUG   (  125):          bfc31424  b75acddc  /system/lib/libEGL.so
I/DEBUG   (  125):          bfc31428  00001f00  
I/DEBUG   (  125):          bfc3142c  b7523595  /system/lib/libEGL.so (android::gl_no_context()+21)
I/DEBUG   (  125):          bfc31430  00000000  
I/DEBUG   (  125):          bfc31434  b7523586  /system/lib/libEGL.so (android::gl_no_context()+6)
I/DEBUG   (  125):          bfc31438  b73f0fe4  /system/lib/libGLESv1_CM.so
I/DEBUG   (  125):          bfc3143c  b73ed67a  /system/lib/libGLESv1_CM.so (glGetString+74)
I/DEBUG   (  125):          bfc31440  00001f00  
I/DEBUG   (  125):          bfc31444  00000004  
I/DEBUG   (  125):          bfc31448  b7752219  /system/lib/libsurfaceflinger.so (android::GLExtensions::initWithGLStrings(unsigned char const*, unsigned char const*, unsigned char const*, unsigned char const*)+9)
I/DEBUG   (  125):          bfc3144c  b776a8b4  /system/lib/libsurfaceflinger.so
I/DEBUG   (  125):          ........  ........

But I cannot debug it with gdbserver as this dies before the SIGSEV. It may have something to do with any unclean disabling of pbuffer in stevens patch? As it segfaults in logEGLinfo I assume it to fail because of the failures right above.

Another one with both patches disabled:

Code:
BOARD_EGL_WORKAROUND_BUG_10194508 := true
#TARGET_DISABLE_SURFACEFLINGER_PBUFFERS := true
#TARGET_DISABLE_SURFACEFLINGER_GLES2 := true

For every try I rebuilt the complete surfaceflinger by removing all objects from surfaceflinger_intermediates and libsurfaceflinger_intermediates and pushing the new files onto the device, this should have been enough.

Code:
I/SurfaceFlinger(  128): SurfaceFlinger is starting
I/SurfaceFlinger(  128): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
D/libEGL  (  128): loaded /vendor/lib/egl/libEGL_POWERVR_SGX540_121.so
D/libEGL  (  128): loaded /vendor/lib/egl/libGLESv1_CM_POWERVR_SGX540_121.so
D/libEGL  (  128): loaded /vendor/lib/egl/libGLESv2_POWERVR_SGX540_121.so
I/GrallocFB(  128): framebuffer opened 
D/hwcomposer(  128): bool IntelHWComposerDrm::drmInit(): successfully. mDrmFd 18
I/SurfaceFlinger(  128): Using composer version 0.0
W/SurfaceFlinger(  128): getting VSYNC period from fb HAL: 16666666
W/SurfaceFlinger(  128): no suitable EGLConfig found, trying without EGL_FRAMEBUFFER_TARGET_ANDROID
W/SurfaceFlinger(  128): no suitable EGLConfig found, trying without EGL_RECORDABLE_ANDROID
I/SurfaceFlinger(  128): EGL informations:
I/SurfaceFlinger(  128): vendor    : Android
I/SurfaceFlinger(  128): version   : 1.4 Android META-EGL
I/SurfaceFlinger(  128): extensions: EGL_KHR_get_all_proc_addresses EGL_ANDROID_presentation_time EGL_KHR_image EGL_KHR_image_base EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_fence_sync EGL_ANDROID_image_native_buffer EGL_ANDROID_recordable 
I/SurfaceFlinger(  128): Client API: OpenGL_ES
I/SurfaceFlinger(  128): EGLSurface: 8-8-8-8, config=0x12
E/cutils-trace(  128): Error opening trace file: No such file or directory (2)
E/IMGSRV  (  128): :0: ValidateWindowConfigFormat: Window and Config pixel formats do not match
E/IMGSRV  (  128): :0: ValidateWindowConfigFormat: Window format was 1, Config format was 5
E/libEGL  (  128): eglQuerySurface:590 error 300d (EGL_BAD_SURFACE)
E/libEGL  (  128): eglQuerySurface:590 error 300d (EGL_BAD_SURFACE)
E/libEGL  (  128): eglMakeCurrent:775 error 3009 (EGL_BAD_MATCH)
I/SurfaceFlinger(  128): OpenGL ES informations:
I/SurfaceFlinger(  128): vendor    : Imagination Technologies
I/SurfaceFlinger(  128): renderer  : PowerVR SGX 540
I/SurfaceFlinger(  128): version   : OpenGL ES 2.0 build 1.9@2158934
I/SurfaceFlinger(  128): extensions: GL_EXT_debug_marker GL_OES_rgb8_rgba8 GL_OES_depth24 GL_OES_vertex_half_float GL_OES_texture_float GL_OES_texture_half_float GL_OES_element_index_uint GL_OES_mapbuffer GL_OES_fragment_precision_high GL_OES_compressed_ETC1_RGB8_texture GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_required_internalformat GL_OES_depth_texture GL_OES_get_program_binary GL_OES_packed_depth_stencil GL_OES_standard_derivatives GL_OES_vertex_array_object GL_OES_egl_sync GL_EXT_multi_draw_arrays GL_EXT_texture_format_BGRA8888 GL_EXT_discard_framebuffer GL_EXT_shader_texture_lod GL_IMG_shader_binary GL_IMG_texture_compression_pvrtc GL_IMG_texture_npot GL_IMG_texture_format_BGRA8888 GL_IMG_read_format GL_IMG_program_binary GL_IMG_uniform_buffer_object GL_IMG_multisampled_render_to_texture
I/SurfaceFlinger(  128): GL_MAX_TEXTURE_SIZE = 2048
I/SurfaceFlinger(  128): GL_MAX_VIEWPORT_DIMS = 2048
D/SurfaceFlinger(  128): Screen acquired, type=0 flinger=0xb8e43820
D/hwcomposer(  128): int IntelDisplayPlaneManager::setZOrderConfig(int, int): set zorder: 3
E/IMGSRV  (  128): :0: compositionComplete: GLESFlushBuffersGCNoContext failed
E/IMGSRV  (  128): :0: compositionComplete: Foreign (probably software) GLES detected! Enabling workarounds.
E/libEGL  (  128): eglMakeCurrent:775 error 3009 (EGL_BAD_MATCH)
E/IMGSRV  (  128): :0: Post2: Passed an empty slot for the composition buffer, but no composition was posted since last Post2()
E/hwcomposer(  128): bool IntelHWComposer::commit(hwc_display_t, hwc_surface_t, hwc_layer_list_t*): Post2 failed with errno -14
E/hwcomposer(  128): int hwc_set(hwc_composer_device_t*, hwc_display_t, hwc_surface_t, hwc_layer_list_t*): failed to commit
E/libEGL  (  128): eglMakeCurrent:775 error 3009 (EGL_BAD_MATCH)
D/libEGL  (  181): loaded /vendor/lib/egl/libEGL_POWERVR_SGX540_121.so
D/libEGL  (  181): loaded /vendor/lib/egl/libGLESv1_CM_POWERVR_SGX540_121.so
D/libEGL  (  181): loaded /vendor/lib/egl/libGLESv2_POWERVR_SGX540_121.so
E/libEGL  (  128): eglMakeCurrent:775 error 3009 (EGL_BAD_MATCH)
E/IMGSRV  (  128): :0: Post2: Passed an empty slot for the composition buffer, but no composition was posted since last Post2()
E/hwcomposer(  128): bool IntelHWComposer::commit(hwc_display_t, hwc_surface_t, hwc_layer_list_t*): Post2 failed with errno -14
E/hwcomposer(  128): int hwc_set(hwc_composer_device_t*, hwc_display_t, hwc_surface_t, hwc_layer_list_t*): failed to commit
E/libEGL  (  128): eglMakeCurrent:775 error 3009 (EGL_BAD_MATCH)
E/cutils-trace(  181): Error opening trace file: No such file or directory (2)
E/IMGSRV  (  181): :0: ValidateWindowConfigFormat: Window and Config pixel formats do not match
E/IMGSRV  (  181): :0: ValidateWindowConfigFormat: Window format was 1, Config format was 5
E/libEGL  (  181): eglQuerySurface:590 error 300d (EGL_BAD_SURFACE)
E/libEGL  (  181): eglQuerySurface:590 error 300d (EGL_BAD_SURFACE)
E/libEGL  (  181): eglMakeCurrent:775 error 3009 (EGL_BAD_MATCH)
E/libEGL  (  128): eglMakeCurrent:775 error 3009 (EGL_BAD_MATCH)
E/IMGSRV  (  128): :0: Post2: Passed an empty slot for the composition buffer, but no composition was posted since last Post2()
E/hwcomposer(  128): bool IntelHWComposer::commit(hwc_display_t, hwc_surface_t, hwc_layer_list_t*): Post2 failed with errno -14
E/hwcomposer(  128): int hwc_set(hwc_composer_device_t*, hwc_display_t, hwc_surface_t, hwc_layer_list_t*): failed to commit
E/libEGL  (  128): eglMakeCurrent:775 error 3009 (EGL_BAD_MATCH)
(boot continues as normal)

Every try with EGL2 does not remove the bootloader-logo (the bootloader unlocked message), but the EGL1 tries lead to a black screen.
 

Hazou

Senior Member
Feb 5, 2012
1,644
2,216
Code:
I/SurfaceFlinger(  127): Using composer version 0.0

As if the composer is not loaded correctly, should be 0.3.

Code:
E/IMGSRV  (  127): :0: ValidateWindowConfigFormat: Window and Config pixel formats do not match
E/IMGSRV  (  127): :0: ValidateWindowConfigFormat: Window format was 1, Config format was 5

Looked it up, has something to do with the pixelparameters (colors). But what...

Have a look at this for gdb debugging on crashed services on start up.
 
Last edited:
Feb 11, 2014
29
31
Code:
I/SurfaceFlinger(  127): Using composer version 0.0

As if the composer is not loaded correctly, should be 0.3.
Have a look at this for gdb debugging on crashed services on start up.

Yeah, I already know about android debugging. Thanks anyway :)

Problem is, that gdbserver segfaults when running surfaceflinger. Could be too easy else, right?
Code:
130|root@smi:/ # gdbserver :5039 /system/bin/surfaceflinger                    
Process /system/bin/surfaceflinger created; pid = 691
Listening on port 5039
Remote debugging from host 127.0.0.1
gdb: Unable to get location for thread creation breakpoint: requested event is not supported
gdb: Unable to get location for thread creation breakpoint: requested event is not supported
gdb: Unable to get location for thread creation breakpoint: requested event is not supported
thread getmsg err: no event message for getmsg
Cannot attach to process -326959101: No such process (3)
gdb: Could not attach to thread -326959101 (LWP -326959101)

thread getmsg err: no event message for getmsg
Segmentation fault

Code:
I/SurfaceFlinger(  691): SurfaceFlinger is starting
F/libc    (  691): Fatal signal 5 (???) at 0x00000000 (code=128), thread 699 (Binder_1)
I/SurfaceFlinger(  691): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
F/libc    (  691): Fatal signal 5 (???) at 0x00000000 (code=128), thread 691 (surfaceflinger)
I/DEBUG   (  125): process stopped due to unexpected signal 5
I/DEBUG   (  125): unexpected waitpid response: n=691, status=00000005
I/DEBUG   (  125): ptrace detach from 691 failed: No such process
I/DEBUG   (  125): debuggerd committing suicide to free the zombie!
I/DEBUG   (  703): debuggerd: Feb 17 2014 17:10:40

I did try to set a breakpoint into HWComposer initialisation but that gdb segfault happens before.
Please give me another day for the remaining sources - I know you really would like to compile this yourself. I will have another two hours tomorrow morning and hope to get it sorted out then.

That's it for today.

Edit:
BTW it is very nice to live without a smartphone a few days - but I soon need to have it working again (Razr I is my primary and only one). As I don't see me getting anyway here, I will soon go back to JB. Should not be more than a month until we see official 4.4 - those libs should all work more or less out of the box in CM11 I think/hope.
 
Last edited:
  • Like
Reactions: leonelsr

Hazou

Senior Member
Feb 5, 2012
1,644
2,216
Take your time, I am interested, but won't be able to build in the next couple of weeks, I think so I don't mind if it is tomorrow or next month. Waiting more or less for official kitkat, to get started with cm11. In the mean time getting audio ready, because that will be one thing that we need to build/compile our self without much help from moto/Intel and I can do that in cm10.1.

Sent from my GT-P5110 using XDA Premium HD app
 
  • Like
Reactions: pablopool

sooorajjj

Senior Member
Feb 22, 2013
414
564
Cochin
hi
iam facing similar issues
and here is full logcat http://paste.ubuntu.com/8056961/


I/SurfaceFlinger( 132): SurfaceFlinger is starting
I/SurfaceFlinger( 132): use dithering
I/SurfaceFlinger( 132): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
D/libEGL ( 132): loaded /system/lib/egl/libEGL_adreno200.so
D/libEGL ( 132): loaded /system/lib/egl/libGLESv1_CM_adreno200.so
D/libEGL ( 132): loaded /system/lib/egl/libGLESv2_adreno200.so
I/Adreno200-EGL( 132): <qeglDrvAPI_eglInitialize:290>: EGL 1.4 QUALCOMM build: AU_LINUX_ANDROID_JB.04.01.01.00.005_msm7627a_JB_CL2577695_release_AU (CL2577695)
I/Adreno200-EGL( 132): Build Date: 07/11/12 Wed
I/Adreno200-EGL( 132): Local Branch: mybranch65565
I/Adreno200-EGL( 132): Remote Branch: quic/master
I/Adreno200-EGL( 132): Local Patches: NONE
I/Adreno200-EGL( 132): Reconstruct Branch: AU_LINUX_ANDROID_JB.04.01.01.00.005 + db7e81a + 4568683 + dfff884 + NOTHING
I/gralloc ( 132): using (fd=19)
I/gralloc ( 132): id = msmfb303_20001
I/gralloc ( 132): xres = 240 px
I/gralloc ( 132): yres = 320 px
I/gralloc ( 132): xres_virtual = 240 px
I/gralloc ( 132): yres_virtual = 972 px
I/gralloc ( 132): bpp = 16
I/gralloc ( 132): r = 11:5
I/gralloc ( 132): g = 5:6
I/gralloc ( 132): b = 0:5
I/gralloc ( 132): width = 43 mm (141.767441 dpi)
I/gralloc ( 132): height = 58 mm (140.137924 dpi)
I/gralloc ( 132): refresh rate = 0.00 Hz
D/CALCFPS ( 132): DEBUG_CALC_FPS: 0
D/CALCFPS ( 132): period: 10
D/CALCFPS ( 132): ignorethresh_us: 500000
D/CALCFPS ( 132): DEBUG_CALC_FPS: 0
D/CALCFPS ( 132): period: 10
D/CALCFPS ( 132): ignorethresh_us: 500000
I/hwcomposer( 132): Initializing Qualcomm Hardware Composer
I/hwcomposer( 132): MDP version: 303
I/hwcomposer( 132): DYN composition threshold : 2.000000
I/SurfaceFlinger( 132): Using composer version 1.0
I/hwcomposer( 132): Initializing UEvent Listener Thread
I/hwcomposer( 132): Initializing VSYNC Thread


W/SurfaceFlinger( 132): getting VSYNC period from fb HAL: -1
W/Adreno200-EGL( 132): <qeglDrvAPI_eglChooseConfig:774>: EGL_BAD_ATTRIBUTE
W/SurfaceFlinger( 132): no suitable EGLConfig found, trying without EGL_FRAMEBUFFER_TARGET_ANDROID
W/SurfaceFlinger( 132): no suitable EGLConfig found, trying without EGL_RECORDABLE_ANDROID
W/SurfaceFlinger( 132): no suitable EGLConfig found, trying with 16-bit color allowed
W/Trace ( 132): error opening trace file: No such file or directory (2)
F/libc ( 132): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 184 (SurfaceFlinger)

@Hazou @PosixCompatible please help me with a possible work around
iam building for lg optimus e400
 

moorkai

Senior Member
Aug 7, 2012
90
18
Hi sooorajjj, it's nice that you're trying to port KitKat for your L3 (and such an effort is not to be belittled in any matter, though some may disagree), but I think your device already has its section on XDA. Other developers working on a ROM for your device might have already faced the same problem so that should be your starting point.

Good luck!
 
  • Like
Reactions: PlusOne3k

badhouse

Senior Member
Aug 31, 2012
77
15
Update 4.4.1

@Hazou

Hey guys, i just saw on web site (androidpit.com.br) one person get's beta version 4.4.1 for xt 890

i'm trying to talk with him.. but i need to know whats exactly y'all need for everything works
 
Last edited:

Hazou

Senior Member
Feb 5, 2012
1,644
2,216
Is the "NDA" enough of an answer, I don't think he will given something.

But I am well suited ;)

Verstuurd van mijn GT-P5110
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 12
    Hey there,

    It is time to publish my CM11 tree for our Razr I phones.

    There is nothing working so far.

    It's a stock CM11 tree with integrated kernel from oxavelar (https://github.com/oxavelar/XT890-Kernel-Gamma), many things taken from hazou (https://github.com/HazouPH/android_device_motorola_smi) and surfaceflinger patches from steven676 (https://gist.github.com/steven676/7276901).

    Recovery PHILZ 6.14.2 (CWM v6.0.4.7) should be working fine, although mount paths are not setup really well (vold mounts missing, aromafm can't automount). There might also be some confusion around the SD card paths, so I really recommend not to use it for wiping and backing up any SD related stuff. As recovery does work fine for installing and backing up, I post a fastboot flashable recovery.img. Note: This is really not well tested by me!
    Additional Warning: You may lose your data on INTERNAL SD when you wipe DATA!
    To use aromafm, push the supplied aromafm.zip to /external_sd/clockworkmod/aromafm/aromafm.zip using adb in recovery or your running rom (then use the stock path for external SD. Internal should also work but I prefer not to use that)

    You can find recovery here: http://android.matthias-larisch.de/razr-i/recovery/

    Device tree is here: https://github.com/NerdyProjects/android_device_motorola_smi

    More Github links to other forked projects will follow shortly, there are more changes.
    2
    And u did include all the patches from steven about the pixelflinger?

    Jep, I thought I did. I really have to post the rest of the code, it's a bit complicated as I did not use the repo tool for most... Hope to make it this evening.
    Patches applied to surfaceflinger:
    Workaroung Bug XZ, pbuffer disable, egl2 disable, try-disabling-some-features-before-falling-back-to-egl1.

    Following log with pbuffer without egl2:
    Code:
    BOARD_EGL_WORKAROUND_BUG_10194508 := true
    #TARGET_DISABLE_SURFACEFLINGER_PBUFFERS := true
    TARGET_DISABLE_SURFACEFLINGER_GLES2 := true

    Code:
    I/SurfaceFlinger(  127): SurfaceFlinger is starting
    I/SurfaceFlinger(  127): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
    D/libEGL  (  127): loaded /vendor/lib/egl/libEGL_POWERVR_SGX540_121.so
    D/libEGL  (  127): loaded /vendor/lib/egl/libGLESv1_CM_POWERVR_SGX540_121.so
    D/libEGL  (  127): loaded /vendor/lib/egl/libGLESv2_POWERVR_SGX540_121.so
    I/GrallocFB(  127): framebuffer opened 
    D/hwcomposer(  127): bool IntelHWComposerDrm::drmInit(): successfully. mDrmFd 18
    I/SurfaceFlinger(  127): Using composer version 0.0
    W/SurfaceFlinger(  127): getting VSYNC period from fb HAL: 16666666
    W/SurfaceFlinger(  127): OpenGL ES 2.0 disabled for this device
    W/SurfaceFlinger(  127): no suitable EGLConfig found, trying OpenGL ES 1.1
    W/SurfaceFlinger(  127): no suitable EGLConfig found, trying without EGL_FRAMEBUFFER_TARGET_ANDROID
    I/SurfaceFlinger(  127): EGL informations:
    I/SurfaceFlinger(  127): vendor    : Android
    I/SurfaceFlinger(  127): version   : 1.4 Android META-EGL
    I/SurfaceFlinger(  127): extensions: EGL_KHR_get_all_proc_addresses EGL_ANDROID_presentation_time EGL_KHR_image EGL_KHR_image_base EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_fence_sync EGL_ANDROID_image_native_buffer EGL_ANDROID_recordable 
    I/SurfaceFlinger(  127): Client API: OpenGL_ES
    I/SurfaceFlinger(  127): EGLSurface: 8-8-8-8, config=0x2
    E/cutils-trace(  127): Error opening trace file: No such file or directory (2)
    E/IMGSRV  (  127): :0: ValidateWindowConfigFormat: Window and Config pixel formats do not match
    E/IMGSRV  (  127): :0: ValidateWindowConfigFormat: Window format was 1, Config format was 5
    E/libEGL  (  127): eglQuerySurface:590 error 300d (EGL_BAD_SURFACE)
    E/libEGL  (  127): eglQuerySurface:590 error 300d (EGL_BAD_SURFACE)
    E/libEGL  (  127): eglMakeCurrent:775 error 3009 (EGL_BAD_MATCH)
    I/SurfaceFlinger(  127): OpenGL ES informations:
    I/SurfaceFlinger(  127): vendor    : Imagination Technologies
    I/SurfaceFlinger(  127): renderer  : PowerVR SGX 540
    I/SurfaceFlinger(  127): version   : OpenGL ES-CM 1.1
    I/SurfaceFlinger(  127): extensions: GL_EXT_debug_marker GL_OES_byte_coordinates GL_OES_fixed_point GL_OES_single_precision GL_OES_matrix_get GL_OES_read_format GL_OES_compressed_paletted_texture GL_OES_point_sprite GL_OES_point_size_array GL_OES_matrix_palette GL_OES_draw_texture GL_OES_query_matrix GL_OES_texture_env_crossbar GL_OES_texture_mirrored_repeat GL_OES_texture_cube_map GL_OES_blend_subtract GL_OES_blend_func_separate GL_OES_blend_equation_separate GL_OES_stencil_wrap GL_OES_extended_matrix_palette GL_OES_framebuffer_object GL_OES_rgb8_rgba8 GL_OES_depth24 GL_OES_stencil8 GL_OES_compressed_ETC1_RGB8_texture GL_OES_mapbuffer GL_OES_EGL_image GL_OES_EGL_image_external GL_EXT_multi_draw_arrays GL_OES_required_internalformat GL_IMG_read_format GL_IMG_texture_compression_pvrtc GL_IMG_texture_format_BGRA8888 GL_EXT_texture_format_BGRA8888 GL_OES_egl_sync GL_IMG_vertex_array_object GL_APPLE_texture_2D_limited_npot
    I/SurfaceFlinger(  127): GL_MAX_TEXTURE_SIZE = 2048
    I/SurfaceFlinger(  127): GL_MAX_VIEWPORT_DIMS = 2048
    D/SurfaceFlinger(  127): Screen acquired, type=0 flinger=0xb790d820
    D/hwcomposer(  127): int IntelDisplayPlaneManager::setZOrderConfig(int, int): set zorder: 3
    E/SurfaceFlinger(  127): GL error 0x0501
    E/libEGL  (  127): eglMakeCurrent:775 error 3009 (EGL_BAD_MATCH)
    E/IMGSRV  (  127): :0: Post2: Passed an empty slot for the composition buffer, but no composition was posted since last Post2()
    E/hwcomposer(  127): bool IntelHWComposer::commit(hwc_display_t, hwc_surface_t, hwc_layer_list_t*): Post2 failed with errno -14
    E/hwcomposer(  127): int hwc_set(hwc_composer_device_t*, hwc_display_t, hwc_surface_t, hwc_layer_list_t*): failed to commit
    E/libEGL  (  127): eglMakeCurrent:775 error 3009 (EGL_BAD_MATCH)
    D/libEGL  (  195): loaded /vendor/lib/egl/libEGL_POWERVR_SGX540_121.so
    D/libEGL  (  195): loaded /vendor/lib/egl/libGLESv1_CM_POWERVR_SGX540_121.so
    D/libEGL  (  195): loaded /vendor/lib/egl/libGLESv2_POWERVR_SGX540_121.so
    E/cutils-trace(  195): Error opening trace file: No such file or directory (2)
    E/SurfaceFlinger(  127): GL error 0x0501
    E/libEGL  (  127): eglMakeCurrent:775 error 3009 (EGL_BAD_MATCH)
    E/IMGSRV  (  127): :0: Post2: Passed an empty slot for the composition buffer, but no composition was posted since last Post2()
    E/hwcomposer(  127): bool IntelHWComposer::commit(hwc_display_t, hwc_surface_t, hwc_layer_list_t*): Post2 failed with errno -14
    E/hwcomposer(  127): int hwc_set(hwc_composer_device_t*, hwc_display_t, hwc_surface_t, hwc_layer_list_t*): failed to commit
    E/libEGL  (  127): eglMakeCurrent:775 error 3009 (EGL_BAD_MATCH)
    E/IMGSRV  (  195): :0: ValidateWindowConfigFormat: Window and Config pixel formats do not match
    E/IMGSRV  (  195): :0: ValidateWindowConfigFormat: Window format was 1, Config format was 5
    E/libEGL  (  195): eglQuerySurface:590 error 300d (EGL_BAD_SURFACE)
    E/libEGL  (  195): eglQuerySurface:590 error 300d (EGL_BAD_SURFACE)
    E/libEGL  (  195): eglMakeCurrent:775 error 3009 (EGL_BAD_MATCH)
    E/SurfaceFlinger(  127): GL error 0x0501
    E/libEGL  (  127): eglMakeCurrent:775 error 3009 (EGL_BAD_MATCH)
    E/IMGSRV  (  127): :0: Post2: Passed an empty slot for the composition buffer, but no composition was posted since last Post2()
    E/hwcomposer(  127): bool IntelHWComposer::commit(hwc_display_t, hwc_surface_t, hwc_layer_list_t*): Post2 failed with errno -14
    E/hwcomposer(  127): int hwc_set(hwc_composer_device_t*, hwc_display_t, hwc_surface_t, hwc_layer_list_t*): failed to commit
    E/libEGL  (  127): eglMakeCurrent:775 error 3009 (EGL_BAD_MATCH)
    (boot continues as normal)

    As I see we should not encounter BUG 10194508 as the disabled feature does not show up in the capability list. I have to say that I never did anything with OpenGL except some very basic vertice programming in Delphi when I was a kid. Did never tinker with any of those error messages above.

    Code:
    BOARD_EGL_WORKAROUND_BUG_10194508 := true
    TARGET_DISABLE_SURFACEFLINGER_PBUFFERS := true
    #TARGET_DISABLE_SURFACEFLINGER_GLES2 := true
    may be a bit more interesting as it gives us:
    Code:
    I/SurfaceFlinger(  127): SurfaceFlinger is starting
    I/SurfaceFlinger(  127): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
    D/libEGL  (  127): loaded /vendor/lib/egl/libEGL_POWERVR_SGX540_121.so
    D/libEGL  (  127): loaded /vendor/lib/egl/libGLESv1_CM_POWERVR_SGX540_121.so
    D/libEGL  (  127): loaded /vendor/lib/egl/libGLESv2_POWERVR_SGX540_121.so
    I/GrallocFB(  127): framebuffer opened 
    D/hwcomposer(  127): bool IntelHWComposerDrm::drmInit(): successfully. mDrmFd 18
    I/SurfaceFlinger(  127): Using composer version 0.0
    W/SurfaceFlinger(  127): getting VSYNC period from fb HAL: 16666666
    W/SurfaceFlinger(  127): no suitable EGLConfig found, trying without EGL_FRAMEBUFFER_TARGET_ANDROID
    I/SurfaceFlinger(  127): EGL informations:
    I/SurfaceFlinger(  127): vendor    : Android
    I/SurfaceFlinger(  127): version   : 1.4 Android META-EGL
    I/SurfaceFlinger(  127): extensions: EGL_KHR_get_all_proc_addresses EGL_ANDROID_presentation_time EGL_KHR_image EGL_KHR_image_base EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_fence_sync EGL_ANDROID_image_native_buffer EGL_ANDROID_recordable 
    I/SurfaceFlinger(  127): Client API: OpenGL_ES
    I/SurfaceFlinger(  127): EGLSurface: 8-8-8-8, config=0x13
    E/cutils-trace(  127): Error opening trace file: No such file or directory (2)
    E/IMGSRV  (  127): :0: ValidateWindowConfigFormat: Window and Config pixel formats do not match
    E/IMGSRV  (  127): :0: ValidateWindowConfigFormat: Window format was 1, Config format was 5
    E/libEGL  (  127): eglQuerySurface:590 error 300d (EGL_BAD_SURFACE)
    E/libEGL  (  127): eglQuerySurface:590 error 300d (EGL_BAD_SURFACE)
    E/libEGL  (  127): call to OpenGL ES API with no current context (logged once per thread)
    F/libc    (  127): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 127 (surfaceflinger)
    I/DEBUG   (  125): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    I/DEBUG   (  125): Build fingerprint: 'motorola/cm_smi/smi:4.4.2/KOT49H/e72f0c2fd7:userdebug/test-keys'
    I/DEBUG   (  125): Revision: '0'
    I/DEBUG   (  125): pid: 127, tid: 127, name: surfaceflinger  >>> /system/bin/surfaceflinger <<<
    I/DEBUG   (  125): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000
    I/DEBUG   (  125):     eax 00000000  ebx b75fce74  ecx 00000000  edx 00000000
    I/DEBUG   (  125):     esi b867f720  edi 00000000
    I/DEBUG   (  125):     xcs 00000073  xds 0000007b  xes 0000007b  xfs 00000000  xss 0000007b
    I/DEBUG   (  125):     eip b7687076  ebp bfc3143c  esp bfc313cc  flags 00010246
    E/Corkscrew(  125): unrecognized DW_CFA_* instruction: 0x10
    I/DEBUG   (  125): 
    I/DEBUG   (  125): backtrace:
    I/DEBUG   (  125):     #00  pc 0005c076  /system/lib/libc.so (strlen+6)
    I/DEBUG   (  125):     #01  pc 0001485a  /system/lib/libutils.so (android::String8::setTo(char const*)+42)
    I/DEBUG   (  125):     #02  pc 0003f241  /system/lib/libsurfaceflinger.so (android::GLExtensions::initWithGLStrings(unsigned char const*, unsigned char const*, unsigned char const*, unsigned char const*)+49)
    I/DEBUG   (  125):     #03  pc 0003f78c  /system/lib/libsurfaceflinger.so (android::RenderEngine::logEGLInfo()+156)
    I/DEBUG   (  125):     #04  pc 00041655  /system/lib/libsurfaceflinger.so (android::GLES20RenderEngine::initializeGL()+341)
    I/DEBUG   (  125):     #05  pc 0002af69  /system/lib/libsurfaceflinger.so (android::SurfaceFlinger::init()+1033)
    I/DEBUG   (  125):     #06  pc 00000931  /system/bin/surfaceflinger (main+209)
    I/DEBUG   (  125): 
    I/DEBUG   (  125): stack:
    I/DEBUG   (  125):          bfc3138c  b7638f89  /system/lib/libc.so (pthread_mutex_unlock+25)
    I/DEBUG   (  125):          bfc31390  b867d8c0  [heap]
    I/DEBUG   (  125):          bfc31394  bfc313e0  [stack]
    I/DEBUG   (  125):          bfc31398  bfc314b8  [stack]
    I/DEBUG   (  125):          bfc3139c  b752359e  /system/lib/libEGL.so (android::gl_no_context()+30)
    I/DEBUG   (  125):          bfc313a0  00000000  
    I/DEBUG   (  125):          bfc313a4  b7523586  /system/lib/libEGL.so (android::gl_no_context()+6)
    I/DEBUG   (  125):          bfc313a8  b776a8b4  /system/lib/libsurfaceflinger.so
    I/DEBUG   (  125):          bfc313ac  b73eb4c6  /system/lib/libGLESv1_CM.so (glViewport+54)
    I/DEBUG   (  125):          bfc313b0  00000000  
    I/DEBUG   (  125):          bfc313b4  00000000  
    I/DEBUG   (  125):          bfc313b8  b7638db9  /system/lib/libc.so (pthread_mutex_lock+9)
    I/DEBUG   (  125):          bfc313bc  b76e3fcc  /system/lib/libc.so
    I/DEBUG   (  125):          bfc313c0  00000033  
    I/DEBUG   (  125):          bfc313c4  b867f720  [heap]
    I/DEBUG   (  125):          bfc313c8  00000000  
    I/DEBUG   (  125):     #00  bfc313cc  b75e785b  /system/lib/libutils.so (android::String8::setTo(char const*)+43)
    I/DEBUG   (  125):     #01  bfc313d0  00000000  
    I/DEBUG   (  125):          bfc313d4  bfc313e0  [stack]
    I/DEBUG   (  125):          bfc313d8  00000000  
    I/DEBUG   (  125):          bfc313dc  00000000  
    I/DEBUG   (  125):          bfc313e0  7f800000  
    I/DEBUG   (  125):          bfc313e4  00000000  
    I/DEBUG   (  125):          bfc313e8  00000000  
    I/DEBUG   (  125):          bfc313ec  00000000  
    I/DEBUG   (  125):          bfc313f0  00000000  
    I/DEBUG   (  125):          bfc313f4  7f800000  
    I/DEBUG   (  125):          bfc313f8  00000000  
    I/DEBUG   (  125):          bfc313fc  b776a8b4  /system/lib/libsurfaceflinger.so
    I/DEBUG   (  125):          bfc31400  b867f720  [heap]
    I/DEBUG   (  125):          bfc31404  00000000  
    I/DEBUG   (  125):          bfc31408  bfc3143c  [stack]
    I/DEBUG   (  125):          bfc3140c  b7752242  /system/lib/libsurfaceflinger.so (android::GLExtensions::initWithGLStrings(unsigned char const*, unsigned char const*, unsigned char const*, unsigned char const*)+50)
    I/DEBUG   (  125):     #02  bfc31410  b867f724  [heap]
    I/DEBUG   (  125):          bfc31414  00000000  
    I/DEBUG   (  125):          bfc31418  b75fce74  /system/lib/libutils.so
    I/DEBUG   (  125):          bfc3141c  b7638f89  /system/lib/libc.so (pthread_mutex_unlock+25)
    I/DEBUG   (  125):          bfc31420  b866a030  [heap]
    I/DEBUG   (  125):          bfc31424  b75acddc  /system/lib/libEGL.so
    I/DEBUG   (  125):          bfc31428  00001f00  
    I/DEBUG   (  125):          bfc3142c  b7523595  /system/lib/libEGL.so (android::gl_no_context()+21)
    I/DEBUG   (  125):          bfc31430  00000000  
    I/DEBUG   (  125):          bfc31434  b7523586  /system/lib/libEGL.so (android::gl_no_context()+6)
    I/DEBUG   (  125):          bfc31438  b73f0fe4  /system/lib/libGLESv1_CM.so
    I/DEBUG   (  125):          bfc3143c  b73ed67a  /system/lib/libGLESv1_CM.so (glGetString+74)
    I/DEBUG   (  125):          bfc31440  00001f00  
    I/DEBUG   (  125):          bfc31444  00000004  
    I/DEBUG   (  125):          bfc31448  b7752219  /system/lib/libsurfaceflinger.so (android::GLExtensions::initWithGLStrings(unsigned char const*, unsigned char const*, unsigned char const*, unsigned char const*)+9)
    I/DEBUG   (  125):          bfc3144c  b776a8b4  /system/lib/libsurfaceflinger.so
    I/DEBUG   (  125):          ........  ........

    But I cannot debug it with gdbserver as this dies before the SIGSEV. It may have something to do with any unclean disabling of pbuffer in stevens patch? As it segfaults in logEGLinfo I assume it to fail because of the failures right above.

    Another one with both patches disabled:

    Code:
    BOARD_EGL_WORKAROUND_BUG_10194508 := true
    #TARGET_DISABLE_SURFACEFLINGER_PBUFFERS := true
    #TARGET_DISABLE_SURFACEFLINGER_GLES2 := true

    For every try I rebuilt the complete surfaceflinger by removing all objects from surfaceflinger_intermediates and libsurfaceflinger_intermediates and pushing the new files onto the device, this should have been enough.

    Code:
    I/SurfaceFlinger(  128): SurfaceFlinger is starting
    I/SurfaceFlinger(  128): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
    D/libEGL  (  128): loaded /vendor/lib/egl/libEGL_POWERVR_SGX540_121.so
    D/libEGL  (  128): loaded /vendor/lib/egl/libGLESv1_CM_POWERVR_SGX540_121.so
    D/libEGL  (  128): loaded /vendor/lib/egl/libGLESv2_POWERVR_SGX540_121.so
    I/GrallocFB(  128): framebuffer opened 
    D/hwcomposer(  128): bool IntelHWComposerDrm::drmInit(): successfully. mDrmFd 18
    I/SurfaceFlinger(  128): Using composer version 0.0
    W/SurfaceFlinger(  128): getting VSYNC period from fb HAL: 16666666
    W/SurfaceFlinger(  128): no suitable EGLConfig found, trying without EGL_FRAMEBUFFER_TARGET_ANDROID
    W/SurfaceFlinger(  128): no suitable EGLConfig found, trying without EGL_RECORDABLE_ANDROID
    I/SurfaceFlinger(  128): EGL informations:
    I/SurfaceFlinger(  128): vendor    : Android
    I/SurfaceFlinger(  128): version   : 1.4 Android META-EGL
    I/SurfaceFlinger(  128): extensions: EGL_KHR_get_all_proc_addresses EGL_ANDROID_presentation_time EGL_KHR_image EGL_KHR_image_base EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_fence_sync EGL_ANDROID_image_native_buffer EGL_ANDROID_recordable 
    I/SurfaceFlinger(  128): Client API: OpenGL_ES
    I/SurfaceFlinger(  128): EGLSurface: 8-8-8-8, config=0x12
    E/cutils-trace(  128): Error opening trace file: No such file or directory (2)
    E/IMGSRV  (  128): :0: ValidateWindowConfigFormat: Window and Config pixel formats do not match
    E/IMGSRV  (  128): :0: ValidateWindowConfigFormat: Window format was 1, Config format was 5
    E/libEGL  (  128): eglQuerySurface:590 error 300d (EGL_BAD_SURFACE)
    E/libEGL  (  128): eglQuerySurface:590 error 300d (EGL_BAD_SURFACE)
    E/libEGL  (  128): eglMakeCurrent:775 error 3009 (EGL_BAD_MATCH)
    I/SurfaceFlinger(  128): OpenGL ES informations:
    I/SurfaceFlinger(  128): vendor    : Imagination Technologies
    I/SurfaceFlinger(  128): renderer  : PowerVR SGX 540
    I/SurfaceFlinger(  128): version   : OpenGL ES 2.0 build 1.9@2158934
    I/SurfaceFlinger(  128): extensions: GL_EXT_debug_marker GL_OES_rgb8_rgba8 GL_OES_depth24 GL_OES_vertex_half_float GL_OES_texture_float GL_OES_texture_half_float GL_OES_element_index_uint GL_OES_mapbuffer GL_OES_fragment_precision_high GL_OES_compressed_ETC1_RGB8_texture GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_required_internalformat GL_OES_depth_texture GL_OES_get_program_binary GL_OES_packed_depth_stencil GL_OES_standard_derivatives GL_OES_vertex_array_object GL_OES_egl_sync GL_EXT_multi_draw_arrays GL_EXT_texture_format_BGRA8888 GL_EXT_discard_framebuffer GL_EXT_shader_texture_lod GL_IMG_shader_binary GL_IMG_texture_compression_pvrtc GL_IMG_texture_npot GL_IMG_texture_format_BGRA8888 GL_IMG_read_format GL_IMG_program_binary GL_IMG_uniform_buffer_object GL_IMG_multisampled_render_to_texture
    I/SurfaceFlinger(  128): GL_MAX_TEXTURE_SIZE = 2048
    I/SurfaceFlinger(  128): GL_MAX_VIEWPORT_DIMS = 2048
    D/SurfaceFlinger(  128): Screen acquired, type=0 flinger=0xb8e43820
    D/hwcomposer(  128): int IntelDisplayPlaneManager::setZOrderConfig(int, int): set zorder: 3
    E/IMGSRV  (  128): :0: compositionComplete: GLESFlushBuffersGCNoContext failed
    E/IMGSRV  (  128): :0: compositionComplete: Foreign (probably software) GLES detected! Enabling workarounds.
    E/libEGL  (  128): eglMakeCurrent:775 error 3009 (EGL_BAD_MATCH)
    E/IMGSRV  (  128): :0: Post2: Passed an empty slot for the composition buffer, but no composition was posted since last Post2()
    E/hwcomposer(  128): bool IntelHWComposer::commit(hwc_display_t, hwc_surface_t, hwc_layer_list_t*): Post2 failed with errno -14
    E/hwcomposer(  128): int hwc_set(hwc_composer_device_t*, hwc_display_t, hwc_surface_t, hwc_layer_list_t*): failed to commit
    E/libEGL  (  128): eglMakeCurrent:775 error 3009 (EGL_BAD_MATCH)
    D/libEGL  (  181): loaded /vendor/lib/egl/libEGL_POWERVR_SGX540_121.so
    D/libEGL  (  181): loaded /vendor/lib/egl/libGLESv1_CM_POWERVR_SGX540_121.so
    D/libEGL  (  181): loaded /vendor/lib/egl/libGLESv2_POWERVR_SGX540_121.so
    E/libEGL  (  128): eglMakeCurrent:775 error 3009 (EGL_BAD_MATCH)
    E/IMGSRV  (  128): :0: Post2: Passed an empty slot for the composition buffer, but no composition was posted since last Post2()
    E/hwcomposer(  128): bool IntelHWComposer::commit(hwc_display_t, hwc_surface_t, hwc_layer_list_t*): Post2 failed with errno -14
    E/hwcomposer(  128): int hwc_set(hwc_composer_device_t*, hwc_display_t, hwc_surface_t, hwc_layer_list_t*): failed to commit
    E/libEGL  (  128): eglMakeCurrent:775 error 3009 (EGL_BAD_MATCH)
    E/cutils-trace(  181): Error opening trace file: No such file or directory (2)
    E/IMGSRV  (  181): :0: ValidateWindowConfigFormat: Window and Config pixel formats do not match
    E/IMGSRV  (  181): :0: ValidateWindowConfigFormat: Window format was 1, Config format was 5
    E/libEGL  (  181): eglQuerySurface:590 error 300d (EGL_BAD_SURFACE)
    E/libEGL  (  181): eglQuerySurface:590 error 300d (EGL_BAD_SURFACE)
    E/libEGL  (  181): eglMakeCurrent:775 error 3009 (EGL_BAD_MATCH)
    E/libEGL  (  128): eglMakeCurrent:775 error 3009 (EGL_BAD_MATCH)
    E/IMGSRV  (  128): :0: Post2: Passed an empty slot for the composition buffer, but no composition was posted since last Post2()
    E/hwcomposer(  128): bool IntelHWComposer::commit(hwc_display_t, hwc_surface_t, hwc_layer_list_t*): Post2 failed with errno -14
    E/hwcomposer(  128): int hwc_set(hwc_composer_device_t*, hwc_display_t, hwc_surface_t, hwc_layer_list_t*): failed to commit
    E/libEGL  (  128): eglMakeCurrent:775 error 3009 (EGL_BAD_MATCH)
    (boot continues as normal)

    Every try with EGL2 does not remove the bootloader-logo (the bootloader unlocked message), but the EGL1 tries lead to a black screen.
    1
    Code:
    I/SurfaceFlinger(  127): Using composer version 0.0

    As if the composer is not loaded correctly, should be 0.3.
    Have a look at this for gdb debugging on crashed services on start up.

    Yeah, I already know about android debugging. Thanks anyway :)

    Problem is, that gdbserver segfaults when running surfaceflinger. Could be too easy else, right?
    Code:
    130|root@smi:/ # gdbserver :5039 /system/bin/surfaceflinger                    
    Process /system/bin/surfaceflinger created; pid = 691
    Listening on port 5039
    Remote debugging from host 127.0.0.1
    gdb: Unable to get location for thread creation breakpoint: requested event is not supported
    gdb: Unable to get location for thread creation breakpoint: requested event is not supported
    gdb: Unable to get location for thread creation breakpoint: requested event is not supported
    thread getmsg err: no event message for getmsg
    Cannot attach to process -326959101: No such process (3)
    gdb: Could not attach to thread -326959101 (LWP -326959101)
    
    thread getmsg err: no event message for getmsg
    Segmentation fault

    Code:
    I/SurfaceFlinger(  691): SurfaceFlinger is starting
    F/libc    (  691): Fatal signal 5 (???) at 0x00000000 (code=128), thread 699 (Binder_1)
    I/SurfaceFlinger(  691): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
    F/libc    (  691): Fatal signal 5 (???) at 0x00000000 (code=128), thread 691 (surfaceflinger)
    I/DEBUG   (  125): process stopped due to unexpected signal 5
    I/DEBUG   (  125): unexpected waitpid response: n=691, status=00000005
    I/DEBUG   (  125): ptrace detach from 691 failed: No such process
    I/DEBUG   (  125): debuggerd committing suicide to free the zombie!
    I/DEBUG   (  703): debuggerd: Feb 17 2014 17:10:40

    I did try to set a breakpoint into HWComposer initialisation but that gdb segfault happens before.
    Please give me another day for the remaining sources - I know you really would like to compile this yourself. I will have another two hours tomorrow morning and hope to get it sorted out then.

    That's it for today.

    Edit:
    BTW it is very nice to live without a smartphone a few days - but I soon need to have it working again (Razr I is my primary and only one). As I don't see me getting anyway here, I will soon go back to JB. Should not be more than a month until we see official 4.4 - those libs should all work more or less out of the box in CM11 I think/hope.
    1
    Take your time, I am interested, but won't be able to build in the next couple of weeks, I think so I don't mind if it is tomorrow or next month. Waiting more or less for official kitkat, to get started with cm11. In the mean time getting audio ready, because that will be one thing that we need to build/compile our self without much help from moto/Intel and I can do that in cm10.1.

    Sent from my GT-P5110 using XDA Premium HD app
    1
    hi
    iam facing similar issues
    and here is full logcat http://paste.ubuntu.com/8056961/

    @Hazou @PosixCompatible please help me with a possible work around
    iam building for lg optimus e400

    Sorry, i never fixed this. I know Angel_666 from the tab3 10.1 fixed it somehow if i remember correctly.