Compile Kernel Alternatif

From OnnoWiki
Revision as of 18:09, 18 January 2010 by Onnowpurbo (talk | contribs)
Jump to navigation Jump to search

Siapkan software pendukung

apt-get update
apt-get install kernel-package libncurses5-dev fakeroot wget bzip2 libncurses5 libncurses5-dev

download source code kernel

cd /usr/src
wget http://www.kernel.org/pub/linux/kernel/v2.6/testing/linux-2.6.33-rc4.tar.bz2
tar xjf linux-2.6.33-rc4.tar.bz2 -C /usr/src
ln -s linux-2.6.33-rc4 linux
cd /usr/src/linux
cp /boot/config-`uname -r` ./.config

pilih salah satu

cd /usr/src/linux
make menuconfig
make xconfig
make gconfig
make-kpkg clean

Compile kernel

make
make modules 
make modules_install
make install 

Akan di install tiga (3) file ke /boot

  • System.map-2.6.33-rc4
  • config-2.6.33-rc4
  • vmlinuz-2.6.33-rc4

Lakukan

cd /boot
mkinitrd -o initrd.img-2.6.33-rc4 2.6.33-rc4

update grub

vi /boot/grub/menu.lst
title           Debian GNU/Linux, kernel 2.6.33-rc4 Default
root            (hd0,0)
kernel          /boot/vmlinuz root=/dev/hdb1 ro
initrd          /boot/initrd.img-2.6.33-rc4
savedefault
boot
update-grub
reboot


Pranala Menarik