17 Şubat 2011 Perşembe

Compiling a kernel source code and use it as the kernel of your linux OS.

get latest kernel source:

$ cd /tmp
$ wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-x.y.z.tar.bz2


extract .tar file:

# tar -xjvf linux-2.6.37.tar.bz2 -C /usr/src
# cd /usr/src


Configure kernel respected to your computer:

# make menuconfig


Compile Kernel:

$ make


Compile Kernel modules:

$ make modules


Install the kernel modules as a root user:

$su -
#make modules_install


Install kernel:

#make install


Create initrd image for Grup program for using at boot time initialization:

#cd /boot
#mkinitrd -o initrd.img-2.6.37 2.6.37


Modify Grup config. file:

# update-grup


Reboot computer:

That's all:)

Hiç yorum yok:

Yorum Gönder