LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 06-03-2003, 11:31 AM   #1
PerpetualBurn
LQ Newbie
 
Registered: May 2003
Location: Texas, US
Distribution: Debian
Posts: 14

Rep: Reputation: 0
Question Kernel Souce - install question


I have been fighting with my onboard Intel 82565ET 10/100 driver and I'm stuck.

I can extract everything in the driver tar, but when i do #make install, I get an error saying "Linux kernel source not found." When I first tried to install the driver, I compiled a new kernel beforehand and got a "kernel mis-match error, driver installed for 2.4.18, but current kernel is 2.4.189bf2.4" (these are not the exact words, but can't remember...same kernel values though).

My question is: How do I install the source for the current kernel so that I do not get a kernel mis-match error when I try to perform #insmod e100? KDE Lists my release as 2.4.18-bf2.4

Please be fairly detailed as I am very new to this. Thank you in advance and if you need any more information, pls ask; I should be able to answer almost immediately.
 
Old 06-03-2003, 11:49 AM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,535

Rep: Reputation: 148Reputation: 148
If you want to compile the driver for your current kernel, you need its source installed. '2.4.189bf2.4' and '2.4.18' are not the same in this case. If you want to install it for the newly-compiled one it's a good idea to boot to it before you install the driver.
 
Old 06-03-2003, 11:56 AM   #3
PerpetualBurn
LQ Newbie
 
Registered: May 2003
Location: Texas, US
Distribution: Debian
Posts: 14

Original Poster
Rep: Reputation: 0
So now that I have installed a clean system (messed up on some kernel config before) how do I install the source for this current kernel (the one I am booting from now)?

I am using the same 2.4.18bf2.4 kernel as I was before, but I haven't compiled/extracted any kernel in the /usr/src directory, hence the kernel source not found. I can't seem to find a file referencing 2.4.18.bf2.4 on my debian cds (no network capability right now) even though i used them to install. Of course, I don't know exactly what I am looking for.

Thanks for your quick response by the way. Everyone here has been a big help...maybe one day I can return the favor for someone else on here.
 
Old 06-03-2003, 12:11 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,535

Rep: Reputation: 148Reputation: 148
Hmm...It should be on the cds. How many packages with name beginning from 'kernel-source' do you have? Please insert their names, too.
 
Old 06-03-2003, 12:42 PM   #5
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 57
If you need a GUI apt-get

apt-get install synaptic

Perhaps that will help

# Find running kernel version
uname -r

# Debian links
Installing Debian GNU/Linux 3.0 For Intel x86
The Very Verbose Debian 3.0 Installation Walkthrough
Debian Package Management HOWTO Version 1.1

Last edited by fancypiper; 06-03-2003 at 12:43 PM.
 
Old 06-03-2003, 12:51 PM   #6
PerpetualBurn
LQ Newbie
 
Registered: May 2003
Location: Texas, US
Distribution: Debian
Posts: 14

Original Poster
Rep: Reputation: 0
a find file on kernel-source* on the cd yielded only
kernel-source-2.4.18-5_all.deb
It is in pool/main/k/kernel-source-2.4.18/

Would this be what I need? It seems like it should be, but I'm just learning and I wanna make sure I do this right. Thanks again.
I see the use of my network card getting closer, oh such a wonderful though hehe :-)
 
Old 06-03-2003, 01:02 PM   #7
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 57
That looks like it

apt-get install kernel-source

does what now?
 
Old 06-03-2003, 01:03 PM   #8
PerpetualBurn
LQ Newbie
 
Registered: May 2003
Location: Texas, US
Distribution: Debian
Posts: 14

Original Poster
Rep: Reputation: 0
ok, I installed that package assuming that because it is the only one, that must be it...Now my usr/share/doc directory has some handy looking files and i have the kernel-source-2.4.18.tar.gz in my /usr/src. I think the only thing i am missing now is how to unzip it so that it is the bf2.4 version to keep from getting the "kernel version mis-match error" again.

Can someone tell me the commands to achieve this so the kernel-source will be correct and I can add this driver module?
 
Old 06-03-2003, 01:19 PM   #9
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 57
tar -xvzf /the_dir_where_the_tarball_is/my_tarball.tar.gz

# Guides to software and installation
LNAG - How do I install a program I downloaded from the Internet?
Rute Guide's software explanation
 
  


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
Iwlist souce code David_Moses Linux - Software 2 04-07-2005 03:23 PM
are header files the souce code? shanenin Linux - Software 3 02-16-2005 10:24 AM
Ok, dumb question. If I install a Mandrake kernel RPM, where does it install to? Kramer Linux - General 6 01-13-2004 09:39 PM
Help - rm souce code kilaabe Linux - General 1 11-14-2003 08:22 PM
Installing souce files from CD 3 in SuSE 8.2 psybernoid Linux - Distributions 1 08-14-2003 09:51 PM


All times are GMT -5. The time now is 10:56 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration