Kernel compilation: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
| (9 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
=Needed packages= | =Needed packages= | ||
*sudo apt-get install linux-source build-essential kernel-package libssl-dev | *sudo apt-get install linux-source build-essential kernel-package libssl-dev flex bison ncurses-dev | ||
=Pre Compile stuff= | =Pre Compile stuff= | ||
*cd /usr/src | *cd /usr/src | ||
=Get the source= | =Get the source= | ||
==Webseite== | |||
;Neusten Kernel runterladen | |||
*https://mirrors.edge.kernel.org/pub/linux/kernel/v5.x/ | |||
;Beispiel | |||
*wget https://mirrors.edge.kernel.org/pub/linux/kernel/v5.x/linux-5.0.21.tar.xz | *wget https://mirrors.edge.kernel.org/pub/linux/kernel/v5.x/linux-5.0.21.tar.xz | ||
*tar xf linux-5*.xz | *tar xf linux-5*.xz | ||
*cd linux-5* | *cd linux-5*/ | ||
= | |||
* | =Set the old config= | ||
*cp /boot/config-`uname -r` .config | |||
*yes "" | make oldconfig | |||
=Change settings= | |||
*make menuconfig | |||
=Compile kernel and modules= | |||
*make -j8 bzImage modules | |||
=Install modules and kernel= | |||
*make modules_install install | |||
=Update grub= | |||
*update-grub | |||
=Links= | |||
*https://wiki.ubuntuusers.de/Kernel/Kompilierung/ | |||
*https://www.pro-linux.de/artikel/2/1572/selbstgebacken-kernel-kompilieren-nach-rezept.html | |||
Aktuelle Version vom 28. Oktober 2021, 05:46 Uhr
Needed packages
- sudo apt-get install linux-source build-essential kernel-package libssl-dev flex bison ncurses-dev
Pre Compile stuff
- cd /usr/src
Get the source
Webseite
- Neusten Kernel runterladen
- Beispiel
- wget https://mirrors.edge.kernel.org/pub/linux/kernel/v5.x/linux-5.0.21.tar.xz
- tar xf linux-5*.xz
- cd linux-5*/
Set the old config
- cp /boot/config-`uname -r` .config
- yes "" | make oldconfig
Change settings
- make menuconfig
Compile kernel and modules
- make -j8 bzImage modules
Install modules and kernel
- make modules_install install
Update grub
- update-grub