USB Mass Storage stopped working, help requested

2006-10-14 Thread Jim Stapleton

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 0xc040 51e030   kernel
21 0xc091f000 1adb8linux.ko
31 0xc093a000 4d24 acpi_video.ko
44 0xc093f000 597acacpi.ko
51 0xc0999000 3b58 acpi_toshiba.ko
62 0xc3803000 9000 ibcs2.ko
71 0xc381 3000 ibcs2_coff.ko
81 0xc3df7000 d000 msdosfs.ko


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


Scanning dmesg for usb, I get:
[EMAIL PROTECTED] 17:32:22 (0) /usr/src > dmesg | grep usb
usb0:  on uhci0
usb0: USB revision 1.0
usb1:  on uhci1
usb1: USB revision 1.0
usb2:  on uhci2
usb2: USB revision 1.0
usb3:  on uhci3
usb3: USB revision 1.0
usb4: EHCI version 1.0
usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3
usb4:  on ehci0
usb4: USB revision 2.0


The results from usbdevs:
[EMAIL PROTECTED] 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:
[EMAIL PROTECTED] 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
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: USB Mass Storage stopped working, help requested

2006-10-15 Thread Erik Norgaard

Jim Stapleton wrote:


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.


When you plug in the USB drive, lines should be appended to the dmesg of 
the kernel identifying the device - or any errors. Please post that.



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


You may need ehci if this is USB 2.0, but I think it would otherwise 
fall back on either ohci or uhci.



Scanning dmesg for usb, I get:
[EMAIL PROTECTED] 17:32:22 (0) /usr/src > dmesg | grep usb
usb0:  on uhci0
usb0: USB revision 1.0
usb1:  on uhci1
usb1: USB revision 1.0
usb2:  on uhci2
usb2: USB revision 1.0
usb3:  on uhci3
usb3: USB revision 1.0
usb4: EHCI version 1.0
usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3
usb4:  on ehci0
usb4: USB revision 2.0


See comment above on dmesg. You don't get all the relevant info by 
grepping for usb.



The results from usbdevs:
[EMAIL PROTECTED] 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.


Is that with the device plugged in? If so, seems logical that there is 
no device in /dev because it is not found.


Cheers, Erik

--
Ph: +34.666334818  web: http://www.locolomo.org
X.509 Certificate: http://www.locolomo.org/crt/8D03551FFCE04F0C.crt
Key ID: 69:79:B8:2C:E3:8F:E7:BE:5D:C3:C3:B1:74:62:B8:3F:9F:1F:69:B9
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: USB Mass Storage stopped working, help requested

2006-10-15 Thread Jim Stapleton

On 10/15/06, Erik Norgaard <[EMAIL PROTECTED]> wrote:

Jim Stapleton wrote:

> 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.

When you plug in the USB drive, lines should be appended to the dmesg of
the kernel identifying the device - or any errors. Please post that.

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

You may need ehci if this is USB 2.0, but I think it would otherwise
fall back on either ohci or uhci.

> Scanning dmesg for usb, I get:
> [EMAIL PROTECTED] 17:32:22 (0) /usr/src > dmesg | grep usb
> usb0:  on uhci0
> usb0: USB revision 1.0
> usb1:  on uhci1
> usb1: USB revision 1.0
> usb2:  on uhci2
> usb2: USB revision 1.0
> usb3:  on uhci3
> usb3: USB revision 1.0
> usb4: EHCI version 1.0
> usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3
> usb4:  on ehci0
> usb4: USB revision 2.0

See comment above on dmesg. You don't get all the relevant info by
grepping for usb.

> The results from usbdevs:
> [EMAIL PROTECTED] 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.

Is that with the device plugged in? If so, seems logical that there is
no device in /dev because it is not found.

Cheers, Erik

--
Ph: +34.666334818  web: http://www.locolomo.org
X.509 Certificate: http://www.locolomo.org/crt/8D03551FFCE04F0C.crt
Key ID: 69:79:B8:2C:E3:8F:E7:BE:5D:C3:C3:B1:74:62:B8:3F:9F:1F:69:B9



OK, here's the full dmesg. It's the IAUDIO X5 devices (I just use it
as a portable hard drive a lot, which is why I called it that). After
unplugging/plugging it in several times, I noticed my dmesg doesn't
change:

Copyright (c) 1992-2006 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
   The Regents of the University of California. All rights reserved.
FreeBSD 6.1-STABLE #1: Mon Jul 24 16:10:27 EDT 2006
   root@:/usr/obj/usr/src/sys/JIMKERN
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Genuine Intel(R) CPU   T1300  @ 1.66GHz (1662.52-MHz 686-class CPU)
 Origin = "GenuineIntel"  Id = 0x6e8  Stepping = 8
 
Features=0xafe9fbff
 Features2=0xc1a9,>
real memory  = 526843904 (502 MB)
avail memory = 506183680 (482 MB)
ACPI APIC Table: 
ioapic0  irqs 0-23 on motherboard
kbd1 at kbdmux0
ath_hal: 0.9.17.2 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
acpi0:  on motherboard
acpi_bus_number: can't get _ADR
acpi_bus_number: can't get _ADR
acpi0: Power Button (fixed)
acpi_bus_number: can't get _ADR
acpi_bus_number: can't get _ADR
   ACPI-0356: *** Error: Region EmbeddedControl(3) has no handler
   ACPI-1304: *** Error: Method execution failed
[\\_SB_.PCI0.PCIB.DOCK._STA] (Node 0xc3241360), AE_NOT_EXIST
   ACPI-0239: *** Error: Method execution failed
[\\_SB_.PCI0.PCIB.DOCK._STA] (Node 0xc3241360), AE_NOT_EXIST
   ACPI-0356: *** Error: Region EmbeddedControl(3) has no handler
   ACPI-1304: *** Error: Method execution failed
[\\_SB_.PCI0.PCIB.DOCK._STA] (Node 0xc3241360), AE_NOT_EXIST
   ACPI-0239: *** Error: Method execution failed
[\\_SB_.PCI0.PCIB.DOCK._STA] (Node 0xc3241360), AE_NOT_EXIST
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0
acpi_ec0:  port 0x62,0x66 on acpi0
cpu0:  on acpi0
acpi_perf0:  on cpu0
acpi_perf0: failed in PERF_STATUS attach
device_attach: acpi_perf0 attach returned 6
acpi_perf0:  on cpu0
acpi_perf0: failed in PERF_STATUS attach
device_attach: acpi_perf0 attach returned 6
acpi_throttle0:  on cpu0
acpi_lid0:  on acpi0
battery0:  on acpi0
acpi_acad0:  on acpi0
acpi_button0:  on acpi0
pcib0:  port 0xcf8-0xcff on acpi0
pci0:  on pcib0
acpi_video0:  port 0x1800-0x1807 mem
0xdc10-0xdc17,0xc000-0xcfff,0xdc20-0xdc23 irq
16 at device 2.0 on pci0
pci0:  at device 2.1 (no driver attached)
pci0:  at device 27.0 (no driver attached)
pcib1:  irq 17 at device 28.0 on pci0
pci2:  on pcib1
pcib2:  irq 16 at device 28.1 on pci0
pci3:  on pcib2
pcib3:  irq 18 at device 28.2 on pci0
pci5:  on pcib3
pci5:  at device 0.0 (no driver attached)
uhci0:  port 0x1820-0x183f irq 23 at
device 29.0 on pci0
uhci0: [GIANT-LOCKED]
usb0:  on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1:  port 0x1840-0x185f irq 19 at
device 29.1 on pci0
uhci1: [GIANT-LOCKED]
usb1:  on uhci1
usb1: USB revision 1.0
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable,