Driver mali r6p0 on pour kernel

bizcuite

Senior Member
Aug 11, 2010
1,180
764
0
Corbeil-Essonnes
Hi guys,

Anyone has tried to switch r3p2 mali driver to r6p0 version?
I try to port it atm, kernel boot, but driver is not load correctly.
If you want try you can take kernel exynos from Google repo. And port mali_osk_locks.c files from r3p2 driver. I will push my first try (which boot) on my github un few times.

This is the base of driver that i use:
https://android.googlesource.com/ke...3.10-marshmallow-mr1-wear-release/drivers/gpu

My github:
https://github.com/bizcuite/android_kernel_samsung_smdk4412/tree/r6p0_v1



Bizcuite

Sent from my GT-N7100 using XDA-Developers mobile app
 
Last edited:
  • Like
Reactions: duttyend

bizcuite

Senior Member
Aug 11, 2010
1,180
764
0
Corbeil-Essonnes
Hi guys,

Anyone has tried to switch r3p2 mali driver to r6p0 version?
I try to port it atm, kernel boot, but driver is not load correctly.
If you want try you can take kernel exynos from Google repo. And port mali_osk_locks.c files from r3p2 driver. I will push my first try (which boot) on my github un few times.

This is the base of driver that i use:
https://android.googlesource.com/ke...3.10-marshmallow-mr1-wear-release/drivers/gpu

My github:
https://github.com/bizcuite/android_kernel_samsung_smdk4412/tree/r6p0_v1



Bizcuite

Sent from my GT-N7100 using XDA-Developers mobile app
Then no body to answer, my driver seems loaded with little modifications, i have just to compile gralloc module of r6p0rel1.

Bizcuite

Sent from my GT-N7100 using XDA-Developers mobile app
 
  • Like
Reactions: duttyend

bizcuite

Senior Member
Aug 11, 2010
1,180
764
0
Corbeil-Essonnes
Ok, i continue my search:

This is my logcat and dmesg with MALI+UMP from r6p0 driver version.
I let the last version of my kernel (with sources) with fully r6p0 driver.
/!\ THE KERNEL BOOT BUT THERE IS NO SCREEN /!\ it's just a try for devs
To compile yourself the kernel, just replace the /driver/gpu folder by mine and change the KConfig in video to point on /driver/gpu/arm/ folder.
I think that it lacks just library binaries to have this driver working
OR an Hack for Android:
https://community.arm.com/groups/android-community/blog/authors/matteofranchin

The driver seems correctly loaded (debug has been ported and actvated):
Code:
[    1.170084] s5pv210-uart.3: ttySAC3 at MMIO 0x13830000 (irq = 28) is a S3C6400/10
[    1.251085] UMP: UMP device driver  loaded
[    1.251113] Mali<2>: Inserting Mali v850 device driver. 
[    1.251144] Mali<2>: Compiled: Aug 16 2016, time: 11:40:34.
[    1.251175] Mali<2>: Driver revision: 
[    1.251197] Mali<2>: mali_module_init() registering driver
[    1.251429] Mali: Mali device driver loaded
[    1.251456] func:max77693_muic_init
[    1.251540] func:max77693_muic_probe
[    1.251567] max77693-muic max77693-muic: adc:0 chgtype:0, adc1k:0
[    1.251600] max77693-muic max77693-muic: H/W rev connected UT1 UR2 pin to AP UART
Code:
[email protected]:/ # cd /sys/module/mali/parameters/                                 
[email protected]:/sys/module/mali/parameters # ls
gpu_power_state          mali_dvfs_control    mali_max_pp_cores_group_1         
mali_debug_level         mali_gpu_clk         mali_max_pp_cores_group_2         
mali_dedicated_mem_size  mali_gpu_vol         mali_max_system_fps               
mali_dedicated_mem_start mali_l2_max_reads    mali_mem_swap_out_threshold_value 
mali_desired_fps         mali_max_job_runtime mali_shared_mem_size
The logcat error:
Code:
08-16 11:58:37.905  2397  2397 I ServiceManager: Waiting for service SurfaceFlinger...
08-16 11:58:38.148  3239  3239 I SurfaceFlinger: SurfaceFlinger is starting
08-16 11:58:38.149  3239  3239 I SurfaceFlinger: SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
08-16 11:58:38.151  3239  3239 D libEGL  : loaded /system/lib/egl/libEGL_mali.so
08-16 11:58:38.154  3239  3239 D libEGL  : loaded /system/lib/egl/libGLESv1_CM_mali.so
08-16 11:58:38.179  3239  3239 D libEGL  : loaded /system/lib/egl/libGLESv2_mali.so
08-16 11:58:38.206  3239  3239 W libEGL  : eglInitialize(0x1) failed (EGL_BAD_ALLOC)
08-16 11:58:38.208  3239  3239 D gralloc : int init_frame_buffer_locked(private_module_t*) Initializing framebuffer
08-16 11:58:38.208  3239  3239 I gralloc : using (fd=12)
08-16 11:58:38.208  3239  3239 I gralloc : id           = s3cfb
08-16 11:58:38.208  3239  3239 I gralloc : xres         = 720 px
08-16 11:58:38.208  3239  3239 I gralloc : yres         = 1280 px
08-16 11:58:38.208  3239  3239 I gralloc : xres_virtual = 720 px
08-16 11:58:38.208  3239  3239 I gralloc : yres_virtual = 2560 px
08-16 11:58:38.208  3239  3239 I gralloc : bpp          = 32
08-16 11:58:38.208  3239  3239 I gralloc : r            = 16:8
08-16 11:58:38.208  3239  3239 I gralloc : g            =  8:8
08-16 11:58:38.208  3239  3239 I gralloc : b            =  0:8
08-16 11:58:38.208  3239  3239 I gralloc : width        = 69 mm (265.043488 dpi)
08-16 11:58:38.208  3239  3239 I gralloc : height       = 123 mm (264.325195 dpi)
08-16 11:58:38.208  3239  3239 I gralloc : refresh rate = 58.00 Hz
08-16 11:58:38.216  3239  3239 E SurfaceFlinger: hwcomposer module not found
08-16 11:58:38.216  3239  3239 W SurfaceFlinger: no suitable EGLConfig found, trying a simpler query
08-16 11:58:38.216  3239  3239 F SurfaceFlinger: no suitable EGLConfig found, giving up
08-16 11:58:38.216  3239  3239 F libc    : Fatal signal 6 (SIGABRT), code -6 in tid 3239 (surfaceflinger)
08-16 11:58:38.217  2095  2095 I DEBUG   : property debug.db.uid not set; NOT waiting for gdb.
08-16 11:58:38.217  2095  2095 I DEBUG   : HINT: adb shell setprop debug.db.uid 100000
08-16 11:58:38.217  2095  2095 I DEBUG   : HINT: adb forward tcp:5039 tcp:5039
08-16 11:58:38.291  2398  2398 I Zygote  : Preloading resources...
08-16 11:58:38.317  2095  2095 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
08-16 11:58:38.317  2095  2095 F DEBUG   : CM Version: '13.0-20160809-UNOFFICIAL-n7100'
08-16 11:58:38.317  2095  2095 F DEBUG   : Build fingerprint: 'samsung/t03gxx/t03g:4.4.2/KOT49H/N7100XXUFND3:user/release-keys'
08-16 11:58:38.317  2095  2095 F DEBUG   : Revision: '0'
08-16 11:58:38.317  2095  2095 F DEBUG   : ABI: 'arm'
08-16 11:58:38.318  2095  2095 F DEBUG   : pid: 3239, tid: 3239, name: surfaceflinger  >>> /system/bin/surfaceflinger <<<
08-16 11:58:38.318  2095  2095 F DEBUG   : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
08-16 11:58:38.329  2095  2095 F DEBUG   : Abort message: 'no suitable EGLConfig found, giving up'
08-16 11:58:38.329  2095  2095 F DEBUG   :     r0 00000000  r1 00000ca7  r2 00000006  r3 4010fb8c
08-16 11:58:38.329  2095  2095 F DEBUG   :     r4 4010fb94  r5 4010fb44  r6 00000000  r7 0000010c
08-16 11:58:38.329  2095  2095 F DEBUG   :     r8 00000000  r9 ffff6372  sl 00000000  fp 00000001
08-16 11:58:38.329  2095  2095 F DEBUG   :     ip 00000006  sp beca34b8  lr 401ec7a9  pc 401eeba4  cpsr 400f0010
Bizcuite
 

Attachments

Last edited:

西村大一

Senior Member
Dec 7, 2012
858
342
0
Sagamihara\Tōkyō
08-16 11:58:38.216 3239 3239 E SurfaceFlinger: hwcomposer module not found
It needs a brand new hwcomposer built specifically for the new r6p0 version. Don't ask me how, but maybe you could, idk, for example, build a ROM with these changes and then try? Or build (depending on the ROM you currently have) the ROM and dirty flash it and see if it works.

Just try to build CM 13 for your n7100 and then dirty flash it over your installation and see if she works.
 

bizcuite

Senior Member
Aug 11, 2010
1,180
764
0
Corbeil-Essonnes
It needs a brand new hwcomposer built specifically for the new r6p0 version. Don't ask me how, but maybe you could, idk, for example, build a ROM with these changes and then try? Or build (depending on the ROM you currently have) the ROM and dirty flash it and see if it works.

Just try to build CM 13 for your n7100 and then dirty flash it over your installation and see if she works.
Hi,
Thanks for your reply, but:
I have made a boot with my own Rom (R3p2 driver like everybody), this is the logcat:
Code:
08-17 09:46:40.719  2177  2177 I cm      : Welcome to Android 6.0.1 / CyanogenMod-13.0-20160809-UNOFFICIAL-n7100 
08-17 09:46:40.720  2123  2123 I perfprofd: random seed set to 1438291486
08-17 09:46:40.724  2072  2072 I SurfaceFlinger: SurfaceFlinger is starting
08-17 09:46:40.724  2072  2072 I SurfaceFlinger: SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
08-17 09:46:40.738  2094  2094 W linker  : /system/lib/libsec-ril.so has text relocations. This is wasting memory and prevents security hardening. Please fix.
08-17 09:46:40.765  2109  2109 W linker  : /system/bin/gpsd has text relocations. This is wasting memory and prevents security hardening. Please fix.
08-17 09:46:40.789  2072  2072 D libEGL  : loaded /system/lib/egl/libEGL_mali.so
08-17 09:46:40.831  2072  2072 D libEGL  : loaded /system/lib/egl/libGLESv1_CM_mali.so
08-17 09:46:40.833  2109  2109 W linker  : /system/lib/libsec-ril.so has text relocations. This is wasting memory and prevents security hardening. Please fix.
08-17 09:46:40.860  2072  2072 D libEGL  : loaded /system/lib/egl/libGLESv2_mali.so
08-17 09:46:40.892  2072  2072 E         : Device driver API match
08-17 09:46:40.892  2072  2072 E         : Device driver API version: 29
08-17 09:46:40.892  2072  2072 E         : User space API version: 29 
08-17 09:46:40.892  2072  2072 E         : mali: REVISION=Linux-r3p2-01rel3 BUILD_DATE=Tue Jul 22 19:59:34 KST 2014 
08-17 09:46:40.911  2072  2072 D gralloc : int init_frame_buffer_locked(private_module_t*) Initializing framebuffer
08-17 09:46:40.911  2072  2072 I gralloc : using (fd=14)
08-17 09:46:40.911  2072  2072 I gralloc : id           = s3cfb
08-17 09:46:40.911  2072  2072 I gralloc : xres         = 720 px
08-17 09:46:40.911  2072  2072 I gralloc : yres         = 1280 px
08-17 09:46:40.911  2072  2072 I gralloc : xres_virtual = 720 px
08-17 09:46:40.911  2072  2072 I gralloc : yres_virtual = 2560 px
08-17 09:46:40.911  2072  2072 I gralloc : bpp          = 32
08-17 09:46:40.911  2072  2072 I gralloc : r            = 16:8
08-17 09:46:40.911  2072  2072 I gralloc : g            =  8:8
08-17 09:46:40.911  2072  2072 I gralloc : b            =  0:8
08-17 09:46:40.911  2072  2072 I gralloc : width        = 69 mm (265.043488 dpi)
08-17 09:46:40.911  2072  2072 I gralloc : height       = 123 mm (264.325195 dpi)
08-17 09:46:40.911  2072  2072 I gralloc : refresh rate = 58.00 Hz
08-17 09:46:40.925  2109  2109 I libdmitry: Nexus 10 GPS interposition library loaded. Your GPS should work in M now.
[COLOR="Red"][B]08-17 09:46:40.956  2072  2072 E HAL     : load: module=/system/lib/hw/hwcomposer.default.so
08-17 09:46:40.956  2072  2072 E HAL     : dlopen failed: library "libhdmiclient.so" not found
08-17 09:46:40.956  2072  2072 E SurfaceFlinger: hwcomposer module not found
08-17 09:46:40.956  2072  2072 I SurfaceFlinger: EGL information:[/B][/COLOR]
08-17 09:46:40.956  2072  2072 I SurfaceFlinger: vendor    : Android
08-17 09:46:40.956  2072  2072 I SurfaceFlinger: version   : 1.4 Android META-EGL
08-17 09:46:40.956  2072  2072 I SurfaceFlinger: extensions: EGL_KHR_get_all_proc_addresses EGL_ANDROID_presentation_time EGL_KHR_swap_buffers_with_damage EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap 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_EXT_create_context_robustness EGL_ANDROID_image_native_buffer EGL_ANDROID_recordable 
08-17 09:46:40.956  2072  2072 I SurfaceFlinger: Client API: OpenGL_ES
08-17 09:46:40.956  2072  2072 I SurfaceFlinger: EGLSurface: 8-8-8-8, config=0x60000014
08-17 09:46:40.959  2072  2072 I SurfaceFlinger: OpenGL ES informations:
08-17 09:46:40.959  2072  2072 I SurfaceFlinger: vendor    : ARM
08-17 09:46:40.959  2072  2072 I SurfaceFlinger: renderer  : Mali-400 MP
08-17 09:46:40.959  2072  2072 I SurfaceFlinger: version   : OpenGL ES 2.0
08-17 09:46:40.959  2072  2072 I SurfaceFlinger: extensions: GL_EXT_debug_marker GL_OES_texture_npot GL_OES_compressed_ETC1_RGB8_texture GL_OES_standard_derivatives GL_OES_EGL_image GL_OES_depth24 GL_ARM_rgba8 GL_ARM_mali_shader_binary GL_OES_depth_texture GL_OES_packed_depth_stencil GL_EXT_texture_format_BGRA8888 GL_EXT_blend_minmax GL_OES_EGL_image_external GL_OES_EGL_sync GL_OES_rgb8_rgba8 GL_EXT_multisampled_render_to_texture GL_EXT_discard_framebuffer GL_OES_get_program_binary GL_ARM_mali_program_binary GL_EXT_shader_texture_lod GL_EXT_robustness GL_OES_depth_texture_cube_map 
08-17 09:46:40.959  2072  2072 I SurfaceFlinger: GL_MAX_TEXTURE_SIZE = 4096
08-17 09:46:40.959  2072  2072 I SurfaceFlinger: GL_MAX_VIEWPORT_DIMS = 4096
08-17 09:46:40.959  2072  2072 E cutils-trace: Error opening trace file: No such file or directory (2)
08-17 09:46:40.963  2072  2072 D SurfaceFlinger: Set power mode=2, type=0 flinger=0x41434df0
08-17 09:46:41.025  2072  2072 D SurfaceFlinger: SF. shader cache generated - 26 shaders in 58.574417 ms
08-17 09:46:41.042  2109  2255 D gpsd    : LogJava: connect(fd11, ...) failed with errno = 111(Connection refused)
08-17 09:46:41.042  2109  2255 D gpsd    : LogJava: Couldn't connect to Logging service 127.0.0.1:6477. Waiting for server...
08-17 09:46:41.060  2109  2109 D wrapperGPS: wrapperOpenClient_RILD
08-17 09:46:41.060  2109  2109 D wrapperGPS: wrapperRegisterRequestCompleteHandler
08-17 09:46:41.060  2109  2109 D wrapperGPS: wrapperRegisterUnsolicitedHandler id(12009), handler(0x40070bfd)
08-17 09:46:41.060  2109  2109 D wrapperGPS: wrapperRegisterErrorCallback
08-17 09:46:41.060  2109  2109 D wrapperGPS: wrapperConnect_RILD
08-17 09:46:41.173  2295  2295 I sysinit : Running /system/etc/init.d/90userinit 
08-17 09:46:41.221  2311  2311 I sysinit : Running /system/etc/init.d/98netflix 
08-17 09:46:41.332  2239  2335 D libEGL  : loaded /system/lib/egl/libEGL_mali.so
08-17 09:46:41.337  2239  2335 D libEGL  : loaded /system/lib/egl/libGLESv1_CM_mali.so
08-17 09:46:41.365  2239  2335 D libEGL  : loaded /system/lib/egl/libGLESv2_mali.so
08-17 09:46:41.393  2239  2335 E         : Device driver API match
08-17 09:46:41.393  2239  2335 E         : Device driver API version: 29
08-17 09:46:41.393  2239  2335 E         : User space API version: 29 
08-17 09:46:41.393  2239  2335 E         : mali: REVISION=Linux-r3p2-01rel3 BUILD_DATE=Tue Jul 22 19:59:34 KST 2014 
08-17 09:46:41.396  2239  2335 E cutils-trace: Error opening trace file: No such file or directory (2)
08-17 09:46:41.444  2239  2335 W BootAnimation: Unable to cache the animation
08-17 09:46:41.445  2239  2335 E BootAnimation: couldn't find audio_conf.txt
And now a boot with my r6p0 kernel:
Code:
08-17 09:39:51.241  2720  2720 I SurfaceFlinger: SurfaceFlinger is starting
08-17 09:39:51.252  2720  2720 I SurfaceFlinger: SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
08-17 09:39:51.256  2720  2720 D libEGL  : loaded /system/lib/egl/libEGL_mali.so
08-17 09:39:51.261  2720  2720 D libEGL  : loaded /system/lib/egl/libGLESv1_CM_mali.so
08-17 09:39:51.291  2720  2720 D libEGL  : loaded /system/lib/egl/libGLESv2_mali.so
08-17 09:39:51.310  1988  1988 W auditd  : type=1325 audit(0.0:135): table=filter family=2 entries=11
08-17 09:39:51.328  2720  2720 W libEGL  : eglInitialize(0x1) failed (EGL_BAD_ALLOC)
08-17 09:39:51.340  2720  2720 D gralloc : int init_frame_buffer_locked(private_module_t*) Initializing framebuffer
08-17 09:39:51.340  2720  2720 I gralloc : using (fd=12)
08-17 09:39:51.340  2720  2720 I gralloc : id           = s3cfb
08-17 09:39:51.340  2720  2720 I gralloc : xres         = 720 px
08-17 09:39:51.340  2720  2720 I gralloc : yres         = 1280 px
08-17 09:39:51.340  2720  2720 I gralloc : xres_virtual = 720 px
08-17 09:39:51.340  2720  2720 I gralloc : yres_virtual = 2560 px
08-17 09:39:51.340  2720  2720 I gralloc : bpp          = 32
08-17 09:39:51.340  2720  2720 I gralloc : r            = 16:8
08-17 09:39:51.340  2720  2720 I gralloc : g            =  8:8
08-17 09:39:51.340  2720  2720 I gralloc : b            =  0:8
08-17 09:39:51.340  2720  2720 I gralloc : width        = 69 mm (265.043488 dpi)
08-17 09:39:51.340  2720  2720 I gralloc : height       = 123 mm (264.325195 dpi)
08-17 09:39:51.340  2720  2720 I gralloc : refresh rate = 58.00 Hz
[COLOR="red"][B]08-17 09:39:51.352  2720  2720 E HAL     : load: module=/system/lib/hw/hwcomposer.exynos4.so
08-17 09:39:51.352  2720  2720 E HAL     : dlopen failed: library "libhdmiclient.so" not found
08-17 09:39:51.352  2720  2720 E SurfaceFlinger: hwcomposer module not found
08-17 09:39:51.354  2720  2720 W SurfaceFlinger: no suitable EGLConfig found, trying a simpler query
08-17 09:39:51.354  2720  2720 F SurfaceFlinger: no suitable EGLConfig found, giving up[/B][/COLOR]
08-17 09:39:51.354  2720  2720 F libc    : Fatal signal 6 (SIGABRT), code -6 in tid 2720 (surfaceflinger)
08-17 09:39:51.355  2089  2089 I DEBUG   : property debug.db.uid not set; NOT waiting for gdb.
08-17 09:39:51.355  2089  2089 I DEBUG   : HINT: adb shell setprop debug.db.uid 100000
08-17 09:39:51.355  2089  2089 I DEBUG   : HINT: adb forward tcp:5039 tcp:5039
08-17 09:39:51.456  2089  2089 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
08-17 09:39:51.456  2089  2089 F DEBUG   : CM Version: '13.0-20160809-UNOFFICIAL-n7100'
08-17 09:39:51.456  2089  2089 F DEBUG   : Build fingerprint: 'samsung/t03gxx/t03g:4.4.2/KOT49H/N7100XXUFND3:user/release-keys'
08-17 09:39:51.456  2089  2089 F DEBUG   : Revision: '0'
08-17 09:39:51.456  2089  2089 F DEBUG   : ABI: 'arm'
08-17 09:39:51.456  2089  2089 F DEBUG   : pid: 2720, tid: 2720, name: surfaceflinger  >>> /system/bin/surfaceflinger <<<
08-17 09:39:51.456  2089  2089 F DEBUG   : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
[COLOR="red"][B]08-17 09:39:51.467  2089  2089 F DEBUG   : Abort message: 'no suitable EGLConfig found, giving up'[/B][/COLOR]
08-17 09:39:51.467  2089  2089 F DEBUG   :     r0 00000000  r1 00000aa0  r2 00000006  r3 40146b8c
08-17 09:39:51.467  2089  2089 F DEBUG   :     r4 40146b94  r5 40146b44  r6 00000000  r7 0000010c
08-17 09:39:51.467  2089  2089 F DEBUG   :     r8 00000000  r9 ffff6372  sl 00000000  fp 00000001
08-17 09:39:51.467  2089  2089 F DEBUG   :     ip 00000006  sp beff14b8  lr 401957a9  pc 40197ba4  cpsr 400f0010
08-17 09:39:51.478  2089  2089 F DEBUG   : 
08-17 09:39:51.478  2089  2089 F DEBUG   : backtrace:
08-17 09:39:51.478  2089  2089 F DEBUG   :     #00 pc 00044ba4  /system/lib/libc.so (tgkill+12)
08-17 09:39:51.478  2089  2089 F DEBUG   :     #01 pc 000427a5  /system/lib/libc.so (pthread_kill+32)
08-17 09:39:51.478  2089  2089 F DEBUG   :     #02 pc 0001ba2f  /system/lib/libc.so (raise+10)
08-17 09:39:51.478  2089  2089 F DEBUG   :     #03 pc 00018bd1  /system/lib/libc.so (__libc_android_abort+34)
08-17 09:39:51.478  2089  2089 F DEBUG   :     #04 pc 000167f0  /system/lib/libc.so (abort+4)
08-17 09:39:51.478  2089  2089 F DEBUG   :     #05 pc 000090ab  /system/lib/libcutils.so (__android_log_assert+86)
08-17 09:39:51.478  2089  2089 F DEBUG   :     #06 pc 0002b495  /system/lib/libsurfaceflinger.so
08-17 09:39:51.478  2089  2089 F DEBUG   :     #07 pc 0002b095  /system/lib/libsurfaceflinger.so
08-17 09:39:51.478  2089  2089 F DEBUG   :     #08 pc 0001adcd  /system/lib/libsurfaceflinger.so (_ZN7android14SurfaceFlinger4initEv+240)
08-17 09:39:51.478  2089  2089 F DEBUG   :     #09 pc 00000ecb  /system/bin/surfaceflinger
08-17 09:39:51.478  2089  2089 F DEBUG   :     #10 pc 0001669d  /system/lib/libc.so (__libc_init+44)
08-17 09:39:51.478  2089  2089 F DEBUG   :     #11 pc 00000d90  /system/bin/surfaceflinger
08-17 09:39:51.475  1988  1988 W auditd  : type=1325 audit(0.0:141): table=filter family=2 entries=8
08-17 09:39:51.475  2757  2757 W iptables: type=1300 audit(0.0:141): arch=40000028 syscall=294 per=800008 success=yes exit=0 a0=4 a1=0 a2=40 a3=40829920 items=0 ppid=2719 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 exe="/system/bin/iptables" subj=u:r:netd:s0 key=(null)
08-17 09:39:51.787  2089  2089 F DEBUG   : 
08-17 09:39:51.787  2089  2089 F DEBUG   : Tombstone written to: /data/tombstones/tombstone_03
08-17 09:39:55.942  2797  2797 I Netd    : Netd 1.0 starting
08-17 09:39:55.943  2797  2797 I QtiConnectivityAdapter: Failed to open libconnctrl, some features may not be present.
08-17 09:39:55.943  2797  2797 D TetherController: Setting IP forward enable = 0
08-17 09:39:56.002  2798  2798 I SurfaceFlinger: SurfaceFlinger is starting
The error comes from here:
Code:
EGLConfig RenderEngine::chooseEglConfig(EGLDisplay display, int format) {
    status_t err;
    EGLConfig config;

    // First try to get an ES2 config
    err = selectEGLConfig(display, format, EGL_OPENGL_ES2_BIT, &config);
    if (err != NO_ERROR) {
        // If ES2 fails, try ES1
        err = selectEGLConfig(display, format, EGL_OPENGL_ES_BIT, &config);
        if (err != NO_ERROR) {
            // still didn't work, probably because we're on the emulator...
            // try a simplified query
            ALOGW("no suitable EGLConfig found, trying a simpler query");
            err = selectEGLConfig(display, format, 0, &config);
            if (err != NO_ERROR) {
                // this EGL is too lame for android
                LOG_ALWAYS_FATAL("[COLOR="Red"]no suitable EGLConfig found, giving up[/COLOR]");
            }
        }
    }
There are no pb with hwcomposer. It seems that it lakes a part of EGL informations.
Maybe this in frameworks/native/opengl/libagl/egl.cpp:
Code:
/* 32-bit BGRA */
          static config_pair_t const config_8_attribute_list[] = {
             { EGL_BUFFER_SIZE,     32 },
             { EGL_ALPHA_SIZE,       8 },
             { EGL_BLUE_SIZE,        8 },
             { EGL_GREEN_SIZE,       8 },
             { EGL_RED_SIZE,         8 },
             { EGL_DEPTH_SIZE,       0 },
             { EGL_CONFIG_ID,        2 },
             { EGL_NATIVE_VISUAL_ID, GGL_PIXEL_FORMAT_BGRA_8888 },
             { EGL_SURFACE_TYPE,     EGL_WINDOW_BIT|EGL_PBUFFER_BIT|EGL_PIXMAP_BIT },
          };
Bizcuite
 
Last edited:
  • Like
Reactions: Option58

西村大一

Senior Member
Dec 7, 2012
858
342
0
Sagamihara\Tōkyō
Hi,
Thanks for your reply, but:
I have made a boot with my own Rom (R3p2 driver like everybody), this is the logcat:
Code:
08-17 09:46:40.719  2177  2177 I cm      : Welcome to Android 6.0.1 / CyanogenMod-13.0-20160809-UNOFFICIAL-n7100 
08-17 09:46:40.720  2123  2123 I perfprofd: random seed set to 1438291486
08-17 09:46:40.724  2072  2072 I SurfaceFlinger: SurfaceFlinger is starting
08-17 09:46:40.724  2072  2072 I SurfaceFlinger: SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
08-17 09:46:40.738  2094  2094 W linker  : /system/lib/libsec-ril.so has text relocations. This is wasting memory and prevents security hardening. Please fix.
08-17 09:46:40.765  2109  2109 W linker  : /system/bin/gpsd has text relocations. This is wasting memory and prevents security hardening. Please fix.
08-17 09:46:40.789  2072  2072 D libEGL  : loaded /system/lib/egl/libEGL_mali.so
08-17 09:46:40.831  2072  2072 D libEGL  : loaded /system/lib/egl/libGLESv1_CM_mali.so
08-17 09:46:40.833  2109  2109 W linker  : /system/lib/libsec-ril.so has text relocations. This is wasting memory and prevents security hardening. Please fix.
08-17 09:46:40.860  2072  2072 D libEGL  : loaded /system/lib/egl/libGLESv2_mali.so
08-17 09:46:40.892  2072  2072 E         : Device driver API match
08-17 09:46:40.892  2072  2072 E         : Device driver API version: 29
08-17 09:46:40.892  2072  2072 E         : User space API version: 29 
08-17 09:46:40.892  2072  2072 E         : mali: REVISION=Linux-r3p2-01rel3 BUILD_DATE=Tue Jul 22 19:59:34 KST 2014 
08-17 09:46:40.911  2072  2072 D gralloc : int init_frame_buffer_locked(private_module_t*) Initializing framebuffer
08-17 09:46:40.911  2072  2072 I gralloc : using (fd=14)
08-17 09:46:40.911  2072  2072 I gralloc : id           = s3cfb
08-17 09:46:40.911  2072  2072 I gralloc : xres         = 720 px
08-17 09:46:40.911  2072  2072 I gralloc : yres         = 1280 px
08-17 09:46:40.911  2072  2072 I gralloc : xres_virtual = 720 px
08-17 09:46:40.911  2072  2072 I gralloc : yres_virtual = 2560 px
08-17 09:46:40.911  2072  2072 I gralloc : bpp          = 32
08-17 09:46:40.911  2072  2072 I gralloc : r            = 16:8
08-17 09:46:40.911  2072  2072 I gralloc : g            =  8:8
08-17 09:46:40.911  2072  2072 I gralloc : b            =  0:8
08-17 09:46:40.911  2072  2072 I gralloc : width        = 69 mm (265.043488 dpi)
08-17 09:46:40.911  2072  2072 I gralloc : height       = 123 mm (264.325195 dpi)
08-17 09:46:40.911  2072  2072 I gralloc : refresh rate = 58.00 Hz
08-17 09:46:40.925  2109  2109 I libdmitry: Nexus 10 GPS interposition library loaded. Your GPS should work in M now.
[COLOR="Red"][B]08-17 09:46:40.956  2072  2072 E HAL     : load: module=/system/lib/hw/hwcomposer.default.so
08-17 09:46:40.956  2072  2072 E HAL     : dlopen failed: library "libhdmiclient.so" not found
08-17 09:46:40.956  2072  2072 E SurfaceFlinger: hwcomposer module not found
08-17 09:46:40.956  2072  2072 I SurfaceFlinger: EGL information:[/B][/COLOR]
08-17 09:46:40.956  2072  2072 I SurfaceFlinger: vendor    : Android
08-17 09:46:40.956  2072  2072 I SurfaceFlinger: version   : 1.4 Android META-EGL
08-17 09:46:40.956  2072  2072 I SurfaceFlinger: extensions: EGL_KHR_get_all_proc_addresses EGL_ANDROID_presentation_time EGL_KHR_swap_buffers_with_damage EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap 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_EXT_create_context_robustness EGL_ANDROID_image_native_buffer EGL_ANDROID_recordable 
08-17 09:46:40.956  2072  2072 I SurfaceFlinger: Client API: OpenGL_ES
08-17 09:46:40.956  2072  2072 I SurfaceFlinger: EGLSurface: 8-8-8-8, config=0x60000014
08-17 09:46:40.959  2072  2072 I SurfaceFlinger: OpenGL ES informations:
08-17 09:46:40.959  2072  2072 I SurfaceFlinger: vendor    : ARM
08-17 09:46:40.959  2072  2072 I SurfaceFlinger: renderer  : Mali-400 MP
08-17 09:46:40.959  2072  2072 I SurfaceFlinger: version   : OpenGL ES 2.0
08-17 09:46:40.959  2072  2072 I SurfaceFlinger: extensions: GL_EXT_debug_marker GL_OES_texture_npot GL_OES_compressed_ETC1_RGB8_texture GL_OES_standard_derivatives GL_OES_EGL_image GL_OES_depth24 GL_ARM_rgba8 GL_ARM_mali_shader_binary GL_OES_depth_texture GL_OES_packed_depth_stencil GL_EXT_texture_format_BGRA8888 GL_EXT_blend_minmax GL_OES_EGL_image_external GL_OES_EGL_sync GL_OES_rgb8_rgba8 GL_EXT_multisampled_render_to_texture GL_EXT_discard_framebuffer GL_OES_get_program_binary GL_ARM_mali_program_binary GL_EXT_shader_texture_lod GL_EXT_robustness GL_OES_depth_texture_cube_map 
08-17 09:46:40.959  2072  2072 I SurfaceFlinger: GL_MAX_TEXTURE_SIZE = 4096
08-17 09:46:40.959  2072  2072 I SurfaceFlinger: GL_MAX_VIEWPORT_DIMS = 4096
08-17 09:46:40.959  2072  2072 E cutils-trace: Error opening trace file: No such file or directory (2)
08-17 09:46:40.963  2072  2072 D SurfaceFlinger: Set power mode=2, type=0 flinger=0x41434df0
08-17 09:46:41.025  2072  2072 D SurfaceFlinger: SF. shader cache generated - 26 shaders in 58.574417 ms
08-17 09:46:41.042  2109  2255 D gpsd    : LogJava: connect(fd11, ...) failed with errno = 111(Connection refused)
08-17 09:46:41.042  2109  2255 D gpsd    : LogJava: Couldn't connect to Logging service 127.0.0.1:6477. Waiting for server...
08-17 09:46:41.060  2109  2109 D wrapperGPS: wrapperOpenClient_RILD
08-17 09:46:41.060  2109  2109 D wrapperGPS: wrapperRegisterRequestCompleteHandler
08-17 09:46:41.060  2109  2109 D wrapperGPS: wrapperRegisterUnsolicitedHandler id(12009), handler(0x40070bfd)
08-17 09:46:41.060  2109  2109 D wrapperGPS: wrapperRegisterErrorCallback
08-17 09:46:41.060  2109  2109 D wrapperGPS: wrapperConnect_RILD
08-17 09:46:41.173  2295  2295 I sysinit : Running /system/etc/init.d/90userinit 
08-17 09:46:41.221  2311  2311 I sysinit : Running /system/etc/init.d/98netflix 
08-17 09:46:41.332  2239  2335 D libEGL  : loaded /system/lib/egl/libEGL_mali.so
08-17 09:46:41.337  2239  2335 D libEGL  : loaded /system/lib/egl/libGLESv1_CM_mali.so
08-17 09:46:41.365  2239  2335 D libEGL  : loaded /system/lib/egl/libGLESv2_mali.so
08-17 09:46:41.393  2239  2335 E         : Device driver API match
08-17 09:46:41.393  2239  2335 E         : Device driver API version: 29
08-17 09:46:41.393  2239  2335 E         : User space API version: 29 
08-17 09:46:41.393  2239  2335 E         : mali: REVISION=Linux-r3p2-01rel3 BUILD_DATE=Tue Jul 22 19:59:34 KST 2014 
08-17 09:46:41.396  2239  2335 E cutils-trace: Error opening trace file: No such file or directory (2)
08-17 09:46:41.444  2239  2335 W BootAnimation: Unable to cache the animation
08-17 09:46:41.445  2239  2335 E BootAnimation: couldn't find audio_conf.txt
And now a boot with my r6p0 kernel:
Code:
08-17 09:39:51.241  2720  2720 I SurfaceFlinger: SurfaceFlinger is starting
08-17 09:39:51.252  2720  2720 I SurfaceFlinger: SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
08-17 09:39:51.256  2720  2720 D libEGL  : loaded /system/lib/egl/libEGL_mali.so
08-17 09:39:51.261  2720  2720 D libEGL  : loaded /system/lib/egl/libGLESv1_CM_mali.so
08-17 09:39:51.291  2720  2720 D libEGL  : loaded /system/lib/egl/libGLESv2_mali.so
08-17 09:39:51.310  1988  1988 W auditd  : type=1325 audit(0.0:135): table=filter family=2 entries=11
08-17 09:39:51.328  2720  2720 W libEGL  : eglInitialize(0x1) failed (EGL_BAD_ALLOC)
08-17 09:39:51.340  2720  2720 D gralloc : int init_frame_buffer_locked(private_module_t*) Initializing framebuffer
08-17 09:39:51.340  2720  2720 I gralloc : using (fd=12)
08-17 09:39:51.340  2720  2720 I gralloc : id           = s3cfb
08-17 09:39:51.340  2720  2720 I gralloc : xres         = 720 px
08-17 09:39:51.340  2720  2720 I gralloc : yres         = 1280 px
08-17 09:39:51.340  2720  2720 I gralloc : xres_virtual = 720 px
08-17 09:39:51.340  2720  2720 I gralloc : yres_virtual = 2560 px
08-17 09:39:51.340  2720  2720 I gralloc : bpp          = 32
08-17 09:39:51.340  2720  2720 I gralloc : r            = 16:8
08-17 09:39:51.340  2720  2720 I gralloc : g            =  8:8
08-17 09:39:51.340  2720  2720 I gralloc : b            =  0:8
08-17 09:39:51.340  2720  2720 I gralloc : width        = 69 mm (265.043488 dpi)
08-17 09:39:51.340  2720  2720 I gralloc : height       = 123 mm (264.325195 dpi)
08-17 09:39:51.340  2720  2720 I gralloc : refresh rate = 58.00 Hz
[COLOR="red"][B]08-17 09:39:51.352  2720  2720 E HAL     : load: module=/system/lib/hw/hwcomposer.exynos4.so
08-17 09:39:51.352  2720  2720 E HAL     : dlopen failed: library "libhdmiclient.so" not found
08-17 09:39:51.352  2720  2720 E SurfaceFlinger: hwcomposer module not found
08-17 09:39:51.354  2720  2720 W SurfaceFlinger: no suitable EGLConfig found, trying a simpler query
08-17 09:39:51.354  2720  2720 F SurfaceFlinger: no suitable EGLConfig found, giving up[/B][/COLOR]
08-17 09:39:51.354  2720  2720 F libc    : Fatal signal 6 (SIGABRT), code -6 in tid 2720 (surfaceflinger)
08-17 09:39:51.355  2089  2089 I DEBUG   : property debug.db.uid not set; NOT waiting for gdb.
08-17 09:39:51.355  2089  2089 I DEBUG   : HINT: adb shell setprop debug.db.uid 100000
08-17 09:39:51.355  2089  2089 I DEBUG   : HINT: adb forward tcp:5039 tcp:5039
08-17 09:39:51.456  2089  2089 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
08-17 09:39:51.456  2089  2089 F DEBUG   : CM Version: '13.0-20160809-UNOFFICIAL-n7100'
08-17 09:39:51.456  2089  2089 F DEBUG   : Build fingerprint: 'samsung/t03gxx/t03g:4.4.2/KOT49H/N7100XXUFND3:user/release-keys'
08-17 09:39:51.456  2089  2089 F DEBUG   : Revision: '0'
08-17 09:39:51.456  2089  2089 F DEBUG   : ABI: 'arm'
08-17 09:39:51.456  2089  2089 F DEBUG   : pid: 2720, tid: 2720, name: surfaceflinger  >>> /system/bin/surfaceflinger <<<
08-17 09:39:51.456  2089  2089 F DEBUG   : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
[COLOR="red"][B]08-17 09:39:51.467  2089  2089 F DEBUG   : Abort message: 'no suitable EGLConfig found, giving up'[/B][/COLOR]
08-17 09:39:51.467  2089  2089 F DEBUG   :     r0 00000000  r1 00000aa0  r2 00000006  r3 40146b8c
08-17 09:39:51.467  2089  2089 F DEBUG   :     r4 40146b94  r5 40146b44  r6 00000000  r7 0000010c
08-17 09:39:51.467  2089  2089 F DEBUG   :     r8 00000000  r9 ffff6372  sl 00000000  fp 00000001
08-17 09:39:51.467  2089  2089 F DEBUG   :     ip 00000006  sp beff14b8  lr 401957a9  pc 40197ba4  cpsr 400f0010
08-17 09:39:51.478  2089  2089 F DEBUG   : 
08-17 09:39:51.478  2089  2089 F DEBUG   : backtrace:
08-17 09:39:51.478  2089  2089 F DEBUG   :     #00 pc 00044ba4  /system/lib/libc.so (tgkill+12)
08-17 09:39:51.478  2089  2089 F DEBUG   :     #01 pc 000427a5  /system/lib/libc.so (pthread_kill+32)
08-17 09:39:51.478  2089  2089 F DEBUG   :     #02 pc 0001ba2f  /system/lib/libc.so (raise+10)
08-17 09:39:51.478  2089  2089 F DEBUG   :     #03 pc 00018bd1  /system/lib/libc.so (__libc_android_abort+34)
08-17 09:39:51.478  2089  2089 F DEBUG   :     #04 pc 000167f0  /system/lib/libc.so (abort+4)
08-17 09:39:51.478  2089  2089 F DEBUG   :     #05 pc 000090ab  /system/lib/libcutils.so (__android_log_assert+86)
08-17 09:39:51.478  2089  2089 F DEBUG   :     #06 pc 0002b495  /system/lib/libsurfaceflinger.so
08-17 09:39:51.478  2089  2089 F DEBUG   :     #07 pc 0002b095  /system/lib/libsurfaceflinger.so
08-17 09:39:51.478  2089  2089 F DEBUG   :     #08 pc 0001adcd  /system/lib/libsurfaceflinger.so (_ZN7android14SurfaceFlinger4initEv+240)
08-17 09:39:51.478  2089  2089 F DEBUG   :     #09 pc 00000ecb  /system/bin/surfaceflinger
08-17 09:39:51.478  2089  2089 F DEBUG   :     #10 pc 0001669d  /system/lib/libc.so (__libc_init+44)
08-17 09:39:51.478  2089  2089 F DEBUG   :     #11 pc 00000d90  /system/bin/surfaceflinger
08-17 09:39:51.475  1988  1988 W auditd  : type=1325 audit(0.0:141): table=filter family=2 entries=8
08-17 09:39:51.475  2757  2757 W iptables: type=1300 audit(0.0:141): arch=40000028 syscall=294 per=800008 success=yes exit=0 a0=4 a1=0 a2=40 a3=40829920 items=0 ppid=2719 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 exe="/system/bin/iptables" subj=u:r:netd:s0 key=(null)
08-17 09:39:51.787  2089  2089 F DEBUG   : 
08-17 09:39:51.787  2089  2089 F DEBUG   : Tombstone written to: /data/tombstones/tombstone_03
08-17 09:39:55.942  2797  2797 I Netd    : Netd 1.0 starting
08-17 09:39:55.943  2797  2797 I QtiConnectivityAdapter: Failed to open libconnctrl, some features may not be present.
08-17 09:39:55.943  2797  2797 D TetherController: Setting IP forward enable = 0
08-17 09:39:56.002  2798  2798 I SurfaceFlinger: SurfaceFlinger is starting
The error comes from here:
Code:
EGLConfig RenderEngine::chooseEglConfig(EGLDisplay display, int format) {
    status_t err;
    EGLConfig config;

    // First try to get an ES2 config
    err = selectEGLConfig(display, format, EGL_OPENGL_ES2_BIT, &config);
    if (err != NO_ERROR) {
        // If ES2 fails, try ES1
        err = selectEGLConfig(display, format, EGL_OPENGL_ES_BIT, &config);
        if (err != NO_ERROR) {
            // still didn't work, probably because we're on the emulator...
            // try a simplified query
            ALOGW("no suitable EGLConfig found, trying a simpler query");
            err = selectEGLConfig(display, format, 0, &config);
            if (err != NO_ERROR) {
                // this EGL is too lame for android
                LOG_ALWAYS_FATAL("[COLOR="Red"]no suitable EGLConfig found, giving up[/COLOR]");
            }
        }
    }
There are no pb with hwcomposer. It seems that it lakes a part of EGL informations.
Maybe this in frameworks/native/opengl/libagl/egl.cpp:
Code:
/* 32-bit BGRA */
          static config_pair_t const config_8_attribute_list[] = {
             { EGL_BUFFER_SIZE,     32 },
             { EGL_ALPHA_SIZE,       8 },
             { EGL_BLUE_SIZE,        8 },
             { EGL_GREEN_SIZE,       8 },
             { EGL_RED_SIZE,         8 },
             { EGL_DEPTH_SIZE,       0 },
             { EGL_CONFIG_ID,        2 },
             { EGL_NATIVE_VISUAL_ID, GGL_PIXEL_FORMAT_BGRA_8888 },
             { EGL_SURFACE_TYPE,     EGL_WINDOW_BIT|EGL_PBUFFER_BIT|EGL_PIXMAP_BIT },
          };
Bizcuite
Code:
08-17 09:46:40.789  2072  2072 D libEGL  : loaded /system/lib/egl/libEGL_mali.so
08-17 09:46:40.831  2072  2072 D libEGL  : loaded /system/lib/egl/libGLESv1_CM_mali.so
08-17 09:46:40.860  2072  2072 D libEGL  : loaded /system/lib/egl/libGLESv2_mali.so
These are specific for the r3p2 version of the device. You HAVE to build a new ROM that contains the Kernel with r6p0 version for everything to fit properly. Trust me.
 
Last edited:

bizcuite

Senior Member
Aug 11, 2010
1,180
764
0
Corbeil-Essonnes
Code:
08-17 09:46:40.789  2072  2072 D libEGL  : loaded /system/lib/egl/libEGL_mali.so
08-17 09:46:40.831  2072  2072 D libEGL  : loaded /system/lib/egl/libGLESv1_CM_mali.so
08-17 09:46:40.860  2072  2072 D libEGL  : loaded /system/lib/egl/libGLESv2_mali.so
These are specific for the r3p2 version of the device. You HAVE to build a new ROM that contains the Kernel with r6p0 version for everything to fit properly. Trust me.
I made ATM (compilation in progress) my own ROM with the new kernel, i haven't wait you to do it ;)

But i don't understand why it's necessary for you to compile the OS with the kernel? (where are the relations with the Android code and the kernel?) For me, kernel files are not used to compile gralloc/hwcomposer/others graphics libs.
By experience, when i had to build ROM for Archos gen 8, kernel is not necessary to have a working build (it was compile as an external kernel).

Kernel can be compiled by internal CM/AOSP toolchain or independant toolchain....
I compile the kernel by linaro toolchain to save time.

Bizcuite
 
Last edited:

西村大一

Senior Member
Dec 7, 2012
858
342
0
Sagamihara\Tōkyō
I made ATM (compilation in progress) my own ROM with the new kernel, i haven't wait you to do it ;)

But i don't understand why it's necessary for you to compile the OS with the kernel? (where are the relations with the Android code and the kernel?) For me, kernel files are not used to compile gralloc/hwcomposer/others graphics libs.

Kernel can be compiled by internal CM/AOSP toolchain or independant toolchain....
I compile the kernel by linaro toolchain to save time.

Bizcuite
That is because, especially if you are upgrading the driver version, the graphics files (gralloc, hwcomposer, OpenGL) only know the "old" revision of the driver, i.e. r3p2. With the newer version, r6p0, many things have changed, so the graphics part of the ROM doesn't know what to do and simply abandons trying. Try to read the logcat and you'll see what I mean by it. It also needs to build a new EGLConfig for the ROM to work with.

Code:
08-16 11:58:38.216  3239  3239 F SurfaceFlinger: no suitable EGLConfig found, giving up
Code:
                // this EGL is too lame for android
 

bizcuite

Senior Member
Aug 11, 2010
1,180
764
0
Corbeil-Essonnes
That is because, especially if you are upgrading the driver version, the graphics files (gralloc, hwcomposer, OpenGL) only know the "old" revision of the driver, i.e. r3p2. With the newer version, r6p0, many things have changed, so the graphics part of the ROM doesn't know what to do and simply abandons trying. Try to read the logcat and you'll see what I mean by it. It also needs to build a new EGLConfig for the ROM to work with.

Code:
08-16 11:58:38.216  3239  3239 F SurfaceFlinger: no suitable EGLConfig found, giving up
Code:
                // this EGL is too lame for android
A new ROM with r6p0 kernel include has been terminated yesterday (applications update at start has changed, it's beautiful lol).
Same error with surfaceflinger and the Hack doesn't worked for us.
Nothing has changed!! (same logcat)

I recompile with a newer version of gralloc (i build it ATM) and will try to see evolutions in the logcat.
sources of gralloc:
HTML:
http://malideveloper.arm.com/resources/drivers/open-source-mali-gpus-android-gralloc-module/
and choose 13 january 2015 version

(Back)Port driver PVR is more easily!!!

Bizcuite
 

西村大一

Senior Member
Dec 7, 2012
858
342
0
Sagamihara\Tōkyō
A new ROM with r6p0 kernel include has been terminated yesterday (applications update at start has changed, it's beautiful lol).
Same error with surfaceflinger and the Hack doesn't worked for us.
Nothing has changed!! (same logcat)

I recompile with a newer version of gralloc (i build it ATM) and will try to see evolutions in the logcat.
sources of gralloc:
HTML:
http://malideveloper.arm.com/resources/drivers/open-source-mali-gpus-android-gralloc-module/
and choose 13 january 2015 version

(Back)Port driver PVR is more easily!!!

Bizcuite
Now it should work. If the gralloc accepts the r6p0 drivers we're in business.
 

bizcuite

Senior Member
Aug 11, 2010
1,180
764
0
Corbeil-Essonnes
Now it should work. If the gralloc accepts the r6p0 drivers we're in business.
It doesn't worked because the drivers ils not loaded correctly. /dev/mali is not created, UMP driver yes. There are ni crash from the kernel :/
I work on kernel before....
I have included too the new UMP HAL(with the new gralloc) into n7100 device folder.
I will inform you about any progression...

Bizcuite

Sent from my GT-N7100 using XDA-Developers mobile app
 

xress7

Senior Member
Jun 11, 2016
191
44
0
Hi guys,

Anyone has tried to switch r3p2 mali driver to r6p0 version?
I try to port it atm, kernel boot, but driver is not load correctly.
If you want try you can take kernel exynos from Google repo. And port mali_osk_locks.c files from r3p2 driver. I will push my first try (which boot) on my github un few times.

This is the base of driver that i use:
https://android.googlesource.com/ke...3.10-marshmallow-mr1-wear-release/drivers/gpu

My github:
https://github.com/bizcuite/android_kernel_samsung_smdk4412/tree/r6p0_v1



Bizcuite

Sent from my GT-N7100 using XDA-Developers mobile app
Work on void kernel
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone