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: <ZTE,Incorporated> 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: <ZTE,Incorporated> 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: <ZTE,Incorporated> at usbus1 
(disconnected)
Jan 11 14:21:50 micro2 kernel: ugen1.2: <ZTE,Incorporated> at usbus1
Jan 11 14:21:50 micro2 kernel: umass0: <Mass Storage> 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: <ZTE USB SCSI CD-ROM 2.31> 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: <ZTE USB SCSI CD-ROM 2.31> 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: <ZTE MMC Storage 2.31> 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: <ZTE MMC Storage 2.31> 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<NO_6_BYTE>
Jan 11 14:21:51 micro2 kernel: da0: Delete methods: <NONE(*)>
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: <RNDIS Communications Control> on usbus1
Jan 11 14:21:51 micro2 kernel: ue0: <USB Ethernet> on urndis0
Jan 11 14:21:51 micro2 kernel: ue0: bpf attached
Jan 11 14:21:51 micro2 kernel: ue0: Ethernet address: <redacted>
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
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "[email protected]"

Reply via email to