Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
get new NIC dev/eth0 working without modprobe
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
maximillianthethird
n00b
n00b


Joined: 07 Oct 2004
Posts: 17

PostPosted: Tue Dec 07, 2004 6:39 pm    Post subject: get new NIC dev/eth0 working without modprobe Reply with quote

Hi all,

need a little help here

I run a Gentoo box with kernel 2.6.8-gentoo-r3.

Old ethernet card was busted so I put in a new one.

During startup, the ethernet card is nor recorgnised.

However, when the box has finished booting, I can get the nic to work fine if I modprobe it




Now for the question : how do I get the card to work without having to modprobe it ?


tiefighter root # pcimodules
via-agp
uhci-hcd
via-rhine
8139too
tiefighter root #

tiefighter root # modprobe 8139too

tiefighter root # ifconfig
eth0 Link encap:Ethernet HWaddr 00:40:F4:85:31:2E
inet addr:192.168.1.15 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:467 errors:0 dropped:0 overruns:0 frame:0
TX packets:514 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:49255 (48.1 Kb) TX bytes:42887 (41.8 Kb)
Interrupt:10 Base address:0x1000
Back to top
View user's profile Send private message
needles
n00b
n00b


Joined: 27 Feb 2003
Posts: 31
Location: Downingtown, Pennsylvania - USA

PostPosted: Tue Dec 07, 2004 8:27 pm    Post subject: Reply with quote

There are a few ways you can go about getting the kernel module installed. The method I like (as it will work if you change your hardware again in the future) is to use the coldplug package to detect and load kernel driver modules for you. It's use is rather straightforward.
Code:
 
emrge coldplug
rc-update add coldplug boot

The second command will add coldplug to your "boot" runlevel, so that as your machine boots up, your hardware is detected and proper modules are installed. This package does a pretty good job of finding your hardware and loading the correct modules.

If you reboot and the modules aren't loaded correctly, then you need to load them by hand. The best place to do this is in /etc/modules.autoload.d/kernel-x.y.

The x and y are the major and minor kernel version numbers, so if you have kernel 2.6.8, you wuold put the names of the modules you want loaded in /etc/modules.autoload.d/kernel-2.6, one name per line.

Ok, so now we have the proper modules loaded, but you still need the interface to be configured correctly once it's device driver is loaded into the kernel. To do this, look at /etc/conf.d/net. The settings contained in that file are used by the net startup scripts (/etc/init.d/net.eth*) to configure your network interfaces. If you need more help on how that works, let me know with a more specific question and I'll see what I can do to help.

I hope this does the trick for you. Please let me know either way.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum