From owner-freebsd-usb@FreeBSD.ORG Mon Jun 9 18:18:51 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 97B3021D for ; Mon, 9 Jun 2014 18:18:51 +0000 (UTC) Received: from mail-wi0-x235.google.com (mail-wi0-x235.google.com [IPv6:2a00:1450:400c:c05::235]) (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 265D322C1 for ; Mon, 9 Jun 2014 18:18:51 +0000 (UTC) Received: by mail-wi0-f181.google.com with SMTP id n3so2084550wiv.2 for ; Mon, 09 Jun 2014 11:18:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=ebcaYpEjjzTndOFHd4MQmu6/T5z4L6uYqsabSHfWowI=; b=kPnop0p/zemzW4jIA7hg0D6pq7XPMCYK1ra/ddzyeSW+2LqtAms+jMHh/nYni/Vc5T Vnv6bEAyhX6D9EL4ZUYVk84A4iaqRgo0XoC+f2EbIT5K5HDaEWT98GYZcqxvClC0SO4T RgevzE1RsqhSYDQeARhx8DdAzueKZsacPeBmr9uEsNQyo1tGiKdjGzPCqzr30eGgkxz7 K2N0tEmXRQlXoQymsuAlj6s+RqwxTyyZwESVcX4hR9SIgimtA7T5eGseUlpGTCGobmlh iI0i9ulswWYTB8wvfbtOUSL8kQC+n3wvoAOyv3CwOppMRraG6uwBZ52YS/kZ6ci49Cvv 5Ugw== MIME-Version: 1.0 X-Received: by 10.194.175.106 with SMTP id bz10mr6233527wjc.96.1402337929258; Mon, 09 Jun 2014 11:18:49 -0700 (PDT) Received: by 10.194.166.195 with HTTP; Mon, 9 Jun 2014 11:18:49 -0700 (PDT) Date: Mon, 9 Jun 2014 19:18:49 +0100 Message-ID: Subject: Quirks required to remove 6 minute CAM status: CCB error with ZTE-MF730M From: Philip Guyton To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jun 2014 18:18:51 -0000 There is a 6 minute delay when booting with ZTE-MF730M inserted or when inserting in to pfsense 2.1.3 (FreeBSD 8.3) & pfsense 2.2 (FreeBSD 10). With a clean vanilla FreeBSD install there is no boot hold-up but the delay in device recognition / usability is the same and the log entries still occur only spread out over the boot. no firewire on this machine. uname -a FreeBSD pfsensea.lan 10.0-STABLE FreeBSD 10.0-STABLE #0 35d2d8e(HEAD)-dirty: Tue Apr 8 21:02:38 CDT 2014 root@builder-10-0-b3-i386:/usr/obj.pfSense/usr/pfSensesrc/src/sys/pfSense_SMP.10 i386 dmesg | head -n 17 Copyright (c) 1992-2014 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 10.0-STABLE #0 35d2d8e(HEAD)-dirty: Tue Apr 8 21:02:38 CDT 2014 root@builder-10-0-b3-i386:/usr/obj.pfSense/usr/pfSensesrc/src/sys/pfSense_SMP.10 i386 FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610 CPU: Intel(R) Celeron(R) M processor 1.40GHz (1400.08-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x6d8 Family = 0x6 Model = 0xd Stepping = 8 Features=0xafe9fbff AMD Features=0x100000 real memory = 2147483648 (2048 MB) avail memory = 2041737216 (1947 MB) Event timer "LAPIC" quality 400 ACPI APIC Table: MADT: Forcing active-low polarity and level trigger for SCI ioapic0 irqs 0-23 on motherboard During Bootup or insertion (6 min delay) usb_alloc_device: Found possible auto-install disk (trying next config) ugen2.2: at usbus2 umass0: on usbus2 umass0: SCSI over Bulk-Only; quirks = 0x0000 umass0: Get Max Lun not supported (USB_ERR_STALLED) umass0:2:0:-1: Attached to scbus2 ugen1.2: at usbus1 uftdi0: on usbus1 run_interrupt_driven_hooks: still waiting after 60 seconds for xpt_config (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00 (probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (probe0:umass-sim0:0:0:0): Retrying command . ..repeating . run_interrupt_driven_hooks: still waiting after 300 seconds for xpt_config (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00 (probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (probe0:umass-sim0:0:0:0): Error 5, Retries exhausted then continues booting normally. I have found that the following Quirks avoid the above errors and render the ZTE-MF730M DC-HSDPA 42Mbps 3G dongle usable via if_cdce.ko once it has been mode switched. usbconfig add_dev_quirk_vplh 0x19d2 0x1420 0xf0f7 0xf0f7 UQ_MSC_NO_GETMAXLUN usbconfig add_dev_quirk_vplh 0x19d2 0x1420 0xf0f7 0xf0f7 UQ_MSC_NO_INQUIRY It can be mode switched to cdce mode and used successfully by executing:- usbconfig dump_all_config_desc usbconfig dump_all_config_desc usbconfig dump_all_config_desc Is there any way I can add these quirks to be effective during boot to avoid this 6 minute boot delay. Thank you for your attention and I hope this tiny find helps someone. Please let me know if there is any other information I can provide or testing that I can do to get this dongle working properly in FreeBSD.