Absurd: Linux Kernel 6.11, Huge Config

20240923

In Slackware Current, the team has removed the huge kernel. That's fine, but I have not given up on that style of kernel. If you want to recreate that config for yourself, here's how.

Create a root shell session and change directory to /usr/src.

Then, grab sources, firmware, and the config.

wget https://codeberg.org/pf-kernel/linux/archive/v6.11-pf1.tar.gz
git clone https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware
wget https://absurd.wtf/files/config-6.11-pf1

Get the kernel source unpacked.

rm -f linux
tar xf v6.11-pf1.tar.gz
mv linux linux-6.11pf
ln -s /usr/src/linux-6.11pf /usr/src/linux

Now, let's build.

cd /usr/src/linux-firmware
make install
cd /usr/src/linux
make mrproper
cp ../linux-6.11pf .config
make oldconfig
make -j$(nproc)
make -j$(nproc) modules_install
make headers_install

Now, let's get the kernel in place and create a boot entry.

cp -v arch/x86_64/boot/bzImage /boot/efi/EFI/BOOTX64.EFI
efibootmgr -c -d /dev/nvme0n1 -p 1 -l '\EFI\BOOTX64.EFI' -L "Slackware" -u "root=/dev/nvme0n1p2 pcie_aspm=off"

Note that with the above, I am not using a boot loader but rather loading the kernel directly with EFI. If you use a boot loader, you will need to configure it to use the new kernel.

⇠ back

© MMXXV, Abort Retry Fail LLC
Licentiam Absurdum