Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Oct 2016 20:25:43 +0200
From:      Hans Petter Selasky <hps@selasky.org>
To:        David Horwitt <david@aogsquid.ucsd.edu>, freebsd-net@freebsd.org
Subject:   Re: Adding RTL8153 support to rue(4) USB to Ethernet driver
Message-ID:  <3622755d-b0cd-60bf-0f81-469d06e65595@selasky.org>
In-Reply-To: <5807B630.1060806@aogsquid.ucsd.edu>
References:  <5807B630.1060806@aogsquid.ucsd.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On 10/19/16 20:06, David Horwitt wrote:
> Reviving a thread from June,2015...
>
> My brand-spanking new XPS 13 has a dongle for the Thunderbolt port that
> implements a RTL8153, which
> is recognized by my system (FreeBSD 11.0-RELEASE-p1 #8: Tue Oct 18
> 22:57:49 PDT 2016):
>  Oct 19 07:11:01 TWE6 kernel: ugen1.3: <BILLBOARD CLASS> at usbus1
>  Oct 19 07:11:02 TWE6 kernel: ugen1.4: <GenesysLogic2> at usbus1
>  Oct 19 07:11:02 TWE6 kernel: uhub3: <GenesysLogic2> on usbus1
>  Oct 19 07:11:02 TWE6 kernel: uhub3: 4 ports with 3 removable, self powered
>  Oct 19 07:11:03 TWE6 kernel: ugen1.5: <Realtek> at usbus1
>  Oct 19 07:11:03 TWE6 kernel: cdce0: <CDC Communications Control> on usbus1
>  Oct 19 07:11:03 TWE6 kernel: ue0: <USB Ethernet> on cdce0
>  Oct 19 07:11:03 TWE6 kernel: ue0: Ethernet address: 00:24:9b:1d:90:e5
> NB: the MAC address matches that inscribed on the dongle.
>
> usbconfig info:
>  ugen1.5: <USB 101001000 LAN Realtek> at usbus1, cfg=1 md=HOST spd=SUPER
> (5.0Gbps) pwr=ON (64mA)
> NB: cfg=1 which should be correct for if_cdce and RTL8153. This was
> verified by
> 'usbconfig -d 1.5 dump_curr_config_desc" (complete configs dumped below).
>
> I manually set the IP address:
>  ue0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
>         ether 00:24:9b:1d:90:e5
>         inet 192.168.1.2 netmask 0xffffff00 broadcast 192.168.1.255
>         nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
>
> The problem is, "it doesn't work'.
>
> Using wireshark on a ping target machine, I can see that the XPS outputs
> packets (which look correct), but it
> doesn't seem to be receiving the replies. When I set 'sysctl -a
> hw.usb.cdce.debug=1' I get a constant (~ 5Hz) stream
> of "cdce_intr_read_callback: Received 24 bytes" whether there is network
> traffic or not; when I ping the XPS
> this message doesn't change.
>

Hi,

Search the idVendor and idProduct values in the Linux kernel. I think 
you need to implement some propritary miibus to get it working. CDC 
ethernet does not define any miibus.

--HPS




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3622755d-b0cd-60bf-0f81-469d06e65595>