Try turning on the compile-time option for USB Mass Storage verbose
debugging.

Matt

On Tue, Nov 25, 2003 at 09:54:42PM -0800, Melkor Ainur wrote:
> Hello Friends,
> 
> I am having difficulty getting an M-Systems USB Flash
> Disk to work for me. I'm looking for advice/general
> discussion on what I could do to get further in my
> debug described below. The USB Flash Disk works fine
> in a Redhat 8.0 (2.4.18-14) system on an intel chipset
> based x86 box. I am able to mount the device,
> read/write files etc. (Kudos to the team for that! It
> works straight out of the box). But...
> 
> I take the same device to my embedded box. On this
> box, upon insmoding usb-storage.o, insmod goes
> uninterruptible. this same embedded box works fine
> when using the ov511 usb webcam so i don't suspect the
> usb subsystem or the OHCI controller itself.
> 
> Now for the details. on both boxes, i am using a
> 2.4.18 (-14 redhat 8.0) kernel. The x86 box has an
> intel chipset so it's an UHCI controller (i think) and
> it works fine there. on the embedded box, i believe
> it's a OHCI controller. the output of
> /proc/usb/devices seems to correctly reflect this
> information. [appended]
> 
> # 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.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8
> #Cfgs=  1
> P:  Vendor=0000 ProdID=0000 Rev= 0.00
> S:  Product=USB OHCI Root Hub
> S:  SerialNumber=c2813000
> 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=   2 Ivl=255ms
> T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2
> Spd=12  MxCh= 0
> D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8
> #Cfgs=  1
> P:  Vendor=08ec ProdID=0822 Rev= 3.2e
> S:  Manufacturer=Generic
> S:  Product=USB Flash Disk
> S:  SerialNumber=ABCD002592
> C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
> I:  If#= 0 Alt= 0 #EPs= 3 Cls=08(stor.) Sub=06 Prot=50
> Driver=(none)
> E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
> E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
> E:  Ad=83(I) Atr=03(Int.) MxPS=   8 Ivl=10ms
> T:  Bus=01 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#=  3
> Spd=12  MxCh= 0
> D:  Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8
> #Cfgs=  1
> P:  Vendor=05a9 ProdID=0511 Rev= 1.00
> C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=500mA
> I:  If#= 0 Alt= 0 #EPs= 1 Cls=ff(vend.) Sub=00 Prot=00
> Driver=ov511
> E:  Ad=81(I) Atr=01(Isoc) MxPS= 992 Ivl=1ms
> I:  If#= 0 Alt= 1 #EPs= 1 Cls=ff(vend.) Sub=00 Prot=00
> Driver=ov511
> E:  Ad=81(I) Atr=01(Isoc) MxPS= 993 Ivl=1ms
> I:  If#= 0 Alt= 2 #EPs= 1 Cls=ff(vend.) Sub=00 Prot=00
> Driver=ov511
> E:  Ad=81(I) Atr=01(Isoc) MxPS= 768 Ivl=1ms
> I:  If#= 0 Alt= 3 #EPs= 1 Cls=ff(vend.) Sub=00 Prot=00
> Driver=ov511
> E:  Ad=81(I) Atr=01(Isoc) MxPS= 769 Ivl=1ms
> I:  If#= 0 Alt= 4 #EPs= 1 Cls=ff(vend.) Sub=00 Prot=00
> Driver=ov511
> E:  Ad=81(I) Atr=01(Isoc) MxPS= 512 Ivl=1ms
> I:  If#= 0 Alt= 5 #EPs= 1 Cls=ff(vend.) Sub=00 Prot=00
> Driver=ov511
> E:  Ad=81(I) Atr=01(Isoc) MxPS= 513 Ivl=1ms
> I:  If#= 0 Alt= 6 #EPs= 1 Cls=ff(vend.) Sub=00 Prot=00
> Driver=ov511
> E:  Ad=81(I) Atr=01(Isoc) MxPS= 257 Ivl=1ms
> I:  If#= 0 Alt= 7 #EPs= 1 Cls=ff(vend.) Sub=00 Prot=00
> Driver=ov511
> E:  Ad=81(I) Atr=01(Isoc) MxPS=   0 Ivl=1ms
> 
> 
> ===
> S:  Product=USB Flash Disk
> S:  SerialNumber=ABCD002592
> C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
> I:  If#= 0 Alt= 0 #EPs= 3 Cls=08(stor.) Sub=06 Prot=50
> Driver=(none)
> 
> As you can see above, the flash disk device seems to
> be detected without any problem. So, now I proceed to
> insmod scsi_mod.o and usb-storage.o. scsi_mod.o
> insmods cleanly. insmod of usb-storage.o hangs.
> checking ps shows:
> 
>   721 root        432 D   insmod ./usb-storage.o
>   722 root            SW  [usb-storage-0]
>   723 root            SW  [scsi_eh_0]
> 
> so it looks like usb-storage is waiting for some IO of
> some sort. hence it's uninterruptible state. Looking
> at dmesg outpupt and /proc/interrupts didn't lead me
> to any further conclusions.
> 
> # dmesg
> <snip>
> Initializing USB Mass Storage driver...
> usb.c: registered new driver usb-storage
> scsi0 : SCSI emulation for USB Mass Storage devices
> 
> # cat /proc/interrupts
>            CPU0
>   0:     110998          XT-PIC  timer
>   1:          2          XT-PIC  keyboard
>   2:          0          XT-PIC  cascade
>   3:      10494          XT-PIC  serial
>   4:       7269          XT-PIC  serial
>   8:          0          XT-PIC  rtc
>  10:       1679          XT-PIC  eth1
>  11:       2039          XT-PIC  usb-ohci, eth0
>  13:          0          XT-PIC  fpu
> NMI:          0
> ERR:          0
> 
> Ok. That's about as far as I can get. I'll keep
> looking for further information on what I can do to
> debug this. I'd greatly appreciate any
> pointers/recommendations on how I can get this
> working. If there is any further information I could
> supply that would help isolate the issue, please
> holler. Oh, please CC me on your replies since I'm not
> subscribed to the list.
> 
> Much thanks,
> Melkor
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> __________________________________
> Do you Yahoo!?
> Free Pop-Up Blocker - Get it now
> http://companion.yahoo.com/

-- 
Matthew Dharm                              Home: [EMAIL PROTECTED] 
Maintainer, Linux USB Mass Storage Driver

What, are you one of those Microsoft-bashing Linux freaks?
                                        -- Customer to Greg
User Friendly, 2/10/1999

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to