From owner-freebsd-usb@FreeBSD.ORG Mon Dec 22 09:14:18 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A9C6D2EF for ; Mon, 22 Dec 2014 09:14:18 +0000 (UTC) Received: from mail-wg0-x233.google.com (mail-wg0-x233.google.com [IPv6:2a00:1450:400c:c00::233]) (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 28C283C0D for ; Mon, 22 Dec 2014 09:14:18 +0000 (UTC) Received: by mail-wg0-f51.google.com with SMTP id x12so6076683wgg.24 for ; Mon, 22 Dec 2014 01:14:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=M9kwkt1bML2q40iL0xjj2I1NIACC8mn+AH+Z1EXN7vY=; b=awltr29mSdaFKTBBi2k9zOCYU2STf6+HCCiqwzoPAGB2OsTVfeAxlrPM22Tjo12TxG XcyhRoPxvl2dyX9dhi2qOaF9qJ3ksXnnvu/HSyXTsXbFbMnskuwrn6FVi21KCVXNnDUa zfC2qUxpvNs6kQvPiWMNrXByvqUZrPldScko7dw2O7AsKRXfg0u2Tif3w4jQmdfZVvUu QASjr2yTzRrMLK4T3TwKE0J3glQcnTTuWXWnvu1gG1fvRVlox2S79aBDhsvxCQlvmlWr I/ZpFPb7+1AAQXVpgHMZWGOUyPr61+Xx5tmLODYXBScpf5Qa+zYJQqks6vGmQ22nuR8I rdiw== MIME-Version: 1.0 X-Received: by 10.194.62.19 with SMTP id u19mr40748685wjr.0.1419239656413; Mon, 22 Dec 2014 01:14:16 -0800 (PST) Received: by 10.27.174.20 with HTTP; Mon, 22 Dec 2014 01:14:16 -0800 (PST) In-Reply-To: <5497D961.2090302@selasky.org> References: <1580934.Kkj0kKdA3z@bigguy.am-productions.biz> <1993304.2n7h1o4Guv@bigguy.am-productions.biz> <548EABCA.7090908@selasky.org> <2834715.Xnaz94KKIN@bigguy.am-productions.biz> <54972C6E.2080906@selasky.org> <54973560.4090908@selasky.org> <5497D961.2090302@selasky.org> Date: Mon, 22 Dec 2014 01:14:16 -0800 Message-ID: Subject: Re: urndis and umodem device collision for ue device From: Randall Fox To: Hans Petter Selasky Content-Type: text/plain; charset=UTF-8 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: Mon, 22 Dec 2014 09:14:18 -0000 On Mon, Dec 22, 2014 at 12:42 AM, Hans Petter Selasky wrote: > On 12/21/14 22:28, Randall Fox wrote: > >> On Sun, Dec 21, 2014 at 1:02 PM, Hans Petter Selasky >> wrote: >> >> On 12/21/14 21:40, Randall Fox wrote: >>> >>> Did you update /etc/devd/usb.conf, install new kernel and reboot your >>>> >>>>> >>>>> system? >>>> >>>> I actually had the FreeNAS team apply this fix to the nightly build and >>>> I >>>> created a whole new install based on their Nightly Build. The DEVs put >>>> the >>>> fix in, and it must have been correct because it worked for someone >>>> else. >>>> >>>> Here is the link to the ticket for this: >>>> https://bugs.freenas.org/issues/7153 >>>> It appears they are familiar with you! >>>> >>>> I will try putting the usb.conf in the location you specify, to see if >>>> that >>>> works. I would be surprised if the dev's missed this. >>>> >>>> >>>> >>>> On Sun, Dec 21, 2014 at 12:24 PM, Hans Petter Selasky >>>> wrote: >>>> >>>> On 12/21/14 21:21, Randall Fox wrote: >>>> >>>>> >>>>> Hi, >>>>> >>>>>> >>>>>> >>>>>>> The following patches should fix your problem: >>>>>>> >>>>>>> https://svnweb.freebsd.org/changeset/base/275790 >>>>>>> https://svnweb.freebsd.org/changeset/base/275791 >>>>>>> >>>>>>> --HPS >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> Can you get the dmesg when plugging your device? >>> >>> --HPS >>> >>> >>> uhid0: > addr 3> on usbus1 >> ugen1.3: at usbus1 (disconnected) >> uhid0: at uhub3, port 1, addr 3 (disconnected) >> ugen1.3: at usbus1 >> uhid0: > addr 3> on usbus1 >> ugen1.3: at usbus1 (disconnected) >> uhid0: at uhub3, port 1, addr 3 (disconnected) >> >> I tried putting the usb.conf in /etc/devd and rebooting, but no change.. >> >> > Hi, > > This looks correct. Did you select the correct device profile? > > Also, did you set the correct USB configuration number? > > usbconfig -d X.Y dump_device_desc dump_curr_config_desc > usbconfig -d X.Y set_config 1 > > --HPS > I ran the set_config 1, but that didn't have any effect, nor did set_config 0. the dump device & config is below. I did not select any profile, I just plug the unit in and I get the disconnect messages. ugen1.3: at usbus1, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (0mA) bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0110 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0008 idVendor = 0x09ae idProduct = 0x3015 bcdDevice = 0x020a iManufacturer = 0x0002 iProduct = 0x0003 iSerialNumber = 0x0004 <2351BY0SM820600181> bNumConfigurations = 0x0001 Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x0022 bNumInterfaces = 0x0001 bConfigurationValue = 0x0001 iConfiguration = 0x0000 bmAttributes = 0x00e0 bMaxPower = 0x0000 Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0001 bInterfaceClass = 0x0003 bInterfaceSubClass = 0x0000 bInterfaceProtocol = 0x0000 iInterface = 0x0000 Additional Descriptor bLength = 0x09 bDescriptorType = 0x21 bDescriptorSubType = 0x10 RAW dump: 0x00 | 0x09, 0x21, 0x10, 0x01, 0x00, 0x01, 0x22, 0xe4, 0x08 | 0x04 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0081 bmAttributes = 0x0003 wMaxPacketSize = 0x0008 bInterval = 0x0028 bRefresh = 0x0000 bSynchAddress = 0x0000