From owner-freebsd-usb@FreeBSD.ORG Sun Sep 14 05:38:46 2014 Return-Path: Delivered-To: freebsd-usb@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 1A50D994 for ; Sun, 14 Sep 2014 05:38:46 +0000 (UTC) Received: from mail-ie0-f175.google.com (mail-ie0-f175.google.com [209.85.223.175]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D9D078BC for ; Sun, 14 Sep 2014 05:38:45 +0000 (UTC) Received: by mail-ie0-f175.google.com with SMTP id at20so2908787iec.6 for ; Sat, 13 Sep 2014 22:38:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=8TVcze3PnwcWxCOY1CVZlm1RuLYd8GsBXlKHZ6UUcpA=; b=CTH97Z+0UskTlVeKCsQhKzBlgAbZnzXrJsdUmpFAk1ZtsoAxxAPgT/3Tu/0t4t1CWZ kLd0JdSEMKbabJqi+Nnlb+m6T5yPrBj6vYkSpXvC7ya9cZBlQOpA5aVLX+uwxqmhr9EJ OLKWibzYcBzQkGA6NteLghszDt3vsa9zHvkEflxwS//qkdWrElGOpb4aX92Qj4Kv37kF ltAs9mjaHvpozNh/8NjhpjRRzS9AWwxSkUTM87iuitiNoHCtiGvxYNRsGrIZS74vlzTt JLJwrnrvcl9vkdBf8/l/P8qxirE8dqdT8D0jvbsY7EHYf7hxcJTVS4OFM6Gd+PGXagOr SErg== X-Gm-Message-State: ALoCoQnuoHdC/VP6byRj5118Vj9Yvz9UTsSpge264C5PXbYR/PUsH7hvofIhOrvKAoJ48Ar+67IO5nLCn+PYMrQxiqlYkGBeMeBop1MpjmUwNqoYr09kHU+78B5q3F5jRLQ8bVLXVSun X-Received: by 10.50.20.4 with SMTP id j4mr13653926ige.13.1410673118658; Sat, 13 Sep 2014 22:38:38 -0700 (PDT) MIME-Version: 1.0 Received: by 10.42.110.74 with HTTP; Sat, 13 Sep 2014 22:38:23 -0700 (PDT) In-Reply-To: <54144E00.4080100@selasky.org> References: <54144E00.4080100@selasky.org> From: "Lundberg, Johannes" Date: Sun, 14 Sep 2014 14:38:23 +0900 Message-ID: Subject: Re: libusb and non-root access problem To: Hans Petter Selasky Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: "freebsd-usb@freebsd.org" X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Sep 2014 05:38:46 -0000 Thanks Hans for prompt reply, as always. I reverse engineered a driver by sniffing USB traffic. The first two things this driver did was SET_CONFIG and SET_INTERFACE. My implementation worked fine under Linux but stumbled onto this (permission) problem on FreeBSD. However, it seems to work fine if I skip the SET_CONFIG and SET_INTERFACE calls so I can use my driver as normal user. Thanks! On Sat, Sep 13, 2014 at 11:00 PM, Hans Petter Selasky wrote: > On 09/13/14 14:04, Lundberg, Johannes wrote: > >> Hi >> >> I tried now for hours but no luck with this.. I have a special usb devic= e >> to which I connect with libusb. Everything works find as root but I can >> seem to be able to access with normal user no matter how I configure >> devfs. >> >> I changed both conf and rules and even set myself as owner and group and >> 777 permission to /dev/ugen* /dev/usb and /dev/usb/* but no luck... >> >> I can connect to the device and claim interface but then it fails at the >> first libusb_control_transfer with error -4 >> >> I have done this before without problems. I am running the newest >> 11-CURRENT snapshot so could there be any bug that causes this or has >> anything changed in configurations? >> >> Grateful for any advice... >> -- >> Johannes Lundberg >> >> > Hi, > > You only need to "chmod /dev/usb/X.Y.0" . > > Some control transfers are always restricted to root user: > > /* > * Avoid requests that would damage the bus integrity: > */ > if (((req->bmRequestType =3D=3D UT_WRITE_DEVICE) && > (req->bRequest =3D=3D UR_SET_ADDRESS)) || > ((req->bmRequestType =3D=3D UT_WRITE_DEVICE) && > (req->bRequest =3D=3D UR_SET_CONFIG)) || > ((req->bmRequestType =3D=3D UT_WRITE_INTERFACE) && > (req->bRequest =3D=3D UR_SET_INTERFACE))) { > /* > * These requests can be useful for testing USB drivers. > */ > error =3D priv_check(curthread, PRIV_DRIVER); > if (error) { > return (error); > } > } > > You need to use their libusb counterpart to avoid problems! > > --HPS > --=20 =3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D= -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- =E7=A7=98=E5=AF=86=E4=BF=9D=E6=8C=81=E3=81=AB=E3=81=A4=E3=81=84=E3=81=A6=EF= =BC=9A=E3=81=93=E3=81=AE=E9=9B=BB=E5=AD=90=E3=83=A1=E3=83=BC=E3=83=AB=E3=81= =AF=E3=80=81=E5=90=8D=E5=AE=9B=E4=BA=BA=E3=81=AB=E9=80=81=E4=BF=A1=E3=81=97= =E3=81=9F=E3=82=82=E3=81=AE=E3=81=A7=E3=81=82=E3=82=8A=E3=80=81=E7=A7=98=E5= =8C=BF=E7=89=B9=E6=A8=A9=E3=81=AE=E5=AF=BE=E8=B1=A1=E3=81=A8=E3=81=AA=E3=82= =8B=E6=83=85=E5=A0=B1=E3=82=92=E5=90=AB=E3=82=93=E3=81=A7=E3=81=84=E3=81=BE= =E3=81=99=E3=80=82 =E3=82=82=E3=81=97=E3=80=81=E5=90=8D=E5=AE=9B=E4=BA=BA=E4=BB=A5=E5=A4=96=E3= =81=AE=E6=96=B9=E3=81=8C=E5=8F=97=E4=BF=A1=E3=81=95=E3=82=8C=E3=81=9F=E5=A0= =B4=E5=90=88=E3=80=81=E3=81=93=E3=81=AE=E3=83=A1=E3=83=BC=E3=83=AB=E3=81=AE= =E7=A0=B4=E6=A3=84=E3=80=81=E3=81=8A=E3=82=88=E3=81=B3=E3=81=93=E3=81=AE=E3= =83=A1=E3=83=BC=E3=83=AB=E3=81=AB=E9=96=A2=E3=81=99=E3=82=8B=E4=B8=80=E5=88= =87=E3=81=AE=E9=96=8B=E7=A4=BA=E3=80=81 =E8=A4=87=E5=86=99=E3=80=81=E9=85=8D=E5=B8=83=E3=80=81=E3=81=9D=E3=81=AE=E4= =BB=96=E3=81=AE=E5=88=A9=E7=94=A8=E3=80=81=E3=81=BE=E3=81=9F=E3=81=AF=E8=A8= =98=E8=BC=89=E5=86=85=E5=AE=B9=E3=81=AB=E5=9F=BA=E3=81=A5=E3=81=8F=E3=81=84= =E3=81=8B=E3=81=AA=E3=82=8B=E8=A1=8C=E5=8B=95=E3=82=82=E3=81=95=E3=82=8C=E3= =81=AA=E3=81=84=E3=82=88=E3=81=86=E3=81=8A=E9=A1=98=E3=81=84=E7=94=B3=E3=81= =97=E4=B8=8A=E3=81=92=E3=81=BE=E3=81=99=E3=80=82 --- CONFIDENTIALITY NOTE: The information in this email is confidential and intended solely for the addressee. Disclosure, copying, distribution or any other action of use of this email by person other than intended recipient, is prohibited. If you are not the intended recipient and have received this email in error, please destroy the original message. From owner-freebsd-usb@FreeBSD.ORG Sun Sep 14 07:04:29 2014 Return-Path: Delivered-To: freebsd-usb@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 205C5F7D for ; Sun, 14 Sep 2014 07:04:29 +0000 (UTC) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 6F394ECB for ; Sun, 14 Sep 2014 07:04:27 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id KAA22810; Sun, 14 Sep 2014 10:04:26 +0300 (EEST) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1XT3rG-000Ex7-CR; Sun, 14 Sep 2014 10:04:26 +0300 Message-ID: <54153DC2.1030505@FreeBSD.org> Date: Sun, 14 Sep 2014 10:03:30 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.1.0 MIME-Version: 1.0 To: Volodymyr Kostyrko , freebsd-usb@FreeBSD.org Subject: Re: usb printer vs cups References: <54133325.9070302@FreeBSD.org> <541353BF.5080608@b1t.name> In-Reply-To: <541353BF.5080608@b1t.name> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Sep 2014 07:04:29 -0000 On 12/09/2014 23:12, Volodymyr Kostyrko wrote: > On 12.09.2014 20:53, Andriy Gapon wrote: >> >> From my experience I think that cupsd executes backend tools with all uids and >> gids set to cups and no supplementary groups. In the case of USB printers the >> backends need to access /dev/usbctl and /dev/usb/foobar that corresponds to a >> printer. That means that the access to those devices must be somehow granted to >> cups:cups. >> How do people solve this? What kind of permissions / configuration do you use? > > devfs Yes, devfs. So how exactly do you configure permissions, ownerships? >> P.S. >> Maybe I over-generalized the issue to all USB printers. My personal experience >> is with an HP printer handled by hplip / hplip-plugin. > > Personally I prefer using stock lpd for those, it can be easily integrated with > foomatic hpijs. > -- Andriy Gapon From owner-freebsd-usb@FreeBSD.ORG Mon Sep 15 11:43:48 2014 Return-Path: Delivered-To: freebsd-usb@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 0F4D222B for ; Mon, 15 Sep 2014 11:43:48 +0000 (UTC) Received: from mail-lb0-x22b.google.com (mail-lb0-x22b.google.com [IPv6:2a00:1450:4010:c04::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8C20C77D for ; Mon, 15 Sep 2014 11:43:47 +0000 (UTC) Received: by mail-lb0-f171.google.com with SMTP id 10so4280904lbg.2 for ; Mon, 15 Sep 2014 04:43:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=PmQwaxOHZyWNggNgSPrKuoplYT5kapsDq7OL/D2nq0o=; b=Z3eugdu1LAnNeRwezUFKMJ8Yf4DUSmWLXA+vAH/E9JSORnuF8Itnv8cTURYJj/ZuhG ey0XwKUapcn55XVPoUQ7KMOw937wFwvVnqwcg4wCHpyqiQJ9GaXkxYa4he15LPW+Isyt betOSCb+NFy+mA5814d4WjiRRzV/3FsjJptArKb/DoBwuwl8qmSMSTyuZmIWOzHcKFrp i1AgEr/0HlaEWCv26nq3xgLzQZbCMYzEvjsayHX234CcCgUkAcdTwlFIfW6Py6grTUl1 vd4gDIVyJpo+862sDmt6qUOdVpV8vp7MR1cQzOb5ZyjEwn8n64zlk13Dc3gYE7OSHUzt hmMw== X-Received: by 10.152.115.232 with SMTP id jr8mr8931173lab.69.1410781425312; Mon, 15 Sep 2014 04:43:45 -0700 (PDT) Received: from [172.29.2.131] (altimet-gw.cs2.dp.wnet.ua. [217.20.178.249]) by mx.google.com with ESMTPSA id u8sm1817125lbb.25.2014.09.15.04.43.43 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Sep 2014 04:43:44 -0700 (PDT) Message-ID: <5416D0E8.3030806@gmail.com> Date: Mon, 15 Sep 2014 14:43:36 +0300 From: Vitaly Magerya User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: freebsd-usb@freebsd.org Subject: How to obtain the "ugen" that corresponds to an "ums", "uep" or "uhid"? Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Sep 2014 11:43:48 -0000 Hi, folks. Is there a way to obtain the name of an ugen device that corresponds to a particular ums/uep/uhid device? The situation I'm working with is this: there's a (custom) DEVD rule that executes a script when any new "ums" or "uhid" device is created. This script has access to the device name (and any other info DEVD provides), and needs to figure out manufacturer name, product name and ID numbers of this device. To do that, it parses the output of this command: usbconfig -d ugen.
dump_device_desc The question is how should the script obtain these and
numbers? Now, when a new device is attached DEVD receives a message like this: +uhid0 at bus=1 hubaddr=1 port=3 devaddr=2 interface=0 vendor=0x0079 product=0x0011 devclass=0x00 devsubclass=0x00 sernum="" release=0x0106 mode=host intclass=0x03 intsubclass=0x00 intprotocol=0x00 on uhub0 (The correct ugen for this device happens to be ugen3.2). ... or a message like this: +ums0 at bus=0 hubaddr=2 port=2 devaddr=3 interface=1 vendor=0x046d product=0xc52b devclass=0x00 devsubclass=0x00 sernum="" release=0x1201 mode=host intclass=0x03 intsubclass=0x01 intprotocol=0x02 on uhub3 (In this case the correct ugen is ugen0.3). It seems that we have the correct
number in the "devaddr" variable, but the correct number is nowhere to be found. So, again, given an ums/uep/uhid device name (and, possibly
number), how should one fine what to pass into usbconfig's "ugen.
" parameter? (This question is triggered by the discussion in PR 183478 [1]). [1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=183478 From owner-freebsd-usb@FreeBSD.ORG Mon Sep 15 12:07:29 2014 Return-Path: Delivered-To: freebsd-usb@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 00C0F740 for ; Mon, 15 Sep 2014 12:07:28 +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 B8061987 for ; Mon, 15 Sep 2014 12:07:28 +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 42A831FE027; Mon, 15 Sep 2014 14:07:26 +0200 (CEST) Message-ID: <5416D673.5010001@selasky.org> Date: Mon, 15 Sep 2014 14:07: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: Vitaly Magerya , freebsd-usb@freebsd.org Subject: Re: How to obtain the "ugen" that corresponds to an "ums", "uep" or "uhid"? References: <5416D0E8.3030806@gmail.com> In-Reply-To: <5416D0E8.3030806@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Sep 2014 12:07:29 -0000 On 09/15/14 13:43, Vitaly Magerya wrote: > Hi, folks. Is there a way to obtain the name of an ugen device that > corresponds to a particular ums/uep/uhid device? Hi, Have you tried: usbconfig show_ifdrv > The situation I'm working with is this: there's a (custom) DEVD > rule that executes a script when any new "ums" or "uhid" device is > created. This script has access to the device name (and any other > info DEVD provides), and needs to figure out manufacturer name, > product name and ID numbers of this device. To do that, it parses > the output of this command: > > usbconfig -d ugen.
dump_device_desc > > The question is how should the script obtain these and >
numbers? > > Now, when a new device is attached DEVD receives a message like this: > > +uhid0 at bus=1 hubaddr=1 port=3 devaddr=2 interface=0 > vendor=0x0079 product=0x0011 devclass=0x00 devsubclass=0x00 > sernum="" release=0x0106 mode=host intclass=0x03 intsubclass=0x00 > intprotocol=0x00 on uhub0 > > (The correct ugen for this device happens to be ugen3.2). > > ... or a message like this: > > +ums0 at bus=0 hubaddr=2 port=2 devaddr=3 interface=1 > vendor=0x046d product=0xc52b devclass=0x00 devsubclass=0x00 > sernum="" release=0x1201 mode=host intclass=0x03 intsubclass=0x01 > intprotocol=0x02 on uhub3 > > (In this case the correct ugen is ugen0.3). > > It seems that we have the correct
number in the "devaddr" > variable, but the correct number is nowhere to be found. > That might be a bug. We can easily add a unit=%d argument to the devd events, if not already there. > So, again, given an ums/uep/uhid device name (and, possibly >
number), how should one fine what to pass into > usbconfig's "ugen.
" parameter? > > (This question is triggered by the discussion in PR 183478 [1]). > > [1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=183478 --HPS From owner-freebsd-usb@FreeBSD.ORG Mon Sep 15 12:28:52 2014 Return-Path: Delivered-To: freebsd-usb@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 87694C40 for ; Mon, 15 Sep 2014 12:28:52 +0000 (UTC) Received: from mail-la0-x22f.google.com (mail-la0-x22f.google.com [IPv6:2a00:1450:4010:c03::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0B99AB7A for ; Mon, 15 Sep 2014 12:28:51 +0000 (UTC) Received: by mail-la0-f47.google.com with SMTP id mc6so4445876lab.6 for ; Mon, 15 Sep 2014 05:28:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=XNadOoT/5WfT9LwcRuO1dj+7EUO0nrNnpOfJZ3qKrvY=; b=pwOEGgGIyC/Xr9rUdbahcUStraRl8Yq+Lyx4BvxUfNpuAKZEBikew7WXxyIIsVa1sx fCYtf0+eAP3nfG8hiT+1TpPsBGVo80wuLj5wsaBfAnyZ9v/9rpxESrD9L6q5TktJgbkc 0s3H50EVP9vtK66kMUBRhKTWZR6OK5VCFwl8vqfcmnRXZd3dMNhrtBvf/ZFgi2A2WxZu cIYOoZ2Z5g6+CTi75uRabYriy4lu7d82JffgjKWtFS/XFsf1xlKGYRFEH+Akwhe5TzLs 6cWWgAmaVmlRR1KR26/r3oyF9sLFyqJ3AQvSd8eGgiJnUnFnA/HYIqBxr38/UPdBgzV7 udmA== X-Received: by 10.152.37.72 with SMTP id w8mr27578111laj.48.1410784129782; Mon, 15 Sep 2014 05:28:49 -0700 (PDT) Received: from [172.29.2.131] (altimet-gw.cs2.dp.wnet.ua. [217.20.178.249]) by mx.google.com with ESMTPSA id iq1sm3963843lac.9.2014.09.15.05.28.48 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Sep 2014 05:28:49 -0700 (PDT) Message-ID: <5416DB80.2050409@gmail.com> Date: Mon, 15 Sep 2014 15:28:48 +0300 From: Vitaly Magerya User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: Hans Petter Selasky , freebsd-usb@freebsd.org Subject: Re: How to obtain the "ugen" that corresponds to an "ums", "uep" or "uhid"? References: <5416D0E8.3030806@gmail.com> <5416D673.5010001@selasky.org> In-Reply-To: <5416D673.5010001@selasky.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Sep 2014 12:28:52 -0000 On 2014-09-15 15:07, Hans Petter Selasky wrote: >> Hi, folks. Is there a way to obtain the name of an ugen device that >> corresponds to a particular ums/uep/uhid device? > > Have you tried: > > usbconfig show_ifdrv I haven't. It does look like a good solution though. Thank you. >> It seems that we have the correct
number in the "devaddr" >> variable, but the correct number is nowhere to be found. > > That might be a bug. We can easily add a unit=%d argument to the devd > events, if not already there. That would be great as well (although I won't be able to use this until the EoL of all FreeBSD versions without this feature, but it will simplify things afterwards). From owner-freebsd-usb@FreeBSD.ORG Mon Sep 15 15:24:09 2014 Return-Path: Delivered-To: freebsd-usb@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 4AC8919F; Mon, 15 Sep 2014 15:24:09 +0000 (UTC) Received: from mail-ob0-x22a.google.com (mail-ob0-x22a.google.com [IPv6:2607:f8b0:4003:c01::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E59B9130; Mon, 15 Sep 2014 15:24:08 +0000 (UTC) Received: by mail-ob0-f170.google.com with SMTP id uy5so2637173obc.1 for ; Mon, 15 Sep 2014 08:24:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=DlP/13RcYpJk/DQBdbT1nCy2gJKMlkvLy6ah2dvurPw=; b=Nk5b6bmCQ/AiQEgULn0iUcb1viUD4CsCHH93QtUk6sVsDkwhbVtUOSoynP9iYl6ctV 4frSfRgNeveeC7IK//me5jMQfUR6DdDohx9oOoqKlwhGB0Rf3r+97uZ5Mp97uAMNqx/I Ss97SqhKczlfqJv7JyXltRwjOIVJVqfEo5kqRRZHRQxwSflwPk70c/gLRbJaesjWIFe0 RVF9dIx8Rmas0wdQtudszcqI9LVAHAJzSBKfBKFSz1IZn9TUQDCPOdDddda38fgE8T9/ soysDR88/zgZG0rH1/ZQ7tOvKg7wKasBOj/aaQZJjQ5M9XtPeoWemmB+1vH/PR9GsFbZ PPSQ== MIME-Version: 1.0 X-Received: by 10.60.142.165 with SMTP id rx5mr13405140oeb.5.1410794217271; Mon, 15 Sep 2014 08:16:57 -0700 (PDT) Sender: tomek.cedro@gmail.com Received: by 10.202.58.196 with HTTP; Mon, 15 Sep 2014 08:16:57 -0700 (PDT) Date: Mon, 15 Sep 2014 17:16:57 +0200 X-Google-Sender-Auth: BvFx9GV_CZdR-X5uX85LvmnQuTI Message-ID: Subject: U3G QDL firmware loader for GOBI2000/HP_UN2420 MiniPCI/USB 3G/GPS From: CeDeROM To: FreeBSD Questions Mailing List , "freebsd-hackers@freebsd.org" , freebsd-net@freebsd.org, "freebsd-usb@FreeBSD.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Sep 2014 15:24:09 -0000 Hello world! :-) I have changed my machine, there is a built-in GOBI2000 / HP UN2420 3G/GPS module installable as MiniPCI card and visible as USB device. I have added its VID/PID to the usbdevs and u3g.c module, so after recompilation it gets recognised by u3g module and apropriate /dev/cuaU* device shows up.. The problem is that device does not store firmware inside non-volatile memory, so user needs to upload it after power-on. I have the firmware files. I can test modem with success after reboot from Win7 which uploads firmware into device. Still, I need to upload the firmware somehow on my FreeBSD. The upload protocol is QDL and /dev/cuaU0 shows up waiting for command. Which utility can I use to upload firmware with QDL? I have seen one post [1] regarding this problem in the past but the QDL utility was not named explicitly. Any hints welcome! :-) Tomek [1] http://lists.freebsd.org/pipermail/freebsd-usb/2010-October/009384.html -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info From owner-freebsd-usb@FreeBSD.ORG Tue Sep 16 05:39:24 2014 Return-Path: Delivered-To: freebsd-usb@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 0B6F5A44; Tue, 16 Sep 2014 05:39:24 +0000 (UTC) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (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 BA730645; Tue, 16 Sep 2014 05:39:22 +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 00DD71FE027; Tue, 16 Sep 2014 07:39:13 +0200 (CEST) Message-ID: <5417CCF6.10204@selasky.org> Date: Tue, 16 Sep 2014 07:39:02 +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: CeDeROM , FreeBSD Questions Mailing List , "freebsd-hackers@freebsd.org" , freebsd-net@freebsd.org, "freebsd-usb@FreeBSD.org" Subject: Re: U3G QDL firmware loader for GOBI2000/HP_UN2420 MiniPCI/USB 3G/GPS References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Sep 2014 05:39:24 -0000 On 09/15/14 17:16, CeDeROM wrote: > Hello world! :-) > > I have changed my machine, there is a built-in GOBI2000 / HP UN2420 > 3G/GPS module installable as MiniPCI card and visible as USB device. I > have added its VID/PID to the usbdevs and u3g.c module, so after > recompilation it gets recognised by u3g module and apropriate > /dev/cuaU* device shows up.. > > The problem is that device does not store firmware inside non-volatile > memory, so user needs to upload it after power-on. I have the firmware > files. I can test modem with success after reboot from Win7 which > uploads firmware into device. Still, I need to upload the firmware > somehow on my FreeBSD. > > The upload protocol is QDL and /dev/cuaU0 shows up waiting for > command. Which utility can I use to upload firmware with QDL? I have > seen one post [1] regarding this problem in the past but the QDL > utility was not named explicitly. > > Any hints welcome! :-) > > Tomek > > [1] http://lists.freebsd.org/pipermail/freebsd-usb/2010-October/009384.html > Hi, Maybe you can use some tools to sniff the USB protocol under the other operating system. The protocol is probably not too complicated, and just replay the traffic. --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Sep 16 06:59:19 2014 Return-Path: Delivered-To: freebsd-usb@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 5C2AF987; Tue, 16 Sep 2014 06:59:19 +0000 (UTC) Received: from mail-oa0-x22e.google.com (mail-oa0-x22e.google.com [IPv6:2607:f8b0:4003:c02::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F3562D58; Tue, 16 Sep 2014 06:59:18 +0000 (UTC) Received: by mail-oa0-f46.google.com with SMTP id i7so2465120oag.33 for ; Mon, 15 Sep 2014 23:59:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=lp6LCa3ZaznZU93eKYJJovoCzfjfcRjt8eEOaUyrf9U=; b=FQnPSe1AO1a9L2CEvfUVs6LgQ9AFWBsB5smJQINid+DS+XUlAcA5u7n4RGRA8Trcxs AN4GX/AzF6LAaik4mpN9nXzlFxK7MvvIQMJbRAYC52yZUSgzRBwhjhbZWwfqEiY2qT5S pzzlfr/75kdt89ZWCQZzIQlZf85645m0QWx2wccNuX0SMZYq9HSgm1xGYO3IJaeOscW/ sIAD0DMGDTR/CFH3VL9CpEVcsXP/RCMykQZKPUUKuGI9XRsJLoYkE8w69g9x1/1jaZC5 Pl2SsF8EgzCEmDohaFKAsN52GS5AJcRbPdXKIlWIV+fMOT5QxWnOCGR5Nmf7eV0Mb3M6 4v1A== MIME-Version: 1.0 X-Received: by 10.60.175.166 with SMTP id cb6mr9099996oec.64.1410850758091; Mon, 15 Sep 2014 23:59:18 -0700 (PDT) Sender: tomek.cedro@gmail.com Received: by 10.202.58.196 with HTTP; Mon, 15 Sep 2014 23:59:18 -0700 (PDT) In-Reply-To: <5417CCF6.10204@selasky.org> References: <5417CCF6.10204@selasky.org> Date: Tue, 16 Sep 2014 08:59:18 +0200 X-Google-Sender-Auth: 5fJ56He3INDiygHWWFUADDPeRN8 Message-ID: Subject: Re: U3G QDL firmware loader for GOBI2000/HP_UN2420 MiniPCI/USB 3G/GPS From: CeDeROM To: Hans Petter Selasky Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-hackers@freebsd.org" , FreeBSD Questions Mailing List , "freebsd-usb@FreeBSD.org" , freebsd-net@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Sep 2014 06:59:19 -0000 On Tue, Sep 16, 2014 at 7:39 AM, Hans Petter Selasky wrote: > On 09/15/14 17:16, CeDeROM wrote: >> Hello world! :-) >> I have changed my machine, there is a built-in GOBI2000 / HP UN2420 >> 3G/GPS module installable as MiniPCI card and visible as USB device. I >> have added its VID/PID to the usbdevs and u3g.c module, so after >> recompilation it gets recognised by u3g module and apropriate >> /dev/cuaU* device shows up.. >> The problem is that device does not store firmware inside non-volatile >> memory, so user needs to upload it after power-on. I have the firmware >> files. I can test modem with success after reboot from Win7 which >> uploads firmware into device. Still, I need to upload the firmware >> somehow on my FreeBSD. >> The upload protocol is QDL and /dev/cuaU0 shows up waiting for >> command. Which utility can I use to upload firmware with QDL? I have >> seen one post [1] regarding this problem in the past but the QDL >> utility was not named explicitly. >> Any hints welcome! :-) >> Tomek >> [1] >> http://lists.freebsd.org/pipermail/freebsd-usb/2010-October/009384.html>> > Hi, > Maybe you can use some tools to sniff the USB protocol under the other > operating system. The protocol is probably not too complicated, and just > replay the traffic. > --HPS I just got the gobi_loader application sources from Ruslan Bukin! I will try it out and when it works fine I will send patches to the FreeBSD base along with my u3g patches, it may come handy for others as well :-) Thank you!! :-) Tomek -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info From owner-freebsd-usb@FreeBSD.ORG Tue Sep 16 19:24:44 2014 Return-Path: Delivered-To: freebsd-usb@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 8A54F5F0 for ; Tue, 16 Sep 2014 19:24:44 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7156FF55 for ; Tue, 16 Sep 2014 19:24:44 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id s8GJOiFq003198 for ; Tue, 16 Sep 2014 19:24:44 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 156596] [ehci] Extremely high interrupt rate on ehci/uhci IRQ16 80% cpu utilization on CPU0 Date: Tue, 16 Sep 2014 19:24:44 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 8.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: bt@brandonthomson.com X-Bugzilla-Status: In Discussion X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Sep 2014 19:24:44 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=156596 bt@brandonthomson.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bt@brandonthomson.com --- Comment #12 from bt@brandonthomson.com --- Confirmed on this motherboard: Intel BOXDH61BEB3 As a temporary workaround, I found removing ehci from the kernel works splendidly. Idle power consumption dropped from 41 watts to 28 watts. -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-usb@FreeBSD.ORG Wed Sep 17 17:58:13 2014 Return-Path: Delivered-To: freebsd-usb@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 8B5AB135 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 51EB6FFF for ; Wed, 17 Sep 2014 17:58:13 +0000 (UTC) Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by gateway2.nyi.internal (Postfix) with ESMTP id 48AB32095E for ; Wed, 17 Sep 2014 13:58:11 -0400 (EDT) Received: from web4 ([10.202.2.214]) by compute6.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-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB 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-usb@FreeBSD.ORG Fri Sep 19 09:59:36 2014 Return-Path: Delivered-To: freebsd-usb@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 A604BB38 for ; Fri, 19 Sep 2014 09:59:36 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7ADFB9D4 for ; Fri, 19 Sep 2014 09:59:36 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id s8J9xa2T028314 for ; Fri, 19 Sep 2014 09:59:36 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <201409190959.s8J9xa2T028314@kenobi.freebsd.org> From: bugzilla-noreply@FreeBSD.org To: freebsd-usb@FreeBSD.org Subject: Problem reports for freebsd-usb@FreeBSD.org that need special attention X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 Date: Fri, 19 Sep 2014 09:59:36 +0000 Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Sep 2014 09:59:36 -0000 To view an individual PR, use: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id). The following is a listing of current problems submitted by FreeBSD users, which need special attention. These represent problem reports covering all versions including experimental development code and obsolete releases. Status | Bug Id | Description ----------------+-----------+------------------------------------------------- Needs MFC | 193279 | Corsair K70 Gaming Keyboard will not function o 1 problems total for which you should take action. From owner-freebsd-usb@FreeBSD.ORG Fri Sep 19 15:59:02 2014 Return-Path: Delivered-To: freebsd-usb@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 099795B8 for ; Fri, 19 Sep 2014 15:59:02 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E498B7C5 for ; Fri, 19 Sep 2014 15:59:01 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id s8JFx1dq097820 for ; Fri, 19 Sep 2014 15:59:01 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 193775] New: [kernel/usb/u3g] GOBI2000/HP_UN2420 WWAN/GPS identification numbers Date: Fri, 19 Sep 2014 15:59:02 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 10.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: cederom@tlen.pl X-Bugzilla-Status: Needs Triage X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Sep 2014 15:59:02 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193775 Bug ID: 193775 Summary: [kernel/usb/u3g] GOBI2000/HP_UN2420 WWAN/GPS identification numbers Product: Base System Version: 10.0-RELEASE Hardware: Any OS: Any Status: Needs Triage Severity: Affects Many People Priority: --- Component: usb Assignee: freebsd-usb@FreeBSD.org Reporter: cederom@tlen.pl Created attachment 147468 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=147468&action=edit u3g.c and usbdevs patch Adds recognition of GOBI2000/HP_UN2420 WWAN/GPS device by U3G kernel module. -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-usb@FreeBSD.ORG Fri Sep 19 16:02:04 2014 Return-Path: Delivered-To: freebsd-usb@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-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB 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-usb@FreeBSD.ORG Fri Sep 19 16:07:49 2014 Return-Path: Delivered-To: freebsd-usb@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 D0AE3A27 for ; Fri, 19 Sep 2014 16:07:49 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B77488CD for ; Fri, 19 Sep 2014 16:07:49 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id s8JG7neE055125 for ; Fri, 19 Sep 2014 16:07:49 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 193775] [kernel/usb/u3g] GOBI2000/HP_UN2420 WWAN/GPS identification numbers Date: Fri, 19 Sep 2014 16:07:50 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 10.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: commit-hook@freebsd.org X-Bugzilla-Status: Needs Triage X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Sep 2014 16:07:49 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193775 --- Comment #1 from commit-hook@freebsd.org --- A commit references this bug: Author: hselasky Date: Fri Sep 19 16:06:54 UTC 2014 New revision: 271874 URL: http://svnweb.freebsd.org/changeset/base/271874 Log: Add new USB IDs. PR: 193775 MFC after: 1 week Changes: head/sys/dev/usb/serial/u3g.c head/sys/dev/usb/usbdevs -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-usb@FreeBSD.ORG Fri Sep 19 16:11:45 2014 Return-Path: Delivered-To: freebsd-usb@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 66FF8AB7 for ; Fri, 19 Sep 2014 16:11:45 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4E36B982 for ; Fri, 19 Sep 2014 16:11:45 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id s8JGBj1O071671 for ; Fri, 19 Sep 2014 16:11:45 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 193279] Corsair K70 Gaming Keyboard will not function on boot Date: Fri, 19 Sep 2014 16:11:45 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 9.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: hselasky@FreeBSD.org X-Bugzilla-Status: Issue Resolved X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Sep 2014 16:11:45 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193279 Hans Petter Selasky changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs MFC |Issue Resolved Resolution|--- |FIXED -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-usb@FreeBSD.ORG Fri Sep 19 16:18:43 2014 Return-Path: Delivered-To: freebsd-usb@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 382E9C28 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 04AF89E8 for ; Fri, 19 Sep 2014 16:18:42 +0000 (UTC) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by gateway2.nyi.internal (Postfix) with ESMTP id 81A8B20886 for ; Fri, 19 Sep 2014 12:18:35 -0400 (EDT) Received: from web4 ([10.202.2.214]) by compute1.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-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB 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-usb@FreeBSD.ORG Fri Sep 19 16:20:37 2014 Return-Path: Delivered-To: freebsd-usb@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-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB 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 From owner-freebsd-usb@FreeBSD.ORG Fri Sep 19 16:32:30 2014 Return-Path: Delivered-To: freebsd-usb@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 23C1C516 for ; Fri, 19 Sep 2014 16:32:30 +0000 (UTC) Received: from mail-oi0-x231.google.com (mail-oi0-x231.google.com [IPv6:2607:f8b0:4003:c06::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E12D8BC4 for ; Fri, 19 Sep 2014 16:32:29 +0000 (UTC) Received: by mail-oi0-f49.google.com with SMTP id x69so1799805oia.22 for ; Fri, 19 Sep 2014 09:32:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=Kk+JYJfmeLOAIPRT/okxLWe4RlRlJBMTi/iY1DtxPXw=; b=roNQenWitrGmQq3e064S5+jjOeUSfNalnYWZ9dmqvKzsujZd9cB6JyeFRFEdZM0zD0 JO+OKfLrBaF8w+ofgqALRU4Aehc9GuQAVQAP5cuEUU/oDu16o8ySuhP/Xb7kQaAzw6J4 UbCdAfj6ziVx0MxPhfGbdoxrsva43YrOVT+nzaLPlMp79QniZgAJryLEDU0mjRw/exHE Sqw9wtSs0KgEpIRWL+GKueAp8ar/nGiB7EZ4ozp8PmZ1ocq0tGXnG6vwNuVzLMbD5jSa 4d6zKXf86I056Uba1k/v7A6E+nyfeIT5mK5KFEdlrC1AtUclujmda9zGy9LntarM57zk CNSQ== MIME-Version: 1.0 X-Received: by 10.182.60.232 with SMTP id k8mr9833272obr.54.1411144349279; Fri, 19 Sep 2014 09:32:29 -0700 (PDT) Sender: tomek.cedro@gmail.com Received: by 10.202.58.196 with HTTP; Fri, 19 Sep 2014 09:32:29 -0700 (PDT) In-Reply-To: References: Date: Fri, 19 Sep 2014 18:32:29 +0200 X-Google-Sender-Auth: b0pUfaMOgSqJr-6N30miaBL300U Message-ID: Subject: Re: [Bug 193775] [kernel/usb/u3g] GOBI2000/HP_UN2420 WWAN/GPS identification numbers From: CeDeROM To: Hans Petter Selasky , "freebsd-usb@FreeBSD.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Sep 2014 16:32:30 -0000 On Fri, Sep 19, 2014 at 6:07 PM, wrote: > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193775 I would also like to add "gobi_loader" application [1] that loads the firmware to UN2420_QDL in order UN2420 to show up and work. Firmware files are copyrighted and should be put in example to /boot/firmware. There is no information on license nor author in the gobi_loader sources [1]. I am wondering how to add this utility to the FreeBSD . It is essential for device to work. Is it possible to add it to the core? Should I prepare a man page? Any hints appreciated :-) Tomek [1] http://textuploader.com/orcw -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info From owner-freebsd-usb@FreeBSD.ORG Fri Sep 19 16:38:50 2014 Return-Path: Delivered-To: freebsd-usb@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 D15CB6FE for ; Fri, 19 Sep 2014 16:38:50 +0000 (UTC) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (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 8D391C07 for ; Fri, 19 Sep 2014 16:38:49 +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 52C4C1FE027; Fri, 19 Sep 2014 18:38:47 +0200 (CEST) Message-ID: <541C5C0C.9080104@selasky.org> Date: Fri, 19 Sep 2014 18:38:36 +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: CeDeROM , "freebsd-usb@FreeBSD.org" Subject: Re: [Bug 193775] [kernel/usb/u3g] GOBI2000/HP_UN2420 WWAN/GPS identification numbers References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Sep 2014 16:38:50 -0000 On 09/19/14 18:32, CeDeROM wrote: > On Fri, Sep 19, 2014 at 6:07 PM, wrote: >> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193775 > > I would also like to add "gobi_loader" application [1] that loads the > firmware to UN2420_QDL in order UN2420 to show up and work. Firmware > files are copyrighted and should be put in example to /boot/firmware. > There is no information on license nor author in the gobi_loader > sources [1]. > > I am wondering how to add this utility to the FreeBSD . It is > essential for device to work. Is it possible to add it to the core? > Should I prepare a man page? > > Any hints appreciated :-) > > Tomek > > [1] http://textuploader.com/orcw > Hi, Is this something which you can put into a port in ports? --HPS From owner-freebsd-usb@FreeBSD.ORG Sat Sep 20 06:44:19 2014 Return-Path: Delivered-To: freebsd-usb@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 5EF5545D for ; Sat, 20 Sep 2014 06:44:19 +0000 (UTC) Received: from mail-oi0-x22f.google.com (mail-oi0-x22f.google.com [IPv6:2607:f8b0:4003:c06::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 273EB398 for ; Sat, 20 Sep 2014 06:44:19 +0000 (UTC) Received: by mail-oi0-f47.google.com with SMTP id e131so2147558oig.34 for ; Fri, 19 Sep 2014 23:44:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=LoswvgZV4+iZncKaBL0IX1h22ipg7WYjGOMjltUu6a0=; b=Dp5ePkZcGAyo+gZohhNJDvpaGttdT3D2aJ5vsP1xR4qqS/GR74tQ9cOblHIa5CmGZ0 AZCw9infBulwQlyBZTZLk92EQg6Pa3egV/OmXV/39aPToGigXkZJDg+KmWMx9UENIDs+ i0LRokcP2rQjd+7eNso4pra8jYTJdK2VJwC9oWZwvdXLUuPCKbSvZdwG6dF6oHKDLgEW 9WEmfqBDCKApIZwNaqKHuBU6JiIfBeaHwB/9subnKQdECFpcUFEHNnIluN2Fh8pWqZrC mXzBPQC1wqUUVkanhomaOEMjF7YDFhVIi2Csk6JzRHf5ZsDJquf6OfWZMI0139UHoqsh sReQ== MIME-Version: 1.0 X-Received: by 10.182.231.170 with SMTP id th10mr13541408obc.8.1411195457749; Fri, 19 Sep 2014 23:44:17 -0700 (PDT) Sender: tomek.cedro@gmail.com Received: by 10.202.58.196 with HTTP; Fri, 19 Sep 2014 23:44:17 -0700 (PDT) In-Reply-To: <541C5C0C.9080104@selasky.org> References: <541C5C0C.9080104@selasky.org> Date: Sat, 20 Sep 2014 08:44:17 +0200 X-Google-Sender-Auth: RzrSqk8eJS1lsT0eLvAmwZ3JzIE Message-ID: Subject: Re: [Bug 193775] [kernel/usb/u3g] GOBI2000/HP_UN2420 WWAN/GPS identification numbers From: CeDeROM To: Hans Petter Selasky Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-usb@FreeBSD.org" X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Sep 2014 06:44:19 -0000 On Fri, Sep 19, 2014 at 6:38 PM, Hans Petter Selasky wrote: > Is this something which you can put into a port in ports? This is really small one file C program [1] and it would be nice to have it in the core as it may be used first to bring up the interface to get ports/packages :-) Unfortunately there is no information on the author nor licence in the source... thus my question if this can be "adapted" to BSD in a legal way? [1] http://textuploader.com/orcw -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info From owner-freebsd-usb@FreeBSD.ORG Sat Sep 20 12:03:49 2014 Return-Path: Delivered-To: freebsd-usb@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 20589A33 for ; Sat, 20 Sep 2014 12:03:49 +0000 (UTC) Received: from mail-lb0-x22d.google.com (mail-lb0-x22d.google.com [IPv6:2a00:1450:4010:c04::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9EBED2B1 for ; Sat, 20 Sep 2014 12:03:48 +0000 (UTC) Received: by mail-lb0-f173.google.com with SMTP id 10so2771771lbg.18 for ; Sat, 20 Sep 2014 05:03:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:date:message-id:subject:from:to:content-type; bh=9owHBSobwS4Tx4X7YqJ6kRaNcajP9DRfSWogfcvKsU4=; b=xpS9ABa13pCykFk8/pRpUi6YgacEWnGPEoMCRN7yZgYOoexwwU8h3at//+8C4f2zE9 mQQbIM9H0tQhq+lV+S+D0SooWwgzOtnkaiPwDTzmWyLFIAGPsAF1aJKGMzwqGNSfAD/j ho4K/YV7zEvnYawr/Jr1SKxSzZie08BLmIpLgFnVOKdFhpaJVhCo+kD0HaZjsLZVmGpD AVe7A15t9R5h+ePvwE1orfoZm2yZP5nt+JCE9RBG+SimaSy5WemF9z9VLNheQ0R9xtzo nvI0mPsenukvKWKCDKIF4nZ3awtET2ARFdpj/bV9oJ/3AECYn/bP9chmJRSVt81/iicm PqtA== MIME-Version: 1.0 X-Received: by 10.112.253.165 with SMTP id ab5mr12276865lbd.1.1411214625900; Sat, 20 Sep 2014 05:03:45 -0700 (PDT) Received: by 10.112.218.101 with HTTP; Sat, 20 Sep 2014 05:03:45 -0700 (PDT) Reply-To: huanghwh@gmail.com Date: Sat, 20 Sep 2014 20:03:45 +0800 Message-ID: Subject: xhci problem on UEFI boot MacBookPro 11,3 From: Huang Wen Hui To: "freebsd-usb@freebsd.org" , Hans Petter Selasky Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Sep 2014 12:03:49 -0000 I try to UEFI boot 10-STABLE on MacBookPro 11,3, found that xhci does not work anymore, It works in BIOS boot. also try to set "hw.usb.xhci.msi=0" and hw.usb.xhci.xhci_port_route="-1", no lucky. verbose boot log can be found at : http://sw.gddsn.org.cn/freebsd/uefi-messages.txt usbconfig list show: ugen0.1: at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA) In BIOS boot, usbconfig list show: ugen0.1: at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA) ugen0.2: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE (94mA) ugen0.3: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (0mA) ugen0.4: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (0mA) ugen0.5: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (0mA) ugen0.6: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (40mA) ugen0.7: at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON (224mA) Cheers, Huang Wen Hui