[Gta04-owner] Building replicant - Winter 2017
Andreas Kemnade
andreas at kemnade.info
Tue Dec 26 22:17:27 CET 2017
Hi,
On Tue, 26 Dec 2017 21:13:09 +0100
Josua Mayer <josua.mayer97 at gmail.com> wrote:
> 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:
How did you enable it?
> 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.
>
Most interesting line:
01-01 00:00:26.424 1404 1404 I load_modules.sh: /system/load_modules.sh[205]: modprobe: not found
I guess the drm related modules are not loaded. Perhaps we do not
need the hwcomposer-drm then.
If they are loaded: Try to manually create /dev/dri/*
Btw: you should try to use the same kernel + modules as I used for
replicant 4.2, they contain important fixes (e.g. Audio routing)
Maybe those folks who had a running gui at OHSW 2016 find time to do a
dump of /dev/brain and filter out the relevant patches...
Regards,
Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.goldelico.com/pipermail/gta04-owner/attachments/20171226/719599b2/attachment.asc>
More information about the Gta04-owner
mailing list