LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 12-06-2004, 12:37 PM   #1
wasafiri
LQ Newbie
 
Registered: Dec 2004
Posts: 20

Rep: Reputation: 0
Problems in Slackware w/ Network after Compiling Kernel 2.6.9


I have done some searching in old threads but can't find anything that helps me, so here goes:

I run a Slackware 10 installation. I recently compiled a fresh kernel (2.6.9; old kernel was 2.4). Everything seems to work as before, except 2 problems, but the more pressing problem is that the network no longer works.

I had initially told xconfig, while choosing the options for the 2.6.9 kernel, to include only Realtek NIC drivers--but after wrestling with no ethernet for awhile, I figured out that I have a VIA Rhine II onboard NIC, so I recompiled the kernel w/ VIA Rhine drivers included.

Now ifconfig shows an ethernet and MAC address instead of just a feedback loop, but when I run a modprobe eth0 (or eth1,eth2, eth3) it says nothing is found, and I still can't access the internet or my home network.

Help!

I have also run netconfig to no avail--all settings as shown in ifconfig are correct.
 
Old 12-06-2004, 01:04 PM   #2
DaHammer
Member
 
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
The name of the module is via-rhine not eth0. So if you compiled it as a module do "modprobe via-rhine".
 
Old 12-06-2004, 08:45 PM   #3
wasafiri
LQ Newbie
 
Registered: Dec 2004
Posts: 20

Original Poster
Rep: Reputation: 0
OK, i just did modprobe via-rhine and it didn't return the error message. So it looks like it's there. Ifconfig shows the NIC active on eth0.

So why isn't my network working?

I just tried netconfig again and told it to use dchp... no avail... help
 
Old 12-07-2004, 12:52 AM   #4
DaHammer
Member
 
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
You're probably going to need load the module before bring the NIC up. You could take the NIC back down now that the module is loaded and then bring it back up. To do that under Slackware, just do this:

Take it down
Code:
/etc/rc.d/rc.inet1 stop
Bring it back up
Code:
/etc/rc.d/rc.inet1 start
See if your network works now. If it doesn't then you may have some of the settings wrong. Look at the output when you started it and make sure it's correct. For instance, something like this:
Code:
root@corvette:/etc/rc.d# ./rc.inet1 start
Configuring eth0:
/sbin/ifconfig eth0 192.168.0.2 broadcast 192.168.0.255 netmask 255.255.255.0
I'm not sure this will solve your issue though. Because the kernel you had installed previously was working with it, correct? If so, then it too probably loaded the driver as a module. If it did, then that it should have been loaded when you rebooted into the new kernel as well, assuming you didn't leave it out of the new kernel. And you must not have left it out since it loads manually for you using modprobe. Anyway, you may want to take a look at /var/log/message & /var/log/syslog to check for any errors related to it. You may also want to look at /etc/rc.d/rc.modules to make sure the module is being loaded into the kernel at startup.
 
Old 12-07-2004, 01:15 AM   #5
DaHammer
Member
 
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
BTW, are you sure this is a NIC driver issue? The more I think about it, the it appears to me to be a kernel networking support issue rather than an issue with the NIC driver itself. When configuring the kernel, did you include "TCP/IP networking", "Packet socket", & "Unix domain sockets"? Have a look at your .config file and make sure they are there. At the very minimum, you'll need these:
Code:
CONFIG_NET=y
CONFIG_PACKET=y
CONFIG_UNIX=y
CONFIG_INET=y
CONFIG_NETDEVICES=y
CONFIG_NET_ETHERNET=y
CONFIG_NET_PCI=y
CONFIG_VIA_RHINE=m
 
Old 12-08-2004, 10:31 AM   #6
wasafiri
LQ Newbie
 
Registered: Dec 2004
Posts: 20

Original Poster
Rep: Reputation: 0
Ok, seems that all I had to do was enter the command

/etc/rc.d/rc.inet1 start

and it worked instantly.

The question is, why didn't it work before, through the several restarts I did? Isn't Linux supposed to automatically start it?
 
Old 12-08-2004, 10:22 PM   #7
DaHammer
Member
 
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
Yes. Maybe it was compiled into your old kernel vs being loaded as a module. Have a look at /etc/rc.d/rc.modules and see if the modprobe line is there to load it. If not, add it and reboot to see if it works.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
DISCUSSION: Compiling kernel 2.6.10 on a Slackware 10.1 acidjuice LinuxAnswers Discussion 28 10-24-2006 04:10 AM
Slackware 10 error compiling kernel 2.6.7 nirvanix Slackware 3 05-30-2006 12:52 AM
Mouse and network problems on Slackware 10.0 with kernel 2.6.7 gyodai Slackware 2 08-13-2004 06:39 PM
Compiling new kernel with Slackware 10 madhatter2 Linux - Newbie 2 07-29-2004 05:08 PM
Compiling kernel 2.6.4 on Slackware 9.1 ProtoformX Linux - General 1 03-13-2004 11:41 AM


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

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