From owner-freebsd-usb@FreeBSD.ORG Sun Jan 11 14:26:18 2015 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 C25809E0; Sun, 11 Jan 2015 14:26:18 +0000 (UTC) Received: from mail.in-addr.com (mail.in-addr.com [IPv6:2a01:4f8:191:61e8::2525:2525]) (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 81E64902; Sun, 11 Jan 2015 14:26:18 +0000 (UTC) Received: from gjp by mail.in-addr.com with local (Exim 4.84 (FreeBSD)) (envelope-from ) id 1YAJT5-0008dA-UM; Sun, 11 Jan 2015 14:26:15 +0000 Date: Sun, 11 Jan 2015 14:26:15 +0000 From: Gary Palmer To: Hans Petter Selasky Subject: Re: ZTE MF730M 3G dongle help please Message-ID: <20150111142615.GA33101@in-addr.com> References: <20150110171901.GA47211@in-addr.com> <20150111025238.GB47211@in-addr.com> <54B2509F.70009@selasky.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <54B2509F.70009@selasky.org> X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: gpalmer@freebsd.org X-SA-Exim-Scanned: No (on mail.in-addr.com); SAEximRunCond expanded to false 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, 11 Jan 2015 14:26:18 -0000 On Sun, Jan 11, 2015 at 11:29:51AM +0100, Hans Petter Selasky wrote: > Hi, > > Config index 0 is the default, so you might want to try without the ", > UQ_CFG_INDEX_0" in the end. > > USB_QUIRK(QUALCOMMINC, ZTE_MF730M, 0xf0f7, 0xf0f7, UQ_MSC_NO_GETMAXLUN, > UQ_MSC_NO_INQUIRY, UQ_CFG_INDEX_0), Doesn't work Inserting after boot with bootverbose enabled I get Jan 11 14:11:17 micro2 kernel: usb_alloc_device: Found possible auto-install disk (trying next config) Jan 11 14:11:17 micro2 kernel: ugen1.2: at usbus1 Jan 11 14:11:17 micro2 kernel: Ejecting ZTE,Incorporated ZTE Mobile Broadband Station using method 3 Nothing shows up in "camcontrol devlist" and nothing in ifconfig While config index 0 may be the default, setting that quirk has the added advantage of disabling the "Found possible auto-install disk (trying next config)" code, so that it is the first device (the CD) that is ejected. That seems to trigger the switch into RNDIS mode. Messages from insertion after boot with bootverbose enabled: Jan 11 14:21:49 micro2 kernel: ugen1.2: at usbus1 Jan 11 14:21:49 micro2 kernel: Ejecting ZTE,Incorporated ZTE Mobile Broadband Station using method 3 Jan 11 14:21:49 micro2 kernel: ugen1.2: at usbus1 (disconnected) Jan 11 14:21:50 micro2 kernel: ugen1.2: at usbus1 Jan 11 14:21:50 micro2 kernel: umass0: on usbus1 Jan 11 14:21:50 micro2 kernel: umass0: SCSI over Bulk-Only; quirks = 0x0000 Jan 11 14:21:50 micro2 kernel: umass0:6:0:-1: Attached to scbus6 Jan 11 14:21:51 micro2 kernel: pass4 at umass-sim0 bus 0 scbus6 target 0 lun 0 Jan 11 14:21:51 micro2 kernel: pass4: Removable CD-ROM SCSI-2 device Jan 11 14:21:51 micro2 kernel: pass4: Serial Number 1234567890ABCDEF Jan 11 14:21:51 micro2 kernel: pass4: 40.000MB/s transfers Jan 11 14:21:51 micro2 kernel: GEOM: new disk cd0 Jan 11 14:21:51 micro2 kernel: cd0 at umass-sim0 bus 0 scbus6 target 0 lun 0 Jan 11 14:21:51 micro2 kernel: cd0: Removable CD-ROM SCSI-2 device Jan 11 14:21:51 micro2 kernel: cd0: Serial Number 1234567890ABCDEF Jan 11 14:21:51 micro2 kernel: cd0: 40.000MB/s transfers Jan 11 14:21:51 micro2 kernel: cd0: cd present [2177 x 2048 byte records] Jan 11 14:21:51 micro2 kernel: cd0: quirks=0x10<10_BYTE_ONLY> Jan 11 14:21:51 micro2 kernel: pass5 at umass-sim0 bus 0 scbus6 target 0 lun 1 Jan 11 14:21:51 micro2 kernel: pass5: Removable Direct Access SCSI-2 device Jan 11 14:21:51 micro2 kernel: pass5: Serial Number 1234567890ABCDEF Jan 11 14:21:51 micro2 kernel: pass5: 40.000MB/s transfers Jan 11 14:21:51 micro2 kernel: da0 at umass-sim0 bus 0 scbus6 target 0 lun 1 Jan 11 14:21:51 micro2 kernel: da0: Removable Direct Access SCSI-2 device Jan 11 14:21:51 micro2 kernel: da0: Serial Number 1234567890ABCDEF Jan 11 14:21:51 micro2 kernel: da0: 40.000MB/s transfers Jan 11 14:21:51 micro2 kernel: da0: Attempt to query device size failed: NOT READY, Medium not present Jan 11 14:21:51 micro2 kernel: da0: quirks=0x2 Jan 11 14:21:51 micro2 kernel: da0: Delete methods: Jan 11 14:21:51 micro2 kernel: GEOM: new disk da0 Jan 11 14:21:51 micro2 kernel: (da0:umass-sim0:0:0:1): PREVENT ALLOW MEDIUM REMOVAL not supported. Jan 11 14:21:51 micro2 kernel: urndis0: on usbus1 Jan 11 14:21:51 micro2 kernel: ue0: on urndis0 Jan 11 14:21:51 micro2 kernel: ue0: bpf attached Jan 11 14:21:51 micro2 kernel: ue0: Ethernet address: Jan 11 14:21:51 micro2 root: Unknown USB device: vendor 0x19d2 product 0x1403 bus uhub1 Or maybe there is another way of doing it but I haven't played with the huge number of combinations of the quirks to see if some other combo work. I think config index 1 is a micro-SD card reader, which would explain why eject on it does nothing useful. I don't have any other 3g USB sticks so I don't know how other devices are set up and why the skipping of the config index works for them, but for this device it appears to be the wrong thing to do. Gary