Kernel compilation: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Zeile 15: Zeile 15:
 
=Compile kernel and modules=
 
=Compile kernel and modules=
 
*make -j8 bzImage modules
 
*make -j8 bzImage modules
 +
=Install modules and kernel=
 +
*make modules_install install
  
 
=Build a ramdisk=
 
=Build a ramdisk=

Version vom 27. August 2019, 05:19 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

Install modules and kernel

  • make modules_install install

Build a ramdisk

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


Links