Hi,

>> Now i insmod g_file_storage gadget with file=/mnt/sd/backing_file, the
>> SCSI_READ_10 command is still not working properly.
>
> What makes you think that?

Because the SCSI_READ_10 is able to read the MBR from the backing
file, and after that, SCSI_READ_10 reads all zeroes (fails to read
boot sector).

>> g_file_storage gadget: ep0-setup, length 8:
>> 00000000: 80 06 00 01 00 00 40 00
>> g_file_storage gadget: get device descriptor
>
> But something is definitely wrong here.  Before sending this
> Get-Device-Descriptor request, the host should have done a USB port
> reset.  Either the host isn't performing the reset correctly or else
> your UDC driver didn't inform g_file_storage when the reset occurred.

Yes, the UDC driver didn't inform g_file_storage when the reset
occurred. What is to be done to inform g_file_storage when the reset
occurs?

Thanks,
victor
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to