Kernel kompilieren: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Zeile 16: Zeile 16:
 
= Set the old config =
 
= Set the old config =
  
* '''cp /boot/config-<code>uname -r</code> .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

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