RE: eepro100 on SuSE Linux

"Olson, John C" <[email protected]>
Newsgroups gmane.linux.drivers.eepro100.devel
Message-ID <EDF560E8C1E4A0439EA7828DDC95AFDF612C48@nt-cleopsapp44.ntl-city.com>
All the switch ports here are hard-coded for 100/Full.  That's why I'm
trying for that particular setting.

I am running mii-diag as root, and that is what I get.  How do I check / set
CAP_NET_ADMIN capability?

I tried setting options to 0x200 (as in the doc) but that didn't work
either.  Forgot to mention that in my original posting.

-----Original Message-----
From: Donald Becker [mailto:[email protected]]
Sent: Wednesday, June 26, 2002 2:33 PM
To: Olson, John C
Cc: '[email protected]'
Subject: Re: [eepro100] eepro100 on SuSE Linux


On Wed, 26 Jun 2002, Olson, John C wrote:

> I'm running SuSE 7.3 professional (2.4.16 kernel) on a compaq ML370 with
> Compaq nc3131 NIC's.  I've compiled and installed eepro100 version 1.23
and
> mii-diag version 2.04 (along with pci-scan version 1.08).  I am finding
that
> I am getting a 100mb half-duplex setting on a card that should be
100/full.

Why should it be full duplex?
Setting to forced-full-duplex should never be used.  If autonegotiation
is broken with your switch, you should use half duplex.

> When I try to force the setting (mii-diag -F 100baseTx-FD eth0), I get the
> following return:
> 	Setting the speed to "fixed", Control register 2100.
> 	SIOCSMIIREG on eth0 failed: Operation not permitted

You must be 'root' to change the setting.
(More precisely, you must have the CAP_NET_ADMIN capability.)

> 	Basic registers of MII PHY #1:  2000 780d 02a8 0150 05e1 0081 0000
> 	 Basic mode control register 0x2000: Auto-negotiation disabled, with
> 	 Speed fixed at 100 mbps, half-duplex.

Urrgggg.  You have set the speed to forced half duplex.

> 	 Your link partner is generating 100baseTx link beat  (no
> autonegotiation).

> Have also tried to set this in /etc/modules.conf (options eepro100 debug=1
> options=0x2100 full_duplex=1) with no success.

Huh?  Using options=0x100 sets the transceiver to forced 100-half.
You could use  options=0x200, but you should just use mii-diag as root.

-- 
Donald Becker				[email protected]
Scyld Computing Corporation		http://www.scyld.com
410 Severn Ave. Suite 210		Second Generation Beowulf Clusters
Annapolis MD 21403			410-990-9993
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.