[Quartz64a] Linux Kernel Headers?

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:

  1. Pick a folder where the packages will be built.
  2. sudo apt install git build-essential bc kmod cpio flex libncurses5-dev libelf-dev libssl-dev dwarves bison debhelper
  3. 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, check uname -a).
  4. cd linux-6.5.8
  5. zcat /proc/config.gz > .config
  6. nice make -j$(nproc) deb-pkg
  7. change directory to the initial, where are a lot of .deb files, including linux-headers-6.5.8_6.5.8-3_arm64.deb
  8. sudo dpkg -i linux-headers-6.5.8_6.5.8-3_arm64.deb