User Tools

Site Tools


linux:kernelcompile

Kernel Compilation

a) Kernel Compilation on Ubuntu

make menuconfig
make-kpkg clean
fakeroot make-kpkg -j24 --initrd --append-to-version=-custom kernel_image kernel_headers modules_image 

b) Normal kernel compilation

Why compile a new kernel ?
- New Hardware
- Bug
- New software
- You want to do it

make menuconfig
make dep
make clean
make zImage
make modules
cp /usr/src/linux/arch/i386/boot/zImage /boot/mykernel
make modules_install

c) Kernel signification in Makefile 2.4.22.1

Version=2
PatchLevel=4
Sublevel=22
Extraversion=-1
linux/kernelcompile.txt · Last modified: 2016/06/07 11:30 by admin