From dd5bd1b45d17408eda074adb5aec317ad5316086 Mon Sep 17 00:00:00 2001 From: Amit Pundir Date: Tue, 22 Dec 2020 13:46:24 +0530 Subject: db845c: Enable boot image header v3 support To enable boot image header v3 support, set "TARGET_USES_BOOT_HDR_V3=true" while building AOSP images for db845c. Build will fall back to boot image header v2 otherwise. Boot image header v3 support depends on the latest bootloader binaries. Run device/linaro/dragonboard/installer/db845c/flash-all-aosp.sh script to update the bootloader binaries on db845c. Signed-off-by: Amit Pundir Change-Id: Iaf565fc25c731a9d42c8fbc550686b588caba5df --- db845c/BoardConfig.mk | 10 ++++++++-- db845c/device.mk | 4 ++++ 2 files changed, 12 insertions(+), 2 deletions(-) (limited to 'db845c') diff --git a/db845c/BoardConfig.mk b/db845c/BoardConfig.mk index 9d31f97..67120aa 100644 --- a/db845c/BoardConfig.mk +++ b/db845c/BoardConfig.mk @@ -6,10 +6,16 @@ TARGET_BOARD_PLATFORM := db845c TARGET_NO_KERNEL := false BOARD_INCLUDE_DTB_IN_BOOTIMG := true -BOARD_BOOT_HEADER_VERSION := 2 +ifeq ($(TARGET_USES_BOOT_HDR_V3), true) + BOARD_BOOT_HEADER_VERSION := 3 + BOARD_KERNEL_PAGESIZE := 4096 + BOARD_VENDOR_BOOTIMAGE_PARTITION_SIZE := 67108864 #64M +else + BOARD_BOOT_HEADER_VERSION := 2 + BOARD_KERNEL_PAGESIZE := 2048 +endif BOARD_MKBOOTIMG_ARGS := --header_version $(BOARD_BOOT_HEADER_VERSION) BOARD_KERNEL_BASE := 0x80000000 -BOARD_KERNEL_PAGESIZE := 2048 BOARD_KERNEL_CMDLINE := earlycon firmware_class.path=/vendor/firmware/ androidboot.hardware=db845c BOARD_KERNEL_CMDLINE += init=/init androidboot.boot_devices=soc@0/1d84000.ufshc printk.devkmsg=on BOARD_KERNEL_CMDLINE += deferred_probe_timeout=30 diff --git a/db845c/device.mk b/db845c/device.mk index 0c2cbf9..b6480a5 100644 --- a/db845c/device.mk +++ b/db845c/device.mk @@ -28,7 +28,11 @@ AB_OTA_PARTITIONS += \ system_ext \ vendor +ifeq ($(TARGET_USES_BOOT_HDR_V3), true) +$(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota/launch_with_vendor_ramdisk.mk) +else $(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota.mk) +endif PRODUCT_COPY_FILES := \ $(DB845C_KERNEL_DIR)/Image.gz:kernel \ -- cgit v1.2.3