Kernel kompilieren: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(Die Seite wurde neu angelegt: „=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 th…“) |
|||
| Zeile 1: | Zeile 1: | ||
| − | = | + | = Benötigte Pakete = |
| − | |||
| − | + | * sudo apt-get install linux-source build-essential kernel-package libssl-dev flex bison ncurses-dev | |
| − | * | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | = | + | = Präkompilieren = |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | + | * cd /usr/src | |
| − | * | ||
| − | =Links= | + | = Quellcode herunterladen = |
| − | *https://wiki.ubuntuusers.de/Kernel/Kompilierung/ | + | |
| − | *https://www.pro-linux.de/artikel/2/1572/selbstgebacken-kernel-kompilieren-nach-rezept.html | + | * https://mirrors.edge.kernel.org/pub/linux/kernel/ |
| + | * '''curl https://mirrors.edge.kernel.org/pub/linux/kernel/v6.x/linux-6.2.tar.gz''' | ||
| + | * **tar xf linux-5*.xz** | ||
| + | * **cd linux-5*/** | ||
| + | |||
| + | = Set the old config = | ||
| + | |||
| + | * '''cp /boot/config-<code>uname -r</code> .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 | ||
Version vom 8. März 2023, 14:33 Uhr
Benötigte Pakete
- sudo apt-get install linux-source build-essential kernel-package libssl-dev flex bison ncurses-dev
Präkompilieren
- cd /usr/src
Quellcode herunterladen
- https://mirrors.edge.kernel.org/pub/linux/kernel/
- curl https://mirrors.edge.kernel.org/pub/linux/kernel/v6.x/linux-6.2.tar.gz
- **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