Skip to content

Commit

Permalink
HOTFIX: RPI4 boot fix
Browse files Browse the repository at this point in the history
1. Drop unused modules
2. Temporary drop wifi module (causes system to hang)
3. Set proper KMS card number for HWC and gralloc.

Signed-off-by: Roman Stratiienko <[email protected]>
  • Loading branch information
rsglobal committed Jul 8, 2020
1 parent 498c58c commit 7d25ff6
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 1,105 deletions.
4 changes: 4 additions & 0 deletions common/device-common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ PRODUCT_PACKAGES += \

PRODUCT_PROPERTY_OVERRIDES += \
ro.sf.lcd_density=160 \
ro.hardware.gralloc=gbm \
ro.hardware.hwcomposer=drm \
hwc.drm.device=/dev/dri/card0 \
gralloc.gbm.device=/dev/dri/card0 \

# Gatekeeper HAL
PRODUCT_PROPERTY_OVERRIDES += ro.hardware.gatekeeper=ranchu
Expand Down
5 changes: 0 additions & 5 deletions common/drm.rc
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,3 @@ on early-boot
chown graphics graphics /sys/kernel/debug/sync/sw_sync
chmod 777 /sys/kernel/debug/sync/sw_sync
chown graphics graphics /sys/kernel/debug/sync/info

setprop ro.hardware.gralloc gbm
setprop ro.hardware.hwcomposer drm
setprop hwc.drm.device /dev/dri/card0
setprop gralloc.gbm.device /dev/dri/card0
Loading

0 comments on commit 7d25ff6

Please sign in to comment.