LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (http://www.linuxquestions.org/questions/debian-26/)
-   -   Make install fails for Intel NIC on Debian (http://www.linuxquestions.org/questions/debian-26/make-install-fails-for-intel-nic-on-debian-638871/)

didi167 04-30-2008 08:24 AM

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?!!!!!

thveillon 04-30-2008 02:32 PM

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.

farslayer 05-01-2008 09:49 AM

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.

didi167 05-03-2008 07:01 AM

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.

jlinkels 05-03-2008 10:05 AM

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


All times are GMT -5. The time now is 06:34 AM.