Kernel kompilieren: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
| Zeile 16: | Zeile 16: | ||
= Set the old config = | = Set the old config = | ||
| − | * '''cp /boot/config- | + | * '''cp /boot/config-`uname -r` .config''' |
* '''yes “” | make oldconfig''' | * '''yes “” | make oldconfig''' | ||
Version vom 8. März 2023, 14:38 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/
- wget https://mirrors.edge.kernel.org/pub/linux/kernel/v6.x/linux-6.2.tar.gz
- tar xvf linux-6*
- cd linux-6*/
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