LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-25-2004, 05:44 AM   #1
javeree
Member
 
Registered: Jun 2004
Location: Belgium
Posts: 49

Rep: Reputation: 15
running kernel 2.4 and 2.6 on the same distribution possible ?


Hi,

I am running Slackware 9.1 (kernel 2.4), with the main functions working. I wanted to get my tv-card working which is SAA7934 based, so I decided to compile a kernel 2.6.9.

My first attempt to select all configuration options by hand failed (I think it crashes while attempting something with dma on my IDE drives). My next attempt was to use make defconfig, which also failed. Then finally I copied the .config from thge 2.4 kernel to the 2.6 source and did make oldconfig + simply accepted the defaults for almost any question asked. (That was probably way too much for me, because I saw it compile things like IPv6 which I even though I declined, but it being 3am by then I didn't care too much).

Anyway booting with this last kernel worked and brought me to the kdm login screen. However, It seems I have no mouse support ! I will have a look at my logs and config again when I'll have more time and be more awake, but I have a hunch that this is not a kernel problem anymore.
I have read somewhere that mice are supported though /dev/mice in 2.6 and through /dev/mouse in 2.4.
Is this true, and if so, does the kernel create the missing /dev/mice entry ? If it doesn't, how will I ever know what other things the new kernel will need, because there may be more changes like that which I am not aware of.

Secondly (and coming to the subject in the title), I adapted grub to be able to start either the 2.4 kernel or the 2.6 kernel, but both use basically the same distribution on the same root. I suspect however, that there may be certain config files that may need to be different for either 2.4 or 2.6 support.
E.g. XF86Config refers to /dev/mouse, so I should have an alternative XF86config that points to /dev/mice ? Kernel 2.4 uses OSS, and kernel 2.6 uses alsa, so I need different entries in modules.conf ? /usr/src/linux should be a symlink to /usr/src/linux-2.4 while running 2.4 and a symlink to /usr/src/linux-2.6 while running 2.6 ?

So basically my question is: now that I have a bootable 2.6 kernel, what is the best startegy to cleanly allow 2.4 and 2.6 to coexist (and to gradually convert and test the 2.6 features ?
 
Old 11-25-2004, 08:02 AM   #2
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
when i boot i can choose between 2.4.26 , 2.6.9, and 2.6.9.test to run.
they all work with the same X-config-file. ( using Slack10, but also 9.1 should work.)

when you use your old (2.4....) config-file as a starting point, don't make an oldconfig,
use " make xconfig " (GUI ) and take a good look at all the settings. ( and change it to your needs )
this gui will also give additional info and sometimes advice on the settings.

egag
 
  


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
How tell what Linux distribution and version is running? johnkantor12 Linux - General 4 12-17-2007 11:35 AM
Determining currently running distribution ChillyWillie Linux - Distributions 6 08-31-2005 12:41 PM
Does any distribution come with an original 2.6.x kernel? ghow961 Linux - Distributions 3 03-20-2004 09:38 AM
How can I tell which version of iptables is in a given kernel distribution? cestor Linux - General 4 05-27-2002 04:24 PM
updating kernel and distribution c0c0deuz Linux - Distributions 4 08-27-2001 05:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:06 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
Open Source Consulting | Domain Registration