Sébastien Morand
2008-Apr-23 23:16 UTC
Problem with usb mass storage devices : system hang up
:Hi, Two of my usb devices make my system hang up for a few seconds and then my system reboot when I plug them. Here is my configuration: $ uname -a FreeBSD mellba.mayaseb 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 $ dmesg | grep usb usb0: OHCI version 1.0, legacy support usb0: SMM does not respond, resetting usb0: <OHCI (generic) USB controller> on ohci0 usb0: USB revision 1.0 uhub0: <nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1> 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: <NVIDIA nForce4 USB 2.0 controller> on ehci0 usb1: USB revision 2.0 uhub1: <nVidia EHCI root hub, class 9/0, rev 2.00/1.00, addr 1> on usb1 Dmesg about the two devices working fine: $ dmesg | grep ^da da0 at umass-sim0 bus 0 target 0 lun 0 da0: <WD 2500JB External 0108> Fixed Direct Access SCSI-0 device da0: 40.000MB/s transfers da0: 238475MB (488397168 512 byte sectors: 255H 63S/T 30401C) da1 at umass-sim1 bus 1 target 0 lun 0 da1: <USB2.0 CF CardReader 9144> Removable Direct Access SCSI-0 device da1: 40.000MB/s transfers da1: Attempt to query device size failed: NOT READY, Medium not present da2 at umass-sim1 bus 1 target 0 lun 1 da2: <USB2.0 CBO CardReader 9144> Removable Direct Access SCSI-0 device da2: 40.000MB/s transfers da2: Attempt to query device size failed: NOT READY, Medium not present da3 at umass-sim2 bus 2 target 0 lun 0 da3: <LEXAR JD FIREFLY 1100> Removable Direct Access SCSI-0 device da3: 40.000MB/s transfers da3: 3840MB (7864320 512 byte sectors: 255H 63S/T 489C) by the way, I'm not sure what da1 and da2 are, actually I have two card reader in the front of the pc, I think it's what they are, but I never really bothered with them. dmesg at the hang-up time: Apr 23 22:17:48 mellba root: Unknown USB device: vendor 0x07b4 product 0x0105 bus uhub0 Apr 23 22:17:48 mellba kernel: umass2: <OLYMPUS X100,D540Z,C310Z, class 0/0, rev 2.00/1.00, addr 2> 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 Project. 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 California. All rights reserved. Apr 23 22:19:53 mellba kernel: FreeBSD is a registered trademark of The FreeBSD Foundation. Apr 23 22:19:53 mellba kernel: FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 Note : 22:19:53 is the time of the next boot time I got a /var/crash/vmcore.N file but I can't use it doing what is specified in freebsd developper handbook: 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 No such file or directory # kgdb kernel.debug /var/crash/vmcore.0 I try to compile kernel to get information from vmcore but I failed: === [23/04/2008 22:09:14] root@mellba:/usr/src # make buildkernel KERNCONF=GENERIC "Makefile.inc1", line 1034: Malformed conditional (${MK_LIBTHR} != "no"&& ${MK_LIBKSE} != "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 So I have no more idea to find out the problem, hope some will be able to help me. Sebastien