Hi,

I have a SWEEX 6 in 1 reader/writer . The chip inside is the
carry 5026 (or something like that. I've bolted it back together. 

I bought it to be able to read my Sony memory  sticks. 

When I insert a memory stick and try to read it, however, I seem to
be getting a consistent IO error. 

I already modified the "sd" driver not to probe for capacity if 
the sense code is NOT_READY/NO_MEDIA_PRESENT as well as UNIT_ATTENTION/
NO_MEDIA_PRESENT: My device returns that code on the "sda" device, 
and then "does funny things" on the read capacity. 

So now I get a bit further, but I don't understand why the usb-storage
reports "OK" on the ALLOW_MEDIUM_REMOVAL, and then the IO layer
reports something like "I/O error"


15:38:38 usb-storage: queuecommand() called
15:38:38 usb-storage: *** thread awakened.
15:38:38 usb-storage: Command START_STOP (6 bytes)
15:38:38 usb-storage: 1b 20 00 00 01 00 00 00 81 9b 10 c0
15:38:38 usb-storage: Bulk command S 0x43425355 T 0x2e Trg 0 LUN 1 L 0 F 0 CL 6
15:38:38 usb-storage: Bulk command transfer result=0
15:38:38 usb-storage: Attempting to get CSW...
15:38:38 usb-storage: Bulk status result = 0
15:38:38 usb-storage: Bulk status Sig 0x53425355 T 0x2e R 0 Stat 0x0
15:38:38 usb-storage: scsi cmd done, result=0x0
15:38:38 usb-storage: *** thread sleeping.
15:38:38 sd: Sending test_unit_ready.
15:38:38 usb-storage: queuecommand() called
15:38:38 usb-storage: *** thread awakened.
15:38:38 usb-storage: Command TEST_UNIT_READY (6 bytes)
15:38:38 usb-storage: 00 20 00 00 00 00 00 00 00 00 cf df
15:38:38 usb-storage: Bulk command S 0x43425355 T 0x2f Trg 0 LUN 1 L 0 F 0 CL 6
15:38:38 usb-storage: Bulk command transfer result=0
15:38:38 usb-storage: Attempting to get CSW...
15:38:38 usb-storage: Bulk status result = 0
15:38:38 usb-storage: Bulk status Sig 0x53425355 T 0x2f R 0 Stat 0x1
15:38:38 usb-storage: -- transport indicates command failure
15:38:38 usb-storage: Issuing auto-REQUEST_SENSE
15:38:38 usb-storage: Bulk command S 0x43425355 T 0x2f Trg 0 LUN 1 L 18 F 128 CL 6
15:38:38 usb-storage: Bulk command transfer result=0
15:38:38 usb-storage: usb_stor_transfer_partial(): xfer 18 bytes
15:38:38 usb-storage: usb_stor_bulk_msg() returned 0 xferred 18/18
15:38:38 usb-storage: usb_stor_transfer_partial(): transfer complete
15:38:38 usb-storage: Bulk data transfer result 0x0
15:38:38 usb-storage: Attempting to get CSW...
15:38:38 usb-storage: Bulk status result = 0
15:38:38 usb-storage: Bulk status Sig 0x53425355 T 0x2f R 0 Stat 0x0
15:38:38 usb-storage: -- Result from auto-sense is 0
15:38:38 usb-storage: -- code: 0x70, key: 0x2, ASC: 0x3a, ASCQ: 0x0
15:38:38 usb-storage: Not Ready: media not present
15:38:38 usb-storage: scsi cmd done, result=0x2
15:38:38 usb-storage: *** thread sleeping.
15:38:38 Got result: 134217730
15:38:38 res: 134217730 2, 58
15:38:38 Assuming stuff: No media....
15:38:38 Now going to try to read the capacity.
15:38:38 usb-storage: queuecommand() called
15:38:38 usb-storage: *** thread awakened.
15:38:38 usb-storage: Command READ_CAPACITY (10 bytes)
15:38:38 usb-storage: 25 20 00 00 00 00 00 00 00 00 cf df
15:38:38 usb-storage: Bulk command S 0x43425355 T 0x30 Trg 0 LUN 1 L 8 F 128 CL 10
15:38:38 usb-storage: Bulk command transfer result=0
15:38:38 usb-storage: usb_stor_transfer_partial(): xfer 8 bytes
15:38:38 usb-storage: usb_stor_bulk_msg() returned 0 xferred 8/8
15:38:38 usb-storage: usb_stor_transfer_partial(): transfer complete
15:38:38 usb-storage: Bulk data transfer result 0x0
15:38:38 usb-storage: Attempting to get CSW...
15:38:38 usb-storage: Bulk status result = 0
15:38:38 usb-storage: Bulk status Sig 0x53425355 T 0x30 R 0 Stat 0x0
15:38:38 usb-storage: scsi cmd done, result=0x0
15:38:38 usb-storage: *** thread sleeping.
15:38:38 SCSI device sdb: 15840 512-byte hdwr sectors (8 MB)
15:38:38 usb-storage: queuecommand() called
15:38:38 usb-storage: *** thread awakened.
15:38:38 usb-storage: Command MODE_SENSE (6 bytes)
15:38:38 usb-storage: 1a 20 3f 00 ff 00 00 00 00 00 cf df
15:38:38 usb-storage: Bulk command S 0x43425355 T 0x31 Trg 0 LUN 1 L 255 F 128 CL 6
15:38:38 usb-storage: Bulk command transfer result=0
15:38:38 usb-storage: usb_stor_transfer_partial(): xfer 255 bytes
15:38:39 usb-storage: usb_stor_bulk_msg() returned 0 xferred 255/255
15:38:39 usb-storage: usb_stor_transfer_partial(): transfer complete
15:38:39 usb-storage: Bulk data transfer result 0x0
15:38:39 usb-storage: Attempting to get CSW...
15:38:39 usb-storage: Bulk status result = 0
15:38:39 usb-storage: Bulk status Sig 0x53425355 T 0x31 R 0 Stat 0x0
15:38:39 usb-storage: scsi cmd done, result=0x0
15:38:39 usb-storage: *** thread sleeping.
15:38:39 sdb: Write Protect is on
15:38:39  /dev/scsi/host0/bus0/target0/lun1: I/O error: dev 08:10, sector 0
15:38:39  I/O error: dev 08:10, sector 0
15:38:39  unable to read partition table
15:38:39 usb-storage: queuecommand() called
15:38:39 usb-storage: *** thread awakened.
15:38:39 usb-storage: Command ALLOW_MEDIUM_REMOVAL (6 bytes)
15:38:39 usb-storage: 1e 20 00 00 01 00 13 c0 10 08 00 00
15:38:39 usb-storage: Bulk command S 0x43425355 T 0x32 Trg 0 LUN 1 L 0 F 0 CL 6
15:38:39 usb-storage: Bulk command transfer result=0
15:38:39 usb-storage: Attempting to get CSW...
15:38:39 usb-storage: Bulk status result = 0
15:38:39 usb-storage: Bulk status Sig 0x53425355 T 0x32 R 0 Stat 0x0
15:38:39 usb-storage: scsi cmd done, result=0x0
15:38:39 usb-storage: *** thread sleeping.
15:38:39  I/O error: dev 08:10, sector 2048
15:38:39 usb-storage: queuecommand() called
15:38:39 usb-storage: *** thread awakened.
15:38:39 usb-storage: Command ALLOW_MEDIUM_REMOVAL (6 bytes)
15:38:39 usb-storage: 1e 20 00 00 00 00 87 df 00 00 00 00
15:38:39 usb-storage: Bulk command S 0x43425355 T 0x33 Trg 0 LUN 1 L 0 F 0 CL 6
15:38:39 usb-storage: Bulk command transfer result=0
15:38:39 usb-storage: Attempting to get CSW...
15:38:39 usb-storage: Bulk status result = 0
15:38:39 usb-storage: Bulk status Sig 0x53425355 T 0x33 R 0 Stat 0x0
15:38:39 usb-storage: scsi cmd done, result=0x0
15:38:39 usb-storage: *** thread sleeping.


This is the output of me trying to read the 1k block at 1Mbyte off 
an 8Mbyte memory stick. 

The vendor/device ID is 07cc/0201. I'm running Linux-2.4.20-rc2. 

Any help appreciated....

                        Roger. 

-- 
** [EMAIL PROTECTED] ** http://www.BitWizard.nl/ ** +31-15-2600998 **
*-- BitWizard writes Linux device drivers for any device you may have! --*
* The Worlds Ecosystem is a stable system. Stable systems may experience *
* excursions from the stable situation. We are currently in such an      * 
* excursion: The stable situation does not include humans. ***************


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to