Skip to content

Commit

Permalink
Test better way to fix drm graphics and other fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
map220v committed May 30, 2023
1 parent 29da497 commit c12e90f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 17 deletions.
4 changes: 3 additions & 1 deletion BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ TARGET_BOARD_PLATFORM_GPU := qcom-adreno640
QCOM_BOARD_PLATFORMS += msmnile

# Kernel
BOARD_KERNEL_CMDLINE := twrpfastboot=1
# abl will use vendor_boot cmdline
#BOARD_KERNEL_CMDLINE := console=tty0,115200n8 androidboot.hardware=qcom androidboot.console=tty0 androidboot.memcg=1 lpm_levels.sleep_disabled=1 video=vfb:640x400,bpp=32,memsize=3072000 msm_rtb.filter=0x237 service_locator.enable=1 swiotlb=2048 loop.max_part=7 androidboot.usbcontroller=a600000.dwc3 buildvariant=user
BOARD_KERNEL_IMAGE_NAME := Image
BOARD_BOOT_HEADER_VERSION := 3
TARGET_PREBUILT_KERNEL := $(DEVICE_PATH)/prebuilt/kernel
Expand Down Expand Up @@ -126,6 +127,7 @@ AB_OTA_POSTINSTALL_CONFIG += \

# Recovery
BOARD_HAS_LARGE_FILESYSTEM := true
BOARD_USES_RECOVERY_AS_BOOT := true

# Crypto
BOARD_USES_QCOM_FBE_DECRYPTION := true
Expand Down
13 changes: 3 additions & 10 deletions device.mk
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@
# Display
TARGET_SCREEN_HEIGHT := 2560
TARGET_SCREEN_WIDTH := 1600

# Soong namespaces
PRODUCT_SOONG_NAMESPACES += \
vendor/qcom/opensource/commonsys-intf/display

# Virtual A/B OTA
$(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota.mk)
Expand Down Expand Up @@ -61,7 +57,7 @@ PLATFORM_VERSION_LAST_STABLE := $(PLATFORM_VERSION)
# Recovery
TARGET_RECOVERY_PIXEL_FORMAT := "RGBX_8888"
TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/recovery/root/system/etc/recovery.fstab
TARGET_RECOVERY_DEVICE_MODULES += libion [email protected] [email protected] libdisplayconfig.qti bootctrl.$(TARGET_BOARD_PLATFORM).recovery
TARGET_RECOVERY_DEVICE_MODULES += libion bootctrl.$(TARGET_BOARD_PLATFORM).recovery

# TWRP specific build flags
TW_THEME := portrait_hdpi
Expand All @@ -79,7 +75,7 @@ TW_DEFAULT_BRIGHTNESS := 1500
TWRP_INCLUDE_LOGCAT := true
TARGET_USES_LOGD := true
TARGET_USES_MKE2FS := true
TW_NO_SCREEN_BLANK := true
TW_SCREEN_BLANK_ON_BOOT := true
TW_EXCLUDE_APEX := true
TW_INCLUDE_FASTBOOTD := true
TW_LOAD_VENDOR_MODULES := true
Expand All @@ -90,10 +86,7 @@ TW_OVERRIDE_SYSTEM_PROPS := \
"ro.build.fingerprint=ro.system.build.fingerprint;ro.build.version.incremental"

RECOVERY_LIBRARY_SOURCE_FILES += \
$(TARGET_OUT_SHARED_LIBRARIES)/libion.so \
$(TARGET_OUT_SYSTEM_EXT_SHARED_LIBRARIES)/[email protected] \
$(TARGET_OUT_SYSTEM_EXT_SHARED_LIBRARIES)/[email protected] \
$(TARGET_OUT_SYSTEM_EXT_SHARED_LIBRARIES)/libdisplayconfig.qti.so
$(TARGET_OUT_SHARED_LIBRARIES)/libion.so

# Boot control
PRODUCT_PACKAGES += \
Expand Down
6 changes: 0 additions & 6 deletions recovery/root/init.recovery.qcom.rc
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,3 @@ on fs
# Symlink bootdevice
wait /dev/block/platform/soc/${ro.boot.bootdevice}
symlink /dev/block/platform/soc/${ro.boot.bootdevice} /dev/block/bootdevice

on boot
# Hack to fix drm graphics init
wait /tmp/recovery.log
stop recovery
start recovery

0 comments on commit c12e90f

Please sign in to comment.