[Replicant] [espresso3g][PATCH 2/2] Switch back to libagl to fix boot

Denis 'GNUtoo' Carikli GNUtoo at cyberdimension.org
Tue Mar 31 04:59:30 UTC 2020


The ro.libagl ovrride has been removed from vendor/replicant
in order to enable each device to overrdide the libagl.

If we don't switch back to libagl for this device, we ends
up in the following boot loop:
  I SurfaceFlinger: SurfaceFlinger is starting
  [...]
  E ti_hwc  : Composer HAL failed to load compatible Graphics HAL
  E SurfaceFlinger: composer device failed to initialize (Invalid argument)
  [...]
  I SurfaceFlinger: Client API: OpenGL_ES
  I SurfaceFlinger: EGLSurface: 5-6-5-0, config=0xb56ed740
  F SurfaceFlinger: EGLContext creation failed
  [...]
  I SurfaceFlinger: SurfaceFlinger is starting

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo at cyberdimension.org>
---
 device.mk | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/device.mk b/device.mk
index a353055..6ee675a 100644
--- a/device.mk
+++ b/device.mk
@@ -35,6 +35,12 @@ PRODUCT_PACKAGES += \
     enable_modem.sh \
     disable_modem.sh
 
+# See vendor/replicant/config/common.mk for more details about the ro.libagl
+# configuration parameter.
+# This device doesn't boot with llvmpipe, probably due to some
+# color format issue, so we have to use libagl for now.
+PRODUCT_PROPERTY_OVERRIDES += ro.libagl=1
+
 PRODUCT_PROPERTY_OVERRIDES += \
     mobiledata.interfaces=pdp0,wlan0,gprs,ppp0
 
-- 
2.26.0



More information about the Replicant mailing list