Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't load module eth1
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Peteroxxx
n00b
n00b


Joined: 10 Jun 2002
Posts: 52
Location: Florida

PostPosted: Sun Aug 18, 2002 4:27 pm    Post subject: Can't load module eth1 Reply with quote

Using the install cd the network loads fine. Eth0 is my pci net card and eth1 is my isa net card.

But when I boot to linux with out cd it detects my isa card as eth0 and won't load eth1.

this is what i have:

/etc/init.d/net.eth0
/etc/init.d/net.eth1
/etc/runlevels/default/net.eth0
/etc/runlevels/default/net/eth1

#dmesg |grep eth

NE*000 ethercard probe [MAC]
eth0: NE2000 found at 0x240 using irq11 # This is my isa card found NP

#cat /proc/pci |grep Ethernet

Ethernet controller: Realtek Semi RTL-8029 # This my PCI that won't load.


The install CD loads the driver as a 8390. But when I boot to linux and do
#modprobe /usr/src/linux/drivers/net/8390 (or 8390.o)

Cant load module

the 8390.o file is there.

Thanks in advance guys. :)

-r0xXx
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Sun Aug 18, 2002 6:33 pm    Post subject: Reply with quote

Does it work if you compile support for your PCI card directly into the kernel, instead of making it as a module?
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
kirill
Apprentice
Apprentice


Joined: 01 Aug 2002
Posts: 183
Location: Finland

PostPosted: Sun Aug 18, 2002 7:26 pm    Post subject: Re: Can't load module eth1 Reply with quote

I have pretty same setup as you, a PCI realtek and an ISA-NE2000 card.

Peteroxxx wrote:
/etc/init.d/net.eth0
/etc/init.d/net.eth1
/etc/runlevels/default/net.eth0
/etc/runlevels/default/net/eth1

I assume you also have /etc/runlevels/default/isapnp for the ISA card or u are using the kernel's own isapnp.

Peteroxxx wrote:

#modprobe /usr/src/linux/drivers/net/8390 (or 8390.o)

You cant load the modules from the kernel source tree. or you *could* (?) but you shouldn't. Use the ones found in /lib/modules/2.4.19/kernel/drivers/net/ instead.

Peteroxxx wrote:
Cant load module
the 8390.o file is there.

It's not the driver for RTL-8029. The one that you need is ne2k-pci.o
AFAIK 8390.o gets build when as a support-module for ne2k-cards (both PCI and ISA?), but you arent even loading it from the modules directory, so I can't say if the kernel built it for some of your cards :)

Are you sure you configured it with the kernel? cause if you would, kernel would probe for the card. If it (ne2k-pci) is build as a module, modprobe ne2k-pci and put it into /etc/modules.autoload
_________________
--kirill
Back to top
View user's profile Send private message
Peteroxxx
n00b
n00b


Joined: 10 Jun 2002
Posts: 52
Location: Florida

PostPosted: Sun Aug 18, 2002 7:35 pm    Post subject: thnx Reply with quote

I tried comiling it into the kernel as well but also didnt work. That is probably because I used the wrong driver. I didn't see Realtek 8029 in the menu though?? I used the only Realtek driver I saw and it didnt work.

I will try what you suggested. I will let you know how i make out.

Thanks guys.
Back to top
View user's profile Send private message
kirill
Apprentice
Apprentice


Joined: 01 Aug 2002
Posts: 183
Location: Finland

PostPosted: Sun Aug 18, 2002 7:39 pm    Post subject: Reply with quote

yo.

for realtek-8029 I would compile this:
Code:

[*] Ethernet (10 or 100Mbit)
[*]   EISA, VLB, PCI and on board controllers
<M>     PCI NE2000 and clones support (see help)


see help:
Code:

  x This driver also works for the following NE2000 clone cards:            x
  x   RealTek RTL-8029  Winbond 89C940  Compex RL2000  KTI ET32P2           x


...there you go ;)
_________________
--kirill
Back to top
View user's profile Send private message
Peteroxxx
n00b
n00b


Joined: 10 Jun 2002
Posts: 52
Location: Florida

PostPosted: Sun Aug 18, 2002 9:10 pm    Post subject: Reply with quote

Thanks kirill! What you said in your first posted pointed me in the right direction and I got it working. Compiled both drivers as modules, modprobe ne2k-pci
dhcpcd eth0
then added it to /etc/modules.autoload

I also did this which i think may have helped...

I changed /etc/conf.d/net (because eth0 and eth1 switched after install)

rc-update del eth0
rc-update del eth1

rc-update add net.eth0 default
cp /etc/init.d/net.eth0 /etc/init.d/net.eth1
rc-update add net.eth1 default

Thnx for all your help.
:D :D :D

-r0xXx
Back to top
View user's profile Send private message
kirill
Apprentice
Apprentice


Joined: 01 Aug 2002
Posts: 183
Location: Finland

PostPosted: Sun Aug 18, 2002 9:19 pm    Post subject: Reply with quote

Peteroxxx wrote:
I changed /etc/conf.d/net (because eth0 and eth1 switched after install)

if you ever want to switch them back put such lines into /etc/modules.d/net:
Code:
alias eth0 ne
alias eth1 ne2k-pci


after that, run update-modules to update your /etc/modules.conf
Now, you don't even need to put any rows for your eth-card modules into /etc/modules.autoload, init.d-scripts+kernel module loader will set them up for you upon the boot!
_________________
--kirill
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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