Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Apr 2009 13:02:31 -0300
From:      Renato Botelho <rbgarga@gmail.com>
To:        Hans Petter Selasky <hselasky@c2i.net>
Cc:        freebsd-current@freebsd.org
Subject:   Re: new usb: mass storage error, Synchronize cache failed
Message-ID:  <747dc8f30904080902o1771b3e7i8ac24f1c4139c33d@mail.gmail.com>
In-Reply-To: <200904081438.59388.hselasky@c2i.net>
References:  <747dc8f30904071139j32b55e2pf0fcd07a51c260a2@mail.gmail.com>  <200904080816.09996.hselasky@c2i.net> <747dc8f30904080525p4e8dfe7fi15e6e758338467c8@mail.gmail.com>  <200904081438.59388.hselasky@c2i.net>

next in thread | previous in thread | raw e-mail | index | archive | help
--0016e644dd26467f0c04670d430c
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On Wed, Apr 8, 2009 at 9:38 AM, Hans Petter Selasky <hselasky@c2i.net> wrot=
e:
> On Wednesday 08 April 2009, Renato Botelho wrote:
>> On Wed, Apr 8, 2009 at 3:16 AM, Hans Petter Selasky <hselasky@c2i.net>
> wrote:
>> > On Tuesday 07 April 2009, Renato Botelho wrote:
>> >> When I plug a gradiente cell phone on my USB I got this:
>> >>
>> >> Apr =A07 15:33:01 botelhor root: Unknown USB device: vendor 0x0e8d
>> >> product 0x0002 bus uhub0
>> >> Apr =A07 15:33:01 botelhor kernel: ugen0.2: <EZZE-E800GF> at usbus0
>> >> Apr =A07 15:33:01 botelhor kernel: umass0: <EZZE -Storage> on usbus0
>> >> Apr =A07 15:33:01 botelhor kernel: umass0: =A0SCSI over Bulk-Only; qu=
irks =3D
>> >> 0x0000 Apr =A07 15:33:02 botelhor kernel: umass0:0:0:-1: Attached to
>> >> scbus0 Apr =A07 15:33:02 botelhor kernel: da0 at umass-sim0 bus 0 tar=
get 0
>> >> lun 0 Apr 7 15:33:02 botelhor kernel: da0: <GF-500 =A0> Removable Dir=
ect
>> >> Access SCSI-0 device
>> >> Apr =A07 15:33:02 botelhor kernel: da0: 1.000MB/s transfers
>> >> Apr =A07 15:33:02 botelhor kernel: da0: 982MB (2012160 512 byte secto=
rs:
>> >> 64H 32S/T 982C)
>> >> Apr =A07 15:33:02 botelhor kernel: da1 at umass-sim0 bus 0 target 0 l=
un 1
>> >> Apr =A07 15:33:02 botelhor kernel: da1: <GF-500 =A0> Removable Direct
>> >> Access SCSI-0 device
>> >> Apr =A07 15:33:02 botelhor kernel: da1: 1.000MB/s transfers
>> >> Apr =A07 15:33:02 botelhor kernel: da1: 1MB (3668 512 byte sectors: 6=
4H
>> >> 32S/T 1C) Apr =A07 15:33:02 botelhor kernel: GEOM: da0: partition 1 d=
oes
>> >> not start on a track boundary.
>> >> Apr =A07 15:33:02 botelhor kernel: GEOM: da0: partition 1 does not en=
d
>> >> on a track boundary.
>> >> Apr =A07 15:33:04 botelhor kernel: umass0: at uhub0, port 2, addr 2
>> >> (disconnected) Apr =A07 15:33:04 botelhor kernel: (da1:umass-sim0:0:0=
:1):
>> >> Synchronize cache failed, status =3D=3D 0x3f, scsi status =3D=3D 0x0
>> >> Apr =A07 15:33:04 botelhor kernel: (da0:umass-sim0:0:0:0): lost devic=
e
>> >> Apr =A07 15:33:04 botelhor kernel: (da0:umass-sim0:0:0:0): removing d=
evice
>> >> entry Apr =A07 15:33:04 botelhor kernel: (da1:umass-sim0:0:0:1): lost
>> >> device Apr =A07 15:33:04 botelhor kernel: (da1:umass-sim0:0:0:1): rem=
oving
>> >> device entry Apr =A07 15:33:04 botelhor kernel: ugen0.2: <EZZE-E800GF=
> at
>> >> usbus0 (disconnected)
>> >>
>> >> Using 8.0-CURRENT r190550
>> >>
>> >> I've tried on all usb ports, and have the same. Any idea?
>> >
>> > Your device probably needs the no synchronize cache quirk. See quirk
>> > table in /sys/dev/usb/storage/umass.c .
>>
>> Hans,
>>
>> I got it and can make tests here, but, i cannot find EZZE-E800GF or noth=
ing
>> related on usbdevs, I don't know where this description came from. Could
>> you point me to the right place?
>>
>
> usbconfig dump_device_desc
>
> Look for idVendor and idProduct

I did it:

ugen1.2: <GF-500 EZZE-E800GF> at usbus1, cfg=3D0 md=3DHOST spd=3DFULL (12Mb=
ps) pwr=3DON

  bLength =3D 0x0012
  bDescriptorType =3D 0x0001
  bcdUSB =3D 0x0110
  bDeviceClass =3D 0x0000
  bDeviceSubClass =3D 0x0000
  bDeviceProtocol =3D 0x0000
  bMaxPacketSize0 =3D 0x0008
  idVendor =3D 0x0e8d
  idProduct =3D 0x0002
  bcdDevice =3D 0x0001
  iManufacturer =3D 0x0002  <EZZE-E800GF>
  iProduct =3D 0x0003  <GF-500 >
  iSerialNumber =3D 0x0004  <53923610014483f>
  bNumConfigurations =3D 0x0001

And I created attached patch but nothing different happened,
when I plug usb in, the same result.

Thanks
--=20
Renato Botelho

--0016e644dd26467f0c04670d430c
Content-Type: application/octet-stream; name="usb.diff"
Content-Disposition: attachment; filename="usb.diff"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_fta7kpzs0

SW5kZXg6IHN5cy9kZXYvdXNiL3N0b3JhZ2UvdW1hc3MuYwo9PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBzeXMvZGV2
L3VzYi9zdG9yYWdlL3VtYXNzLmMJKHJldmlzaW9uIDE5MDg0MykKKysrIHN5cy9kZXYvdXNiL3N0
b3JhZ2UvdW1hc3MuYwkod29ya2luZyBjb3B5KQpAQCAtNDQzLDYgKzQ0MywxMCBAQAogCQlVTUFT
U19QUk9UT19TQ1NJIHwgVU1BU1NfUFJPVE9fQkJCLAogCQlOT19HRVRNQVhMVU4KIAl9LAorCXtV
U0JfVkVORE9SX0VaWkUsIFVTQl9QUk9EVUNUX0VaWkVfR0Y1MDAsIFJJRF9XSUxEQ0FSRCwKKwkJ
VU1BU1NfUFJPVE9fU0NTSSB8IFVNQVNTX1BST1RPX0JCQiwKKwkJTk9fU1lOQ0hST05JWkVfQ0FD
SEUKKwl9LA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c04670d430c--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?747dc8f30904080902o1771b3e7i8ac24f1c4139c33d>