From: arnuld on
hai,

recently i have installed a new NIC with chipset "RTL8139D". i have
seen modules named "8139cp.ko" & "8139too.ko" in my
"/lib/modules/2.6.8-2-386/kernel/drivers/net" directory of Debian
Sarge. "TLDP ethernet how to" told me RTL8139 is supported. but this is
what i have:

-----------------------------------------------------------------------------------------------------------
debian:/home/hurd# ifconfig -a

eth0 Link encap:Ethernet HWaddr 00:13:D4:C4:BA:F3
inet addr:192.168.1.2 Bcast:192.168.1.255
Mask:255.255.255.0
inet6 addr: fe80::213:d4ff:fec4:baf3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:420 errors:0 dropped:0 overruns:0 frame:0
TX packets:430 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:326657 (319.0 KiB) TX bytes:54292 (53.0 KiB)
Interrupt:201 Base address:0xa800

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:17559 errors:0 dropped:0 overruns:0 frame:0
TX packets:17559 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2910200 (2.7 MiB) TX bytes:2910200 (2.7 MiB)

sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

debian:/home/hurd#
--------------------------------------------------------------------------------------------------------------

On-Board ethernet is working fine but i wanted to connect my ADSL modem
to "eth1". where is my "eth1" card? how can i install it?

"arnuld"

From: Pascal Hambourg on
Hello,

arnuld a ?crit :
>
> recently i have installed a new NIC with chipset "RTL8139D". i have
> seen modules named "8139cp.ko" & "8139too.ko" in my
> "/lib/modules/2.6.8-2-386/kernel/drivers/net" directory of Debian
> Sarge. "TLDP ethernet how to" told me RTL8139 is supported. but this is
> what i have:
>
> debian:/home/hurd# ifconfig -a
[no eth1]
>
> where is my "eth1" card? how can i install it?

First, check that the RTL8139 adapter is detected at PCI level with
lspci, /proc/ioports or /proc/iomem. Then try to load the module :

# modprobe 8139too

If it works correctly, an interface eth1 should be created for the NIC.
In order to load the module at boot time, if you don't use hotplug (I
guess you don't, else hotplug should have detected the NIC and loaded
the module automagically), add a line containing "8139too" into the file
/etc/modules.
From: arnuld on
Pascal Hambourg wrote:

> > debian:/home/hurd# ifconfig -a
> [no eth1]


> First, check that the RTL8139 adapter is detected at PCI level with
> lspci, /proc/ioports or /proc/iomem. Then try to load the module :

this is the output of "lspci":

debian:/home/hurd# lspci

0000:00:00.0 Host bridge: VIA Technologies, Inc.: Unknown device 0204
0000:00:00.1 Host bridge: VIA Technologies, Inc.: Unknown device 1204
0000:00:00.2 Host bridge: VIA Technologies, Inc.: Unknown device 2204
0000:00:00.3 Host bridge: VIA Technologies, Inc.: Unknown device 3204
0000:00:00.4 Host bridge: VIA Technologies, Inc.: Unknown device 4204
0000:00:00.7 Host bridge: VIA Technologies, Inc.: Unknown device 7204
0000:00:01.0 PCI bridge: VIA Technologies, Inc. VT8237 PCI bridge
[K8T800 South]
0000:00:0b.0 Ethernet controller: Unknown device 1904:2031 (rev 01)
0000:00:0f.0 IDE interface: VIA Technologies, Inc. VIA VT6420 SATA RAID
Controller (rev 80)
0000:00:0f.1 IDE interface: VIA Technologies, Inc.
VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
0000:00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB
1.1 Controller (rev 81)
0000:00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB
1.1 Controller (rev 81)
0000:00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB
1.1 Controller (rev 81)
0000:00:10.3 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB
1.1 Controller (rev 81)
0000:00:10.4 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 86)
0000:00:11.0 ISA bridge: VIA Technologies, Inc. VT8237 ISA bridge
[K8T800 South]
0000:00:11.5 Multimedia audio controller: VIA Technologies, Inc.
VT8233/A/8235/8237 AC97 Audio Controller (rev 60)
0000:00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102
[Rhine-II] (rev 78)
0000:00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 NorthBridge
0000:00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 NorthBridge
0000:00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 NorthBridge
0000:00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 NorthBridge
0000:01:00.0 VGA compatible controller: VIA Technologies, Inc.: Unknown
device 3108 (rev 01)

debian:/home/hurd#


> # modprobe 8139too

it doesnt do anything. cursor simply goes to next line & if then i try
"ifconfig -a" output remains the same as i gave earlier, i mean no
"eth1". i tried both "8139cp" & "8139too".

> If it works correctly, an interface eth1 should be created for the NIC.
> In order to load the module at boot time, if you don't use hotplug (I
> guess you don't, else hotplug should have detected the NIC and loaded
> the module automagically), add a line containing "8139too" into the file
> /etc/modules.

From: Pascal Hambourg on
arnuld a ?crit :
>
>>First, check that the RTL8139 adapter is detected at PCI level with
>>lspci, /proc/ioports or /proc/iomem. Then try to load the module :
>
> this is the output of "lspci":
>
> debian:/home/hurd# lspci
[...]
> 0000:00:0b.0 Ethernet controller: Unknown device 1904:2031 (rev 01)
[...]
>># modprobe 8139too
>
> it doesnt do anything.

It looks like your ethernet card does not have the standard PCI ID for a
RTL8139, which is 10EC:8139, nor any known non standard PCI ID. So
neither lspci nor the kernel module identify it. You can try to add this
PCI ID in the kernel source and recompile the module.

In drivers/net/8139too.c, within the rtl8139_pci_tbl definition, you
need to add the following line :

{0x1904, 0x2031, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RTL8139 },
From: arnuld on
Pascal Hambourg wrote:
> > 0000:00:0b.0 Ethernet controller: Unknown device 1904:2031 (rev 01)
>
> It looks like your ethernet card does not have the standard PCI ID for a
> RTL8139, which is 10EC:8139, nor any known non standard PCI ID. So
> neither lspci nor the kernel module identify it. You can try to add this
> PCI ID in the kernel source and recompile the module.
>
> In drivers/net/8139too.c, within the rtl8139_pci_tbl definition, you
> need to add the following line :
>
> {0x1904, 0x2031, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RTL8139 },

i am pretty weak at technical aspects but do you want to say that i
need to "recompile the kernel" ?

2nd, my distro Debian Sarge does not have any kernel-source (earlier i
sued "Fedora Core" , it has the source & keeps it in one of the
directories directories by default)

"arnuld"