dckg.net
Blog
Tools
Downloads
Sonntag, 1 Oktober 2017 in Linux
Custom Kernel kompilieren
Neuen Linux Kernel für Debian selbst kompilieren, DEB Pakete zum installieren erstellen:

apt-get install fakeroot build-essential devscripts libncurses5 libncurses5-de bc git
cd /usr/src
git clone git://people.freedesktop.org/~agd5f/linux linux --branch drm-next-4.15-dc --depth 50
cd /usr/src/linux
# git checkout d8c893b44b2199f5935fe8667708253c38353782
cp /boot/config-$(uname -r) .config
make silentoldconfig # hold ENTER
make menuconfig # make changes, save .config
time nice make -j $(($(nproc)*2)) # ca. 30min
time nice make deb-pkg -j $(($(nproc)*2)) # ca. 40 min

dpkg -i linux-image-4.13.0-rc5+_4.13.0-rc5+-2_amd64.deb

Links:
The Linux Kernel Archives
https://unix.stackexchange.com/questions/55954/how-to-build-a-custom-kernel
https://debian-handbook.info/browse/en-US/stable/sect.kernel-compilation.html
https://www.thomas-krenn.com/de/wiki/Linux_Kernel_unter_Ubuntu_oder_Debian_kompilieren

Site optimised for Google Chrome / Chromium