From owner-freebsd-usb@FreeBSD.ORG Sun Jun 14 14:15:18 2009 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 EC335106568E for ; Sun, 14 Jun 2009 14:15:18 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe15.swipnet.se [212.247.155.193]) by mx1.freebsd.org (Postfix) with ESMTP id DD0F18FC20 for ; Sun, 14 Jun 2009 14:15:17 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=AhvQCziwETMA:10 a=cGfLAXPA4KkA:10 a=hlIU1J3LQChSjWV/CGRL5g==:17 a=3tcz3bTJAAAA:8 a=7WwgAxTyLoEEzd5J3wkA:9 a=zlauMOtMlLjwmzRA-vsA:7 a=EbthrQolTJfpKWWfWWQUIF_8pAEA:4 Received: from [193.217.167.6] (account mc467741@c2i.net HELO laptop.adsl.tele2.no) by mailfe15.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 512544486; Sun, 14 Jun 2009 16:15:15 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Sun, 14 Jun 2009 16:19:30 +0200 User-Agent: KMail/1.11.4 (FreeBSD/8.0-CURRENT; KDE/4.2.4; i386; ; ) References: <20090614230224.c5be0d66.nork@FreeBSD.org> In-Reply-To: <20090614230224.c5be0d66.nork@FreeBSD.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200906141619.32495.hselasky@c2i.net> Cc: Norikatsu Shigemura Subject: Re: u3g? SoftBank C01SW (Sierra Wireless HSDPA modem) 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: Sun, 14 Jun 2009 14:15:19 -0000 On Sunday 14 June 2009 16:02:24 Norikatsu Shigemura wrote: > Hi > > I'm evaluating Softbank C01SW (Sierra Wireless HSDPA modem). > Maybe, its driver is u3g(4). But I can't use it. So I research > its information, and I found that it was supported on OpenBSD. > > http://www.openbsd.org/cgi-bin/cvsweb/src/sys/dev/usb/umsm.c.diff?r1=1.45;r >2=1.46;f=h > > I read u3g.c, I think already supported Tru-install, but no > information of C01SW. I don't know that how should I fix. > So please fix to support, and I can test patch. > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > - - - - - - - - - - # usbconfig -u 1 -a 2 dump_all_config_desc > ugen1.2: at usbus1, cfg=0 > md=HOST spd=HIGH (480Mbps) pwr=ON > > > Configuration index 0 > > bLength = 0x0009 > bDescriptorType = 0x0002 > wTotalLength = 0x00dd > bNumInterfaces = 0x0008 > bConfigurationValue = 0x0001 > iConfiguration = 0x0003 <4*> > bmAttributes = 0x00e0 > bMaxPower = 0x0000 > > Interface 0 > bLength = 0x0009 > bDescriptorType = 0x0004 > bInterfaceNumber = 0x0000 > bAlternateSetting = 0x0000 > bNumEndpoints = 0x0002 > bInterfaceClass = 0x00ff > bInterfaceSubClass = 0x00ff > bInterfaceProtocol = 0x00ff > iInterface = 0x0000 > > Endpoint 0 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0081 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0200 > bInterval = 0x0020 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > Endpoint 1 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0001 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0200 > bInterval = 0x0020 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > > Interface 1 > bLength = 0x0009 > bDescriptorType = 0x0004 > bInterfaceNumber = 0x0001 > bAlternateSetting = 0x0000 > bNumEndpoints = 0x0002 > bInterfaceClass = 0x00ff > bInterfaceSubClass = 0x00ff > bInterfaceProtocol = 0x00ff > iInterface = 0x0000 > > Endpoint 0 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0082 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0200 > bInterval = 0x0020 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > Endpoint 1 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0002 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0200 > bInterval = 0x0020 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > > Interface 2 > bLength = 0x0009 > bDescriptorType = 0x0004 > bInterfaceNumber = 0x0002 > bAlternateSetting = 0x0000 > bNumEndpoints = 0x0002 > bInterfaceClass = 0x00ff > bInterfaceSubClass = 0x00ff > bInterfaceProtocol = 0x00ff > iInterface = 0x0000 > > Endpoint 0 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0083 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0200 > bInterval = 0x0020 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > Endpoint 1 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0003 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0200 > bInterval = 0x0020 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > > Interface 3 > bLength = 0x0009 > bDescriptorType = 0x0004 > bInterfaceNumber = 0x0003 > bAlternateSetting = 0x0000 > bNumEndpoints = 0x0003 > bInterfaceClass = 0x00ff > bInterfaceSubClass = 0x00ff > bInterfaceProtocol = 0x00ff > iInterface = 0x0000 > > Endpoint 0 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0084 > bmAttributes = 0x0003 > wMaxPacketSize = 0x0040 > bInterval = 0x0005 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > Endpoint 1 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0085 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0200 > bInterval = 0x0020 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > Endpoint 2 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0004 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0200 > bInterval = 0x0020 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > > Interface 4 > bLength = 0x0009 > bDescriptorType = 0x0004 > bInterfaceNumber = 0x0004 > bAlternateSetting = 0x0000 > bNumEndpoints = 0x0003 > bInterfaceClass = 0x00ff > bInterfaceSubClass = 0x00ff > bInterfaceProtocol = 0x00ff > iInterface = 0x0000 > > Endpoint 0 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0086 > bmAttributes = 0x0003 > wMaxPacketSize = 0x0040 > bInterval = 0x0005 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > Endpoint 1 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0087 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0200 > bInterval = 0x0020 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > Endpoint 2 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0005 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0200 > bInterval = 0x0020 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > > Interface 5 > bLength = 0x0009 > bDescriptorType = 0x0004 > bInterfaceNumber = 0x0005 > bAlternateSetting = 0x0000 > bNumEndpoints = 0x0003 > bInterfaceClass = 0x00ff > bInterfaceSubClass = 0x00ff > bInterfaceProtocol = 0x00ff > iInterface = 0x0000 > > Endpoint 0 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0088 > bmAttributes = 0x0003 > wMaxPacketSize = 0x0040 > bInterval = 0x0005 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > Endpoint 1 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0089 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0200 > bInterval = 0x0020 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > Endpoint 2 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0006 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0200 > bInterval = 0x0020 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > > Interface 6 > bLength = 0x0009 > bDescriptorType = 0x0004 > bInterfaceNumber = 0x0006 > bAlternateSetting = 0x0000 > bNumEndpoints = 0x0003 > bInterfaceClass = 0x00ff > bInterfaceSubClass = 0x00ff > bInterfaceProtocol = 0x00ff > iInterface = 0x0000 > > Endpoint 0 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x008a > bmAttributes = 0x0003 > wMaxPacketSize = 0x0040 > bInterval = 0x0005 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > Endpoint 1 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x008b > bmAttributes = 0x0002 > wMaxPacketSize = 0x0200 > bInterval = 0x0020 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > Endpoint 2 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0007 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0200 > bInterval = 0x0020 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > > Interface 7 > bLength = 0x0009 > bDescriptorType = 0x0004 > bInterfaceNumber = 0x0007 > bAlternateSetting = 0x0000 > bNumEndpoints = 0x0002 > bInterfaceClass = 0x0008 > bInterfaceSubClass = 0x0006 > bInterfaceProtocol = 0x0050 > iInterface = 0x0000 > > Endpoint 0 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0008 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0200 > bInterval = 0x0000 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > Endpoint 1 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x008c > bmAttributes = 0x0002 > wMaxPacketSize = 0x0200 > bInterval = 0x0000 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > - - - - - - - - - - > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > - - - - - - - - - - Jun 14 22:24:07 melfina kernel: u3g_sierra_init:233: > Jun 14 22:24:08 melfina kernel: usb2_alloc_device:1762: Found Huawei > auto-install disk! Jun 14 22:24:08 melfina kernel: ugen1.2: Wireless, Incorporated> at usbus1 Jun 14 22:24:08 melfina kernel: ugen1.2: > at usbus1 (disconnected) Jun 14 22:24:08 > melfina kernel: uhub_reattach_port:416: could not allocate new device! Jun > 14 22:24:09 melfina kernel: ugen1.2: at > usbus1 Jun 14 22:24:09 melfina kernel: umass0: Incorporated HSPA Modem, class 0/0, rev 2.00/0.05, addr 2> on usbus1 Jun 14 > 22:24:09 melfina kernel: umass0: SCSI over Bulk-Only; quirks = 0x0000 Jun > 14 22:24:09 melfina root: Unknown USB device: vendor 0x1199 product 0x6890 > bus uhub1 Jun 14 22:24:10 melfina kernel: umass0:0:0:-1: Attached to scbus0 > Jun 14 22:24:10 melfina kernel: (probe0:umass-sim0:0:0:0): error 22 > Jun 14 22:24:10 melfina kernel: (probe0:umass-sim0:0:0:0): Unretryable > Error Jun 14 22:24:11 melfina kernel: (probe0:umass-sim0:0:0:0): TEST UNIT > READY. CDB: 0 0 0 0 0 0 Jun 14 22:24:11 melfina kernel: > (probe0:umass-sim0:0:0:0): CAM Status: SCSI Status Error Jun 14 22:24:11 > melfina kernel: (probe0:umass-sim0:0:0:0): SCSI Status: Check Condition Jun > 14 22:24:11 melfina kernel: (probe0:umass-sim0:0:0:0): NOT READY asc:3a,0 > Jun 14 22:24:11 melfina kernel: (probe0:umass-sim0:0:0:0): Medium not > present Jun 14 22:24:11 melfina kernel: (probe0:umass-sim0:0:0:0): > (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 Jun 14 > 22:24:11 melfina kernel: (probe0:umass-sim0:0:0:0): NOT READY asc:3a,0 Jun > 14 22:24:11 melfina kernel: (probe0:umass-sim0:0:0:0): Medium not present > Jun 14 22:24:11 melfina kernel: Unretryable error > Jun 14 22:24:11 melfina kernel: (probe0:umass-sim0:0:0:0): error 6 > Jun 14 22:24:11 melfina kernel: (probe0:umass-sim0:0:0:0): Unretryable > Error Jun 14 22:24:11 melfina kernel: pass0 at umass-sim0 bus 0 target 0 > lun 0 Jun 14 22:24:11 melfina kernel: pass0: Fixed > Direct Access SCSI-2 device Jun 14 22:24:11 melfina kernel: pass0: > 40.000MB/s transfers > Jun 14 22:24:11 melfina kernel: GEOM: new disk da0 > Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): error 6 > Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): Unretryable Error > Jun 14 22:24:11 melfina kernel: da0 at umass-sim0 bus 0 target 0 lun 0 > Jun 14 22:24:11 melfina kernel: da0: Fixed Direct > Access SCSI-2 device Jun 14 22:24:11 melfina kernel: da0: 40.000MB/s > transfers > Jun 14 22:24:11 melfina kernel: da0: Attempt to query device size failed: > NOT READY, Medium not present Jun 14 22:24:11 melfina kernel: > (da0:umass-sim0:0:0:0): READ CAPACITY(10). CDB: 25 0 0 0 0 0 0 0 0 0 Jun 14 > 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): CAM Status: SCSI Status > Error Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): SCSI Status: > Check Condition Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): NOT > READY asc:3a,0 Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): > Medium not present Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): > (da0:umass-sim0:0:0:0): READ CAPACITY(10). CDB: 25 0 0 0 0 0 0 0 0 0 Jun 14 > 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): NOT READY asc:3a,0 Jun 14 > 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): Medium not present Jun 14 > 22:24:11 melfina kernel: Unretryable error > Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): error 6 > Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): Unretryable Error > Jun 14 22:24:11 melfina kernel: Opened disk da0 -> 6 > Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): READ CAPACITY(10). > CDB: 25 0 0 0 0 0 0 0 0 0 Jun 14 22:24:11 melfina kernel: > (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error Jun 14 22:24:11 > melfina kernel: (da0:umass-sim0:0:0:0): SCSI Status: Check Condition Jun 14 > 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): NOT READY asc:3a,0 Jun 14 > 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): Medium not present Jun 14 > 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): (da0:umass-sim0:0:0:0): > READ CAPACITY(10). CDB: 25 0 0 0 0 0 0 0 0 0 Jun 14 22:24:11 melfina > kernel: (da0:umass-sim0:0:0:0): NOT READY asc:3a,0 Jun 14 22:24:11 melfina > kernel: (da0:umass-sim0:0:0:0): Medium not present Jun 14 22:24:11 melfina > kernel: Unretryable error > Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): error 6 > Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): Unretryable Error > Jun 14 22:24:11 melfina kernel: Opened disk da0 -> 6 Did you kldload u3g before plugging the device? You can use usbconfig -u X -a Y do_request to issue the eject control request to the device. --HPS