LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-17-2008, 04:52 AM   #1
adriv
Member
 
Registered: Nov 2005
Location: Diessen, The Netherlands
Distribution: Slackware 15
Posts: 700

Rep: Reputation: 43
Upgrading a 2.4* kernel


Hello,

On an old box running Slackware 10.2, with the default 2.4 kernel, I have to recompile the kernel in order to get a printer working.
I've tried it once (with the latest 2.4 kernel) and it wasn't exactly a success...
Question: Is it safe to just grab the latest 2.6 (SMP) kernel and follow Alien Bob's guide (with that guide I've always succeeded, but that was on SW 12 machines)?
 
Old 03-17-2008, 01:01 PM   #2
MonctonJohn
Member
 
Registered: Aug 2007
Location: Canada
Distribution: Mint
Posts: 112

Rep: Reputation: 15
The instructions from Alien bob look pretty standard to me and should work. Just make sure you select the modules you need and compile the filesystem support into the kernel, not as a module. I've done kernel compiles on Slack 10 and up and it always worked for me.
 
Old 03-17-2008, 03:19 PM   #3
adriv
Member
 
Registered: Nov 2005
Location: Diessen, The Netherlands
Distribution: Slackware 15
Posts: 700

Original Poster
Rep: Reputation: 43
Thanks for the reply!
I'll go for it then (yes, I did know to compile filesystem support in, thanks anyway).
 
Old 03-17-2008, 10:39 PM   #4
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
I think you have to do some additional stuff to get a 'properly' running system when upgrading from the 2.4 to the 2.6 kernel. The 2.6 kernel uses sysfs, which isn't supported by the 2.4 kernel. There may be some funky iptables/netfilter stuff as well. There may be additional changes, but I'm not positive. It would be best to wait for someone who knows what they're doing...
 
Old 03-18-2008, 09:03 AM   #5
adriv
Member
 
Registered: Nov 2005
Location: Diessen, The Netherlands
Distribution: Slackware 15
Posts: 700

Original Poster
Rep: Reputation: 43
So I experienced...
The kernel(s) booted alright, but X just wouldn't start (not in 2.6*, nor in 2.4*).
Got loads of errors and trying to fix it only made it worse.

Installing 10.2 again with the default kernel.
Gonna try it again with a new compile later, this time with a 2.4* kernel.

Is the Alien Bob's guide OK for that too?
 
Old 03-18-2008, 09:41 AM   #6
MonctonJohn
Member
 
Registered: Aug 2007
Location: Canada
Distribution: Mint
Posts: 112

Rep: Reputation: 15
X not starting is probably just a module issue. You need the correct module for your video card in order for X to work. What kind of video card do you have.

I've installed 10.1 with the default 2.4 kernel and compiled 2.6 with no issues other than video. Downloaded the correct kernel module for my card and installed it and it works. No issues.
 
Old 03-18-2008, 12:54 PM   #7
adriv
Member
 
Registered: Nov 2005
Location: Diessen, The Netherlands
Distribution: Slackware 15
Posts: 700

Original Poster
Rep: Reputation: 43
Indeed X complained about not finding the modules (yes I did make modules install, sure of that), so I symlinked /lib/modules/2.4.31 to /lib/modules/2.6.24.
But that didn't solve anything.

Apart from that (the card is an on board chip: Intel 82815, which uses the i810 module. Which couldn't be loaded (dunno why)...

Anyways, I reinstalled SW 10.2 now and want to compile a new 2.4 kernel (all because of the HP Deskjet 720 that I cannot get to work ).

Last edited by adriv; 03-18-2008 at 12:56 PM.
 
Old 03-18-2008, 01:04 PM   #8
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
The rule is: "make modules_install", not "make modules install".
 
Old 03-18-2008, 01:41 PM   #9
MonctonJohn
Member
 
Registered: Aug 2007
Location: Canada
Distribution: Mint
Posts: 112

Rep: Reputation: 15
gnashley is right. But if you are going for a 2.4 Kernel just follow the same instructions.
 
Old 03-18-2008, 02:37 PM   #10
adriv
Member
 
Registered: Nov 2005
Location: Diessen, The Netherlands
Distribution: Slackware 15
Posts: 700

Original Poster
Rep: Reputation: 43
Who is the biggest fool of them all?
I AM!

It was late and I was tired, so it could very well be possible that I missed the _ ...
It sure would explain a lot.

What I don't understand is: when booting the 2.4 kernel, I got the same error. How is that possible, because the 2.4 modules were installed?
 
Old 03-19-2008, 02:12 AM   #11
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Try using the original config file for the Slackware standard 'bare.i' kernel and just add whatever options you need.
You can find the config file in the same place as the kernels, for example:
ftp://ftp.slackware.at/slackware-10..../bare.i/config

After unpacking the fresh kernel sources, just copy that config file into the toplevel of the sources and change the name to '.config'. Then run 'make oldconfig' and just click ENTER each time it asks you about new options. Then when it finishes you can run 'make menuconfig' and change anything you need to. If you've been running the standard kernel you shouldn't need to change anything unless it has to do with your printer someway.
Then run 'make bzImage && make modules && make install_modules. Be sure to manually install the new kernel and re-run lilo.
 
Old 03-19-2008, 07:20 AM   #12
adriv
Member
 
Registered: Nov 2005
Location: Diessen, The Netherlands
Distribution: Slackware 15
Posts: 700

Original Poster
Rep: Reputation: 43
Kernel 2.6.24.3 is up and running and so is X.
Thank you for the help.

Still, out of curiosity: why didn't X start with the 2.4 kernel, while those modules were installed?
 
  


Reply



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
can i upgrade the red hat EL4 ES kernel to AS Kernel without upgrading the whole OS? oreaba Linux - Newbie 6 08-19-2008 02:08 PM
Upgrading kernel causes kernel panic Neloth Linux - Newbie 5 04-16-2007 08:04 PM
problems occured after upgrading kernel and kernel-utils parv Fedora 0 05-02-2005 06:21 PM
Upgrading kernel on Debian from 2.4 to 2.6.8, Kernel Panic omlette Linux - General 3 03-07-2005 07:00 AM
Upgrading To Kernel 2.6.3 LinuxGuru707 Linux - Software 2 03-08-2004 02:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:01 PM.

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