Ero sivun ”Steps to compile the kernel” versioiden välillä

Iwanan Wikipediasta
Siirry navigaatioon Siirry hakuun
(Ak: Uusi sivu: Download latest stable from kernel.org Unzip tar xf linux-5.7.2.tar.xz && cd linux-5.7.2 Copy existing config (make things easy) cp /boot/config-$(uname -r) .config Use termin...)
 
 
Rivi 23: Rivi 23:
 
Reboot
 
Reboot
 
  sudo reboot
 
  sudo reboot
 +
 +
[https://dev.to/wxyz/howto-compile-linux-kernel-on-ubuntu-applies-to-any-distro-44k7 Lähde]

Nykyinen versio 17. joulukuuta 2020 kello 18.38

Download latest stable from kernel.org

Unzip

tar xf linux-5.7.2.tar.xz && cd linux-5.7.2

Copy existing config (make things easy)

cp /boot/config-$(uname -r) .config

Use terminal based configuration tool

make menuconfig

If you have relatively recent hardware, this step will take most of your time. Add/remove stuff based on your hardware

Compile the kernel with Clang (Remove CC for compiling with gcc - the default C compiler)

make CC=clang -j12

Install the kernel

sudo make install

Update grub

sudo update-grub

Reboot

sudo reboot

Lähde