From owner-freebsd-hardware@FreeBSD.ORG Wed Sep 17 17:58:13 2014 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A09C8137 for ; Wed, 17 Sep 2014 17:58:13 +0000 (UTC) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (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 5EAE41000 for ; Wed, 17 Sep 2014 17:58:13 +0000 (UTC) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by gateway2.nyi.internal (Postfix) with ESMTP id 481F42077C for ; Wed, 17 Sep 2014 13:58:11 -0400 (EDT) Received: from web4 ([10.202.2.214]) by compute5.internal (MEProxy); Wed, 17 Sep 2014 13:58:11 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=f-m.fm; h= message-id:from:to:mime-version:content-transfer-encoding :content-type:subject:date; s=mesmtp; bh=/2J8CeT+oFaG4OPy8IJUB6r bdns=; b=PG+dpWUJNtIL8UyphR0+ZOKWxUoUZMnT0DASRXv7A1Ffn59P7uYIizR iNDCpIZwKY7wIHgGBt+hJdGhQ/1GH+pvpGleBUgVFzNUUWNw2o5a17F5Q+RwzIni fkDf6DMJ/I5Xgzan7S1F9VT90kBeJ0NrEva6MWcjg33g+erUFnm0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:from:to:mime-version :content-transfer-encoding:content-type:subject:date; s=smtpout; bh=/2J8CeT+oFaG4OPy8IJUB6rbdns=; b=U2ilDiGBIbGgMBqgALfLUH9hVLqT zw3bXtJlq5bgR/KIVDx31pxCMBvrJa9eV1jWaY1fm+f5i6vs3jrKgX3sIVv6T/MG p7EHMaBesPkgNuMA+6ahtby8vGDFE5dTWlpL0e1MBna2yauRzma2asWkoQShVwyt LYcGRjTTE3UXPRk= Received: by web4.nyi.internal (Postfix, from userid 99) id 289C3101B58; Wed, 17 Sep 2014 13:58:11 -0400 (EDT) Message-Id: <1410976691.3893699.168675065.2DDFDD53@webmail.messagingengine.com> X-Sasl-Enc: JOJyc3MtyLrrddEBXyrNe6FXJsZwKTr0wIYS+yMhcRDr 1410976691 From: Ross Penner To: "" , freebsd-hardware@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-Mailer: MessagingEngine.com Webmail Interface - ajax-68d12f42 X-Forwarded-Message-Id: <1410127565.3072081.164697973.71682282@webmail.messagingengine.com> Subject: USB ethernet adapter support Date: Wed, 17 Sep 2014 10:58:11 -0700 X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Sep 2014 17:58:13 -0000 The following is a discussion I had on the freebsd-questions list. I've decided to take the route of buying an adapter that works on FreeBSD 10 Release but, on suggestion, I thought I would ask on these lists if there was anywhere I could mail my useless (to me) adapter so support could be added. ----- Original message ----- From: Ross Penner To: Roland Smith Cc: freebsd-questions@freebsd.org Subject: Re: USB ethernet adapter support Date: Sun, 07 Sep 2014 15:06:05 -0700 On Sat, 30 Aug 2014, at 02:23 AM, Roland Smith wrote: > On Fri, Aug 29, 2014 at 11:34:02PM -0700, Ross Penner wrote: > > I have a USB ethernet adapter that doesn't seem to work out of the box > > on my 10.0 system. I'm hoping somebody can help me figure out what > > driver to load, or if there even is a driver available. > >=20 > > When I plug the device into the FreeBSD machine the only line on dmesg > > is: > > ugen4.2: at usbus4 > >=20 > > It does work with my Ubuntu 14.04 system. I've added the dmesg output in > > the hopes that it will be helpful: > > [137513.415146] usb 1-1.5: new high-speed USB device number 6 using > > ehci-pci > > [137513.508489] usb 1-1.5: New USB device found, idVendor=3D13b1, > > idProduct=3D0041 > > [137513.508493] usb 1-1.5: New USB device strings: Mfr=3D1, Product=3D2, > > SerialNumber=3D6 > > [137513.508494] usb 1-1.5: Product: Linksys USB3GIGV1 > > [137513.508495] usb 1-1.5: Manufacturer: Linksys > > [137513.508497] usb 1-1.5: SerialNumber: 000001000000 > > [137513.528939] cdc_ether 1-1.5:2.0 eth1: register 'cdc_ether' at > > usb-0000:00:1a.0-1.5, CDC Ethernet Device, b4:75:0e:8f:5e:90 > > [137513.528960] usbcore: registered new interface driver cdc_ether > > [137518.015729] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready >=20 > You might get it to work with cdce(4). From the manual page: >=20 > Many USB devices notoriously fail to report their class and > interfaces > correctly. Undetected products might work flawlessly when their > vendor > and product IDs are added to the driver manually. >=20 > You will have to patch the files /usr/src/sys/dev/usb/usbdevs and > /usr/src/sys/dev/usb/net/if_cdce.c to add this device. Everything > *between* > the lines starting with =E2=80=9C+++++=E2=80=9D is the patch; >=20 > +++++ patch for /usr/src/sys/dev/usb/usbdevs +++++ > --- usbdevs.orig 2014-08-30 10:40:43.000000000 +0200 > +++ usbdevs 2014-08-30 10:42:58.000000000 +0200 > @@ -1402,6 +1402,7 @@ > product CISCOLINKSYS WUSB54GR 0x0023 WUSB54GR > product CISCOLINKSYS WUSBF54G 0x0024 WUSBF54G > product CISCOLINKSYS AE1000 0x002f AE1000 > +product CISCOLINKSYS USB3GIGV 0x0041 USB3GIGV > product CISCOLINKSYS2 RT3070 0x4001 RT3070 > product CISCOLINKSYS3 RT3070 0x0101 RT3070 > +++++ patch for /usr/src/sys/dev/usb/usbdevs +++++ >=20 > Save this patch to a file (e.g. usbdevs.diff) and use the patch(1) > utility to apply it; >=20 > # cd /usr/src/sys/dev/usb/ > # patch =20 > Then you'll have to patch /usr/src/sys/dev/usb/net/if_cdce.c to do the > same; >=20 > +++++ patch for /usr/src/sys/dev/usb/net/if_cdce.c +++++ > --- if_cdce.c.orig 2014-08-30 11:07:02.000000000 +0200 > +++ if_cdce.c 2014-08-30 11:09:56.000000000 +0200 > @@ -277,6 +277,7 @@ > {USB_VPI(USB_VENDOR_SHARP, USB_PRODUCT_SHARP_SLA300, CDCE_FLAG_ZAURUS |= CDCE_FLAG_NO_UNION)}, > {USB_VPI(USB_VENDOR_SHARP, USB_PRODUCT_SHARP_SLC700, CDCE_FLAG_ZAURUS |= CDCE_FLAG_NO_UNION)}, > {USB_VPI(USB_VENDOR_SHARP, USB_PRODUCT_SHARP_SLC750, CDCE_FLAG_ZAURUS |= CDCE_FLAG_NO_UNION)}, > + {USB_VPI(USB_VENDOR_CISCOLINKSYS, > USB_PRODUCT_CISCOLINKSYS_USB3GIGV, CDCE_FLAG_NO_UNION)}, > }; >=20=20 > static const STRUCT_USB_DUAL_ID cdce_dual_devs[] =3D { > +++++ patch for /usr/src/sys/dev/usb/net/if_cdce.c +++++ >=20 > Note that these patches were prepared on a 10-STABLE system; the files > might > differ slightly from those on 10.0-RELEASE. If applying the patches > fails, > edit the files by hand. >=20 > Now you have to rebuild and install the cdce module; >=20 > # cd /usr/src/sys/modules/usb/cdce > # make > # cp if_cdce.ko /boot/kernel/ > # make cleandir >=20 > If the old if_cdce module is loaded, unload it; >=20 > # kldunload if_cdce.ko >=20 >=20 > IIRC, required modules are loaded automatically, but to be sure you can > load > the module before plugging the device in; >=20 > # kldload if_cdce.ko >=20 > Now plug in the device and see if it works. Note that I don't have access > to > this hardware so I don't know if it works. >=20 > While I don't think this will crash your system, you never know. So make > sure you > have up-to-date backups. >=20 >=20 > Roland > --=20 > R.F.Smith http://rsmith.home.xs4all.nl/ > [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] > pgp: 5753 3324 1661 B0FE 8D93 FCED 40F6 D5DC A38A 33E0 (keyID: A38A33E0) > Email had 1 attachment: > + Attachment2 > 1k (application/pgp-signature) I applied the patches manually and had some mixed success. I can see the device and it registers as ue0. unfortunetly, it doesn't completely work. When I plug it in, the console displays: ugen4.2: at usbus4 cdce0: on usbus4 cdce0: faking MAC address ue0: on cdce0 ue0: Ethernet address: 2a:d5:07:9d:01:00 The output from 'ifconfig ue0': ue0: flags=3D8802 metric 0 MTU 1500 ether 2a:d5:07:9d:01:00 nd6 options=3D29 Notably lacking a media or status entry. Is there any where I can go from here or should I wrote off this adapter and find a replacement? From owner-freebsd-hardware@FreeBSD.ORG Fri Sep 19 16:02:04 2014 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CDE2E61C; Fri, 19 Sep 2014 16:02:04 +0000 (UTC) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 911CD862; Fri, 19 Sep 2014 16:02:04 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 2A55E1FE027; Fri, 19 Sep 2014 18:02:02 +0200 (CEST) Message-ID: <541C536F.90303@selasky.org> Date: Fri, 19 Sep 2014 18:01:51 +0200 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Ross Penner , freebsd-usb@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: USB ethernet adapter support References: <1410976691.3893699.168675065.2DDFDD53@webmail.messagingengine.com> In-Reply-To: <1410976691.3893699.168675065.2DDFDD53@webmail.messagingengine.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Sep 2014 16:02:04 -0000 On 09/17/14 19:58, Ross Penner wrote: > The following is a discussion I had on the freebsd-questions list. I've > decided to take the route of buying an adapter that works on FreeBSD 10 > Release but, on suggestion, I thought I would ask on these lists if > there was anywhere I could mail my useless (to me) adapter so support > could be added. > Hi, The current CDCE ethernet driver does not support PHY's. The other ethernet drivers, like if_axe, which does USB3.0 aswell, will get you a PHY. Have a look at sys/dev/usb/net in the source tree. --HPS From owner-freebsd-hardware@FreeBSD.ORG Fri Sep 19 16:18:43 2014 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 39EA6C29 for ; Fri, 19 Sep 2014 16:18:43 +0000 (UTC) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (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 04B4E9E9 for ; Fri, 19 Sep 2014 16:18:42 +0000 (UTC) Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by gateway2.nyi.internal (Postfix) with ESMTP id 7F01220852 for ; Fri, 19 Sep 2014 12:18:35 -0400 (EDT) Received: from web4 ([10.202.2.214]) by compute6.internal (MEProxy); Fri, 19 Sep 2014 12:18:35 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=f-m.fm; h= message-id:from:to:mime-version:content-transfer-encoding :content-type:subject:date:in-reply-to:references; s=mesmtp; bh= 6C76sBb9KMD3z13BGaQI0K9cjWQ=; b=VPoT7GNuorSb9NFHnSWUlT/hUxjmc4za saZAUUn+sLiUvF0t/M9sUrj2F9lPDBM8IchIP0sAbtbYr6uzMn5RU4dc3rikEsEf kdvyEEIVz+rBEE0JvvEx5UouiO7Tn3hWX3Im4aK96I9iV9pUBdFWwkry8CJ9LJPp pyev8JL55hI= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:from:to:mime-version :content-transfer-encoding:content-type:subject:date:in-reply-to :references; s=smtpout; bh=6C76sBb9KMD3z13BGaQI0K9cjWQ=; b=drYOX W7mvU5jJaraWVhMG6ZM0diQFoBBXr6cENdGVePuAXOGcQEbttw6MhKdLTXwTCZ9q DNkmALhAxZS15c4feJEHHIhWFzuRdmYTWbOaRM/Yaur0QG3j0xnRV665iJsfRyp+ BMnlcLAqOOuP7BfHgsH6qHE7wzyx49BUYstvlk= Received: by web4.nyi.internal (Postfix, from userid 99) id 61624119CD2; Fri, 19 Sep 2014 12:18:35 -0400 (EDT) Message-Id: <1411143515.390521.169497345.3CE343CE@webmail.messagingengine.com> X-Sasl-Enc: d5OqS7hL6Y47fO4OPNDRtLtC5e54U3ZFxlLd16dx9yWH 1411143515 From: Ross Penner To: Hans Petter Selasky , freebsd-usb@freebsd.org, freebsd-hardware@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-c9712178 Subject: Re: USB ethernet adapter support Date: Fri, 19 Sep 2014 09:18:35 -0700 In-Reply-To: <541C536F.90303@selasky.org> References: <1410976691.3893699.168675065.2DDFDD53@webmail.messagingengine.com> <541C536F.90303@selasky.org> X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Sep 2014 16:18:43 -0000 On Fri, 19 Sep 2014, at 09:01 AM, Hans Petter Selasky wrote: > On 09/17/14 19:58, Ross Penner wrote: > > The following is a discussion I had on the freebsd-questions list. I've > > decided to take the route of buying an adapter that works on FreeBSD 10 > > Release but, on suggestion, I thought I would ask on these lists if > > there was anywhere I could mail my useless (to me) adapter so support > > could be added. > > > > Hi, > > The current CDCE ethernet driver does not support PHY's. The other > ethernet drivers, like if_axe, which does USB3.0 aswell, will get you a > PHY. Have a look at sys/dev/usb/net in the source tree. > Pardon my ignorance but what is PHY's? For the sake of those searching in the future, I ended up buying a TRENDnet TU2-ET100 and it is working fine. I didn't need the USB3.0 (or actually even have a 3.0 port) but it's what I happened to have. From owner-freebsd-hardware@FreeBSD.ORG Fri Sep 19 16:20:37 2014 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5338DD10; Fri, 19 Sep 2014 16:20:37 +0000 (UTC) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 15A23A08; Fri, 19 Sep 2014 16:20:37 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 32F1D1FE027; Fri, 19 Sep 2014 18:20:26 +0200 (CEST) Message-ID: <541C57BF.7080006@selasky.org> Date: Fri, 19 Sep 2014 18:20:15 +0200 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Ross Penner , freebsd-usb@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: USB ethernet adapter support References: <1410976691.3893699.168675065.2DDFDD53@webmail.messagingengine.com> <541C536F.90303@selasky.org> <1411143515.390521.169497345.3CE343CE@webmail.messagingengine.com> In-Reply-To: <1411143515.390521.169497345.3CE343CE@webmail.messagingengine.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Sep 2014 16:20:37 -0000 On 09/19/14 18:18, Ross Penner wrote: > On Fri, 19 Sep 2014, at 09:01 AM, Hans Petter Selasky wrote: >> On 09/17/14 19:58, Ross Penner wrote: >>> The following is a discussion I had on the freebsd-questions list. I've >>> decided to take the route of buying an adapter that works on FreeBSD 10 >>> Release but, on suggestion, I thought I would ask on these lists if >>> there was anywhere I could mail my useless (to me) adapter so support >>> could be added. >>> >> >> Hi, >> >> The current CDCE ethernet driver does not support PHY's. The other >> ethernet drivers, like if_axe, which does USB3.0 aswell, will get you a >> PHY. Have a look at sys/dev/usb/net in the source tree. >> > Pardon my ignorance but what is PHY's? > > For the sake of those searching in the future, I ended up buying a > TRENDnet TU2-ET100 and it is working fine. I didn't need the USB3.0 (or > actually even have a 3.0 port) but it's what I happened to have. Hi, A PHY/miibus is the external interface of an ethernet adapter typically. It is what tells you about the line-rate and various options like full duplex, simplex and so on. --HPS