From owner-freebsd-usb@FreeBSD.ORG Thu Feb 26 14:39:59 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 E2004106566C for ; Thu, 26 Feb 2009 14:39:59 +0000 (UTC) (envelope-from w8hdkim@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.174]) by mx1.freebsd.org (Postfix) with ESMTP id B5C7D8FC12 for ; Thu, 26 Feb 2009 14:39:59 +0000 (UTC) (envelope-from w8hdkim@gmail.com) Received: by wf-out-1314.google.com with SMTP id 27so589517wfd.7 for ; Thu, 26 Feb 2009 06:39:59 -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=OMVGFLlb62htzH4/canLC8E+IokZ3hoiGu6fvosZ4YI=; b=kF0qETpYSyIOW7W0iD50SfviCheFhjihibX0bFGFP8iW91Z3VbWwAwDbqc4JBRDa5W VLtQ9wl1NERoUiO3Bs9NzEUiL4HaB9a/lgMLxwkV0QFGmWMQQfSp/efEWf1QoubX5Ijf E2eQQ2XGePNHwLfptKs3KypPZAzlc1k4n7ebc= 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=UgiQEnxnWSMLCPjW+x+r+IFI1Eg8t1uRixuCzN5CgOagXsCiDJzOvMovMrDr5il87P mGY1kqhw4fx/BJdcPsol4H7G9iKAmFo4MeHktOW0qjvvj0HqqWooI44mIBmdk7+NiRwv QBwn0p3UfUD/Gwfe6vXYd+XvesJbNdNOp3fmA= MIME-Version: 1.0 Received: by 10.142.51.4 with SMTP id y4mr710453wfy.39.1235659199257; Thu, 26 Feb 2009 06:39:59 -0800 (PST) In-Reply-To: <200902250800.00365.hselasky@c2i.net> References: <89dbfdc30902241338h2e56af93q5d8fb3905454ea36@mail.gmail.com> <200902250800.00365.hselasky@c2i.net> Date: Thu, 26 Feb 2009 09:39:59 -0500 Message-ID: <89dbfdc30902260639q44372d37xf702b3e023ebb8a5@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 14:40:00 -0000 On Wed, Feb 25, 2009 at 1:59 AM, Hans Petter Selasky wro= te: > On Tuesday 24 February 2009, Kim Culhan wrote: >> On Tue, Feb 24, 2009 at 4:34 AM, Hans Petter Selasky > wrote: >> > On Tuesday 24 February 2009, Kim Culhan wrote: >> >> On Tue, Feb 24, 2009 at 3:05 AM, Hans Petter Selasky >> > >> > wrote: >> >> > On Monday 23 February 2009, Kim Culhan wrote: >> >> >> On Mon, Feb 23, 2009 at 3:56 PM, Hans Petter Selasky >> >> >> >> >> > >> >> > wrote: >> >> >> > On Monday 23 February 2009, Kim Culhan wrote: >> >> >> >> Running 8.0-CURRENT as of 2-22-09 >> >> >> >> >> >> >> >> The 3g0 device is a Novatel U727 EVDO wireless radio. >> >> >> >> >> >> >> >> If the machine boots with the device attached, dmesg reads: >> >> >> >> >> >> >> >> u3g0: on usbus2 >> >> >> >> >> >> >> >> Remove the device and this is logged: >> >> >> >> >> >> >> >> u3g0: at ushub2, port 2, addr 2 (disconnected) >> >> >> >> >> >> >> >> Reattach the device and there is this message: >> >> >> >> >> >> >> >> uhub_reattach_port:414: could not allocate new device! >> >> >> >> >> >> >> >> kernel config has: >> >> >> >> >> >> >> >> device =A0 usb2_serial_3g >> >> >> >> >> >> >> >> Any help is greatly appreciated >> >> >> > >> >> >> > Hi, >> >> >> > >> >> >> > Can you turn on USB HUB debugging: >> >> >> > >> >> >> > sysctl hw.usb2.uhub.debug=3D15 >> >> >> > sysctl hw.usb.uhub.debug=3D15 >> >> >> >> >> >> Sure here is dmesg with sysctl hw.usb2.uhub.debug=3D15 >> >> >> >> >> >> uhub_read_port_status:259: port 2, wPortStatus=3D0x0103, >> >> >> wPortChange=3D0x0000, err=3DUSB_ERR_NORMAL_COMPLETION >> >> >> usb2_transfer_power_ref:1470: Adding type 0 to power state >> >> >> usb2_transfer_power_ref:1483: needs power >> >> >> u3g_huawei_init:278: >> >> >> usb2_alloc_device:1618: Found Huawei auto-install disk! >> >> >> usb2_bus_port_set_device:1334: bus 0xc6733cf0 devices[2] =3D 0xc6b= c6000 >> >> >> ugen2.2: at usbus2 >> >> >> ugen2.2: at usbus2 (disconnected) >> >> >> usb2_bus_port_set_device:1334: bus 0xc6733cf0 devices[2] =3D 0 >> >> >> uhub_reattach_port:414: could not allocate new device! >> >> >> usb2_needs_explore:1345: >> >> >> usb2_bus_powerd:1516: bus=3D0xc670bcf0 >> >> >> usb2_bus_powerd:1599: Recomputing power masks >> >> >> uhub_explore:522: udev=3D0xc6a93000 addr=3D1 >> >> >> >> >> >> With the old usb, this was returned: >> >> >> >> >> >> Feb 22 10:38:37 smallster kernel: ugen2.2: = at >> >> >> usbus2 Feb 22 10:38:37 smallster kernel: umass0: > >> >> Inc. Novatel Wireless CDMA, class 0/0, rev 1.10/0.00, addr 2> on >> >> >> usbus2 Feb 22 10:38:37 smallster kernel: umass0: =A0SCSI over >> >> >> Bulk-Only; quirks =3D 0x0000 Feb 22 10:38:38 smallster kernel: >> >> >> umass0:1:0:-1: Attached to scbus1 Feb 22 10:38:39 smallster kernel= : >> >> >> (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 >> >> >> Feb 22 10:38:39 smallster kernel: (probe0:umass-sim0:0:0:0): CAM >> >> >> Status: SCSI Status Error >> >> >> Feb 22 10:38:39 smallster kernel: (probe0:umass-sim0:0:0:0): SCSI >> >> >> Status: Check Condition >> >> >> Feb 22 10:38:39 smallster kernel: (probe0:umass-sim0:0:0:0): NOT >> >> >> READY asc:3a,0 Feb 22 10:38:39 smallster kernel: >> >> >> (probe0:umass-sim0:0:0:0): Medium not present Feb 22 10:38:39 >> >> >> smallster kernel: >> >> >> (probe0:umass-sim0:0:0:0): Unretryable error Feb 22 10:38:39 >> >> >> smallster kernel: cd0 at umass-sim0 bus 0 target 0 lun 0 Feb 22 >> >> >> 10:38:39 smallster kernel: cd0: Remova= ble >> >> >> CD-ROM SCSI-2 device Feb 22 10:38:39 smallster kernel: cd0: 1.000M= B/s >> >> >> transfers >> >> >> Feb 22 10:38:39 smallster kernel: cd0: Attempt to query device siz= e >> >> >> failed: NOT READY, Medium not present >> >> >> Feb 22 10:40:27 smallster kernel: g_vfs_done():cd0[READ(offset=3D6= 5536, >> >> >> length=3D8192)]error =3D 5 >> >> >> Feb 22 10:43:39 smallster kernel: umass0: at ushub2, port 1, addr = 2 >> >> >> (disconnected) >> >> >> Feb 22 10:43:39 smallster kernel: (cd0:umass-sim0:0:0:0): lost dev= ice >> >> >> Feb 22 10:43:39 smallster kernel: (cd0:umass-sim0:0:0:0): removing >> >> >> device entry Feb 22 10:43:39 smallster kernel: ugen2.2: > >> >> Wireless Inc.> at usbus2 (disconnected) >> >> >> >> >> >> The device initially attempts to simulate the presence of a cdrom. >> >> >> >> >> >> Maybe this is creating the problem for usb2. >> >> >> >> >> >> -kim >> >> > >> >> > Hi Kim, >> >> > >> >> > In the latter case you don't have the U3G driver loaded. The U3G >> >> > driver will detect the CD-ROM and send an eject or propritary comma= nd. >> >> > After some while the device should show up like a u3g0 device. The >> >> > error message you get is like it should be when CD-ROM detection is >> >> > enabled. >> >> AFAIK there is no seperate CD-ROM detection which can be enabled/disable= d. >> >> The device does not show up as a u3g0 device unless the u3g module is >> loaded after the system is booted with _u3g commented out of the kernel >> config_ >> >> After boot: >> >> kldload u3g >> >> returns >> >> u3g0: on usbus2 >> u3g0: Found 4 ports. >> >> If I remove the usb device it reports: >> >> u3g0: at ushub2, port 2, addr 2 (disconnected) >> umass0: at ushub2, port 2, addr 2 (disconnected) >> (da0:umass-sim0:0:0:0): lost device >> (da0:umass-sim0:0:0:0): removing device entry >> ugen2.2: at usbus2 (disconnected) >> >> If I reattach the device it reports: >> >> u3g_huawei_init:278: >> usb2_alloc_device:1618: Found Huawei auto-install disk! >> ugen2.2: at usbus2 >> ugen2.2: at usbus2 (disconnected) >> uhub_reattach_port:414: could not allocate new device! >> > > If your device does not re-appear within 10 seconds, then try this: > > 1) Add a quirk: > > kldload usb_quirk > kldload usb2_quirk > > usbconfig add_dev_quirk_vplh vid pid 0 0xFFFF UQ_CFG_INDEX_0 > > Replace vid and pid by the info provided by "usbconfig -u 2 -a 2 > dump_device_desc". > > 2) Dump USB configuration: > > usbconfig -u 2 -a 2 dump_curr_config_desc running this on 8-CURRENT of Feb 25 2008 ~ 2100 UTC # usbconfig -u 2 -a 2 dump_device_desc returns No device match or lack of permissions. # usbconfig -u 2 -a 2 dump_curr_config_desc returns the same Also, at this point booting without u3g in the kernel then inserting the Novatel U727 device returns the usual output relating to the cd0 device: 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 [deleted] Then on loading the u3g module: kldload u3g Now returns nothing, no output to dmesg kldunload u3g returns a LOR and backtrace: lock order reversal: 1st 0xc0d66da0 kernel linker (kernel linker) @ kern/kern_linker.c:1059 2nd 0xc0d68804 sysctl lock (sysctl lock) @ kern/kern_sysctl.c:250 KDB: stack backtrace: db_trace_self_wrapper(c0c1af34,e9595ac8,c0891525,4,c0c16550,...) at db_trace_self_wrapper+0x26 kdb_backtrace(4,c0c16550,c6523740,c6521ad0,e9595b24,...) at kdb_backtrace+0= x29 _witness_debugger(c0c1dc29,c0d68804,c0c18a34,c6521ad0,c0c18953,...) at _witness_debugger+0x25 witness_checkorder(c0d68804,9,c0c1894a,fa,0,...) at witness_checkorder+0x83= 9 _sx_xlock(c0d68804,0,c0c1894a,fa,c7164b80,...) at _sx_xlock+0x85 sysctl_ctx_free(c7164bcc,c7164b80,e9595bac,c0879d35,c7164b80,...) at sysctl_ctx_free+0x30 device_sysctl_fini(c7164b80,0,c0c1d176,c6b23ac0,c6ae9800,...) at device_sysctl_fini+0x1a device_detach(c7164b80,40088,c70ebb80,1,c717215c,...) at device_detach+0x1f= 5 devclass_delete_driver(c66398c0,c7172170,c0c16366,109,0,...) at devclass_delete_driver+0x91 driver_module_handler(c70ebbc0,1,c717215c,109,0,...) at driver_module_handler+0xd5 module_unload(c70ebbc0,c0c148cf,273,270,c0837376,...) at module_unload+0x43 linker_file_unload(c716c800,0,c0c148cf,423,c716f000,...) at linker_file_unload+0x15e kern_kldunload(c6b7d6c0,3,0,e9595d2c,c0b55ca3,...) at kern_kldunload+0xd5 kldunloadf(c6b7d6c0,e9595cf8,8,c0c1ec53,c0cfc720,...) at kldunloadf+0x2b syscall(e9595d38) at syscall+0x2a3 Xint0x80_syscall() at Xint0x80_syscall+0x20 --- syscall (444, FreeBSD ELF32, kldunloadf), eip =3D 0x280ce6ab, esp =3D 0xbfbfe48c, ebp =3D 0xbfbfecd8 --- Hope this helps regards -kim