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 05-13-2004, 03:27 PM   #1
simpletoker
LQ Newbie
 
Registered: Jul 2003
Posts: 17

Rep: Reputation: 0
modprobe doesn't work after kernel upgrade from 2.4 to 2.6


Last night I decided to try to update the kernel on my laptop from 2.4 to 2.6. Since I have very little space on my hard drive to really try saving any thing big on it I decided to just reinstall slackware 8.1 and when it got to the point that it asked for the kernel I wanted to use, I choose to load a kernel from floppy that I had load a slackware 9.1 bare.i kernel. Every thing seemed to go thru fine, the computer boots up fine and almost every thing works (even seems to be running faster). The only problem I have so far is getting my nic card to work. When the computer boots up it gives the message:

Starting PCMCIA services:
<Probing for PCIC: edit /etc/rc.d/rc.pcmcia>
cardmgr[55]: cannot access /lib/modules/2.4.22: no such file or directory
cardmgr[55]: no pcmcia driver in /proc/devices
Attempting to configure eth0 by contacting a DHCP server...
modprobe: modprobe: Can't open dependencies file /lib/modules/2.4.22/modules.dep (No such file or directory)
dhcpcd[59]: dhcpStart: ioctl SIOCGIFHWADDR: No such device

When searching thru the folders and files to try and locate the /lib/modules/2.4.22 folder I couldn't but I did find /lib/modules/2.4.18. Now I'm not sure that this is the file I need but I was unable to locate a similar file. So I guess the real question is what file do I need to edit so that modprobe will be able to locate the right drivers, and do I just need to redirect it to the /lib/modules/2.4.18 file or is there some thing different/better to try?

Also if any one could instruct me on how to copy the entire error output messages to the floppy I would gladly post it, if that would help at all.
 
Old 05-13-2004, 03:38 PM   #2
Grymme
Member
 
Registered: Apr 2004
Location: Sweden
Distribution: Slackware
Posts: 44

Rep: Reputation: 15
This is not the most beautiful fix but how about you create a symlink 2.4.22 that points to 2.4.18?

Code:
cd /lib/modules
ln -s 2.4.18 2.4.22
This might work.. but use on your own risk.
 
Old 05-14-2004, 05:06 AM   #3
KMcD
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slack -- current
Posts: 354

Rep: Reputation: 30
I had a similar problem that moving to the 2.6 kernel it never detected my modules. This was because I needed to install upgrade the "module-init-tools" package. This then fixed the problem.
 
Old 05-14-2004, 05:33 AM   #4
frandalla
Member
 
Registered: Oct 2003
Location: Tokyo - Japan
Distribution: Slackware
Posts: 348
Blog Entries: 1

Rep: Reputation: 37
If I understood right, you didn't get to install 2.6 in that machine, right? What's happening is that Slack 8.1 uses kernel 2.4.18, but you used the 9.1 kernel which is 2.4.22. Then your system loads a 2.4.22 kernel searching for it's modules in /lib/modules/2.4.22 but you only have modules for your 2.4.18 kernel. The link creation will not work because modules are compiled for a single kernel (now there's that "Kernel Modules Versioning" - don't really remember the name - in kernel that *might* let you load different kernel modules) and it will give you a error message when you try to load the 2.4.18 modules. To get this to work, remove the kernel-modules package from the your system and install the same package from the 9.1 version.

hope this helps
 
Old 05-17-2004, 07:54 PM   #5
simpletoker
LQ Newbie
 
Registered: Jul 2003
Posts: 17

Original Poster
Rep: Reputation: 0
hmm.. your right I infact did not install the 2.6 kernel like I thought I had. since that is the case I decided to go back to the original kernel and I'm going to upgrade the kernel with the proper patches. sorry I didn't check to make sure I had the right information.
 
  


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
kernel 2.6 upgrade and now network doesn't work spooon Debian 6 11-05-2005 07:02 PM
pppd don't work after kernel upgrade from 2.4.18 to 2.6.11 *Dark Dragon* Linux - Networking 2 06-01-2005 10:15 AM
Kernel Upgrade Did not Work ducod Linux - Software 1 03-09-2005 10:33 PM
Modprobe Problems after Kernel Upgrade cm_elliott Linux - Networking 13 02-03-2002 05:51 PM
No modem after kernel upgrade: Modprobe can't locate module char-major-4 Rimmer Linux - General 2 05-09-2001 02:40 AM

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

All times are GMT -5. The time now is 12:50 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