NAS-137494 / 26.04 / Update kernel from 6.12 to 6.18 LTS (#956)

* Upgrade to Linux 6.18 kernel

* Upgrade NVIDIA driver to 590.44.01 for 6.18 kernel

NVIDIA 580.x fails to build on kernel 6.18 due to get_dev_pagemap() API
changes. Switch to 590.44.01 which includes the fix.

* Add zstd package for 6.18 kernel build

The 6.18 kernel's Debian config enables zstd kernel compression, which
requires the zstd command-line tool to be available during build. Add
zstd to predepscmd for both production and debug kernel builds.
This commit is contained in:
Ameer Hamza
2025-12-09 21:25:48 +05:00
committed by GitHub
parent 5bb8db7426
commit ba85274a61

View File

@@ -369,14 +369,14 @@ sources:
- "apt install -y wget xz-utils" - "apt install -y wget xz-utils"
- name: kernel - name: kernel
repo: https://github.com/truenas/linux repo: https://github.com/truenas/linux
branch: truenas/linux-6.12 branch: truenas/linux-6.18
batch_priority: 0 batch_priority: 0
supports_ccache: true supports_ccache: true
env: env:
EXTRAVERSION: "-production" EXTRAVERSION: "-production"
PYTHON: "python3" PYTHON: "python3"
predepscmd: predepscmd:
- "apt install -y flex bison dwarves libssl-dev devscripts" - "apt install -y flex bison dwarves libssl-dev devscripts zstd"
# Install dependencies to build perf # Install dependencies to build perf
- "apt install -y libelf-dev libdw-dev systemtap-sdt-dev libunwind-dev libslang2-dev libperl-dev binutils-dev libiberty-dev python3 python3-setuptools python3-dev liblzma-dev libzstd-dev libcap-dev libnuma-dev libbabeltrace-dev openjdk-21-jdk libcapstone-dev llvm-dev" - "apt install -y libelf-dev libdw-dev systemtap-sdt-dev libunwind-dev libslang2-dev libperl-dev binutils-dev libiberty-dev python3 python3-setuptools python3-dev liblzma-dev libzstd-dev libcap-dev libnuma-dev libbabeltrace-dev openjdk-21-jdk libcapstone-dev llvm-dev"
# We remove git files because kernel makefile tries to interact with git for determining version # We remove git files because kernel makefile tries to interact with git for determining version
@@ -399,7 +399,7 @@ sources:
env: env:
EXTRAVERSION: "-debug" EXTRAVERSION: "-debug"
predepscmd: predepscmd:
- "apt install -y flex bison dwarves libssl-dev devscripts" - "apt install -y flex bison dwarves libssl-dev devscripts zstd"
# We remove git files because kernel makefile tries to interact with git for determining version # We remove git files because kernel makefile tries to interact with git for determining version
# which results in misconfigured version due to our debian based changes # which results in misconfigured version due to our debian based changes
- "rm -rf .git .gitattributes .gitignore" - "rm -rf .git .gitattributes .gitignore"
@@ -733,7 +733,7 @@ sources:
############################################################################ ############################################################################
extensions: extensions:
nvidia: nvidia:
current: "580.105.08" current: "590.44.01"
# External packages from various sources (GitHub releases, assets.sys.truenas.net) # External packages from various sources (GitHub releases, assets.sys.truenas.net)
############################################################################ ############################################################################