Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Oct 2006 17:40:22 -0400
From:      "Jim Stapleton" <stapleton.41@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   USB Mass Storage stopped working, help requested
Message-ID:  <80f4f2b20610141440m66306927vc99186c9176a2a4f@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
It used to work on this machine, the kernel/world has not been
recompiled/reinstalled since then. However, A USB drive that used to
work (and still works in windows) no longer works in FreeBSD. When I
plug in the drive, the /dev/da* devices do not show up. The system is
running 6.1.

The handbook says I need these:
device scbus
device da
device pass
device uhci
device ohci
device usb
device umass


kldstat shows this:
 1   12 0xc0400000 51e030   kernel
 2    1 0xc091f000 1adb8    linux.ko
 3    1 0xc093a000 4d24     acpi_video.ko
 4    4 0xc093f000 597ac    acpi.ko
 5    1 0xc0999000 3b58     acpi_toshiba.ko
 6    2 0xc3803000 9000     ibcs2.ko
 7    1 0xc3810000 3000     ibcs2_coff.ko
 8    1 0xc3df7000 d000     msdosfs.ko


Looking for the modules, I find:
sjss@aragorn 17:29:05 (0) /usr/src > ls /boot/kernel | grep 'scbus\.'
sjss@aragorn 17:29:10 (0) /usr/src > ls /boot/kernel | grep 'da\.'
coda.ko
ida.ko
snd_hda.ko
sjss@aragorn 17:29:12 (0) /usr/src > ls /boot/kernel | grep 'pass\.'
sjss@aragorn 17:29:26 (0) /usr/src > ls /boot/kernel | grep 'uhci\.'
sjss@aragorn 17:29:30 (0) /usr/src > ls /boot/kernel | grep 'ohci\.'
sjss@aragorn 17:29:32 (0) /usr/src > ls /boot/kernel | grep 'usb\.'
usb.ko
sjss@aragorn 17:29:43 (0) /usr/src > ls /boot/kernel | grep 'umass\.'
umass.ko


Scanning dmesg for usb, I get:
sjss@aragorn 17:32:22 (0) /usr/src > dmesg | grep usb
usb0: <UHCI (generic) USB controller> on uhci0
usb0: USB revision 1.0
usb1: <UHCI (generic) USB controller> on uhci1
usb1: USB revision 1.0
usb2: <UHCI (generic) USB controller> on uhci2
usb2: USB revision 1.0
usb3: <UHCI (generic) USB controller> on uhci3
usb3: USB revision 1.0
usb4: EHCI version 1.0
usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3
usb4: <Intel 82801GB/R (ICH7) USB 2.0 controller> on ehci0
usb4: USB revision 2.0


The results from usbdevs:
sjss@aragorn 17:34:11 (0) /usr/src > sudo usbdevs
addr 1: UHCI root hub, Intel
addr 1: UHCI root hub, Intel
addr 1: UHCI root hub, Intel
 addr 2: USB-PS/2 Optical Mouse, Logitech
addr 1: UHCI root hub, Intel
addr 1: EHCI root hub, Intel
 addr 2: iAUDIO X5, Cowon Systems, Inc.





What is the best way to fix this without recompiling the kernel? I
thought about compiling the drivers in the source tree individually:
sjss@aragorn 17:37:13 (0) /sys > cd /usr/src; find . -iname '*da\.*'
./cam/scsi/scsi_da.c
./cam/scsi/scsi_da.h
./coda/coda.h
./dev/ida/ida.c

but I could not do a make in the scsi or cam directories. "make scsi"
gave me a "don't know how to make" class of error, and "make cam" gave
me an error saying cam is up to date.

Thanks,
-Jim Stapleton



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?80f4f2b20610141440m66306927vc99186c9176a2a4f>