LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Linux Answers > Applications / GUI / Multimedia
User Name
Password

Notices

By Maladjez at 2007-03-26 17:53
Note: orders are marked with ''. I used the kernel version 2.6.28.3-34 implemented in my OpenSuse 10.2 distribution. You'll have to change the directory names to your kernel.

1. Kernel Configuration
----------------------------

Login as root on the (bash) shell.

First "clone" the config file of the kernel in use to make clear that the system will keep working with this original kernel:

'zcat /proc/config.gz > .config'

then a new kernel directory has to be created:

'cd /usr/src'
'mv linux-2.6.18.2-34 linux-2.6.18.2-nopreemptsmp'
'cd linux-2.6.18.2-nopreemptsmp'

Next the kernel configuration has to be changed via
'make xconfig' (or 'make menueconfig')

Change the PEEMPT and SMP settings:

Processor type and features --->
Preemption Mode (Complete Preemption (Real-Time)) --->
(x) No Forced Preemption (Server)
( ) Voluntary Kernel Preemption (Desktop)
( ) Preemptible Kernel (Low-Latency Desktop)
( ) Complete Preemption (Real-Time)

[ ] Symmetric multi-processing support

Keep the other settings as they are ...

First "save" ant then "Exit" die GUI.


2. Compile and install the new kernel
-------------------------------------

Now the kernel with the new settings will be compiled and the modules installed:

'make && make modules_install'

This can take a while with this cloned kernel (ca. 35 bis 45min.).

When finished, copy the kernel (see later) to /boot (we use the name defined above). Der original kernel won't be touched, so don't panic! If the boot fails, the old kernel ist still there and can be used in case of trouble with the new kernel.

'cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.18.2-nopreemptsmp'
'cp System.map /boot/System.map-2.6.18.2-nopreemptsmp'

A initrd is also needed:

'cd /boot'
'mkinitrd -k vmlinuz-2.6.18.2-nopreemptsmp -i initrd-2.6.18.2-nopreemptsmp'


3. Manipulating the bootloader
------------------------------

At least a setting is added to the bootloader, here GRUB:

'vi /boot/grub/menu.lst', oder (bash) or open the file with kwrite under KDE.

We'll have to copy and edit the area of the old kernel to the new kernel und initrd:

###New kernel cloned from the original kernel, new name: linux-2.6.18.2-nopreemptsmp###
title openSUSE 10.2 -- nopreemptsmp
root (hd0,3)
kernel /boot/vmlinuz-2.6.18.2-nopreemptsmp root=/dev/sda2 vga=0x317 resume=/dev/sda2 splash=silent showopts
initrd /boot/initrd--2.6.18.2-nopreemptsmp

Note: customize this to your system and do not copy&paste it without control!


4. End
------

With YAST (if you use OpenSuse) you may start with this new kernel as "Default", ant then:

pray & boot :-))


used source: http://gimpel.gi.funpic.de/Howtos/RTP_kernel
(with own adjustments to our needs)

5. Author
---------

This HowTo was made by Maladjez. It can be used for free, but the author grants no warranty. You can use it on your own risk.

Please do not modify this without my permission!

by kiri on Wed, 2007-03-28 08:57
i dont this you are giveing a apt configuration !


  



All times are GMT -5. The time now is 10:23 AM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration