From owner-freebsd-usb@FreeBSD.ORG Mon Dec 22 09:29:38 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 A599867D for ; Mon, 22 Dec 2014 09:29:38 +0000 (UTC) Received: from mail-wg0-x236.google.com (mail-wg0-x236.google.com [IPv6:2a00:1450:400c:c00::236]) (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 281823EF5 for ; Mon, 22 Dec 2014 09:29:38 +0000 (UTC) Received: by mail-wg0-f54.google.com with SMTP id l2so6179222wgh.13 for ; Mon, 22 Dec 2014 01:29:36 -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=DyaHPZiFzX33QLYirYR/fApBRjWpSxi6pTZ43zNU2qU=; b=yEAyMowgEVCjY5cAtM4jZH+9lMYPbg0PZmFVLngEb348J+mYGVhHmLA0Z2qxK0ka1W e3M9G6H5lhFUOoxVDiAooFD4S+bERTa/k+C512KoEewwtCKYK0HSSC+bDxICyYOayTSq 61WMGUvZaRGV7l1N/+TnMsQmvbYuYpU9/wI7SDm8wux05/lkW6bkApaMa7SiWAPEbWbZ SiC+U4MfnpekIS2ibW4frToY2CTV8HX6NAbb8MSz6kNxXYX4Kfv0oRwsfYOflRwAmcVS Ys5tRj2WmO5OZ2+v4wSFAi40Q6klQ3FA2DSl/J5ZPx8Bt9y5Ndh5Vcq+XXeYSp2Rf6ae 57wA== MIME-Version: 1.0 X-Received: by 10.180.187.67 with SMTP id fq3mr28727305wic.37.1419240576617; Mon, 22 Dec 2014 01:29:36 -0800 (PST) Received: by 10.27.174.20 with HTTP; Mon, 22 Dec 2014 01:29:36 -0800 (PST) In-Reply-To: <5497E326.7000908@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> <5497E326.7000908@selasky.org> Date: Mon, 22 Dec 2014 01:29:36 -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:29:38 -0000 On Mon, Dec 22, 2014 at 1:23 AM, Hans Petter Selasky wrote: > On 12/22/14 10:14, Randall Fox wrote: > >> 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 < >>>>>> hps@selasky.org> >>>>>> 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: >>>> 1.10/2.0a, >>>>> >>>> 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 >> >> > Hi, > > There is no RNDIS device here! There is only a UHID device. > > --HPS > I am not familiar with RNDIS..