Change to prebuilt Kernel

This commit is contained in:
SaschaNes
2025-11-13 22:08:52 +01:00
parent 85188a4911
commit 07f68311ba
4 changed files with 38 additions and 26 deletions

View File

@@ -72,37 +72,49 @@ BOARD_INIT_BOOT_HEADER_VERSION := 4
BOARD_MKBOOTIMG_INIT_ARGS += --header_version $(BOARD_INIT_BOOT_HEADER_VERSION)
# Kernel
BOARD_BOOTCONFIG := \
androidboot.hardware=qcom \
androidboot.memcg=1 \
androidboot.usbcontroller=a600000.dwc3 \
androidboot.load_modules_parallel=false \
androidboot.hypervisor.protected_vm.supported=true \
androidboot.selinux=permissive
#BOARD_BOOTCONFIG := \
# androidboot.hardware=qcom \
# androidboot.memcg=1 \
# androidboot.usbcontroller=a600000.dwc3 \
# androidboot.load_modules_parallel=false \
# androidboot.hypervisor.protected_vm.supported=true \
# androidboot.selinux=permissive
BOARD_KERNEL_CMDLINE := \
androidboot.hardware=qcom \
androidboot.memcg=1 \
androidboot.usbcontroller=a600000.dwc3 \
androidboot.load_modules_parallel=false \
androidboot.hypervisor.protected_vm.supported=true \
androidboot.selinux=permissive \
bpp=32 \
printk.devkmsg=on \
firmware_class.path=/vendor/firmware_mnt/image \
bootconfig \
video=vfb:640x400,bpp=32,memsize=3072000 \
loop.max_part=7
#BOARD_KERNEL_CMDLINE := \
# androidboot.hardware=qcom \
# androidboot.memcg=1 \
# androidboot.usbcontroller=a600000.dwc3 \
# androidboot.load_modules_parallel=false \
# androidboot.hypervisor.protected_vm.supported=true \
# androidboot.selinux=permissive \
# bpp=32 \
# printk.devkmsg=on \
# firmware_class.path=/vendor/firmware_mnt/image \
# bootconfig \
# video=vfb:640x400,bpp=32,memsize=3072000 \
# loop.max_part=7
BOARD_KERNEL_BASE := 0x00000000
BOARD_KERNEL_IMAGE_NAME := Image
BOARD_KERNEL_PAGESIZE := 4096
BOARD_USES_GENERIC_KERNEL_IMAGE := true
#BOARD_KERNEL_BASE := 0x00000000
#BOARD_KERNEL_IMAGE_NAME := Image
#BOARD_KERNEL_PAGESIZE := 4096
#BOARD_USES_GENERIC_KERNEL_IMAGE := true
TARGET_KERNEL_SOURCE := kernel/samsung/sm8750
#TARGET_KERNEL_SOURCE := kernel/samsung/sm8750
# Kernel modules
TARGET_KERNEL_EXT_MODULE_ROOT := kernel/samsung/sm8750-modules
#TARGET_KERNEL_EXT_MODULE_ROOT := kernel/samsung/sm8750-modules
# Test -> Prebuilt Kernel
TARGET_FORCE_PREBUILT_KERNEL := true
ifeq ($(TARGET_FORCE_PREBUILT_KERNEL),true)
TARGET_PREBUILT_KERNEL := $(DEVICE_PATH)/prebuilts/kernel
TARGET_PREBUILT_DTB := $(DEVICE_PATH)/prebuilts/dtb.img
BOARD_MKBOOTIMG_ARGS += --dtb $(TARGET_PREBUILT_DTB)
BOARD_INCLUDE_DTB_IN_BOOTIMG :=
BOARD_PREBUILT_DTBOIMAGE := $(DEVICE_PATH)/prebuilts/dtbo.img
BOARD_KERNEL_SEPARATED_DTBO :=
endif
# Metadata
BOARD_USES_METADATA_PARTITION := true

BIN
prebuilts/dtb.img Normal file

Binary file not shown.

BIN
prebuilts/dtbo.img Normal file

Binary file not shown.

BIN
prebuilts/kernel Normal file

Binary file not shown.