[Gta04-owner] Building replicant - Winter 2017

Josua Mayer josua.mayer97 at gmail.com
Tue Dec 26 21:13:09 CET 2017


Good evening everybody,

Due to the holidays I had some freetime to spend on my GTA04 again. So I 
chose to investigate building replicant-6 and booting it.
So following the iReplicant-6 build instructions at [0], I managed to 
build the replicant-6.0-dev branch of replicant and boot it (not to GUI).

Turns out that, as Andreas mentioned a while ago, surfaceflinger dies.
I tracked that down to a missing hwcomposer library, that surfaceflinger 
tries to load:
01-01 00:00:08.424  1399  1399 I SurfaceFlinger: SurfaceFlinger is starting
01-01 00:00:08.454  1399  1399 I SurfaceFlinger: SurfaceFlinger's main 
thread ready to run. Initializing graphics H/W...
01-01 00:00:08.455  1399  1399 D libEGL  : Emulator without GPU support 
detected. Fallback to software renderer.
01-01 00:00:08.506  1399  1399 D libEGL  : loaded 
/system/lib/egl/libGLES_android.so
01-01 00:00:08.698  1399  1399 E SurfaceFlinger: hwcomposer module not found

A quick search revealed that there is a generic hwcomposer 
implementation based on DRM, called drm_hwcomposer.
After enabling, and rebuilding, a new error popped up that I can't seem 
to figure out:
01-01 00:00:12.555  1535  1535 I SurfaceFlinger: SurfaceFlinger is starting
01-01 00:00:12.559  1535  1535 I SurfaceFlinger: SurfaceFlinger's main 
thread ready to run. Initializing graphics H/W...
01-01 00:00:12.560  1535  1535 D libEGL  : Emulator without GPU support 
detected. Fallback to software renderer.
01-01 00:00:12.597  1535  1535 D libEGL  : loaded 
/system/lib/egl/libGLES_android.so
01-01 00:00:12.773  1535  1535 E hwc-drm-resources: Failed to open dri- 
Unknown error -2
01-01 00:00:12.773  1535  1535 E hwcomposer-drm: Can't initialize Drm 
object -19
01-01 00:00:12.773  1535  1535 E SurfaceFlinger: composer device failed 
to initialize (No such device)
01-01 00:00:12.773  1535  1535 E SurfaceFlinger: ERROR: failed to open 
framebuffer (No such file or directory), aborting

At the heart of this error sits drm_hwcomposer, which tries to open 
/dev/dri/card0.
Sure enough, a quick ls on /dev confirmed that it does *not* exist.

Any ideas why that is?
The latest LetuxOS does have this file.

What I checked:
ueventd is properly configured to create /dev/dri/*, *if* the kernel 
notifies it about the presence of such device. See ueventd.rc: 
/dev/dri/* 0666 root graphics

Please find a boot-log attached.

best regards and happy holidays
Josua Mayer


[0] http://projects.goldelico.com/p/gta04-replicant/page/Replicant-6/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: e.log
Type: text/x-log
Size: 105848 bytes
Desc: not available
URL: <http://lists.goldelico.com/pipermail/gta04-owner/attachments/20171226/7713ddf3/attachment-0001.bin>


More information about the Gta04-owner mailing list