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

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-
# mkinitrd --> This will create /boot/initrd- 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 -
root (hd0,5)
kernel /boot/vmlinuz- root=/dev/hda6 vga=0×317 resume=/dev/hda7 splash=silent showopts
initrd /boot/initrd-

You can also install new kernel using Yast tool.

7) Now install the grub using following command

# grub-install /dev/hda


Post a Comment

Related Posts with Thumbnails