Kernel compilation: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Zeile 7: Zeile 7:
*tar xf linux-5*.xz
*tar xf linux-5*.xz
*cd linux-5*/
*cd linux-5*/
=Set the old config=
*cp /boot/config-`uname -r` .config
*yes "" | make oldconfig


=Build a ramdisk=
=Build a ramdisk=
*sudo update-initramfs -u -v -k `uname -r`
*sudo update-initramfs -u -v -k `uname -r`

Version vom 26. August 2019, 19:08 Uhr

Needed packages

  • sudo apt-get install linux-source build-essential kernel-package libssl-dev

Pre Compile stuff

  • cd /usr/src

Get the source

Set the old config

  • cp /boot/config-`uname -r` .config
  • yes "" | make oldconfig

Build a ramdisk

  • sudo update-initramfs -u -v -k `uname -r`