From ae45043c4ddeeb598622464e78883ee07d7a002a Mon Sep 17 00:00:00 2001 From: Ricardo Pardini Date: Mon, 30 Dec 2024 19:01:23 +0100 Subject: [PATCH] armbian-kernel: enforce arm64 kernels use 48-bit PA/VA --- lib/functions/compilation/armbian-kernel.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/functions/compilation/armbian-kernel.sh b/lib/functions/compilation/armbian-kernel.sh index cbe04af6862f..e3ec1ee78f3a 100644 --- a/lib/functions/compilation/armbian-kernel.sh +++ b/lib/functions/compilation/armbian-kernel.sh @@ -54,6 +54,11 @@ function armbian_kernel_config__600_enable_ebpf_and_btf_info() { "CONFIG_DEBUG_INFO_BTF" "CONFIG_DEBUG_INFO_BTF_MODULES" ) + if [[ "${ARCH}" == "arm64" ]]; then + opts_y+=("CONFIG_ARM64_VA_BITS_48") + opts_val["CONFIG_ARM64_PA_BITS"]="48" + fi + declare opt_y opt_val opt_n for opt_n in "${opts_n[@]}"; do kernel_config_modifying_hashes+=("${opt_n}=n")