On one of them I have no problems. But on the other the usb storage driver seems to be deadlocking.
The linux kernel is nearly identical on the two systems, but there are some differences due to the different versions of the processor.
# cat /proc/version
Linux version 2.4.29Avtrex34 ([EMAIL PROTECTED]) (gcc version 3.4.3) #9 Wed Jan 26 15:24:21 PST 2005
My test is this: I have a 256MB CF card plugged into a USB connected multi-format card reader device. For what it's worth the CF card has a normal vfat file system on it. After it is connected to the system /dev/sda1 corresponds to the CF card. I do cat /dev/sda1 > /dev/null and data is copied for a while, and then the usb storage driver seems to deadlock.
Hints as to the solution to my problems, or pointers as to how to find the problem are appreciated.
These are the debugging messages I get: . . .
usb-storage: queuecommand() called
usb-storage: *** thread awakened.
usb-storage: Command READ_10 (10 bytes)
usb-storage: 28 00 00 00 a2 a8 00 00 fe 00 37 80
usb-storage: Bulk command S 0x43425355 T 0x1ce Trg 0 LUN 0 L 130048 F 128 CL 10
usb-storage: Bulk command transfer result=0
usb-storage: usb_stor_transfer_partial(): xfer 4096 bytes
usb-storage: usb_stor_bulk_msg() returned 0 xferred 4096/4096
usb-storage: usb_stor_transfer_partial(): transfer complete
.
.
.
usb-storage: usb_stor_transfer_partial(): xfer 4096 bytes
usb-storage: usb_stor_bulk_msg() returned 0 xferred 4096/4096
usb-storage: usb_stor_transfer_partial(): transfer complete
usb-storage: usb_stor_transfer_partial(): xfer 8192 bytes
Then it just stops. It looks like it is blocking forever in usb_stor_bulk_msg(). kill -9 on the cat process does nothing.
Kernel bootup messages:
. . . usb.c: registered new driver usbdevfs usb.c: registered new driver hub host/usb-ohci.c: USB OHCI at membase 0xb0048000, IRQ 2 host/usb-ohci.c: usb-00:14.2, PCI device 1002:4867 usb.c: new USB bus registered, assigned bus number 1 Product: USB OHCI Root Hub SerialNumber: b0048000 hub.c: USB hub found hub.c: 2 ports detected Initializing USB Mass Storage driver... usb.c: registered new driver usb-storage USB Mass Storage support registered. . . .
USB info:
/proc/bus/usb # cat drivers
usbdevfs
hub
usb-storage
/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.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=b0048000
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=01 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=0d7d ProdID=0240 Rev= 1.00
S: Manufacturer=
S: Product=USB Reader
S: SerialNumber=0331180006DD
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=500mA
I: If#= 0 Alt= 0 #EPs= 3 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
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= 2 Ivl=1ms
David Daney
------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
