LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-08-2005, 01:29 PM   #1
joeyjwc
Member
 
Registered: Mar 2004
Distribution: Slackware 10.2, Fedora Core 5, Kubuntu
Posts: 61

Rep: Reputation: 15
Downgrading a 2.6 Kernel to 2.4


I'm sorry for asking such a simple question (and the fact that I haven't been on LQ since like forever doesn't help either).

A couple of months ago, I designed an openMosix cluster running RedHat 9 and openMosix 2.4.26-openmosix1. Everything worked very well in RedHat 9. There are 4 nodes (more on the way), one of them being the master.

But after gettting bored (famous last words?) with RedHat, I decided to move to something faster, more powerful, etc. Well, I don't know if I actually achieved that, but I went to SUSE 9.1 because of its excellent support for hardware and its integrated environment. I installed all of the packages from a mirror server .

Anyways, as you may know, SUSE 9.1 uses a 2.6 kernel (2.6.5-7.201 for me). The support for the 2.6 kernel in openMosix, however, is very weak, and I don't wish to use it.

So, I'd like to downgrade to a 2.4 kernel (2.4.26 to be exact). This is going to be quite a job, I know, but if I can do so, I can have openMosix running very well.

I found a similar topic at http://www.linuxquestions.org/questi...hreadid=370254, but it didn't really give any information.

I've had very bad experiences in building kernels in the past (i.e. if I didn't use make oldconfig, I'd be getting all sorts of problems with OS integration). Building one from a source RPM with openMosix patched in was scary enough. However, it is pretty much imperative now that I run the 2.4.26-openmosix1 kernel for my cluster.

So, I'd greatly appreciate it if someone could give me a brief explanation of things that could go wrong, things that won't work because of the downgrade (I heard ALSA isn't going to work properly among other things), and any tips for some automatic configuration of the kernel would also be great.

Thanks so much.

Last edited by joeyjwc; 10-08-2005 at 02:03 PM.
 
Old 10-08-2005, 07:54 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,776

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
To automate kernel configuration and compilation, you should investigate buildkernel. I've used it some years back with CalderaSystems OpenLinux (worked very well because the OpenLinux kernel compile was quite straightforward). I haven't tried it yet with SuSE 9.3 (the kernel compile is much more complex because of SuSE's way of doing things).

Anyhow, with buildkernel, you can build several versions of the same kernel, each with it's own /lib/modules (to prevent conflicts between versions). Setting it up to build a 2.4 kernel should not be a problem.

Note: buildkernel also has an option in the script to add a patch file to the compilation (you move/copy the patch to the SOURCES directory and proceed with compilation. If the script knows about the patch, it will apply the patch during compilation).

After the kernel compilation, what problems could you run into? To start with, software applications compiled for the capabilities of the 2.6 kernel: all would have to be recompiled for the 2.4, unless you have software which didn't change much between the two kernel releases.

Is that a steep enough hill to climb?
 
Old 10-09-2005, 06:32 PM   #3
joeyjwc
Member
 
Registered: Mar 2004
Distribution: Slackware 10.2, Fedora Core 5, Kubuntu
Posts: 61

Original Poster
Rep: Reputation: 15
I'll look into buildkernel, thanks for the tip.

Generally, when I've rebuilt kernels in the past (on Slackware among other distributions), I run into all kinds of errors involving modules. I can't recall them off the top of my head, but they usually have been symbol loading errors, incorrect module errors, etc.

Considering how much software that I have installed on the system, I'm quite weary of recompiling everything for a 2.4 kernel. I'm wondering if I should just wait until full support for 2.6 comes out yet. When you have installed about 10gB of software, it's kind of hard to see what you'll need to recompile. Plus, I'll be pretty much on my own with installing and configuring things and so forth, and that's precisely what I wanted to get away from. So right now, I'm thinking installations of Redhat and SUSE. Plus, that gives me another reason to buy a new hard drive . In that time, I'll wait for the 2.6 support to come out.

Thanks for you help and I do intend to look into buildkernel soon for some other purposes that I have.
 
Old 10-09-2005, 07:56 PM   #4
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,382

Rep: Reputation: 1109Reputation: 1109Reputation: 1109Reputation: 1109Reputation: 1109Reputation: 1109Reputation: 1109Reputation: 1109Reputation: 1109
While I am "morbidly intrigued" by what it is that would motivate you to downgrade your system to an earlier kernel, you can certainly do that if you wish. The key will be to make sure that any other parts of your system which may be reliant upon the availability of 2.6 services (such as, particularly, your all-important glibc library) will continue to run successfully in an earlier environment.

In any case, you can download a 2.4 kernel, compile it, install it, and boot from it. All other things being equal, your present system will now be running (or, attempting to do so) with a 2.4 kernel. Either it will work successfully or it will not... in which case you can reboot and select your previous kernel.

I am still, however, "morbidly intrigued" by what, exactly, causes a dependency upon an earlier version of the Linux kernel. As far as I am aware, very few applications speak directly to the kernel at all... they interact with a library such as glibc, which in turn issues kernel-level calls.

When you deal with "the kernel," bear in mind that loadable modules are part-and-parcel of "the kernel!" When a kernel-module is loaded, it becomes a full-fledged part of the kernel... as though it had been compiled-in from the start. You cannot mix the two: you can't use a 2.6 kernel-module with a 2.4 kernel or vice-versa.

Offhand, I would suggest that you begin by staying precisely where you are, and contact the vendor/supplier of openMosix for advice. "Follow the leader" and do exactly what they advise. If they are working on 2.6 support but don't have it ready yet, then install the latest 2.4-based distro you can find. The overarching concern for you is that "you have in your possession 'a system that will run openMosix reliably.'" Period, end-of-sentence. Don't try to carve out new territory here... ask them, and follow their advice.
 
Old 10-10-2005, 02:04 PM   #5
joeyjwc
Member
 
Registered: Mar 2004
Distribution: Slackware 10.2, Fedora Core 5, Kubuntu
Posts: 61

Original Poster
Rep: Reputation: 15
There is a patch for the 2.6 kernel, just without automatic migration of processes. It is supposedly still in development, but the last bit of news over at http://openmosix.sourceforge.net/ was from July and the community seems to be somewhat dead. I can't really tell what's going on over there. I'll try emailing someone.

I'm looking at OSCAR right now; it might be my temporary choice while I wait for 2.6 support to come out.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
downgrading kernel server-solution Linux - Software 2 10-08-2005 01:08 AM
Help Downgrading Kernel derek8128 Fedora 4 10-04-2005 07:42 AM
downgrading Kernel SUSE jax8 Linux - Newbie 6 12-22-2004 04:51 AM
Downgrading Mandrake 10 kernel to kernel-2.4.22.10mdk-1-1mdk windeath Mandriva 4 05-11-2004 07:21 PM
downgrading kernel? nasim Linux - Newbie 8 05-05-2002 02:59 PM


All times are GMT -5. The time now is 07:41 AM.

Main Menu
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