19 Şubat 2011 Cumartesi

Compiling Kernel Method 2 (As Debian Package)

Here another compilation method for Kernel installing.

First download wanted kernel source code from kerel.org

then extract the .tar file that comes from the website.

Here the terminal process.

Copy the old config file to the new Kernel to do not try for setting new kernel.
­cp -vi /boot/config-`uname -r` .config

Or if you want to set your kernel type:
sudo make menuconfig

Then compile and create the debian packages of the kernel. You can type anything instead of **** to define your kernel. "fakeroot" commands gives error, maybe you need to download and install from "software center".
fakeroot make-kpkg --initrd --append-to-version=**** kernel-image kernel-headers


There should be created two "debian packages" (most probably in desktop). Go that directory in terminal then type:
sudo dpkg -i linux-ubuntu-modules-2.6.24-16-generic_2.6.24-16.23_i386.deb
sudo dpkg -i linux-headers-lum-2.6.24-16-generic_2.6.24-16.23_i386.deb


Finally go to the boot directory to set the "grub" with your new kernel:

cd /boot
sudo update-initramfs -c -k 2.6.37+QD

sudo update-grub2
reboot

Hiç yorum yok:

Yorum Gönder