linux poison RSS
linux poison Email

How-to compile Linux Kernel in OpenSuse 10.x

1) Make sure you have all the required lib for kernel compilation

2) Download the latest kernel from www.kernel.org

3) Untar the kernel source

4) Fire Following commands

# make oldconfig
# make rpm

5) This is will take some time, after compilation

Now go to — /usr/src/packages/RPMS/i386 directory and install the kernel

# rpm -ivh kernel-2.6.24.1default-1.i386.rpm
# mkinitrd --> This will create /boot/initrd-2.6.24.1-default file which is required durning booting on new kernel.

6) Go to and edit the following file to add the new kernel to boot menu

# vi /boot/grub/menu.lst and add the following lines to it

title openSUSE 10.2 - 2.6.24.1
root (hd0,5)
kernel /boot/vmlinuz-2.6.24.1-default root=/dev/hda6 vga=0×317 resume=/dev/hda7 splash=silent showopts
initrd /boot/initrd-2.6.24.1-default

You can also install new kernel using Yast tool.

7) Now install the grub using following command

# grub-install /dev/hda




0 comments:

Post a Comment

Related Posts with Thumbnails