On Fri, 29 Mar 2013, victor yeo wrote: > Thanks. Working on this problem now. Another problem observed for > SCSI_READ_10 command, when reading from the SD card, the gadget driver > never sends the MBR address, the FAT boot record address, the start of FAT > address, and the start of FAT cluster address to the SD card driver. The gadget doesn't make up addresses by itself. It always sends the address the host tells it to send. > The > address sent by gadget driver is wrong. Then the address sent by the host is wrong. However, I suspect you are mistaken. In your usbmon trace earlier, the very first READ(10) command had a logical block address of 0. That is the address of the MBR. If the driver hadn't failed at that point, the host would have gone on to ask for the address of the boot sector and other things. > So is the gadget driver designed to > work with SCSI/SATA/ATA drive only? The gadget driver is designed to work with any backing file capable of random access. It doesn't even have to be a device file; a regular file will work too. 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