On Fri, 5 Aug 2005, Andrew Morton wrote:

> Begin forwarded message:
> 
> Date: Fri, 5 Aug 2005 21:02:57 +0200
> From: Martin Maurer <[EMAIL PROTECTED]>
> To: [email protected]
> Subject: Re: Elitegroup K7S5A + usb_storage problem
> 
> 
> An update on this issue:
> 
> I realized a problem with my kernel configuration - i was missing sd_mod. 
> This 
> fixed the problem with the harddrive, but the usb stick still doesn't work.
> attached a new dmesg output of the mp3stick problem (only very little changes)

Comments on the dmesg log for your stick below:

usb-storage: Command INQUIRY (6 bytes)
usb-storage:  12 00 00 00 24 00
usb-storage: Bulk Command S 0x43425355 T 0x1 L 36 F 128 Trg 0 LUN 0 CL 6
usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
usb-storage: Status code 0; transferred 31/31
usb-storage: -- transfer complete
usb-storage: Bulk command transfer result=0
usb-storage: usb_stor_bulk_transfer_buf: xfer 36 bytes
usb-storage: Status code 0; transferred 13/36
usb-storage: -- short transfer

To start with, the device sent a 13-byte CSW.  It's not supposed to do 
that at this stage; the computer is expecting to receive 36 bytes worth of 
INQUIRY data.

usb-storage: Bulk data transfer result 0x1
usb-storage: Attempting to get CSW...
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
ohci_hcd 0000:00:02.2: urb cf61ca60 path 1.4 ep2in 82160000 cc 8 --> status -75
usb-storage: Status code -75; transferred 13/13
usb-storage: -- babble
usb-storage: Bulk status result = 3

Then when asked for a CSW, it tried to send something longer.  Probably 
the 36 bytes of INQUIRY data.  The device's invalid initial response has 
caused it to get out of sync with the computer.

usb-storage: -- transport indicates error, resetting
hub 1-1:1.0: state 5 ports 4 chg 0000 evt 0010
usb 1-1.4: reset full speed USB device using ohci_hcd and address 18
hub 1-1:1.0: state 5 ports 4 chg 0000 evt 0010
usb 1-1.4: ep0 maxpacket = 32
usb-storage: usb_reset_device returns 0

The system resets the device.  Looks like the reset worked.

usb-storage: scsi cmd done, result=0x70000
usb-storage: *** thread sleeping.
usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Command INQUIRY (6 bytes)
usb-storage:  12 00 00 00 24 00
usb-storage: Bulk Command S 0x43425355 T 0x2 L 36 F 128 Trg 0 LUN 0 CL 6
usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
usb-storage: Status code 0; transferred 31/31
usb-storage: -- transfer complete
usb-storage: Bulk command transfer result=0
usb-storage: usb_stor_bulk_transfer_buf: xfer 36 bytes
usb-storage: Status code 0; transferred 36/36
usb-storage: -- transfer complete
usb-storage: Bulk data transfer result 0x0
usb-storage: Attempting to get CSW...
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
usb-storage: Status code 0; transferred 13/13
usb-storage: -- transfer complete
usb-storage: Bulk status result = 0
usb-storage: Bulk Status S 0x53425355 T 0x2 R 0 Stat 0x1
usb-storage: -- transport indicates command failure

The INQUIRY command is retried and this time the device replies with 36
bytes of data.  It also indicates a failure status, for no apparent
reason.

usb-storage: Issuing auto-REQUEST_SENSE
usb-storage: Bulk Command S 0x43425355 T 0x80000002 L 18 F 128 Trg 0 LUN 0 CL 6
usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
usb-storage: Status code 0; transferred 31/31
usb-storage: -- transfer complete
usb-storage: Bulk command transfer result=0
usb-storage: usb_stor_bulk_transfer_buf: xfer 18 bytes
usb-storage: Status code 0; transferred 18/18
usb-storage: -- transfer complete
usb-storage: Bulk data transfer result 0x0
usb-storage: Attempting to get CSW...
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
usb-storage: Status code 0; transferred 13/13
usb-storage: -- transfer complete
usb-storage: Bulk status result = 0
usb-storage: Bulk Status S 0x53425355 T 0x80000002 R 0 Stat 0x0
usb-storage: -- Result from auto-sense is 0
usb-storage: -- code: 0x70, key: 0x5, ASC: 0x24, ASCQ: 0x0
usb-storage: Illegal Request: Invalid field in cdb
usb-storage: scsi cmd done, result=0x2

When asked what went wrong, the device says it didn't understand the 
INQUIRY command.  This is a fatal error; if a device can't identify itself 
there's no way for Linux to use it.

In short, your mp3stick is worthless.  Trade it in for one that works.

Alan Stern



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to