From f3c8a8e6e636dfb816ee853bfe5d5d9f36510e11 Mon Sep 17 00:00:00 2001 From: Cuda-Chen Date: Tue, 3 Jun 2025 18:09:02 +0800 Subject: [PATCH] Bump Linux Kernel to v6.12 Linux Kernel v6.7 propose a solution to resolve sound stutter effect. Therefore, upgrade Linux Kernel version to v6.12 as it is an LTS version with the proposed solution included. Also, this commit disables the following RISC-V platform specific settings in Linux Kernel compilation configuration: 1. Zawrs extension support for more efficient busy waiting. 2. Zba extension support for bit manipulation instructions. 3. Zbb extension support for bit manipulation instructions. 4. Zbc extension support for carry-less multiplication instructions. 5. Zicbom extension support for non-coherent DMA operation. 6. Zicboz extension support for faster zeroing of memory. 7. Vendor extensions support (including Andes). --- configs/linux.config | 12 ++++++++---- scripts/build-image.sh | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/configs/linux.config b/configs/linux.config index c282ecc..0696c26 100644 --- a/configs/linux.config +++ b/configs/linux.config @@ -1,11 +1,11 @@ -CONFIG_CC_VERSION_TEXT="riscv32-buildroot-linux-gnu-gcc.br_real (Buildroot 2023.05.1) 12.3.0" +CONFIG_CC_VERSION_TEXT="riscv32-buildroot-linux-gnu-gcc.br_real (Buildroot 2024.11.1) 14.2.0" CONFIG_CC_IS_GCC=y -CONFIG_GCC_VERSION=120300 +CONFIG_GCC_VERSION=140200 CONFIG_CLANG_VERSION=0 CONFIG_AS_IS_GNU=y -CONFIG_AS_VERSION=23900 +CONFIG_AS_VERSION=24200 CONFIG_LD_IS_BFD=y -CONFIG_LD_VERSION=23900 +CONFIG_LD_VERSION=24200 CONFIG_LLD_VERSION=0 CONFIG_CC_CAN_LINK=y CONFIG_CC_CAN_LINK_STATIC=y @@ -227,6 +227,10 @@ CONFIG_MODULE_SECTIONS=y CONFIG_SMP=y CONFIG_TUNE_GENERIC=y # CONFIG_RISCV_ISA_C is not set +# CONFIG_RISCV_ISA_ZAWRS is not set +# CONFIG_RISCV_ISA_ZBA is not set +# CONFIG_RISCV_ISA_ZBB is not set +# CONFIG_RISCV_ISA_ZBC is not set CONFIG_TOOLCHAIN_HAS_ZICBOM=y # CONFIG_RISCV_ISA_ZICBOM is not set CONFIG_TOOLCHAIN_HAS_ZIHINTPAUSE=y diff --git a/scripts/build-image.sh b/scripts/build-image.sh index c6a1383..ef65117 100755 --- a/scripts/build-image.sh +++ b/scripts/build-image.sh @@ -37,7 +37,7 @@ function do_buildroot function do_linux { - ASSERT git clone https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git -b linux-6.1.y --depth=1 + ASSERT git clone https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git -b linux-6.12.y --depth=1 cp -f configs/linux.config linux/.config export PATH="$PWD/buildroot/output/host/bin:$PATH" export CROSS_COMPILE=riscv32-buildroot-linux-gnu-