umass regression

Hans Petter Selasky hselasky at c2i.net
Tue Jan 3 17:18:02 UTC 2012


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 @ 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


More information about the freebsd-usb mailing list