I've been trying to run Marshmallow-based builds (both official x86 builds, my own x86_64 builds from the repo and the CM13 builds from
https://groups.google.com/forum/#!topic/android-x86/EQR7dqArcXg%5B1-25%5D) on my desktop with an R9 290, but even despite setting the right androidboot.hardware option, SurfaceFlinger seems to not find any suitable EGL configuration.
5.1-rc1 (x86_64) initializes SurfaceFlinger fine - below are logcat and dmesg dumps from the running M OS:
02-16 03:16:13.034 2527 2527 I SurfaceFlinger: SurfaceFlinger is starting
02-16 03:16:13.038 2527 2527 I SurfaceFlinger: SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
02-16 03:16:13.039 2527 2527 D libEGL : loaded /system/lib/egl/libGLES_mesa.so
02-16 03:16:13.050 2527 2527 I GRALLOC-RADEON: detected chipset 0x67b0 family 0x3d (vram size -21MiB, gart size 2043MiB)
02-16 03:16:13.050 2527 2527 I GRALLOC-DRM: create radeon for driver radeon
02-16 03:16:13.051 2527 2527 W EGL-DRI2: DRI2: driver exports no extensions (undefined symbol: __driDriverExtensions)
02-16 03:16:13.051 2527 2527 W libEGL : eglInitialize(0xf6c02000) failed (EGL_NOT_INITIALIZED)
02-16 03:16:13.051 2527 2527 D GRALLOC-KMS: supported drm planes and formats
02-16 03:16:13.091 2528 2528 I mediaserver: ServiceManager: 0xf610c680
02-16 03:16:13.091 2528 2528 I AudioFlinger: Using default 3000 mSec as standby time.
02-16 03:16:13.091 2528 2528 E BatteryNotifier: batterystats service unavailable!
02-16 03:16:13.091 2528 2528 E BatteryNotifier: batterystats service unavailable!
02-16 03:16:13.091 2528 2528 I CameraService: CameraService started (pid=2528)
02-16 03:16:13.091 2528 2528 I CameraService: CameraService process starting
02-16 03:16:13.091 2528 2528 E BatteryNotifier: batterystats service unavailable!
02-16 03:16:13.091 2528 2528 E BatteryNotifier: batterystats service unavailable!
02-16 03:16:13.092 2528 2528 D Camera_Factory: CameraFactory::CameraFactory
02-16 03:16:13.092 2528 2528 D Camera_Factory: CameraFactory::parseConfig: configFile = /etc/camera.cfg
02-16 03:16:13.092 2528 2528 D Camera_Factory: /etc/camera.cfg not found, using camera configuration defaults
02-16 03:16:13.092 2528 2528 E cutils-trace: Error opening trace file: Permission denied (13)
02-16 03:16:13.092 2528 2528 D Camera_Factory: CameraFactory::get_number_of_cameras
02-16 03:16:13.092 2528 2528 D Camera_Factory: CameraFactory::getCameraNum: 0
02-16 03:16:13.092 2528 2528 I CameraService: Loaded "Camera Module" camera module
02-16 03:16:13.092 2528 2528 D Camera_Factory: CameraFactory::get_number_of_cameras
02-16 03:16:13.092 2528 2528 D Camera_Factory: CameraFactory::getCameraNum: 0
02-16 03:16:13.092 2528 2528 D Camera_Factory: CameraFactory::get_number_of_cameras
02-16 03:16:13.092 2528 2528 D Camera_Factory: CameraFactory::getCameraNum: 0
02-16 03:16:13.092 2528 2528 I ServiceManager: Waiting for service media.camera.proxy...
02-16 03:16:13.128 2527 2527 I GRALLOC-KMS: there are 16 modes on connector 0x2d, type 3
02-16 03:16:13.128 2527 2527 I GRALLOC-KMS: 2560x1440
02-16 03:16:13.128 2527 2527 I GRALLOC-KMS: 1920x1200
02-16 03:16:13.128 2527 2527 I GRALLOC-KMS: 1920x1080
02-16 03:16:13.128 2527 2527 I GRALLOC-KMS: 1600x1200
02-16 03:16:13.128 2527 2527 I GRALLOC-KMS: 1680x1050
02-16 03:16:13.128 2527 2527 I GRALLOC-KMS: 1280x1024
02-16 03:16:13.128 2527 2527 I GRALLOC-KMS: 1280x1024
02-16 03:16:13.128 2527 2527 I GRALLOC-KMS: 1280x800
02-16 03:16:13.128 2527 2527 I GRALLOC-KMS: 1152x864
02-16 03:16:13.128 2527 2527 I GRALLOC-KMS: 1024x768
02-16 03:16:13.128 2527 2527 I GRALLOC-KMS: 1024x768
02-16 03:16:13.128 2527 2527 I GRALLOC-KMS: 800x600
02-16 03:16:13.128 2527 2527 I GRALLOC-KMS: 800x600
02-16 03:16:13.128 2527 2527 I GRALLOC-KMS: 640x480
02-16 03:16:13.128 2527 2527 I GRALLOC-KMS: 640x480
02-16 03:16:13.128 2527 2527 I GRALLOC-KMS: 720x400
02-16 03:16:13.128 2527 2527 I GRALLOC-KMS: Established mode:
02-16 03:16:13.128 2527 2527 I GRALLOC-KMS: clock: 241500, hdisplay: 2560, hsync_start: 2608, hsync_end: 2640, htotal: 2720, hskew: 0
02-16 03:16:13.128 2527 2527 I GRALLOC-KMS: vdisplay: 1440, vsync_start: 1443, vsync_end: 1448, vtotal: 1481, vscan: 0, vrefresh: 60
02-16 03:16:13.128 2527 2527 I GRALLOC-KMS: flags: 9, type: 72, name 2560x1440
02-16 03:16:13.128 2527 2527 I GRALLOC-KMS: the best mode is 2560x1440
02-16 03:16:13.168 2529 2529 D AndroidRuntime: >>>>>> START com.android.internal.os.ZygoteInit uid 0 <<<<<<
02-16 03:16:13.168 2527 2527 D GRALLOC-KMS: will use flip for fb posting
02-16 03:16:13.168 2527 2527 I GRALLOC-MOD: mode.hdisplay 2560
02-16 03:16:13.168 2527 2527 I GRALLOC-MOD: mode.vdisplay 1440
02-16 03:16:13.168 2527 2527 I GRALLOC-MOD: mode.vrefresh 60.000000
02-16 03:16:13.168 2527 2527 I GRALLOC-MOD: format 0x5
02-16 03:16:13.168 2527 2527 I GRALLOC-MOD: xdpi 108.000000
02-16 03:16:13.168 2527 2527 I GRALLOC-MOD: ydpi 107.000000
02-16 03:16:13.169 2527 2527 E SurfaceFlinger: hwcomposer module not found
02-16 03:16:13.169 2527 2527 W SurfaceFlinger: no suitable EGLConfig found, trying a simpler query
02-16 03:16:13.169 2527 2527 F SurfaceFlinger: no suitable EGLConfig found, giving up
02-16 03:16:13.169 2527 2527 F libc : Fatal signal 6 (SIGABRT), code -6 in tid 2527 (surfaceflinger)
02-16 03:16:13.169 1700 1700 I DEBUG : property debug.db.uid not set; NOT waiting for gdb.
02-16 03:16:13.169 1700 1700 I DEBUG : HINT: adb shell setprop debug.db.uid 100000
02-16 03:16:13.169 1700 1700 I DEBUG : HINT: adb forward tcp:5039 tcp:5039
02-16 03:16:13.169 2529 2529 D AndroidRuntime: CheckJNI is OFF
02-16 03:16:13.169 2529 2529 I art : option[0]=-Xzygote
02-16 03:16:13.169 2529 2529 I art : option[1]=-Xstacktracefile:/data/anr/traces.txt
02-16 03:16:13.169 2529 2529 I art : option[2]=exit
02-16 03:16:13.169 2529 2529 I art : option[3]=vfprintf
02-16 03:16:13.169 2529 2529 I art : option[4]=sensitiveThread
02-16 03:16:13.169 2529 2529 I art : option[5]=-verbose:gc
02-16 03:16:13.169 2529 2529 I art : option[6]=-Xms16m
02-16 03:16:13.169 2529 2529 I art : option[7]=-Xmx512m
02-16 03:16:13.169 2529 2529 I art : option[8]=-XX:HeapGrowthLimit=192m
02-16 03:16:13.169 2529 2529 I art : option[9]=-XX:HeapMinFree=512k
02-16 03:16:13.169 2529 2529 I art : option[10]=-XX:HeapMaxFree=8m
02-16 03:16:13.169 2529 2529 I art : option[11]=-XX:HeapTargetUtilization=0.75
02-16 03:16:13.169 2529 2529 I art : option[12]=-agentlib:jdwp=transport=dt_android_adb,suspend=n,server=y
02-16 03:16:13.169 2529 2529 I art : option[13]=-Xlockprofthreshold:500
02-16 03:16:13.169 2529 2529 I art : option[14]=-Ximage-compiler-option
02-16 03:16:13.169 2529 2529 I art : option[15]=--runtime-arg
02-16 03:16:13.169 2529 2529 I art : option[16]=-Ximage-compiler-option
02-16 03:16:13.169 2529 2529 I art : option[17]=-Xms64m
02-16 03:16:13.169 2529 2529 I art : option[18]=-Ximage-compiler-option
02-16 03:16:13.169 2529 2529 I art : option[19]=--runtime-arg
02-16 03:16:13.169 2529 2529 I art : option[20]=-Ximage-compiler-option
02-16 03:16:13.169 2529 2529 I art : option[21]=-Xmx64m
02-16 03:16:13.169 2529 2529 I art : option[22]=-Ximage-compiler-option
02-16 03:16:13.169 2529 2529 I art : option[23]=--image-classes=/system/etc/preloaded-classes
02-16 03:16:13.169 2529 2529 I art : option[24]=-Xcompiler-option
02-16 03:16:13.169 2529 2529 I art : option[25]=--runtime-arg
02-16 03:16:13.169 2529 2529 I art : option[26]=-Xcompiler-option
02-16 03:16:13.169 2529 2529 I art : option[27]=-Xms64m
02-16 03:16:13.169 2529 2529 I art : option[28]=-Xcompiler-option
02-16 03:16:13.169 2529 2529 I art : option[29]=--runtime-arg
02-16 03:16:13.169 2529 2529 I art : option[30]=-Xcompiler-option
02-16 03:16:13.169 2529 2529 I art : option[31]=-Xmx512m
02-16 03:16:13.169 2529 2529 I art : option[32]=-Ximage-compiler-option
02-16 03:16:13.169 2529 2529 I art : option[33]=--instruction-set-variant=x86
02-16 03:16:13.169 2529 2529 I art : option[34]=-Xcompiler-option
02-16 03:16:13.169 2529 2529 I art : option[35]=--instruction-set-variant=x86
02-16 03:16:13.169 2529 2529 I art : option[36]=-Ximage-compiler-option
02-16 03:16:13.169 2529 2529 I art : option[37]=--instruction-set-features=default
02-16 03:16:13.169 2529 2529 I art : option[38]=-Xcompiler-option
02-16 03:16:13.169 2529 2529 I art : option[39]=--instruction-set-features=default
02-16 03:16:13.169 2529 2529 I art : option[40]=-Duser.locale=en-US
02-16 03:16:13.169 2529 2529 I art : option[41]=-XX:NativeBridge=libnb.so
02-16 03:16:13.169 2529 2529 I art : option[42]=--cpu-abilist=x86,armeabi-v7a,armeabi
02-16 03:16:13.169 2529 2529 I art : option[43]=-Xfingerprint:...
02-16 03:16:13.177 2529 2529 D ICU : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
02-16 03:16:13.184 2529 2529 E memtrack: Couldn't load memtrack module (No such file or directory)
02-16 03:16:13.184 2529 2529 E android.os.Debug: failed to load memtrack module: -2
02-16 03:16:13.184 2529 2529 I Radio-JNI: register_android_hardware_Radio DONE
02-16 03:16:13.185 2529 2529 I SamplingProfilerIntegration: Profiling disabled.
02-16 03:16:13.185 2529 2529 D Zygote : begin preload
02-16 03:16:13.185 2529 2529 I Zygote : Preloading classes...
02-16 03:16:13.198 2529 2529 E Minikin : addFont failed to create font /system/fonts/NanumGothic.ttf
02-16 03:16:13.198 2529 2529 E Minikin : addFont failed to create font /system/fonts/DroidSansFallback.ttf
02-16 03:16:13.198 2529 2529 E Minikin : addFont failed to create font /system/fonts/MTLmr3m.ttf
02-16 03:16:13.209 2529 2529 V DngCreator_JNI: DngCreator_nativeClassInit:
02-16 03:16:13.219 1700 1700 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
02-16 03:16:13.219 1700 1700 F DEBUG : Build fingerprint: '...'
02-16 03:16:13.219 1700 1700 F DEBUG : Revision: '0'
02-16 03:16:13.219 1700 1700 F DEBUG : ABI: 'x86'
02-16 03:16:13.219 1700 1700 F DEBUG : pid: 2527, tid: 2527, name: surfaceflinger >>> /system/bin/surfaceflinger <<<
02-16 03:16:13.219 1700 1700 F DEBUG : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
02-16 03:16:13.220 1700 1700 F DEBUG : Abort message: 'no suitable EGLConfig found, giving up'
02-16 03:16:13.220 1700 1700 F DEBUG : eax 00000000 ebx 000009df ecx 000009df edx 00000006
02-16 03:16:13.220 1700 1700 F DEBUG : esi f771cc90 edi 00000000
02-16 03:16:13.220 1700 1700 F DEBUG : xcs 00000023 xds 0000002b xes 0000002b xfs 00000003 xss 0000002b
02-16 03:16:13.220 1700 1700 F DEBUG : eip f7458106 ebp 000009df esp ff886ac0 flags 00000202
02-16 03:16:13.220 1700 1700 F DEBUG :
02-16 03:16:13.220 1700 1700 F DEBUG : backtrace:
02-16 03:16:13.220 1700 1700 F DEBUG : #00 pc 00085106 /system/lib/libc.so (tgkill+22)
02-16 03:16:13.220 1700 1700 F DEBUG : #01 pc 000812e8 /system/lib/libc.so (pthread_kill+70)
02-16 03:16:13.220 1700 1700 F DEBUG : #02 pc 00027255 /system/lib/libc.so (raise+36)
02-16 03:16:13.220 1700 1700 F DEBUG : #03 pc 00020a34 /system/lib/libc.so (abort+80)
02-16 03:16:13.220 1700 1700 F DEBUG : #04 pc 0000cde3 /system/lib/libcutils.so (__android_log_assert+128)
02-16 03:16:13.220 1700 1700 F DEBUG : #05 pc 000458b6 /system/lib/libsurfaceflinger.so
02-16 03:16:13.220 1700 1700 F DEBUG : #06 pc 000451c1 /system/lib/libsurfaceflinger.so
02-16 03:16:13.220 1700 1700 F DEBUG : #07 pc 00028386 /system/lib/libsurfaceflinger.so (android::SurfaceFlinger::init()+966)
02-16 03:16:13.220 1700 1700 F DEBUG : #08 pc 00000d84 /system/bin/surfaceflinger
02-16 03:16:13.220 1700 1700 F DEBUG : #09 pc 00016f0c /system/lib/libc.so (__libc_init+99)
02-16 03:16:13.220 1700 1700 F DEBUG : #10 pc 00000bf0 /system/bin/surfaceflinger
02-16 03:16:13.224 2529 2529 I art : Thread[1,tid=2529,Native,Thread*=0xf3db4500,peer=0x12c35100,"main"] recursive attempt to load library "/system/lib/libmedia_jni.so"
02-16 03:16:13.224 2529 2529 D MtpDeviceJNI: register_android_mtp_MtpDevice
02-16 03:16:13.224 2529 2529 I art : Thread[1,tid=2529,Native,Thread*=0xf3db4500,peer=0x12c35100,"main"] recursive attempt to load library "/system/lib/libmedia_jni.so"
02-16 03:16:13.224 2529 2529 I art : Thread[1,tid=2529,Native,Thread*=0xf3db4500,peer=0x12c35100,"main"] recursive attempt to load library "/system/lib/libmedia_jni.so"
02-16 03:16:13.226 2529 2529 W linker : /system/vendor/lib/libavcodec.so has text relocations. This is wasting memory and prevents security hardening. Please fix.
02-16 03:16:13.226 2529 2529 W linker : /system/vendor/lib/libswresample.so has text relocations. This is wasting memory and prevents security hardening. Please fix.
02-16 03:16:13.230 1700 1700 F DEBUG :
02-16 03:16:13.230 1700 1700 F DEBUG : Tombstone written to: /data/tombstones/tombstone_01
[ 2.286584] [drm] Initialized drm 1.1.0 20060810
[ 2.301029] [drm] radeon kernel modesetting enabled.
[ 2.301100] checking generic (e0000000 e10000) vs hw (e0000000 10000000)
[ 2.301101] fb: switching to radeondrmfb from EFI VGA
[ 2.301117] Console: switching to colour dummy device 80x25
[ 2.301239] [drm] initializing kernel modesetting (HAWAII 0x1002:0x67B0 0x1043:0x046C).
[ 2.301246] [drm] register mmio base: 0xF7D00000
[ 2.301247] [drm] register mmio size: 262144
[ 2.301249] [drm] doorbell mmio base: 0xF0000000
[ 2.301250] [drm] doorbell mmio size: 8388608
[ 2.301254] [drm] ACPI VFCT contains a BIOS for 01:00.0 1002:67b0, size 65536
[ 2.301263] ATOM BIOS: 67B0HB.15.41.0.2.AS04L
[ 2.301305] radeon 0000:01:00.0: VRAM: 4096M 0x0000000000000000 - 0x00000000FFFFFFFF (4096M used)
[ 2.301306] radeon 0000:01:00.0: GTT: 2048M 0x0000000100000000 - 0x000000017FFFFFFF
[ 2.301307] [drm] Detected VRAM RAM=4096M, BAR=256M
[ 2.301308] [drm] RAM width 512bits DDR
[ 2.301459] [TTM] Zone kernel: Available graphics memory: 16450176 kiB
[ 2.301460] [TTM] Zone dma32: Available graphics memory: 2097152 kiB
[ 2.301461] [TTM] Initializing pool allocator
[ 2.301463] [TTM] Initializing DMA pool allocator
[ 2.301473] [drm] radeon: 4096M of VRAM memory ready
[ 2.301474] [drm] radeon: 2048M of GTT memory ready.
[ 2.301481] [drm] Loading hawaii Microcode
[ 2.304127] [drm] Internal thermal controller with fan control
[ 2.304149] [drm] probing gen 2 caps for device 8086:c01 = 261ad03/e
[ 2.317321] [drm] radeon: dpm initialized
[ 2.319445] [drm] Found VCE firmware/feedback version 40.2.2 / 15!
[ 2.319449] [drm] GART: num cpu pages 524288, num gpu pages 524288
[ 2.320304] [drm] probing gen 2 caps for device 8086:c01 = 261ad03/e
[ 2.320307] [drm] PCIE gen 3 link speeds already enabled
[ 2.323319] [drm] PCIE GART of 2048M enabled (table at 0x0000000000324000).
[ 2.323416] radeon 0000:01:00.0: WB enabled
[ 2.323421] radeon 0000:01:00.0: fence driver on ring 0 use gpu addr 0x0000000100000c00 and cpu addr 0xffff8807fa548c00
[ 2.323422] radeon 0000:01:00.0: fence driver on ring 1 use gpu addr 0x0000000100000c04 and cpu addr 0xffff8807fa548c04
[ 2.323423] radeon 0000:01:00.0: fence driver on ring 2 use gpu addr 0x0000000100000c08 and cpu addr 0xffff8807fa548c08
[ 2.323424] radeon 0000:01:00.0: fence driver on ring 3 use gpu addr 0x0000000100000c0c and cpu addr 0xffff8807fa548c0c
[ 2.323426] radeon 0000:01:00.0: fence driver on ring 4 use gpu addr 0x0000000100000c10 and cpu addr 0xffff8807fa548c10
[ 2.323796] radeon 0000:01:00.0: fence driver on ring 5 use gpu addr 0x0000000000076c98 and cpu addr 0xffffc90000836c98
[ 2.323932] radeon 0000:01:00.0: fence driver on ring 6 use gpu addr 0x0000000100000c18 and cpu addr 0xffff8807fa548c18
[ 2.323933] radeon 0000:01:00.0: fence driver on ring 7 use gpu addr 0x0000000100000c1c and cpu addr 0xffff8807fa548c1c
[ 2.323935] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 2.323936] [drm] Driver supports precise vblank timestamp query.
[ 2.323998] radeon 0000:01:00.0: radeon: using MSI.
[ 2.324019] [drm] radeon: irq initialized.
[ 2.326393] [drm] ring test on 0 succeeded in 4 usecs
[ 2.326470] [drm] ring test on 1 succeeded in 3 usecs
[ 2.326482] [drm] ring test on 2 succeeded in 3 usecs
[ 2.326652] [drm] ring test on 3 succeeded in 5 usecs
[ 2.326658] [drm] ring test on 4 succeeded in 4 usecs
[ 2.372685] [drm] ring test on 5 succeeded in 2 usecs
[ 2.392695] [drm] UVD initialized successfully.
[ 2.502752] [drm] ring test on 6 succeeded in 23 usecs
[ 2.502762] [drm] ring test on 7 succeeded in 4 usecs
[ 2.502763] [drm] VCE initialized successfully.
[ 2.504207] [drm] ib test on ring 0 succeeded in 0 usecs
[ 3.003684] [drm] ib test on ring 1 succeeded in 0 usecs
[ 3.503743] [drm] ib test on ring 2 succeeded in 0 usecs
[ 3.503817] [drm] ib test on ring 3 succeeded in 0 usecs
[ 3.503910] [drm] ib test on ring 4 succeeded in 0 usecs
[ 4.023737] [drm] ib test on ring 5 succeeded
[ 4.044657] [drm] ib test on ring 6 succeeded
[ 4.045398] [drm] ib test on ring 7 succeeded
[ 4.047219] [drm] Radeon Display Connectors
[ 4.047224] [drm] Connector 0:
[ 4.047226] [drm] DP-1
[ 4.047228] [drm] HPD2
[ 4.047231] [drm] DDC: 0x6530 0x6530 0x6534 0x6534 0x6538 0x6538 0x653c 0x653c
[ 4.047233] [drm] Encoders:
[ 4.047235] [drm] DFP1: INTERNAL_UNIPHY2
[ 4.047237] [drm] Connector 1:
[ 4.047239] [drm] HDMI-A-1
[ 4.047240] [drm] HPD3
[ 4.047243] [drm] DDC: 0x6550 0x6550 0x6554 0x6554 0x6558 0x6558 0x655c 0x655c
[ 4.047245] [drm] Encoders:
[ 4.047247] [drm] DFP2: INTERNAL_UNIPHY2
[ 4.047248] [drm] Connector 2:
[ 4.047250] [drm] DVI-D-1
[ 4.047252] [drm] HPD1
[ 4.047254] [drm] DDC: 0x6560 0x6560 0x6564 0x6564 0x6568 0x6568 0x656c 0x656c
[ 4.047256] [drm] Encoders:
[ 4.047258] [drm] DFP3: INTERNAL_UNIPHY1
[ 4.047260] [drm] Connector 3:
[ 4.047261] [drm] DVI-D-2
[ 4.047263] [drm] HPD6
[ 4.047266] [drm] DDC: 0x6580 0x6580 0x6584 0x6584 0x6588 0x6588 0x658c 0x658c
[ 4.047267] [drm] Encoders:
[ 4.047269] [drm] DFP4: INTERNAL_UNIPHY
[ 4.095037] [drm] fb mappable at 0xE0727000
[ 4.095039] [drm] vram apper at 0xE0000000
[ 4.095041] [drm] size 14745600
[ 4.095042] [drm] fb depth is 24
[ 4.095043] [drm] pitch is 10240
[ 4.095081] fbcon: radeondrmfb (fb0) is primary device
[ 4.107304] Console: switching to colour frame buffer device 320x90
[ 4.112557] radeon 0000:01:00.0: fb0: radeondrmfb frame buffer device
[ 4.119452] [drm] Initialized radeon 2.43.0 20080528 for 0000:01:00.0 on minor 0
Help would be appreciated - I didn't notice SurfaceFlinger's own initialization code changing between Lollipop and Marshmallow, for instance...