Kernel compilation: Unterschied zwischen den Versionen

Aus Xinux Wiki
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

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`


Links