Kernel compilation: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
| Zeile 11: | Zeile 11: | ||
*cp /boot/config-`uname -r` .config | *cp /boot/config-`uname -r` .config | ||
*yes "" | make oldconfig | *yes "" | make oldconfig | ||
| + | =Change settings= | ||
| + | *make menuconfig | ||
| + | =Compile kernel and modules= | ||
| + | *make -j8 bzImage modules | ||
=Build a ramdisk= | =Build a ramdisk= | ||
Version vom 26. August 2019, 19:18 Uhr
Needed packages
- sudo apt-get install linux-source build-essential kernel-package libssl-dev flex bison ncurses-dev
Pre Compile stuff
- cd /usr/src
Get the source
- wget https://mirrors.edge.kernel.org/pub/linux/kernel/v5.x/linux-5.0.21.tar.xz
- tar xf linux-5*.xz
- cd linux-5*/
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
Build a ramdisk
- sudo update-initramfs -u -v -k `uname -r`