Hi all,

Not sure where to post this, so please redirect me if this isn't the place.

I'm having some problems with my USB2 NIC, DLink DUB-E100. According to the
specs it should be able to run 100mbit FDX on High-speed USB 2.0. 
It's also listed on http://www.linux-usb.org/usbnet/ as a supported adapter.

My setup:
Distribution: Fedora Core 4
Kernel: 2.6.12-1.1398_FC4 (latest up2date)
Architecture: PowerPC PPC
Box: Mac Mini
Additional USB Ethernet adapter: D-Link DUB-E100, with ASIX 8817x chip

Problem description:
I can't set the NIC speed. It's fixed to 10 mbps, half-duplex, no matter
what I do. 
I'm sure isn't tools reporting speed incorrectly, tests reveal speeds around
1mb/s (10mbit) on 100mbit net.

I have tried both setting auto-neg and forced speed by using:
[EMAIL PROTECTED] ~]# ethtool -s eth1 speed 100 duplex full
or
[EMAIL PROTECTED] ~]# mii-tool eth1 -F 100baseTx-FD
and
[EMAIL PROTECTED] ~]# mii-tool -r eth1

I have tried different cables, 2 different switches, one Cisco 2940 in which
I manually set the port to auto or forced mode. In forced 100FDX port
there's no link at all, and in auto the switch tells me it negotiated 10HD.
The second switch is a Netgear FS108, and I can't more than 10mbit. I even
tried twisted pair.

So, finally, can someone help me?  Am I doing something wrong?
Is this a known problem? Is there a fix?

/Magnus


I'll include some useful output:

[EMAIL PROTECTED] ~]# lsmod
Module                  Size  Used by
...
usbnet                 44840  0
mii                     6848  1 usbnet
ohci_hcd               34112  0
ehci_hcd               49644  0
...

[EMAIL PROTECTED] ~]# netstat -v --interfaces=eth1
Kernel Interface table
Iface       MTU Met    RX-OK RX-ERR RX-DRP RX-OVR    TX-OK TX-ERR TX-DRP
TX-OVR Flg
eth1       1500   0     5058      0      0      0     7780      0      0
0 BMRU

[EMAIL PROTECTED] ~]# dmesg
...
PCI: Enabling device 0001:10:1b.1 (0000 -> 0002)
ohci_hcd 0001:10:1b.1: OHCI Host Controller
ohci_hcd 0001:10:1b.1: new USB bus registered, assigned bus number 4
ohci_hcd 0001:10:1b.1: irq 63, io mem 0x80081000
usb 1-2: new high speed USB device using ehci_hcd and address 3
eth1: register usbnet at usb-0001:10:1b.2-2, DLink DUB-E100 USB Ethernet,
00:80:c8...
...

[EMAIL PROTECTED] ~]# cat /proc/usb/devices
...
T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 5
B:  Alloc=  0/800 us ( 0%), #Int=  1, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.12-1.1398_FC4 ehci_hcd
S:  Product=EHCI Host Controller
S:  SerialNumber=0001:10:1b.2
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=256ms
...
T:  Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  3 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=02(comm.) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=2001 ProdID=1a00 Rev=10.01
S:  Manufacturer=D-LINK CORPORAION
S:  Product=DUB-E100
S:  SerialNumber=01
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=450mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=00(>ifc ) Sub=00 Prot=00 Driver=usbnet
E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=128ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms

[EMAIL PROTECTED] ~]# ip addr show eth1
11: eth1: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:80:c8... brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.1/28 brd 192.168.1.15 scope global eth1
    inet6 ... scope link
       valid_lft forever preferred_lft forever

[EMAIL PROTECTED] ~]# mii-tool -v eth1
eth1: 10 Mbit, half duplex, no link
  product info: vendor 10:c0:95, model 0 rev 12
  basic mode:   software reset, 10 Mbit, half duplex
  basic status: autonegotiation complete, remote fault, no link
  capabilities: 100baseTx-FD 10baseT-HD
  advertising:  100baseTx-FD 10baseT-HD

[EMAIL PROTECTED] ~]# mii-diag -v eth1
mii-diag.c:v2.11 3/21/2005 Donald Becker ([EMAIL PROTECTED])
 http://www.scyld.com/diag/index.html
  Using the new SIOCGMIIPHY value on PHY 3 (BMCR 0x8000).
 Basic mode control register 0x8000: Auto-negotiation disabled, with
 Speed fixed at 10 mbps, half-duplex.
  Transceiver currently being reset!
 Basic mode status register 0x4d78 ... 4d78.
   Link status: not established.
   This transceiver is capable of  100baseTx-FD 10baseT.
   Able to perform Auto-negotiation, negotiation complete.
 Remote fault detected!
 Link partner information is not exchanged when in fixed speed mode.
   End of basic transceiver information.

 MII PHY #3 transceiver registers:
   8000 4d78 4302 540c 0121 2000 0000 0000
   0000 0000 0000 0000 0000 0000 0000 0000
   0000 000f 080c 080c 080c 080c 080c 080c
   0416 2e15 9149 0546 0000 8e12 0200 0200

[EMAIL PROTECTED] ~]# ethtool -i eth1
driver: usbnet
version: 03-Nov-2004
firmware-version: DLink DUB-E100 USB Ethernet
bus-info: usb-0001:10:1b.2-2

[EMAIL PROTECTED] ~]# ethtool eth1
Settings for eth1:
        Supported ports: [ TP MII ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
        Supports auto-negotiation: Yes
        Advertised link modes:  10baseT/Half
                                100baseT/Full
        Advertised auto-negotiation: No
        Speed: 10Mb/s
        Duplex: Half
        Port: MII
        PHYAD: 3
        Transceiver: internal
        Auto-negotiation: off
        Supports Wake-on: pg
        Wake-on: d
        Current message level: 0x00000007 (7)
        Link detected: yes

[EMAIL PROTECTED] ~]# lsusb -vs 1:3

Bus 001 Device 003: ID 2001:1a00 D-Link Corp. [hex]
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            2 Communications
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x2001 D-Link Corp. [hex]
  idProduct          0x1a00
  bcdDevice           10.01
  iManufacturer           1 D-LINK CORPORAION
  iProduct                2 DUB-E100
  iSerial                 3 01
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength         9984
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          4
    bmAttributes         0x80
    MaxPower              450mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass         0 (Defined at Interface level)
      bInterfaceSubClass      0
      bInterfaceProtocol      0
      iInterface              7
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval              11
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            2 Communications
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  bNumConfigurations      1

--
EOF



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to