| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
|
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!
|
|
|
|
All times are GMT -5. The time now is 04:30 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|