From e5b7d6e622ce026183de4a6fd2b74067ac78f46c Mon Sep 17 00:00:00 2001 From: Arian Date: Mon, 23 Mar 2020 21:43:40 +0100 Subject: [PATCH] davinci: Configure Kernel Change-Id: I9b903cd9afbf0b671aab148633ec3ac9fcb6b2db --- BoardConfig.mk | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/BoardConfig.mk b/BoardConfig.mk index 033d051..bf3a34b 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -40,6 +40,25 @@ TARGET_2ND_CPU_VARIANT := cortex-a9 TARGET_BOOTLOADER_BOARD_NAME := sm6150 TARGET_NO_BOOTLOADER := true +# Kernel +BOARD_KERNEL_BASE := 0x00000000 +BOARD_KERNEL_IMAGE_NAME := Image.gz-dtb +BOARD_KERNEL_PAGESIZE := 4096 +BOARD_KERNEL_SEPARATED_DTBO := true +BOARD_KERNEL_TAGS_OFFSET := 0x00000100 +BOARD_RAMDISK_OFFSET := 0x01000000 + +TARGET_KERNEL_CLANG_COMPILE := true +TARGET_KERNEL_CONFIG := davinci_defconfig +TARGET_KERNEL_SOURCE := kernel/xiaomi/sm6150 + +BOARD_KERNEL_CMDLINE := console=ttyMSM0,115200n8 androidboot.hardware=qcom +BOARD_KERNEL_CMDLINE += androidboot.console=ttyMSM0 androidboot.memcg=1 +BOARD_KERNEL_CMDLINE += lpm_levels.sleep_disabled=1 video=vfb:640x400,bpp=32,memsize=3072000 +BOARD_KERNEL_CMDLINE += msm_rtb.filter=0x237 service_locator.enable=1 swiotlb=1 +BOARD_KERNEL_CMDLINE += androidboot.usbcontroller=a600000.dwc3 earlycon=msm_geni_serial,0xa88000 +BOARD_KERNEL_CMDLINE += loop.max_part=7 cgroup.memory=nokmem,nosocket + # Platform TARGET_BOARD_PLATFORM := sm6150