From c37a73b74fa6a14f39a162ac0597bc52d1699dae Mon Sep 17 00:00:00 2001 From: Daniel Mentz Date: Thu, 8 Apr 2021 20:24:38 -0700 Subject: [PATCH] gs101: migrate to bootimg header v4 (second attempt) We migrate to bootimg header v4 and build the following two vendor ramdisk fragments. Type: Platform, Name: "", Contents: Everything but kernel modules Type: DLKM, Name: "dlkm", Contents: Kernel modules (incl. modules.load etc.) Bug: 183237066 Change-Id: I626cb87ba8111d0615b80cf981ebc288893a0624 --- BoardConfig-common.mk | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/BoardConfig-common.mk b/BoardConfig-common.mk index def834d9..943ea084 100644 --- a/BoardConfig-common.mk +++ b/BoardConfig-common.mk @@ -43,9 +43,9 @@ endif BOARD_KERNEL_CMDLINE += dyndbg=\"func alloc_contig_dump_pages +p\" BOARD_KERNEL_CMDLINE += earlycon=exynos4210,0x10A00000 console=ttySAC0,115200 androidboot.console=ttySAC0 printk.devkmsg=on -BOARD_KERNEL_CMDLINE += androidboot.boot_devices=14700000.ufs BOARD_KERNEL_CMDLINE += cma_sysfs.experimental=Y BOARD_KERNEL_CMDLINE += stack_depot_disable=off page_pinner=on +BOARD_BOOTCONFIG += androidboot.boot_devices=14700000.ufs TARGET_NO_BOOTLOADER := true TARGET_NO_KERNEL := false @@ -356,9 +356,12 @@ BOARD_RAMDISK_USE_LZ4 := true #BOARD_KERNEL_PAGESIZE := 2048 #BOARD_KERNEL_OFFSET := 0x80000 #BOARD_RAMDISK_OFFSET := 0x4000000 -BOARD_BOOT_HEADER_VERSION := 3 +BOARD_BOOT_HEADER_VERSION := 4 BOARD_MKBOOTIMG_ARGS += --header_version $(BOARD_BOOT_HEADER_VERSION) +BOARD_VENDOR_RAMDISK_FRAGMENTS := dlkm +BOARD_VENDOR_RAMDISK_FRAGMENT.dlkm.KERNEL_MODULE_DIRS := top + # Enable AVB2.0 BOARD_AVB_ENABLE := true BOARD_BOOTIMAGE_PARTITION_SIZE := 0x04000000