Re: umass regression

From: Hans Petter Selasky <hselasky_at_c2i.net>
Date: Tue, 3 Jan 2012 18:15:32 +0100
On Tuesday 03 January 2012 17:49:01 Bartosz Fabianowski wrote:
> > Is it possible that you could run usbdump to capture the traffic on the
> > bus where the USB device is connected?
> 
> Absolutely. I uploaded the dump at [1]. This dump covers 30 seconds from
> plugging in.
> 
> - Bartosz
> 
> [1] http://www.fabianowski.eu/garmin_dakota_20_attach.usbdump

Hi,

1)

The following transaction shows that the device supports two luns. I suspect 
that there is a miscommunication between UMASS and CAM layer.

 frame[0] WRITE 8 bytes
 0000  A1 FE 00 00 00 00 01 00  -- -- -- -- -- -- -- --  |........        |
 frame[1] READ 1 bytes
 0000  01 -- -- -- -- -- -- --  -- -- -- -- -- -- -- --  |.               |

Does anyone _at_ current know how this should be properly done?

2)

The 31-byte messages is a UMASS header containing the SCSI command:

http://fxr.watson.org/fxr/source/dev/usb/storage/umass.c#L249

18:42:08.572437 usbus1.8 SUBM-BULK-EP=00000001,SPD=FULL,NFR=1,SLEN=32,IVAL=0
 frame[0] WRITE 31 bytes
 0000  55 53 42 43 02 00 00 00  10 00 00 00 80 00 0C A0  |USBC............|
                                               ^^ LUN
                                                  ^^ LEN + SCSI command
 0010  00 00 00 00 00 00 00 00  10 00 00 00 00 00 00 --  |............... |

--HPS
Received on Tue Jan 03 2012 - 16:18:02 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:22 UTC