linux-kernel

Getting started with linux-kernel

Remarks#

This section provides an overview of what linux-kernel is, and why a developer might want to use it.

It should also mention any large subjects within linux-kernel, and link out to the related topics. Since the Documentation for linux-kernel is new, you may need to create initial versions of those related topics.

Versions#

VersionRelease date
4.42016-01-10
4.12015-06-21
3.182014-12-07
3.162014-08-03
3.122013-11-03
3.102013-06-30
3.42012-05-20
3.22012-01-04

Installation or Setup

Linux kernel source code can be found in https://www.kernel.org/

Download extract and enter to the kernel directory

Type these commands step by steps in your terminal.(Choose the appropriate version you needed instead of linux-4.7.tar.gz )

wget https://www.kernel.org/pub/linux/kernel/v4.7/linux-4.7.tar.gz
tar zxvf linux-4.7.tar.gz
cd linux-4.7

make menuconfig will select the features required for the kernel. Old kernel configurations can be copied by using old .config file and executing make oldconfig. Also we can use make xconfig as a graphical version of the configuration tool.

Build the dependencies, compile the kernel and modules.

make dep
make bzImage
make modules
make modules_install 

Alternatively if you want to reconfigure the old kernel and re compile it, execute the below commands:

make mrproper
make menuconfig
make dep
make clean
make bzImage
make modules
make modules_install

Then copy the kernel, system.map file to /boot/vmlinuz-4.7

create a .conf file with the below content

image = /boot/vmlinuz-4.7
label = "Linux 4.7"

Then execute lilo -v to modify the boot sector and reboot.


This modified text is an extract of the original Stack Overflow Documentation created by the contributors and released under CC BY-SA 3.0 This website is not affiliated with Stack Overflow