From owner-freebsd-questions@FreeBSD.ORG Thu Apr 24 16:43:41 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 495461065672 for ; Thu, 24 Apr 2008 16:43:41 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr12.xs4all.nl (smtp-vbr12.xs4all.nl [194.109.24.32]) by mx1.freebsd.org (Postfix) with ESMTP id E8BDC8FC0C for ; Thu, 24 Apr 2008 16:43:40 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr12.xs4all.nl (8.13.8/8.13.8) with ESMTP id m3OGhcTW053581; Thu, 24 Apr 2008 18:43:39 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 486ECB829; Thu, 24 Apr 2008 18:43:38 +0200 (CEST) Date: Thu, 24 Apr 2008 18:43:38 +0200 From: Roland Smith To: =?iso-8859-15?Q?S=E9bastien?= Morand Message-ID: <20080424164338.GA51453@slackbox.xs4all.nl> Mail-Followup-To: =?iso-8859-15?Q?S=E9bastien?= Morand , freebsd-questions@freebsd.org References: <480D94E5.4060506@gmail.com> <20080422153442.GB36675@slackbox.xs4all.nl> <16d3abd60804220842t5339f965o1d62a15f001a813f@mail.gmail.com> <20080422165235.GA38265@slackbox.xs4all.nl> <480FBA97.7020709@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="2fHTh5uZTiUOsy+g" Content-Disposition: inline In-Reply-To: <480FBA97.7020709@gmail.com> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.17 (2007-11-01) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-questions@freebsd.org Subject: Re: Hangup on USB mass device X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Apr 2008 16:43:41 -0000 --2fHTh5uZTiUOsy+g Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 23, 2008 at 10:39:19PM +0000, S=E9bastien Morand wrote: >> What kind of USB chip do you have on the motherboard? Try 'dmesg | grep >> ^usb' and post the output. >=20 > $ dmesg | grep usb > usb0: OHCI version 1.0, legacy support > usb0: SMM does not respond, resetting > usb0: on ohci0 > usb0: USB revision 1.0 > uhub0: on usb0 > usb1: waiting for BIOS to give up control > usb1: timed out waiting for BIOS > usb1: EHCI version 1.0 > usb1: companion controller, 4 ports each: usb0 > usb1: on ehci0 > usb1: USB revision 2.0 > uhub1: on usb1 >=20 >> It could be a hardware problem, or a bug. >=20 > Hardware is fine under linux (same machine) or windows on my wife's lapto= p (no > pb with the USB devices), so I don't think so. >=20 >> Does anything appear in the dmesg output when you try to plug in a USB >> device? look in /var/log/messages, at the correct time. >> E.g, the following appears when I plug in a USB flash drive; >=20 > I get this: > Apr 23 22:17:48 mellba root: Unknown USB device: vendor 0x07b4 product 0x= 0105 > bus uhub0 According to the file /usr/src/sys/dev/usb/usbdevs on my 7-STABLE system, this is a C-700 camera, which should be recognized. > Apr 23 22:17:48 mellba kernel: umass2: 2.00/1.00, addr 2> on uhub0 And it does not seem to be recognized properly. > So My USB device has been seen and then nothing until the first message o= f the > next boot OK, so it goes wrong before the usb subsystem hands the camera off as a da device.=20 This is uhub0, so it's recognized as a USB 1.0 device. Is it USB 2.0 capable > Actually it's quite funny because I have a hard disk on my da0 which > is working fine: > da0 at umass-sim0 bus 0 target 0 lun 0 > da0: Fixed Direct Access SCSI-0 device > da0: 40.000MB/s transfers > da0: 238475MB (488397168 512 byte sectors: 255H 63S/T 30401C) > GEOM_LABEL: Label for provider da0s1 is msdosfs/My Book. =46rom the transfer rate I infer that this is a USB 2.0 device. It should be connected to uhub1. > User sebastien is a member if wheel, so hot plug should be working (and i= t=20 > is with my usb key and my usb hard disk ... it's only my mp3 player and m= y=20 > camera which make my pc hanging up). Is the mp3 player a usb 1.0 device as well? In that case the trouble is probably with the ohci driver, since the USB 2.0 devices seem to work well. > I try do disable both these services and the result is the same. >=20 >> Seeing which of these lines appear or not makes it easier to track down >> the bug. >>=20 >> Try to read the crashdump with the kernel debugger, as described in >> =A710.2 of the FreeBSD Developers' Handbook. Obtain a so-called >> backtrace. (using the 'bt' command in the debugger). >=20 > I can't do that. It required a built kernel, didn't it? > The handbook said to launch: > # cd /usr/obj/usr/src/sys/GENERIC > # kgdb kernel.debug /var/crash/vmcore.0 >=20 > But ... I don't have this directory since I don't compile my kernel, so I= try to On 7.x you should have /boot/kernel/kernel.symbols, which is the debugging kernel (/boot/kernel/kernel is the regular, stripped, kernel). > compile the generic kernel: > Here is what I read trying to build the generic kernel: > =3D=3D=3D [23\04\2008 22:09:14] root@mellba:/usr/src > # make buildkernel KERNCONF=3DGENERIC > "Makefile.inc1", line 1034: Malformed conditional (${MK_LIBTHR} !=3D "no"= && > ${MK_LIBKSE} !=3D "no") There should be a space between "no" and &&.=20 Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --2fHTh5uZTiUOsy+g Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.8 (FreeBSD) iEYEARECAAYFAkgQuLoACgkQEnfvsMMhpyWLnACglQWRs3MdykhSCx/G4cGDXivF sXMAoK0I5+BzKG2DCJatpP5re8qovnQC =HZsu -----END PGP SIGNATURE----- --2fHTh5uZTiUOsy+g--