LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   New kernel wont locate the eth0 module (https://www.linuxquestions.org/questions/linux-general-1/new-kernel-wont-locate-the-eth0-module-8867/)

concoran 11-18-2001 12:52 AM

New kernel wont locate the eth0 module
 
I have a SuSE 7.0 with 2.2.16 kernel.
I compiled and installed a new kernel for it (2.4.14). While booting up, I see the message
"modprobe: can't locate module eth0".

While building the kernel, I believe I have taken enough precautions to enable the network support. While in xconfig,

In the 'Network device support'
Set the 'Network device support to 'y'.
set the 'dummy net driver support to 'y'
set the 'ethernet (10 or 100 mbit) to 'y'
set y to 'hp 10/100VG pclan (ISA, EISA, PCI) support'
(I have an HP EN1207D-TX PCI 10/100 Fast Ethernet Adapter).

Inspite of this, the kernel still says it can't module eth0 while booting.

Can someone help me solve this problem, please?

I also saw in xconfig, a way to save your configuration file or to use someother configuration file. I want to know if I can use such a file generated with I installed OS for the first time. If yes, which is that file? Is it /etc/modules.conf?

Thanks,
Ravi

DavidPhillips 11-18-2001 01:10 AM

you can put an alias in /etc/modules.conf

[david@microdot david]$ cat /etc/modules.conf
alias eth0 3c59x
alias eth1 3c59x

if your kernel is 2.4.9-14 then
see if you have a folder 2.4.9-14 in /lib/modules/

check modules.dep in that folder

[david@microdot 2.4.9-12]$ cat modules.dep | grep 3c59x
/lib/modules/2.4.9-12/kernel/drivers/net/3c59x.o:


if not you need to find the driver

[david@microdot 2.4.9-12]$ slocate 3c59x.o
/lib/modules/2.4.9-6/kernel/drivers/net/3c59x.o
/lib/modules/2.4.9-12/kernel/drivers/net/3c59x.o

if it's not in the /lib/modules/2.4.9-14/kernel folder somewhere you need to put it there.

then depmod or insmod it, whatever works.

run depmod -a


All times are GMT -5. The time now is 04:22 AM.