User Tools

Site Tools


debian_build_kernel

Grab Kernel
Get the one you desire from https://www.kernel.org/

wget https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.12.23.tar.xz
tar xvf linux-6.12.23.tar.xz
cd linux-6.12.23

Grab Packages

apt-get install bc libncurses-dev bzip2 make build-essential libelf-dev libssl-dev bison flex rsync liblz4-tool

Run localmodconfig
This disables all modules currently not in use

yes '' | make localmodconfig

Customization of the Kernel via GUI

make menuconfig

Network
If you want wireguard or anything else

Device Drivers => Network device support => VXLAN, Wireguard

BBR increases TCP Network throughput

Network Support => Network options => Network packet filtering framework (Netfilter) (e), QoS
Network Support => Network options => TCP: advance congestion control => BBR
Network Support => Network options => QoS => Qdisc, Fair Queuing

dhcpclient dosen't work without it

Network Support => Network options => Packet Socket

Latency reduction

General setup => Timers subsystem => High Resolution Timer Support, Timer tick handling
General setup => Preemption Model
Processor type and features => Timer frequency
Power management and ACPI options => CPU Frequency scaling => governor

virtio
If your virtual server uses scsi virtio you need to enable this

Device drivers => SCSI device support => disk support
Device drivers => SCSI device support => SCSI low-level drivers => virtio-scsi support

Customization of the Kernel via CLI

scripts/config --enable WIREGUARD

Build the Kernel

make bindeb-pkg -j $(nproc)
debian_build_kernel.txt · Last modified: 2025/04/15 02:06 by neoon

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki