From b17e9e5db182745c6ba24d4dcb79947b6d2d5005 Mon Sep 17 00:00:00 2001 From: amazingfate Date: Mon, 13 Jan 2025 19:25:29 +0800 Subject: [PATCH] armbian-kernel: skip enabling BTF for rk35xx vendor kernel fix minor typo by @EvilOlaf --- lib/functions/compilation/armbian-kernel.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/functions/compilation/armbian-kernel.sh b/lib/functions/compilation/armbian-kernel.sh index e3ec1ee78f3a..b5f408dcb850 100644 --- a/lib/functions/compilation/armbian-kernel.sh +++ b/lib/functions/compilation/armbian-kernel.sh @@ -51,9 +51,13 @@ function armbian_kernel_config__600_enable_ebpf_and_btf_info() { declare -a opts_y=( "CONFIG_BPF_JIT" "CONFIG_BPF_JIT_DEFAULT_ON" "CONFIG_FTRACE_SYSCALLS" "CONFIG_PROBE_EVENTS_BTF_ARGS" "CONFIG_BPF_KPROBE_OVERRIDE" "CONFIG_DEBUG_INFO" "CONFIG_DEBUG_INFO_DWARF5" - "CONFIG_DEBUG_INFO_BTF" "CONFIG_DEBUG_INFO_BTF_MODULES" ) + # We don't enable BTF on rk vendor kernel because it will cause some dkms module load with kernel panic + if [[ "${LINUXFAMILY}" != "rk35xx" ]]; then + opts_y+=("CONFIG_DEBUG_INFO_BTF") + fi + if [[ "${ARCH}" == "arm64" ]]; then opts_y+=("CONFIG_ARM64_VA_BITS_48") opts_val["CONFIG_ARM64_PA_BITS"]="48"