![]() |
|
#1
|
||||
|
||||
Linux Kernel Upgrade Mini HowtoLinux Kernel Upgrade PLEASE NOTE THAT UPGRADING YOUR KERNEL CAN DISABLE YOUR CURRENT STABLE LINUX INSTALLATION IF NOT DONE PROPERLY. PLEASE READ THIS ENTIRE DOCUMENT BEFORE PROCEEDING. ALSO, YOU DO THIS AT YOUR OWN RISK. I TAKE ABSOLUTELY NO RESPONSIBILITY FOR ANY DAMAGES OR PROBLEMS THAT THESE INSTRUCTIONS MAY CAUSE Introduction This is meant to be a beginner level document on how to upgrade the kernel in a linux operating system. The kernel is the backbone of the Gnu/Linux system and is being worked on continuously. It basically does the background tasks that most people are not aware of. Upgrading your kernel is not paramount to upgrading your entire distribution. It is not going to add any eye-candy or new programs. Why should you upgrade Updating a kernel takes a good amount of time. You don't get any new utilities or programs and most of the time, the ordinary user will never notice the difference. So why should you upgrade your kernel? I have compiled the following list of why you should upgrade your kernel.
Why shouldn't you upgrade There are probably as many reasons not to upgrade as there are to upgrade. I have listed several below.
Downloading/Expanding the kernel source The rest of this document, does not specifically indicate when you should do things as root or not. Keep in mind that downloading,configuring and building the kernel can all be done as a user. However, installation has to be done as root. The kernel source is located at the appropriately named www.kernel.org. This is a very simple and straightforward site. The first entry is the latest current stable kernel. As of the writing of this document, the latest stable kernel is 2.6.2. This is an example line of what you should see. Code:
From this point forward, I have to make several assumptions about file locations and your particular distribution. This document follows a typical slackware installation which is a fairly standard installation. Please contact me with any variations.
Configuring your new kernel This is the most critical part. As long as you can base the new kernel install on the old configuration this is not too bad. Follow these steps to configure your kernel.
Compiling the kernel Okay, the kernel should be configured and now comes the processor overload time. Follow this list to compile your kernel
Installing the kernel Okay, the kernel is built and now we want to test it out. The following assumes that you are using lilo as a boot loader. If not, you will need to modify this for the appropriate boot loader.
Housekeeping Once you have installed your new kernel and you are convinced that it works, you may want to do a little house-keeping. I would only do this once you are comfortable with your new kernel.
Crossing the threshold (Going from 2.4.x to 2.6.x) The following items are only necessary if you are upgrading from a kernel version of 2.4.x to version 2.6.x.
Additional notes
That's it! Simple, huh. Is the transition from the 2.4 kernel to the 2.6 kernel worth it? Definitely if you don't mind taking a little time to get it working. It is especially worth it if you do any video/audio editting or viewing. The preemption option in the kernel adds a vast improvement. If you run a server or a critical production machine and nothing is wrong with it, I wouldn't rush to do this. As always, feedback is not only welcome, but encouraged. |
||||
|
#2
|
||||
|
||||
|
Good stuff...I'll bookmark this for future reference.
|
|
#3
|
||||
|
||||
|
Quote:
UPDATE Okay, I finally got alsa to work and it actually wasn't too bad. I installed the newest available drivers from www.alsa-project.org along with the associated lib and util packages. The thing that finally got it going was running ./snddevice under the driver source package. This sets up all of the necessary alsa /dev entries. If anyone is interested in using the alsa drivers and struggling with it, let me know, because I *may* be able to help. The alsa drivers are so much more robust than the OSS drivers. The pain to set them up is worth it in my estimation. |
|
#4
|
||||
|
||||
|
Linux Kernel Patch Mini-Howto PLEASE NOTE THAT UPGRADING YOUR KERNEL CAN DISABLE YOUR CURRENT LINUX CONFIGURATION IF NOT DONE PROPERLY. PLEASE READ THIS ENTIRE DOCUMENT BEFORE PROCEEDING. ALSO, YOU DO THIS AT YOUR OWN RISK. I TAKE ABSOLUTELY NO RESPONSIBILITY FOR ANY DAMAGES OR PROBLEMS THAT THESE INSTRUCTIONS MAY CAUSE Introduction This document is a continuation of the kernel upgrade document. However, this part will cover updating your kernel with patches instead of the whole thing. I have been meaning to keep up with the patches for the kernel, so that I will be up to date with all of the changes and only have to apply one patch. However, the patches have been coming so fast that I am already three behind. This will cover the upgrade from 2.6.2 to the just barely released 2.6.5. Downloading the patches The rest of this document, does not specifically indicate when you should do things as root or not. Keep in mind that downloading,configuring and building the kernel can all be done as a user. However, installation has to be done as root. First of all navigate to the linux kernel source site. From here you can download the most current patch. However, if you are like me, you may need several patches to get up to speed. If that is the case, click on the link to navigate to the ftp download site. From there go into the linux/kernel directory and select your prefered branch (v2.6 in my case). Download the necessary patch files. These start with patch as opposed to linux. They are also about 5% the size of the full kernel. In my case, I needed to download patch-2.6.3, patch-2.6.4 and patch 2.6.5. Applying Kernel patches If I haven't already mentioned this somewhere, it is worth mentioning here. The site http://www.tldp.org is invaluable to me. If you really want to work linux and get to know it, bookmark that site somewhere. The HOWTO's in particular are a life safer. Okay, on to patching the kernel.
Configuring the kernel This is where the patching of the kernel is much much easier than the full install. You can use your existing configuration file and be prompted only on the stuff that is new from this configuration file. This is done using the make oldconfig command. Code:
If you want to reconfigure your kernel further, use make xconfig after you use the make oldconfig command. Compiling the kernel This is basically identical to the full kernel install instructions that I gave above.
Installing the kernel Once again, these instructions are basically copied from the full kernel install post. It is still important to test the new kernel before you delete the other one. The following assumes that you are using lilo as a boot loader. If not, you will need to modify this for the appropriate boot loader.
Housekeeping Once you have installed your new kernel and you are convinced that it works, you may want to do a little house-keeping. I would only do this once you are comfortable with your new kernel.
Additional notes
I hope that someone will get some use out of this. As always, feedback is not only welcome, but encouraged. |
Recent GIDBlog
Accepted for Ph.D. program by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to boot Linux in text mode with GRUB Loader | JdS | Computer Software Forum - Linux | 8 | 11-Jul-2006 05:41 |
| Mozilla Thunderbird | dsmith | Computer Software Forum - Linux | 9 | 01-Mar-2005 12:56 |
| Linux Font Improvement Mini-howto | dsmith | Computer Software Forum - Linux | 1 | 20-Feb-2005 07:37 |
| Changing monitors on a Linux machine | JdS | Computer Software Forum - Linux | 10 | 23-Dec-2004 10:49 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The