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>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
On Wed, Apr 8, 2009 at 9:38 AM, Hans Petter Selasky <hselasky@c2i.net> wrote:
> 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 7 15:33:01 botelhor root: Unknown USB device: vendor 0x0e8d
>> >> product 0x0002 bus uhub0
>> >> Apr 7 15:33:01 botelhor kernel: ugen0.2: <EZZE-E800GF> at usbus0
>> >> Apr 7 15:33:01 botelhor kernel: umass0: <EZZE -Storage> on usbus0
>> >> Apr 7 15:33:01 botelhor kernel: umass0: SCSI over Bulk-Only; quirks =
>> >> 0x0000 Apr 7 15:33:02 botelhor kernel: umass0:0:0:-1: Attached to
>> >> scbus0 Apr 7 15:33:02 botelhor kernel: da0 at umass-sim0 bus 0 target 0
>> >> lun 0 Apr 7 15:33:02 botelhor kernel: da0: <GF-500 > Removable Direct
>> >> Access SCSI-0 device
>> >> Apr 7 15:33:02 botelhor kernel: da0: 1.000MB/s transfers
>> >> Apr 7 15:33:02 botelhor kernel: da0: 982MB (2012160 512 byte sectors:
>> >> 64H 32S/T 982C)
>> >> Apr 7 15:33:02 botelhor kernel: da1 at umass-sim0 bus 0 target 0 lun 1
>> >> Apr 7 15:33:02 botelhor kernel: da1: <GF-500 > Removable Direct
>> >> Access SCSI-0 device
>> >> Apr 7 15:33:02 botelhor kernel: da1: 1.000MB/s transfers
>> >> Apr 7 15:33:02 botelhor kernel: da1: 1MB (3668 512 byte sectors: 64H
>> >> 32S/T 1C) Apr 7 15:33:02 botelhor kernel: GEOM: da0: partition 1 does
>> >> not start on a track boundary.
>> >> Apr 7 15:33:02 botelhor kernel: GEOM: da0: partition 1 does not end
>> >> on a track boundary.
>> >> Apr 7 15:33:04 botelhor kernel: umass0: at uhub0, port 2, addr 2
>> >> (disconnected) Apr 7 15:33:04 botelhor kernel: (da1:umass-sim0:0:0:1):
>> >> Synchronize cache failed, status == 0x3f, scsi status == 0x0
>> >> Apr 7 15:33:04 botelhor kernel: (da0:umass-sim0:0:0:0): lost device
>> >> Apr 7 15:33:04 botelhor kernel: (da0:umass-sim0:0:0:0): removing device
>> >> entry Apr 7 15:33:04 botelhor kernel: (da1:umass-sim0:0:0:1): lost
>> >> device Apr 7 15:33:04 botelhor kernel: (da1:umass-sim0:0:0:1): removing
>> >> device entry Apr 7 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 nothing
>> 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=0 md=HOST spd=FULL (12Mbps) pwr=ON
bLength = 0x0012
bDescriptorType = 0x0001
bcdUSB = 0x0110
bDeviceClass = 0x0000
bDeviceSubClass = 0x0000
bDeviceProtocol = 0x0000
bMaxPacketSize0 = 0x0008
idVendor = 0x0e8d
idProduct = 0x0002
bcdDevice = 0x0001
iManufacturer = 0x0002 <EZZE-E800GF>
iProduct = 0x0003 <GF-500 >
iSerialNumber = 0x0004 <53923610014483f>
bNumConfigurations = 0x0001
And I created attached patch but nothing different happened,
when I plug usb in, the same result.
Thanks
--
Renato Botelho
[-- Attachment #2 --]
Index: sys/dev/usb/storage/umass.c
===================================================================
--- sys/dev/usb/storage/umass.c (revision 190843)
+++ sys/dev/usb/storage/umass.c (working copy)
@@ -443,6 +443,10 @@
UMASS_PROTO_SCSI | UMASS_PROTO_BBB,
NO_GETMAXLUN
},
+ {USB_VENDOR_EZZE, USB_PRODUCT_EZZE_GF500, RID_WILDCARD,
+ UMASS_PROTO_SCSI | UMASS_PROTO_BBB,
+ NO_SYNCHRONIZE_CACHE
+ },
{USB_VENDOR_FEIYA, USB_PRODUCT_FEIYA_5IN1, RID_WILDCARD,
UMASS_PROTO_SCSI | UMASS_PROTO_BBB,
NO_QUIRKS
Index: sys/dev/usb/usbdevs
===================================================================
--- sys/dev/usb/usbdevs (revision 190843)
+++ sys/dev/usb/usbdevs (working copy)
@@ -526,6 +526,7 @@
vendor HAWKING 0x0e66 Hawking
vendor FOSSIL 0x0e67 Fossil, Inc
vendor GMATE 0x0e7e G.Mate, Inc
+vendor EZZE 0x0e8d Ezze Mobile
vendor OTI 0x0ea0 Ours Technology
vendor YISO 0x0eab Yiso Wireless Co.
vendor PILOTECH 0x0eaf Pilotech
@@ -1269,6 +1270,9 @@
/* Extended Systems products */
product EXTENDED XTNDACCESS 0x0100 XTNDAccess IrDA
+/* Ezze Mobile products */
+product EZZE GF500 0x0003 GF-500
+
/* FEIYA products */
product FEIYA 5IN1 0x1132 5-in-1 Card Reader
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?747dc8f30904080902o1771b3e7i8ac24f1c4139c33d>
