Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Slackware Linux Help > kernel help

Forgot Password?
 Slackware Linux Help   For help and Discussion about Slackware linux

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 11-07-2006   #1 (permalink)
Just Joined!
 
Join Date: Nov 2006
Posts: 8
kernel help

I have dl the Slackware 10.0 and keeps saying i have a 2.4.31 kernel
all the images on the cd were 2.4.26 I am trying to load a realtek nic
and it keeps saying that this driver is compiled for a 2.4.26 and my kernel
is 2.4.31 --- help

I have compiled/tried several drivers and can't get the nic to work

I had a linux version on this drive before but i'm sure i deleted all old partitons
from the earlier version. (9v slackware it worked great O why did i mess with it )
dave1959 is offline  



Reply With Quote
Old 11-07-2006   #2 (permalink)
Linux Enthusiast
 
Join Date: Jun 2005
Posts: 668
That driver you are using, you probably don't need to load your own custom driver, use one the kernel provides.

have a look through /etc/rc.d/rc.modules and try and find the module that corresponds to your realtek network card, uncomment it by removing the # at the front, then save and reboot.
kern is offline   Reply With Quote
Old 11-08-2006   #3 (permalink)
Just Joined!
 
Join Date: Nov 2006
Posts: 8
yes i did try that earlier but no joy
I get the error: at start up

modprobe: can't open dependencies file /lib/modules/2.4.31/modules.dep (no such file or directory)

sounds like something is missing the source perhaps.
dave1959 is offline   Reply With Quote
Old 11-08-2006   #4 (permalink)
Linux Enthusiast
 
Join Date: Jun 2005
Posts: 668
look in /var/log/packages, do you have a kernel-generic and a kernel-modules package installed? what version are they?

I dont think you have any modules in /lib/modules/, or not the right ones, try
Code:
depmod -qa
as root though, that will rebuild your module depende ncies file modules.dep
kern is offline   Reply With Quote
Old 11-08-2006   #5 (permalink)
Just Joined!
 
Join Date: Nov 2006
Posts: 8
ls kernel*
listing for /var/log/packages:

kernel-headers-2.4.26-i386-3
kernel-idle-2.4.26-i486-4
kernel-modules-2.4.26-i486-3
kernel-source-2.4.26-noarch-4

depmod -qa gives:

depmod: Can't open /lib/modules/2.4.31/modules.dep for writing
dave1959 is offline   Reply With Quote
Old 11-09-2006   #6 (permalink)
Linux Enthusiast
 
Join Date: Jun 2005
Posts: 668
try this for me
Code:
uname -a

does it say 2.4.26 or 2.4.31?

also, whats in /lib/modules/
kern is offline   Reply With Quote
Old 11-09-2006   #7 (permalink)
Just Joined!
 
Join Date: Nov 2006
Posts: 8
uname -a gives:

Linux sdfs 2.4.31 #6 Sun Jun 5 19:04:47 PDT 2005 i686 unknown unknown GUN/Linux

the /lib/modules

2.4.26/
dave1959 is offline   Reply With Quote
Old 11-09-2006   #8 (permalink)
Just Joined!
 
Join Date: Nov 2006
Posts: 8
Thumbs up

i tried to rebuild the kernal last night by coping all the files from the /usr/source/linux/2.4.26 directory into a new directory 2.4.31/
seem to build ok but network and other hardware not being loaded

might have to bite the bulit and reinstall a later version or drop back to 9
for the time being - not a problem really.

Thanks for your help Kern
dave1959 is offline   Reply With Quote
Old 11-09-2006   #9 (permalink)
Linux Enthusiast
 
Join Date: Jun 2005
Posts: 668
you could fix this by dropping into init 1, doing a
Code:
removepkg /var/log/packages/kernel-generic*
removepkg /var/log/packages/kernel-modules*
removepkg /var/log/packages/kernel-source*
then installing the correct kernel-generic, kernel-modules, and kernel-source (not really needed) packages from the actual CD. Then running
Code:
lilo -v
have you a specific need as to why you are compiling your own kernel?
kern is offline   Reply With Quote
Old 11-09-2006   #10 (permalink)
Linux Enthusiast
 
Join Date: Jun 2005
Posts: 668
Quote:
Originally Posted by dave1959
i tried to rebuild the kernal last night by coping all the files from the /usr/source/linux/2.4.26 directory into a new directory 2.4.31/

Thats not going to work, whatever directory its in, its still the 2.4.26 kernel source, and you'd be building a 2.4.26 kernel with it, not 2.4.31.
kern is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
A Newbie's Getting Started Guide to Linux
Learn the basics of the Linux operating systems. Get to know what it is all about, and familiarize yourself with the practical side. Basically, if you're a complete Linux newbie and looking for a quick and easy guide to get you started this is it.
subscribe
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 12:53 AM.






© 2000 - - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.1