LinuxQuestions.org
Review your favorite Linux distribution.
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, 05:52 AM   #1
adriv
Member
 
Registered: Nov 2005
Location: Diessen, The Netherlands
Distribution: Slackware 14.2
Posts: 666

Rep: Reputation: 38
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, 02: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, 04:19 PM   #3
adriv
Member
 
Registered: Nov 2005
Location: Diessen, The Netherlands
Distribution: Slackware 14.2
Posts: 666

Original Poster
Rep: Reputation: 38
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, 11:39 PM   #4
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,366

Rep: Reputation: 835Reputation: 835Reputation: 835Reputation: 835Reputation: 835Reputation: 835Reputation: 835
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, 10:03 AM   #5
adriv
Member
 
Registered: Nov 2005
Location: Diessen, The Netherlands
Distribution: Slackware 14.2
Posts: 666

Original Poster
Rep: Reputation: 38
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, 10: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, 01:54 PM   #7
adriv
Member
 
Registered: Nov 2005
Location: Diessen, The Netherlands
Distribution: Slackware 14.2
Posts: 666

Original Poster
Rep: Reputation: 38
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 01:56 PM.
 
Old 03-18-2008, 02:04 PM   #8
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,880

Rep: Reputation: 563Reputation: 563Reputation: 563Reputation: 563Reputation: 563Reputation: 563
The rule is: "make modules_install", not "make modules install".
 
Old 03-18-2008, 02: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, 03:37 PM   #10
adriv
Member
 
Registered: Nov 2005
Location: Diessen, The Netherlands
Distribution: Slackware 14.2
Posts: 666

Original Poster
Rep: Reputation: 38
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, 03:12 AM   #11
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,880

Rep: Reputation: 563Reputation: 563Reputation: 563Reputation: 563Reputation: 563Reputation: 563
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, 08:20 AM   #12
adriv
Member
 
Registered: Nov 2005
Location: Diessen, The Netherlands
Distribution: Slackware 14.2
Posts: 666

Original Poster
Rep: Reputation: 38
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


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

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

All times are GMT -5. The time now is 07:16 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration