System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

error compiling/installing e1000 NIC module

 
SOLVED
Go to solution
Maaz
Valued Contributor

error compiling/installing e1000 NIC module

Please help asap.

rpms of Kernel-source, gcc, gcc++, are installed.

I have to install the latest module of Intel's e1000 NIC on my Linux Distro(SUSE Linux Ent 10 SP 1).

To remove the existing one(if any)
# rmmod e1000
no issue
then to install the latest one(downloaded from intels website)
# tar zxvf e1000-7.4.27.tar.gz
# cd e1000-7.4.27
# make install
make -C /usr/src/linux SUBDIRS=/root/Desktop/lan/drivers/e1000-7.4.27/src modules
make[1]: Entering directory `/usr/src/linux-2.6.16.46-0.12'
Makefile:450: .config: No such file or directory

WARNING: Symbol version dump /usr/src/linux-2.6.16.46-0.12/Module.symvers
is missing; modules will have no dependencies and modversions.

CC [M] /root/Desktop/lan/drivers/e1000-7.4.27/src/e1000_main.o
/bin/sh: scripts/basic/fixdep: No such file or directory
make[2]: *** [/root/Desktop/lan/drivers/e1000-7.4.27/src/e1000_main.o] Error 1
make[1]: *** [_module_/root/Desktop/lan/drivers/e1000-7.4.27/src] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.16.46-0.12'
make: *** [default] Error 2

then i change the directory
# cd /lib/modules/2.6.16.46-0.12-smp/kernel/drivers/net/e1000

then

# modprobe e1000.ko
FATAL: Could not load /lib/modules/2.6.16.46-0.12-default/modules.dep: No such file or directory

# modprobe e1000
FATAL: Could not load /lib/modules/2.6.16.46-0.12-default/modules.dep: No such file or directory

# insmod e1000
insmod: can't read 'e1000': No such file or directory
# insmod e1000.ko
insmod: error inserting 'e1000.ko': -1 Invalid module format

e1000.ko is present in the /lib/modules/2.6.16.46-0.12-smp/kernel/drivers/net/e1000 directory....then Why I am getting the above errors ?

Please help asap
1 REPLY
Ivan Ferreira
Honored Contributor
Solution

Re: error compiling/installing e1000 NIC module

According to this error:

make[1]: Entering directory `/usr/src/linux-2.6.16.46-0.12'
Makefile:450: .config: No such file or directory

It looks that you need the kernel source and you don't have it. Install the kernel source for 2.6.16.46-0.12 and try again.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?