Folks,

I'm hoping someone can advise me & improve my understanding of how
modules are / can be loaded by the kernel.

I have a RealTek 8139 <makes sign of The Holy Chipset> which has been
installed in my Gentoo box for some time. It has always been the only
network card in that machine, and it is loaded by the entry `8139too`
in /etc/modules.autoload. All works fine & fluffy.

Today I had cause to add a second network card, a PCI RealTek 8129
(that's: 81_2_9). The 8139too module appears to be also suitable for
this card so recompiled my kernel with the appropriate additional
option enabled for this module.

Afterwards:
     [EMAIL PROTECTED] stroller # grep 8139 /usr/src/linux/.config
     CONFIG_8139CP=m
     CONFIG_8139TOO=m
     # CONFIG_8139TOO_PIO is not set
     # CONFIG_8139TOO_TUNE_TWISTER is not set
     CONFIG_8139TOO_8129=y
     # CONFIG_8139_OLD_RX_RESET is not set
     [EMAIL PROTECTED] stroller #

I have `cp /etc/init.d/net.eth0 /etc/init.d/net.eth0` as suggested by
the docs at Gentoo.org <http://tinyurl.com/7i8s>, and added a second
line to /etc/conf, but `/etc/init.d/net.eth1 start` gives the same
result as:

    [EMAIL PROTECTED] stroller # ifconfig eth1 192.168.1.44 broadcast
192.168.1.255 netmask 255.255.255.0
    SIOCSIFADDR: No such device
    eth1: unknown interface: No such device
    SIOCSIFBRDADDR: No such device
    eth1: unknown interface: No such device
    SIOCSIFNETMASK: No such device
    [EMAIL PROTECTED] stroller #

What I'm guessing is that I need in some way to call modprobe in such a
way that it also configures for my 8129, or at least I need to tell it
where to look for it. Both cards seem to be recognised at some level by
the kernel:

[EMAIL PROTECTED] stroller # ifconfig
eth0      Link encap:Ethernet  HWaddr 00:00:B4:C3:5E:5C
           inet addr:192.168.1.43  Bcast:192.168.1.255
Mask:255.255.255.0
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:3250 errors:0 dropped:0 overruns:0 frame:0
           TX packets:3124 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
           RX bytes:504359 (492.5 Kb)  TX bytes:871102 (850.6 Kb)
           Interrupt:10 Base address:0xd000

lo        Link encap:Local Loopback
           inet addr:127.0.0.1  Mask:255.0.0.0
<snippage - no mention of eth1>


[EMAIL PROTECTED] stroller # cat /proc/pci
PCI devices found:
<snippage>
   Bus  0, device   9, function  0:
     Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8029(AS)
(rev 0).
       IRQ 11.
       I/O at 0x9400 [0x941f].
   Bus  0, device  10, function  0:
     Ethernet controller: Realtek Semiconductor Co., Ltd.
RTL-8139/8139C/8139C+ (rev 16).
       IRQ 10.
       Master Capable.  Latency=32.  Min Gnt=32.Max Lat=64.
       I/O at 0x9800 [0x98ff].
       Non-prefetchable 32 bit memory at 0xec000000 [0xec0000ff].


This <http://tinyurl.com/7i95> Usenet posting and some other stuff I've
read about "options" seems to point the right way, but I'm obviously
just not grasping something. In particular, `grep eth
/etc/modules.conf` draws a blank on my system, and that file is
commented not to be human-editable, anyway.

Perhaps someone can suggest something..?

Many thanks in advance for time & bandwidth,

Stroller.




--
[EMAIL PROTECTED] mailing list

Reply via email to