[ale] USB device stops working

Keith Hopkins hne at hopnet.net
Sat Mar 9 09:35:37 EST 2002


Important questions are here, other stuff mixed in the text.

   What kernel version are you running?
   Is the source vanilla? (from kernel.org) or from your distro?
   If this source is vanilla, was your prev kernel vanilla, or from your distro.
   What I'm getting at here, is maybe your distro threw in some added majic that's not in the vanilla kernels.

   It looks to me something isn't compiled in for USB and/or the device.
 >>> usb.c: USB device 2 (vend/prod 0x547/0x2131) is not claimed by any
 >>> active driver.
   usb-storage shouldn't load without usbcore, but I don't see usbcore mentioned anywhere.
   usb-core ties usb-{device} to the root usr-[uo]hci driver.
   look for more messages


David Corbin wrote:
> Keith Hopkins wrote:
> 
>> David Corbin wrote:
>>
>>> all my stuff is built-in until the kernel... but, I did see this in 
>>> the dmesg output
>>> -----
>>> Initializing USB Mass Storage driver...
>>> usb.c: registered new driver usb-storage
>>> USB Mass Storage support registered.
>>> <snip>
>>> hub.c: USB new device connect on bus1/1, assigned device number 2
>>> usb_control/bulk_msg: timeout
>>> usb_control/bulk_msg: timeout
>>> usb.c: USB device 2 (vend/prod 0x547/0x2131) is not claimed by any 
>>> active driver.
>>> ----
>>>
>>> So, what's the next step?
>>>
>>
>> Two things you can try.
>>
>>   1) See what is under /proc/bus/usb.  "cat" those items, if any.  

>> Post any output that look relevant.
> 
> 
> [root at mercury /proc/bus/usb]# find .
> .
> ./devices
> ./drivers
> ./001
> ./001/001
> ./001/002                                      <---- Does this mean 
> there are two devices on the bus?

No, this is just port 001 and port 002 of Hub 001.

> [root at mercury /proc/bus/usb]# cat devices
> T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
> B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
> D:  Ver= 1.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1

The important item, the Root Hub.

> P:  Vendor=0000 ProdID=0000 Rev= 0.00
> S:  Product=USB UHCI-alt Root Hub
> S:  SerialNumber=d400
> C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=  0mA
> I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
> E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=255ms
> T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=12  MxCh= 0
> D:  Ver= 1.00 Cls=ff(vend.) Sub=ff Prot=ff MxPS=64 #Cfgs=  1

And this is your Gizmo.

> P:  Vendor=0547 ProdID=2131 Rev= 0.04
> C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
> I:  If#= 0 Alt= 0 #EPs= 0 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
> I:  If#= 0 Alt= 1 #EPs=13 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
> E:  Ad=81(I) Atr=03(Int.) MxPS=  16 Ivl= 10ms
> E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=  0ms
> E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=  0ms
> E:  Ad=84(I) Atr=02(Bulk) MxPS=  64 Ivl=  0ms
> E:  Ad=04(O) Atr=02(Bulk) MxPS=  64 Ivl=  0ms
> E:  Ad=86(I) Atr=02(Bulk) MxPS=  64 Ivl=  0ms
> E:  Ad=06(O) Atr=02(Bulk) MxPS=  64 Ivl=  0ms
> E:  Ad=88(I) Atr=01(Isoc) MxPS=  16 Ivl=  1ms
> E:  Ad=08(O) Atr=01(Isoc) MxPS=  16 Ivl=  1ms
> E:  Ad=89(I) Atr=01(Isoc) MxPS=  16 Ivl=  1ms
> E:  Ad=09(O) Atr=01(Isoc) MxPS=  16 Ivl=  1ms
> E:  Ad=8a(I) Atr=01(Isoc) MxPS=  16 Ivl=  1ms
> E:  Ad=0a(O) Atr=01(Isoc) MxPS=  16 Ivl=  1ms
> I:  If#= 0 Alt= 2 #EPs=13 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
> E:  Ad=81(I) Atr=03(Int.) MxPS=  64 Ivl= 10ms
> E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=  0ms
> E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=  0ms
> E:  Ad=84(I) Atr=02(Bulk) MxPS=  64 Ivl=  0ms
> E:  Ad=04(O) Atr=02(Bulk) MxPS=  64 Ivl=  0ms
> E:  Ad=86(I) Atr=02(Bulk) MxPS=  64 Ivl=  0ms
> E:  Ad=06(O) Atr=02(Bulk) MxPS=  64 Ivl=  0ms
> E:  Ad=88(I) Atr=01(Isoc) MxPS= 256 Ivl=  1ms
> E:  Ad=08(O) Atr=01(Isoc) MxPS= 256 Ivl=  1ms
> E:  Ad=89(I) Atr=01(Isoc) MxPS=  16 Ivl=  1ms
> E:  Ad=09(O) Atr=01(Isoc) MxPS=  16 Ivl=  1ms
> E:  Ad=8a(I) Atr=01(Isoc) MxPS=  16 Ivl=  1ms
> E:  Ad=0a(O) Atr=01(Isoc) MxPS=  16 Ivl=  1ms
> 
> [ I have not idea how to interpret the above. ]

Neither do I really, but it does tell me that it is talking (handshake) to something, but maybe it can't identify it correctly.

> 
> [root at mercury /proc/bus/usb]# cat drivers
>         usbdevfs
>         hub
>  0- 15: usblp
>         serial
>         usb-storage
> 

I've actually managed to confuse myself, because my /proc/bus/usb is bone dry.

****I'm running the 2.4.10 kernel, which kernel version are you on?****

I do have this under /proc/scsi
hera:/proc # cat scsi/usb-storage-0/2
    Host scsi2: usb-storage
        Vendor: Hagiwara Sys-Com
       Product: CompactFlash R/W
Serial Number: FC0000003A70
      Protocol: Transparent SCSI
     Transport: Bulk
          GUID: 069300030000fc0000003a70
      Attached: 1

   Which is really what I expected to find on your system under /proc/bus/usb/001/00[12].

   My gizmo has an LED on top to tell me it's active.  Does yours?  Is it burning?

> [ or this, for that matter... ]
> 
>>
>>   2) Insert a CF card and check the dmesg output again to see if it 
>> recognized it.  As root, enter "fdisk -l" and see if it shows up 
>> there.  If it does, try mounting it.
> 
> 
> There is already a CF card in it.  fdisk -l doesn't show any SCSI devices.
> 

Try removing it and re-inserting the CF card.

For comparison, here's what I have.

{dmesg output}

usb-uhci.c: USB UHCI at I/O 0xac00, IRQ 10
usb-uhci.c: Detected 2 ports
hub.c: USB new device connect on bus1/1, assigned device number 2
usb.c: new USB bus registered, assigned bus number 2
usb.c: USB device 2 (vend/prod 0x693/0x3) is not claimed by any active driver.
hub.c: USB hub found
hub.c: 2 ports detected
usb-uhci.c: v1.268:USB Universal Host Controller Interface driver
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
usb-uhci.c: interrupt, status 2, frame# 1957
scsi2 : SCSI emulation for USB Mass Storage devices
   Vendor: HAGIWARA  Model: CompactFlash R/W  Rev: 2.00
   Type:   Direct-Access                      ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi2, channel 0, id 0, lun 0
SCSI device sda: 93952 512-byte hdwr sectors (48 MB)
sda: Write Protect is off
  sda: sda1
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
USB Mass Storage support registered.
keithh at hera:~>

hera:/proc # lsmod
Module                  Size  Used by
usb-storage            47792   0
usb-uhci               20992   0  (unused)
usbcore                47264   0  [usb-storage usb-uhci]


   Passing thoughts... Do you have another computer you can plug your Gizmo into to see if it works? (just in case)
   Do you have any other usb devices (camera, scanner, kb, mouse, audio, Gizmo#2) you can plug and see if it is detected?

Lost in Tokyo,
   Keith



---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.






More information about the Ale mailing list