I think I’ve managed, but now I have other issues - module is incompatible with this kernel. Nonetheless, here is what I’ve done:
Building header files for a specific stable version:
- Pick a folder where the packages will be built.
sudo apt install git build-essential bc kmod cpio flex libncurses5-dev libelf-dev libssl-dev dwarves bison debhelper
git clone --depth 1 --branch v6.5.8 git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-6.5.8
(you might need to change the version, checkuname -a
).cd linux-6.5.8
zcat /proc/config.gz > .config
nice make -j$(nproc) deb-pkg
- change directory to the initial, where are a lot of
.deb
files, includinglinux-headers-6.5.8_6.5.8-3_arm64.deb
sudo dpkg -i linux-headers-6.5.8_6.5.8-3_arm64.deb