On Thu, 13 Aug 2009, Dylan Taft wrote: > Hi all, > > Any ideas on this would be gratefully appreciated! > > Kernel 2.6.29.4, been having trouble with the kindle 2 as a usb mass > storage device, > if I copy a file larger than a few megs > dmesg gets littered with > > usb-storage: device scan complete > usb 2-1: reset high speed USB device using ehci_hcd and address 3 > usb 2-1: device descriptor read/all, error -71 > usb 2-1: reset high speed USB device using ehci_hcd and address 3 > usb 2-1: reset high speed USB device using ehci_hcd and address 3 > and sometimes i/o errors > > recompiled usb storage with verbose debugging on > concerned about Status code -104; transferred 1024/122880 > > Wanted to try adding an unusual_devs.h entry for it, but then it gets > detected w/ a protocol of 8070i, which is wrong. supposed to be scsi > storage? Perhaps instead of an unusual_devs entry, you need to decrease the max_sector value to 128. See http://www.linux-usb.org/FAQ.html#i5 > UNUSUAL_DEV( 0x1949, 0x0002, 0x0001, 0x9999, > "Amazon", > "Amazon Kindle", > US_SC_DEVICE, US_PR_DEVICE, NULL, > US_FL_FIX_CAPACITY ), This should not change the protocol to 8070i. I can't imagine why that happens. > Also tried with forcing US_SC_SCSI > without unusual_devs.h entry: ... > usb-storage: Command WRITE_10 (10 bytes) > usb-storage: 2a 00 00 0d 58 46 00 00 f0 00 > usb-storage: Bulk Command S 0x43425355 T 0xe3 L 122880 F 0 Trg 0 LUN 0 CL 10 > 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_sglist: xfer 122880 bytes, 30 entries > usb-storage: command_abort called > usb-storage: usb_stor_stop_transport called > usb-storage: -- cancelling sg request > usb-storage: Status code -104; transferred 1024/122880 > usb-storage: -- transfer cancelled > usb-storage: Bulk data transfer result 0x4 > usb-storage: -- command was aborted > usb-storage: storage_pre_reset > usb 2-1: reset high speed USB device using ehci_hcd and address 41 This is not the typical sort of error one sees when FIX_CAPACITY is needed. By the way, if you're using 2.6.29 or later, you can specify quirks like FIX_CAPACITY as module parameters to usb-storage. You don't have to change unusual_devs.h and rebuild the driver. See the description of usb_storage.quirks= in Documentation/kernel-parameters.txt. Alan Stern -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html