Date: Tue, 3 Jan 2012 18:15:32 +0100 From: Hans Petter Selasky <hselasky@c2i.net> To: Bartosz Fabianowski <freebsd@chillt.de> Cc: freebsd-current@freebsd.org, freebsd-usb@freebsd.org Subject: Re: umass regression Message-ID: <201201031815.32624.hselasky@c2i.net> In-Reply-To: <4F03317D.6080702@chillt.de> References: <4EF9D06C.9060501@chillt.de> <201201031726.03885.hselasky@c2i.net> <4F03317D.6080702@chillt.de>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201031815.32624.hselasky>