From owner-freebsd-usb@FreeBSD.ORG Tue Feb 24 09:32:04 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 794001065768 for ; Tue, 24 Feb 2009 09:32:04 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe11.swipnet.se [212.247.155.65]) by mx1.freebsd.org (Postfix) with ESMTP id D70558FC0C for ; Tue, 24 Feb 2009 09:32:03 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=9CSpTaZppU4A:10 a=jlvoQYuZvwQA:10 a=MXw7gxVQKqGXY79tIT8aFQ==:17 a=8kQB0OdkAAAA:8 a=RmuUiZy9GtIZGqLpx20A:9 a=AVQSH1kJ6Hr5j45RYEsA:7 a=n0cu8qZHjs0vlkWAnB5Ig8MVGGYA:4 a=LY0hPdMaydYA:10 a=9aOQ2cSd83gA:10 Received: from [62.113.132.61] (account mc467741@c2i.net HELO laptop) by mailfe11.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1028304587; Tue, 24 Feb 2009 10:32:01 +0100 From: Hans Petter Selasky To: Kim Culhan Date: Tue, 24 Feb 2009 10:34:29 +0100 User-Agent: KMail/1.9.7 References: <89dbfdc30902231031j4407614vdce09e8e58cdc346@mail.gmail.com> <200902240905.42406.hselasky@c2i.net> <89dbfdc30902240117k7368d60did8bb0e7e6230d5f8@mail.gmail.com> In-Reply-To: <89dbfdc30902240117k7368d60did8bb0e7e6230d5f8@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200902241034.31298.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: reattach 3g0 device: could not allocate new device 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: Tue, 24 Feb 2009 09:32:05 -0000 On Tuesday 24 February 2009, Kim Culhan wrote: > On Tue, Feb 24, 2009 at 3:05 AM, Hans Petter Selasky =20 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 0xc6bc6000 > >> 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: >> 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; quir= ks =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): TE= ST > >> 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 smallst= er > >> kernel: cd0: Removable CD-ROM SCSI-2 device > >> Feb 22 10:38:39 smallster kernel: cd0: 1.000MB/s transfers > >> Feb 22 10:38:39 smallster kernel: cd0: Attempt to query device size > >> failed: NOT READY, Medium not present > >> Feb 22 10:40:27 smallster kernel: g_vfs_done():cd0[READ(offset=3D65536, > >> 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 device > >> 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 command. 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. > > > > --HPS > > The latter case is for the obsolete usb driver but I included it for > information RE > the CD-ROM eject action. > > How would it work in the case of the new usb2 driver? Hi, It works the same like in the old driver, if you unload the u3g module (whi= ch=20 takes around 16 seconds) =2D-HPS