Kernel kompilieren: Unterschied zwischen den Versionen

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

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

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