LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 04-30-2008, 07:24 AM   #1
didi167
LQ Newbie
 
Registered: Apr 2008
Posts: 8

Rep: Reputation: 0
Make install fails for Intel NIC on Debian


Hi!
I've installed à Linux Debian etch r0 with the kernel 2.6.18-4-686 with the DVD on a DELL VOSTRO 200.
But I had a problem, the network card is not recognized.
I saw on a thread that I had to download and install the intel driver.
I downloaded the only driver it has for Linux.
It is said to support Linux* with 2.4.18 to 2.6.x kernels.
I folowed this instructions from the readme file:

1. Move the base driver tar file to the directory of your choice. For
example, use /home/username/e1000 or /usr/local/src/e1000.
2. Untar/unzip archive:
tar zxf e1000-x.x.x.tar.gz
3. Change to the driver src directory:
cd e1000-x.x.x/src/
4. Compile the driver module:
make install


But when I do "make install" I got this message:

*** Linux kernel source not found in any of these locations

*** Install the appropriate kernel development package, e.g.

*** kernel-devel, for building kernel modules and try again Stop.


Where did I go wrong?
I saw on threads thaht I have to recompile the kernel with the driver in...how can I do that????
Can somebody help me please?!!!!!
 
Old 04-30-2008, 01:32 PM   #2
thveillon
Member
 
Registered: Dec 2007
Posts: 59

Rep: Reputation: 16
You don't have to recompile your kernel (not just yet...), but to compile any piece of code you need to install first gcc, make, and the kernel sources or headers that matches your kernel (if your kernel is linux-image-2.6.18-4-686 then you need linux-source-2.6.18-4-686).

But I think the driver you are looking for is already a built-in of the kernel, it should have been built as a module. Try :

Code:
find /lib/modules/$(uname -r)/* -name e1000*
to see if you have a module already compiled, if so just use the command :

Code:
modprobe e1000
as root to load it.
 
Old 05-01-2008, 08:49 AM   #3
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,231
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
I agree that driver module should already be available.. that is the driver for an intel Gig network card, which is quite common



To answer your other question the easiest way I have found to get your build environment setup is this..


aptitude update
aptitude install build-essential module-assistant
m-a update
m-a prepare


That will install everything you need to compile, as well as download install the proper kernel headers for your running kernel.
 
Old 05-03-2008, 06:01 AM   #4
didi167
LQ Newbie
 
Registered: Apr 2008
Posts: 8

Original Poster
Rep: Reputation: 0
Hi!
Finaly I've installed the linux-header with the command: dpkg --install (aptitude is not install because i'm not connected to internet)
But when I run the install of the driver, I get this :
make -C /lib/modules/2.6.18-4-686/build SUBDIRS=/home/novauser/e1000-7.6.15.4/src modules
make[1]: entrant dans le répertoire « /usr/src/linux-headers-2.6.18-4-686 »
CC [M] /home/novauser/e1000-7.6.15.4/src/e1000_main.o
CC [M] /home/novauser/e1000-7.6.15.4/src/e1000_82540.o
CC [M] /home/novauser/e1000-7.6.15.4/src/e1000_82542.o
CC [M] /home/novauser/e1000-7.6.15.4/src/e1000_82571.o
CC [M] /home/novauser/e1000-7.6.15.4/src/e1000_82541.o
CC [M] /home/novauser/e1000-7.6.15.4/src/e1000_82543.o
CC [M] /home/novauser/e1000-7.6.15.4/src/e1000_ich8lan.o
CC [M] /home/novauser/e1000-7.6.15.4/src/e1000_80003es2lan.o
CC [M] /home/novauser/e1000-7.6.15.4/src/e1000_mac.o
CC [M] /home/novauser/e1000-7.6.15.4/src/e1000_nvm.o
CC [M] /home/novauser/e1000-7.6.15.4/src/e1000_phy.o
CC [M] /home/novauser/e1000-7.6.15.4/src/e1000_manage.o
CC [M] /home/novauser/e1000-7.6.15.4/src/e1000_param.o
CC [M] /home/novauser/e1000-7.6.15.4/src/e1000_ethtool.o
CC [M] /home/novauser/e1000-7.6.15.4/src/kcompat.o
CC [M] /home/novauser/e1000-7.6.15.4/src/e1000_api.o
LD [M] /home/novauser/e1000-7.6.15.4/src/e1000.o
Building modules, stage 2.
MODPOST
CC /home/novauser/e1000-7.6.15.4/src/e1000.mod.o
LD [M] /home/novauser/e1000-7.6.15.4/src/e1000.ko
make[1]: quittant le répertoire « /usr/src/linux-headers-2.6.18-4-686 »
gzip -c ../e1000.7 > e1000.7.gz
.....
# remove all old versions of the driver
find /lib/modules/2.6.18-4-686 -name e1000.ko -exec rm -f {} \; || true
find /lib/modules/2.6.18-4-686 -name e1000.ko.gz -exec rm -f {} \; || true
install -D -m 644 e1000.ko /lib/modules/2.6.18-4-686/kernel/drivers/net/e1000/e1000.ko
/sbin/depmod -a || true
install -D -m 644 e1000.7.gz /usr/share/man/man7/e1000.7.gz
man -c -P'cat > /dev/null' e1000 || true
man:
impossible d'écrire vers /var/cache/man/cat7/e1000.7.gz en mode catman
e1000.

I've executed the comand in root.
 
Old 05-03-2008, 09:05 AM   #5
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Lenny/Squeeze/Wheezy/Sid
Posts: 3,978

Rep: Reputation: 476Reputation: 476Reputation: 476Reputation: 476Reputation: 476
didi167,

There should be no need to compile the e1000 driver in Debian as it is included.

Hvae you tried the command "modprobe e1000" as pointed out by thveillon? What was the result?

The best way to ruin Debian's packaging system is to install software using make/make install etc. In that way you are installing software which the packaging system does not know about, and in the long run you'll get into problems.

If the e1000 module really was not included, compile it using "m-a" as indicated by farslayer.

jlinkels
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Intel 82557 NIC fails to connect in FC6 OstermanA Linux - Networking 0 04-24-2007 09:42 PM
NIC module fails to load in new Gentoo install pyrocrickett Linux - Networking 4 02-20-2004 02:18 PM
Debian & Intel I865PERL MB (ON BOARD NIC) tarndt Linux - Wireless Networking 4 02-14-2004 12:44 PM
IPCop install fails on 8139 NIC 2damncommon Linux - Networking 5 11-15-2003 02:35 AM
Intel Pro/100 VE make fails with slackware 4.0 andrewp_68 Linux - Software 1 08-20-2003 10:19 PM


All times are GMT -5. The time now is 11:07 AM.

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