getting two directly connected rtl81
Paolo Panizza
rd.it@gabel.net
Wed Feb 2 08:27:58 2000
Hi.
1) diag report: when you use -m, diag_1.01 inverts BMCR and BMSR values;
the (relevant line) src code should be :
inw(ioaddr + MII_BMCR), inw(ioaddr + MII_BMSR)
instead of:
inw(ioaddr + MII_BMSR), inw(ioaddr + MII_BMCR)
Also, since you compiled with -DLIBMII, -mm makes diag go through
show_mii_details() function with -mm:
---------
#ifdef LIBMII
if (show_mii > 1) {
show_mii_details(ioaddr, -1);
---------
but the -1par. (ie PHY #-1) doesn't work neither for me; I changed it to 32
(ie PHY #32) as used in mii-diag.c and got the correct numbers from diag
(ie: same answers/results as from RTK's own setup prg/diag)
2) to tell your NIC how to behave, you should use the -w option of diag; but
I did not use it and can't tell much more; however, it may be useful for you
my card values
as ref. (and perhaps get the RTL8139 datasheet from www.realtek.com.tw):
===========
The RTL8139 does not use a MII transceiver.
It does have internal MII-compatible registers:
Basic mode control register 0x1000.
Basic mode status register 0x782d.
Autonegotiation Advertisement 0x05e1.
Link Partner Ability register 0x40a1.
Autonegotiation expansion 0x0001.
Disconnects 0x0000.
False carrier sense counter 0x0000.
NWay test register 0x0004.
Receive frame error count 0x0000.
MII PHY #32 transceiver registers:
1000 782d 0000 0000 05e1 40a1 0001 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000.
Basic mode control register 0x1000: Auto-negotiation enabled.
Basic mode status register 0x782d ... 782d.
Link status: established.
Capable of 100baseTx-FD 100baseTx 10baseT-FD 10baseT.
Able to perform Auto-negotiation, negotiation complete.
This transceiver has no vendor identification.
I'm advertising 05e1: Flow-control 100baseTx-FD 100baseTx 10baseT-FD
10baseT
Advertising no additional info pages.
IEEE 802.3 CSMA/CD protocol.
Link partner capability is 40a1: 100baseTx 10baseT.
=======
Which is correct [hub is an AT-FH716SW]
BTW: ping -f -s1500 gets about 5.5MBps btween 2 x86-200MHz PCs; file xfer
rates at ca. 4.2MBps.
Bye.
Paolo
----------------------------------------------------
From: David -dof- Goodwin
To: linux-realtek@beowulf.gsfc.nasa.gov; Centralino (Arianna)
Subject: getting two directly connected rtl8139 cards to goto 100mb/s
Date: Wed Feb 2 08:27:58 2000
<<File Attachment: FRUITIBI>> <<File Attachment: WEETABIX>>
Hello...
I currently have two computers running slackware linux connected
together with a cross over cable.
(they also have another ne2k-pci type card each, which they use to talk
to another LAN - sm.net (private ip setup thing))
The nics connected to this cable are both rtl8139 based, but neither
wants to run at 100mb/s (they are stuck at 10mb/s)
Is there any way that i can tell them to run at 100mb/s ? (eg a command
to put in the /etc/conf.modules or something similar, or a boottime
command to go in /etc/lilo.conf ?)
I've read most of the realtrek related webpages by Donald Becker, but
they don't seem to mention anything about this.
I've run the rtl8139 diagnostic program which was on his webpage, and
the results are attached below.
As you can see neither card seems to want to autonegotiate.
Thanks in advance for any help.
David Goodwin
| To unsubscribe, send mail to Majordomo@cesdis.gsfc.nasa.gov, and within the
| body of the mail, include only the text:
| unsubscribe this-list-name youraddress@wherever.org
| You will be unsubscribed as speedily as possible.