From owner-freebsd-net@freebsd.org Wed Oct 19 18:20:51 2016 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CF5DBC19E01 for ; Wed, 19 Oct 2016 18:20:51 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 98239C1F for ; Wed, 19 Oct 2016 18:20:51 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (unknown [62.141.129.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 2F8AD1FE022; Wed, 19 Oct 2016 20:20:43 +0200 (CEST) Subject: Re: Adding RTL8153 support to rue(4) USB to Ethernet driver To: David Horwitt , freebsd-net@freebsd.org References: <5807B630.1060806@aogsquid.ucsd.edu> From: Hans Petter Selasky Message-ID: <3622755d-b0cd-60bf-0f81-469d06e65595@selasky.org> Date: Wed, 19 Oct 2016 20:25:43 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <5807B630.1060806@aogsquid.ucsd.edu> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Oct 2016 18:20:51 -0000 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: at usbus1 > Oct 19 07:11:02 TWE6 kernel: ugen1.4: at usbus1 > Oct 19 07:11:02 TWE6 kernel: uhub3: 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: at usbus1 > Oct 19 07:11:03 TWE6 kernel: cdce0: on usbus1 > Oct 19 07:11:03 TWE6 kernel: ue0: 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: 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 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 > > 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