Re: Linux USB file storage gadget with new UDC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

>>> 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.
>
> Yes, the very first READ(10) command has a logical block address of 0
> (as shown below). I will generate the  fresh usbmon trace the next
> day, i do not have access to the platform now.
>
> f59e13c0 3246885432 S Bo:2:046:1 -115 31 = 55534243 0c000000 00100000
> 80000a28 00000000 00000008 00000000 000000
>

Here is the fresh usbmon trace. Four SCSI commands are shown. The
first SCSI_READ_10 command has LBA of 0. The second SCSI_READ_10
command has LBA of 0x00ed2900, which is wrong. Somehow, the first
SCSI_READ_10 command got the wrong data, i think. Isn't it?

f31a9740 4037054141 S Bo:2:071:1 -115 31 = 55534243 0c000000 00100000
80000a28 00000000 00000008 00000000 000000
f31a9740 4037054176 C Bo:2:071:1 0 31 >
f4a555c0 4037054184 S Bi:2:071:1 -115 4096 <
f4a555c0 4037108430 C Bi:2:071:1 0 4096 = eb58904d 53444f53 352e3000
02402e11 02000000 00f80000 3f00ff00 00200000
f31a9740 4037108476 S Bi:2:071:1 -115 13 <
f31a9740 4037114564 C Bi:2:071:1 0 13 = 55534253 0c000000 00000000 00
f31a9740 4037114722 S Bo:2:071:1 -115 31 = 55534243 0d000000 00000000
00000600 00000000 00000000 00000000 000000
f31a9740 4037114801 C Bo:2:071:1 0 31 >
f31a9740 4037114805 S Bi:2:071:1 -115 13 <
f31a9740 4037121303 C Bi:2:071:1 0 13 = 55534253 0d000000 00000000 00
f31a9740 4037121388 S Bo:2:071:1 -115 31 = 55534243 0e000000 08000000
80000a25 00000000 00000000 00000000 000000
f31a9740 4037121550 C Bo:2:071:1 0 31 >
f4a552c0 4037121559 S Bi:2:071:1 -115 8 <
f4a552c0 4037127426 C Bi:2:071:1 0 8 = 00ed29c7 00000200
f31a9740 4037127435 S Bi:2:071:1 -115 13 <
f31a9740 4037133064 C Bi:2:071:1 0 13 = 55534253 0e000000 00000000 00
f31a9740 4037133100 S Bo:2:071:1 -115 31 = 55534243 0f000000 00100000
80000a28 0000ed29 00000008 00000000 000000
f31a9740 4037133176 C Bo:2:071:1 0 31 >
f4a552c0 4037133184 S Bi:2:071:1 -115 4096 <
f4a552c0 4037184441 C Bi:2:071:1 0 4096 = ffffffff ffffffff ffffffff
ffffffff ffffffff ffffffff ffffffff ffffffff
f31a9740 4037184453 S Bi:2:071:1 -115 13 <
f31a9740 4037190564 C Bi:2:071:1 0 13 = 55534253 0f000000 00000000 00

Thanks,
victor
--
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




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux