From owner-freebsd-usb@FreeBSD.ORG Thu Feb 26 22:25:47 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 5B228106566B for ; Thu, 26 Feb 2009 22:25:47 +0000 (UTC) (envelope-from w8hdkim@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.168]) by mx1.freebsd.org (Postfix) with ESMTP id 2DE458FC1A for ; Thu, 26 Feb 2009 22:25:46 +0000 (UTC) (envelope-from w8hdkim@gmail.com) Received: by wf-out-1314.google.com with SMTP id 27so769202wfd.7 for ; Thu, 26 Feb 2009 14:25:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=EuQk/1sn1YUY5BAM2yCVJ8M4x5p25jVofOs5SrD5GfY=; b=rX0rRqXuXkejREmJzpBVjYvz3DIoZBtHemfODP4eg9meeV31pj8u/PpqMxy8guYt1i U++jQJ4Ss3eirtpgROk11ZG2Uu3wORUcZ7Wva2e70QCWH/BahlJUC2c5dUYyhzcWwcT8 pc2aZGFmS6HLCBXg55WQcgGZOFw4kxY0cNqXM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=QHCjPPLnpzU5liVG50eITuRKEPIg6kMhX6h1k4VJ6qsXoLyVh0TlXR1E2LkfWlyf23 3A7T+lWUowtJkzVNf6/kpu8NH0Vcz04GKBKsdLqzKFx4NK7uDpzDO6Omu7g2PqddynfE oObKwpq3GVKw0NijP2BAawcxld3hjFmkGat8M= MIME-Version: 1.0 Received: by 10.143.8.17 with SMTP id l17mr882772wfi.173.1235687146679; Thu, 26 Feb 2009 14:25:46 -0800 (PST) In-Reply-To: <200902262140.52560.hselasky@c2i.net> References: <89dbfdc30902241338h2e56af93q5d8fb3905454ea36@mail.gmail.com> <200902261622.17677.hselasky@c2i.net> <89dbfdc30902261228k1e56e18dufb8caa46ef663747@mail.gmail.com> <200902262140.52560.hselasky@c2i.net> Date: Thu, 26 Feb 2009 17:25:46 -0500 Message-ID: <89dbfdc30902261425p7f933721sfdf47099fae2ef0a@mail.gmail.com> From: Kim Culhan To: Hans Petter Selasky Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-usb@freebsd.org Subject: Re: Novatel U727 not recognized 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: Thu, 26 Feb 2009 22:25:47 -0000 On Thu, Feb 26, 2009 at 3:40 PM, Hans Petter Selasky wro= te: > On Thursday 26 February 2009, Kim Culhan wrote: >> On Thu, Feb 26, 2009 at 10:22 AM, Hans Petter Selasky > wrote: >> > On Thursday 26 February 2009, Kim Culhan wrote: >> >> On Wed, Feb 25, 2009 at 1:59 AM, Hans Petter Selasky > >> usb2_test_autoinstall:559: Eject CD command status: >> USB_ERR_NORMAL_COMPLETION usb2_alloc_device:1662: Found Huawei auto-inst= all >> disk! >> ugen2.2: at usbus2 >> ugen2.2: at usbus2 (disconnected) >> uhub_reattach_port:414: could not allocate new device! > > And if you do like this: > > boot kernel without u3g loaded. > > When kernel is booted, and card is plugged in, load u3g. What does it out= put > then? There is no change now when loading the u3g module. u3g.c here is now svn commit: r188989 $FreeBSD: src/sys/dev/usb/serial/u3g.c,v 1.2 2009/02/24 05:35:48 thompsa Ex= p $ > I think that there might be a USB port race. Could you try editing: > > /sys/dev/usb/usb_device.c > > Lookup: > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0} else if (usb2_test_huawei_autoinst_p(ude= v, &uaa) =3D=3D 0) { > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0DPRINTFN(0, "Found Huawei = auto-install disk!\n"); > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0err =3D USB_ERR_STALLED; = =A0/* fake an error */ > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0} > > Change it into: > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0} else if (usb2_test_huawei_autoinst_p(ude= v, &uaa) =3D=3D 0) { > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0DPRINTFN(0, "Found Huawei = auto-install disk!\n"); > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0err =3D usb2_set_config_index(udev, USB_UN= CONFIG_INDEX); > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0err =3D 0; /* force success */ > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0} > > And recompile kernel or only usb_core module. Changed as above, dmesg after attachment of device then loading u3g follows. ugen2.2: at usbus2 umass0: on usbus2 umass0: SCSI over Bulk-Only; quirks =3D 0x0000 umass0:1:0:-1: Attached to scbus1 (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 (probe0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (probe0:umass-sim0:0:0:0): SCSI Status: Check Condition (probe0:umass-sim0:0:0:0): NOT READY asc:3a,0 (probe0:umass-sim0:0:0:0): Medium not present (probe0:umass-sim0:0:0:0): Unretryable error cd0 at umass-sim0 bus 0 target 0 lun 0 cd0: Removable CD-ROM SCSI-2 device cd0: 1.000MB/s transfers cd0: Attempt to query device size failed: NOT READY, Medium not present (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 9 e0 0 0 1 0 (cd0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI Status: Check Condition (cd0:umass-sim0:0:0:0): UNIT ATTENTION asc:0,0 (cd0:umass-sim0:0:0:0): No additional sense information (cd0:umass-sim0:0:0:0): Retrying Command (per Sense Data) (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 9 e0 0 0 1 0 (cd0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI Status: Check Condition (cd0:umass-sim0:0:0:0): UNIT ATTENTION asc:0,0 (cd0:umass-sim0:0:0:0): No additional sense information (cd0:umass-sim0:0:0:0): Retrying Command (per Sense Data) (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 9 e0 0 0 1 0 (cd0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI Status: Check Condition (cd0:umass-sim0:0:0:0): UNIT ATTENTION asc:0,0 (cd0:umass-sim0:0:0:0): No additional sense information (cd0:umass-sim0:0:0:0): Retrying Command (per Sense Data) (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 9 e0 0 0 1 0 (cd0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI Status: Check Condition (cd0:umass-sim0:0:0:0): UNIT ATTENTION asc:0,0 (cd0:umass-sim0:0:0:0): No additional sense information (cd0:umass-sim0:0:0:0): Retrying Command (per Sense Data) (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 9 e0 0 0 1 0 (cd0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI Status: Check Condition (cd0:umass-sim0:0:0:0): UNIT ATTENTION asc:0,0 (cd0:umass-sim0:0:0:0): No additional sense information (cd0:umass-sim0:0:0:0): Retries Exhausted (cd0:umass-sim0:0:0:0): cddone: got error 0x6 back (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 9 fc 0 0 1 0 (cd0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI Status: Check Condition (cd0:umass-sim0:0:0:0): UNIT ATTENTION asc:0,0 (cd0:umass-sim0:0:0:0): No additional sense information (cd0:umass-sim0:0:0:0): Retrying Command (per Sense Data) (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 9 fc 0 0 1 0 (cd0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI Status: Check Condition (cd0:umass-sim0:0:0:0): UNIT ATTENTION asc:0,0 (cd0:umass-sim0:0:0:0): No additional sense information (cd0:umass-sim0:0:0:0): Retrying Command (per Sense Data) (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 9 fc 0 0 1 0 (cd0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI Status: Check Condition (cd0:umass-sim0:0:0:0): UNIT ATTENTION asc:0,0 (cd0:umass-sim0:0:0:0): No additional sense information (cd0:umass-sim0:0:0:0): Retrying Command (per Sense Data) (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 9 fc 0 0 1 0 (cd0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI Status: Check Condition (cd0:umass-sim0:0:0:0): UNIT ATTENTION asc:0,0 (cd0:umass-sim0:0:0:0): No additional sense information (cd0:umass-sim0:0:0:0): Retrying Command (per Sense Data) (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 9 fc 0 0 1 0 (cd0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI Status: Check Condition (cd0:umass-sim0:0:0:0): UNIT ATTENTION asc:0,0 (cd0:umass-sim0:0:0:0): No additional sense information (cd0:umass-sim0:0:0:0): Retries Exhausted (cd0:umass-sim0:0:0:0): cddone: got error 0x6 back -kim