diff options
author | Amit Pundir <amit.pundir@linaro.org> | 2020-12-22 13:46:24 +0530 |
---|---|---|
committer | Alistair Delva <adelva@google.com> | 2021-01-19 21:15:19 +0000 |
commit | dd5bd1b45d17408eda074adb5aec317ad5316086 (patch) | |
tree | 8e9f4468a3e3c0b8c19e8cd9a55ae8a577781141 /db845c | |
parent | 6d532aebe85c285bfd15fc4347c7478c60bda5d5 (diff) |
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 <amit.pundir@linaro.org>
Change-Id: Iaf565fc25c731a9d42c8fbc550686b588caba5df
Diffstat (limited to 'db845c')
-rw-r--r-- | db845c/BoardConfig.mk | 10 | ||||
-rw-r--r-- | db845c/device.mk | 4 |
2 files changed, 12 insertions, 2 deletions
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 \ |