From owner-freebsd-usb@FreeBSD.ORG Fri Nov 12 13:12:46 2010 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 73C9F1065673; Fri, 12 Nov 2010 13:12:46 +0000 (UTC) (envelope-from ehaupt@FreeBSD.org) Received: from mx.critical.ch (cl-8.zrh-02.ch.sixxs.net [IPv6:2001:1620:f00:7::2]) by mx1.freebsd.org (Postfix) with ESMTP id 18A718FC1B; Fri, 12 Nov 2010 13:12:45 +0000 (UTC) Received: from wiggles.bwns.ch (localhost [IPv6:::1]) by mx.critical.ch (8.14.3/8.14.3/critical-1.0) with SMTP id oACDCfEm037100; Fri, 12 Nov 2010 14:12:41 +0100 (CET) (envelope-from ehaupt@FreeBSD.org) Date: Fri, 12 Nov 2010 14:12:41 +0100 From: Emanuel Haupt To: Hans Petter Selasky Message-Id: <20101112141241.94c926ee.ehaupt@FreeBSD.org> In-Reply-To: <201011111756.54050.hselasky@c2i.net> References: <20101111170000.7a265dc3.ehaupt@FreeBSD.org> <201011111706.56225.hselasky@c2i.net> <20101111173638.65c9a185.ehaupt@FreeBSD.org> <201011111756.54050.hselasky@c2i.net> X-Mailer: Sylpheed 3.0.3 (GTK+ 2.20.1; amd64-portbld-freebsd8.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-usb@FreeBSD.org, Emanuel Haupt Subject: Re: Motorola TER/GUSB3-E Ralink Wireless USB X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Nov 2010 13:12:46 -0000 Hans Petter Selasky wrote: > On Thursday 11 November 2010 17:36:38 Emanuel Haupt wrote: > > Hans Petter Selasky wrote: > > > On Thursday 11 November 2010 17:00:00 Emanuel Haupt wrote: > > > > I've got a Motorola TER/GUSB3-E Wireless USB stick that > > > > identifies itself as: > > > > > > > > # /var/log/messages > > > > > > > > Nov 11 13:40:07 wiggles kernel: ugen1.3: at usbus1 > > > > Nov 11 13:40:07 wiggles kernel: umass0: > > > class 0/0, rev 2.00/0.01, addr 3> on usbus1 Nov 11 13:40:09 > > > > wiggles kernel: (probe0:umass-sim0:0:0:0): TEST UNIT READY. > > > > CDB: 0 0 0 0 0 0 Nov 11 13:40:09 wiggles kernel: > > > > (probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error Nov 11 > > > > 13:40:09 wiggles kernel: (probe0:umass-sim0:0:0:0): SCSI > > > > status: Check Condition Nov 11 13:40:09 wiggles kernel: > > > > (probe0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 > > > > (Medium not present) Nov 11 13:40:09 wiggles kernel: cd1 at > > > > umass-sim0 bus 0 scbus2 target 0 lun 0 Nov 11 13:40:09 wiggles > > > > kernel: cd1: Removable CD-ROM SCSI-0 > > > > device Nov 11 13:40:09 wiggles kernel: cd1: 40.000MB/s > > > > transfers Nov 11 13:40:09 wiggles kernel: cd1: Attempt to query > > > > device size failed: NOT READY, Medium not present > > > > > > > > # usbconfig -u 1 -a 3 dump_curr_config_desc > > > > ugen1.3: <802.11 bg WLAN Ralink> at usbus1, cfg=0 md=HOST > > > > spd=HIGH (480Mbps) pwr=ON > > > > > > > > Configuration index 0 > > > > > > > > bLength = 0x0009 > > > > bDescriptorType = 0x0002 > > > > wTotalLength = 0x0020 > > > > bNumInterfaces = 0x0001 > > > > bConfigurationValue = 0x0001 > > > > iConfiguration = 0x0000 > > > > bmAttributes = 0x0080 > > > > bMaxPower = 0x00c8 > > > > > > > > Interface 0 > > > > > > > > bLength = 0x0009 > > > > bDescriptorType = 0x0004 > > > > bInterfaceNumber = 0x0000 > > > > bAlternateSetting = 0x0000 > > > > bNumEndpoints = 0x0002 > > > > bInterfaceClass = 0x0008 > > > > bInterfaceSubClass = 0x0006 > > > > bInterfaceProtocol = 0x0050 > > > > iInterface = 0x0000 > > > > > > > > Endpoint 0 > > > > > > > > bLength = 0x0007 > > > > bDescriptorType = 0x0005 > > > > bEndpointAddress = 0x0081 > > > > bmAttributes = 0x0002 > > > > wMaxPacketSize = 0x0200 > > > > bInterval = 0x0000 > > > > bRefresh = 0x0000 > > > > bSynchAddress = 0x0000 > > > > > > > > Endpoint 1 > > > > > > > > bLength = 0x0007 > > > > bDescriptorType = 0x0005 > > > > bEndpointAddress = 0x0001 > > > > bmAttributes = 0x0002 > > > > wMaxPacketSize = 0x0200 > > > > bInterval = 0x0000 > > > > bRefresh = 0x0000 > > > > bSynchAddress = 0x0000 > > > > > > > > Unfortunately it's not recognized by the ural driver. Has > > > > anyone an idea what I could try? Add a usb device ID somewhere? > > > > > > Hi, > > > > > > If you use the "dump_device_desc" command you get the idVendor and > > > idProduct you need for the ID-table in > > > sys/dev/usb/wlan/if_ural.c . > > > > > > --HPS > > > > It's: > > > > ugen1.3: <802.11 bg WLAN Ralink> at usbus1, cfg=0 md=HOST spd=HIGH > > (480Mbps) pwr=ON > > > > bLength = 0x0012 > > bDescriptorType = 0x0001 > > bcdUSB = 0x0200 > > bDeviceClass = 0x0000 > > bDeviceSubClass = 0x0000 > > bDeviceProtocol = 0x0000 > > bMaxPacketSize0 = 0x0040 > > idVendor = " > > idProduct = 0x2578 > > bcdDevice = 0x0001 > > iManufacturer = 0x0001 > > iProduct = 0x0002 <802.11 bg WLAN> > > iSerialNumber = 0x0003 > > bNumConfigurations = 0x0001 > > > > I guess I'll have to fit "0x148f" in there somewhere - not sure > > exactly where to add though. Any help would be appreciated. > > > > Emanuel > > I guess you can: > > grep -rE "RALINK.*RT2573" /sys/dev/usb/ > > And duplicate one of those entries. According to [1], "0x148f" seem to use RT2870. Emanuel [1] http://ralinkce.blogspot.com/