Problem with mass storage usb devices

Sébastien Morand seb.morand at gmail.com
Fri Apr 25 20:16:43 UTC 2008


Hi,

I get a problem with usb mass storage device.

Everytime I plug my camera or my mp3 player, my system hang up a few seconds and 
then reboot. The two devices are fine and running well under WinXP or Linux. (on 
the same computer about linux)

The two devices are USB 2 capable and I have two other devices (key usb and usb 
hard disk) which are running fine.

### Kernel information:
FreeBSD mellba.mayaseb 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 
UTC 2008     root at logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

### My usb system:
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
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

### My usb da* devices:
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

### last kernel message at the reboot 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

### Here is the trace in the kernel:
# kgdb /boot/kernel/kernel.symbols /var/crash/vmcore.1
[GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so: 
Undefined symbol "ps_pglobal_lookup"]
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd".

Unread portion of the kernel message buffer:


Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address	= 0x0
fault code		= supervisor read, page not present
instruction pointer	= 0x20:0x0
stack pointer	        = 0x28:0xe4ab369c
frame pointer	        = 0x28:0xe4ab36dc
code segment		= base 0x0, limit 0xfffff, type 0x1b
			= DPL 0, pres 1, def32 1, gran 1
processor eflags	= interrupt enabled, resume, IOPL = 0
current process		= 12 (swi4: clock sio)
trap number		= 12
panic: page fault
cpuid = 0
Uptime: 52m10s
Physical memory: 1003 MB
Dumping 188 MB: 173 157 141 125 109 93 77 61 45 29 13

#0  doadump () at pcpu.h:195
195	pcpu.h: No such file or directory.
	in pcpu.h
(kgdb) bt
#0  doadump () at pcpu.h:195
#1  0xc0754457 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:409
#2  0xc0754719 in panic (fmt=Variable "fmt" is not available.
) at /usr/src/sys/kern/kern_shutdown.c:563
#3  0xc0a4905c in trap_fatal (frame=0xe4ab365c, eva=0)
     at /usr/src/sys/i386/i386/trap.c:899
#4  0xc0a492e0 in trap_pfault (frame=0xe4ab365c, usermode=0, eva=0)
     at /usr/src/sys/i386/i386/trap.c:812
#5  0xc0a49c8c in trap (frame=0xe4ab365c) at /usr/src/sys/i386/i386/trap.c:490
#6  0xc0a2fc0b in calltrap () at /usr/src/sys/i386/i386/exception.s:139
#7  0x00000000 in ?? ()
Previous frame inner to this frame (corrupt stack?)
(kgdb)

Thanks by advance for any help

Sebastien


More information about the freebsd-usb mailing list