LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   eth0 failed to start after kernel compile (https://www.linuxquestions.org/questions/linux-networking-3/eth0-failed-to-start-after-kernel-compile-90516/)

andy18 09-08-2003 10:39 AM

eth0 failed to start after kernel compile
 
Hi,

I just compile the kernel to 2.4.22 and the Network LAN failed to start :

When I have login to the root shell, it prompted :

Perhaps iptables or your kernel need to be upgraded
iptables v1.2.8 : can't initialize iptables table 'filter' : iptables who?( do you need to insmod?)

Running ifconfig eth0 returns the below error message :

eth0:error fetching interface info : Device not found.

I have also tried lspci and the LAN driver seems to be detected but when tried the lsmod command, no modules are listed.

I have tried the installation of the LAN modules from the motherboard CD driver but no success :

************************************************SiS900 Fast Ethernet Adapters Linux Driver Install Documentation
Jun 6, 2002

**Before install this driver, you should make sure that your kernel had
enable " SiS 900/7016 PCI Fast Ethernet Adapter support " !

This driver is for kernel RedHat kernel 2.4.x or 2.5.x. You can install this driver
follow steps descributed below. In following case, we use kernel 2.4.19 for example

1> Copy sis900.c and sis900.h to /usr/src/2.4.19/drivers/net/ and replace old ones

2> Compile the driver module:

[root@/usr/src/2.4.19]# make modules;make modules_install

The binary will be installed as:

/lib/modules/2.4.19/kernel/drivers/net/sis900.o

3> Reboot your computer

4> Install the module:

[root@/lib/modules/2.4.19/kernel/drivers/net]# insmod sis900.o

5> Assign an IP address to the interface by entering the following, where <x>
is interface number:

ifconfig ethx <IP_address>

6> Verify that the interface works. Enter the following, where <IP_address>
is the IP address for another machine on the same subnet as the interface
that is being tested:

ping <IP_address>

************************************************


After I follow the step 2 and rebooted the PC, the compilation seems to be failed and I am unable to find the file sis900.0 in the /lib/modules/2.4.19/kernel/drivers/net/ directory.


Please advise...Thanks

jiml8 09-08-2003 06:25 PM

Quote:

After I follow the step 2 and rebooted the PC, the compilation seems to be failed and I am unable to find the file sis900.0 in the /lib/modules/2.4.19/kernel/drivers/net/ directory.
*shrug* failed compilation means no driver. Fix the compilation.

Or else get an earlier version driver and try it.

Are there other drivers in that directory?

h/w 09-08-2003 08:45 PM

i had the sam eproblems as u do.
the thing with those sissy900s is that it's probably some other module thats screwing it up.
i had built it into the kernel, blah blah.

the only thing that worked was:
i copied the config file from my previous install which was reading the card fine, and built the kernel using that.
then just go thro the modules, and remove the ones u think u definitely dont need, leaving u with ...

andy18 09-09-2003 09:32 AM

Hi,

Thanks for the advise.

I fixed by recompiling the kernel as it was my mistakes during the compilation as not added the on-board Ethernet card controller support.

The eth0 is not detected and I was able to connect to the internet.But I still get the iptables error :

Perhaps iptables or your kernel need to be upgraded
iptables v1.2.8 : can't initialize iptables table 'filter' : iptables who?( do you need to insmod?)

Thanks


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