Kernel kompilieren: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Zeile 10: Zeile 10:
  
 
* https://mirrors.edge.kernel.org/pub/linux/kernel/
 
* https://mirrors.edge.kernel.org/pub/linux/kernel/
* '''curl https://mirrors.edge.kernel.org/pub/linux/kernel/v6.x/linux-6.2.tar.gz'''
+
* '''wget https://mirrors.edge.kernel.org/pub/linux/kernel/v6.x/linux-6.2.tar.gz'''
* '''tar xf linux-5*.xz'''
+
* '''tar xvf linux-6*'''
* '''cd linux-5*/'''
+
* '''cd linux-6*/'''
  
 
= Set the old config =
 
= Set the old config =

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

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