From owner-freebsd-questions@FreeBSD.ORG Wed Apr 23 22:38:33 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 CA09E106566B for ; Wed, 23 Apr 2008 22:38:33 +0000 (UTC) (envelope-from seb.morand@gmail.com) Received: from rn-out-0910.google.com (rn-out-0910.google.com [64.233.170.190]) by mx1.freebsd.org (Postfix) with ESMTP id 7816B8FC25 for ; Wed, 23 Apr 2008 22:38:33 +0000 (UTC) (envelope-from seb.morand@gmail.com) Received: by rn-out-0910.google.com with SMTP id j40so1335552rnf.12 for ; Wed, 23 Apr 2008 15:38:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:disposition-notification-to:date:from:user-agent:mime-version:to:subject:references:in-reply-to:x-enigmail-version:content-type; bh=dhEihT0ghMBYoV6GAmh87VR0IFdKib+/Q5lFTsSM7wQ=; b=NSvT8vI0b83n95Bl9UAbNX5J1MCu2o8ngBEhALIRzUiOjN6aECKRDtHYbuJpJvkWbbGkDXQcGVRm8Q9SQu2TOzDCO6OT+Ont49flqA7KxbpirNU1ZRJWofAU6lHlG0nhJBpA0QGYegTTurKdMNxFIV/0eGF5MtvjlCl7XIUUYiE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:disposition-notification-to:date:from:user-agent:mime-version:to:subject:references:in-reply-to:x-enigmail-version:content-type; b=MqYODLoi5O5lMNb4wJk3bVTLeXTkXKNg4+7HMvMeeLEd6eP4ZKbPtbKfO/kcqVm63Bp0/SpEA4p8G/w6vhL5y9Yy3dpD9BUill3JPQCpQLtrX/PJe1sJ9w7PTlskaai47N2pxV0a5Vt2+RCbqu/XVjwWBoFY9JES2djz4D3djsE= Received: by 10.66.241.13 with SMTP id o13mr9058793ugh.57.1208990311548; Wed, 23 Apr 2008 15:38:31 -0700 (PDT) Received: from mellba.mayaseb ( [41.208.161.77]) by mx.google.com with ESMTPS id m38sm238901ugd.44.2008.04.23.15.38.28 (version=SSLv3 cipher=RC4-MD5); Wed, 23 Apr 2008 15:38:30 -0700 (PDT) Message-ID: <480FBA97.7020709@gmail.com> Date: Wed, 23 Apr 2008 22:39:19 +0000 From: =?ISO-8859-1?Q?S=E9bastien_Morand?= User-Agent: Thunderbird 2.0.0.12 (X11/20080406) MIME-Version: 1.0 To: =?ISO-8859-1?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> In-Reply-To: <20080422165235.GA38265@slackbox.xs4all.nl> X-Enigmail-Version: 0.95.6 Content-Type: multipart/mixed; boundary="------------090709050106060101050906" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: 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: Wed, 23 Apr 2008 22:38:33 -0000 This is a multi-part message in MIME format. --------------090709050106060101050906 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable > In the future, please don't reply on top, but on the bottom of the orig= inal. No problem > The default location is /var/crash. Look for files named vmcore.N, wher= e > N is a number. Yes there is. > What kind of USB chip do you have on the motherboard? Try 'dmesg | grep= > ^usb' and post the output. $ 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 > It could be a hardware problem, or a bug. 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. > 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; I get this: Apr 23 22:17:48 mellba root: Unknown USB device: vendor 0x07b4 product 0x= 0105 bus uhub0 Apr 23 22:17:48 mellba kernel: umass2: on uhub0 Apr 23 22:19:53 mellba syslogd: kernel boot file is /boot/kernel/kernel Apr 23 22:19:53 mellba kernel: Copyright (c) 1992-2008 The FreeBSD Projec= t. Apr 23 22:19:53 mellba kernel: Copyright (c) 1979, 1980, 1983, 1986, 1988= , 1989, 1991, 1992, 1993, 1994 Apr 23 22:19:53 mellba kernel: The Regents of the University of Californi= a. All rights reserved. Apr 23 22:19:53 mellba kernel: FreeBSD is a registered trademark of The F= reeBSD Foundation. Apr 23 22:19:53 mellba kernel: FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:5= 2 UTC 2008 So My USB device has been seen and then nothing until the first message o= f the next boot > Apr 22 18:24:45 slackbox kernel: umass0: on uhub4 > Apr 22 18:24:45 slackbox kernel: da0 at umass-sim0 bus 0 target 0 lun 0= > Apr 22 18:24:45 slackbox kernel: da0: Rem= ovable Direct Access SCSI-2 device=20 > Apr 22 18:24:45 slackbox kernel: da0: 40.000MB/s transfers > Apr 22 18:24:45 slackbox kernel: da0: 250MB (512000 512 byte sectors: 6= 4H 32S/T 250C) Actually it's quite funny because I have a hard disk on my da0 which is w= orking 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. It's plugged at boot time. I'm just thinking that I forget mention some stuff ... I activated the hot plug using hald et dbus (using xfce4): Here is my PolicyKit.conf I modified for my need: $ more PolicyKit.conf User sebastien is a member if wheel, so hot plug should be working (and i= t is=20 with my usb key and my usb hard disk ... it's only my mp3 player and my c= amera=20 which make my pc hanging up). I try do disable both these services and the result is the same. > 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). 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 But ... I don't have this directory since I don't compile my kernel, so I= try to 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") "Makefile.inc1", line 1036: if-less elif "Makefile.inc1", line 1038: if-less elif "Makefile.inc1", line 1040: if-less endif make: fatal errors encountered -- cannot continue > Post your question and the information that you've gathered to the > -stable mailing list. There are more people there who are familiar with= > the kernel internals. Thank I will do so. S=E9bastien --------------090709050106060101050906--