Date: Wed, 27 Jun 2012 18:15:24 +0200 From: Hans Petter Selasky <hselasky@c2i.net> To: Boris Samorodov <bsam@passap.ru> Cc: Alexander Motin <mav@freebsd.org>, freebsd-usb@freebsd.org Subject: Re: [usb] Kingston 8Gb is not usable Message-ID: <201206271815.24726.hselasky@c2i.net> In-Reply-To: <4FEB2DC1.3030303@passap.ru> References: <4FE9AB28.3070704@passap.ru> <201206271736.46305.hselasky@c2i.net> <4FEB2DC1.3030303@passap.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday 27 June 2012 17:58:57 Boris Samorodov wrote: > 27.06.2012 19:36, Hans Petter Selasky =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > > Then you need to check using "usbdump -i usbusX -s 65536 -vvvv" what is > > actually going on there. >=20 > I'm using the unpatched kernel (i.e. stock r237572). There is no > /dev/ad*. I use "usbconfig -d 7.5 reset" and here is the log for > the quoted command (attached). Hi, A quick analysis. Read CAPACITY (0x0a 0x25 ....): 19:44:42.626128 usbus7.5 SUBM-BULK-EP=3D00000002,SPD=3DHIGH,NFR=3D1,SLEN=3D= 32,IVAL=3D0 frame[0] WRITE 31 bytes 0000 55 53 42 43 04 00 00 00 08 00 00 00 80 00 0A 25 |USBC...........%| 0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 -- |............... | Returns 8-bytes: 19:44:42.626359 usbus7.5 DONE-BULK- EP=3D00000081,SPD=3DHIGH,NFR=3D1,SLEN=3D8,IVAL=3D0,ERR=3D0 frame[0] READ 8 bytes 0000 00 EE 97 4F 00 00 02 00 -- -- -- -- -- -- -- -- |...O.... | Then suddenly read CAPACITY: 19:44:42.630014 usbus7.5 SUBM-BULK-EP=3D00000002,SPD=3DHIGH,NFR=3D1,SLEN=3D= 32,IVAL=3D0 frame[0] WRITE 31 bytes 0000 55 53 42 43 0E 00 00 00 08 00 00 00 80 00 0A 25 |USBC...........%| 0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 -- |............... | Returns zero-bytes. That is a memstick bug! Probably CAM layer could retry = one=20 more time in that case?? 19:44:42.630231 usbus7.5 DONE-BULK- EP=3D00000081,SPD=3DHIGH,NFR=3D1,SLEN=3D0,IVAL=3D0,ERR=3DSTALLED frame[0] READ 0 bytes =2D-HPS
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206271815.24726.hselasky>