Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Aug 2010 22:39:40 +0300
From:      Mykola Dzham <i@levsha.me>
To:        Volodymyr Kostyrko <c.kworr@gmail.com>
Cc:        freebsd-usb@freebsd.org
Subject:   Re: ranscend JetFlash V85
Message-ID:  <20100823193940.GA38170@laptop.levsha.me>
In-Reply-To: <4C703019.8070600@gmail.com>
References:  <i4k4lc$rg1$1@dough.gmane.org> <201008192338.37828.hselasky@c2i.net> <4C701AE7.8030805@gmail.com> <201008212029.59291.hselasky@c2i.net> <4C703019.8070600@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--Dxnq1zWXvFF0Q93v
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

 Volodymyr Kostyrko wrote:
> 21.08.2010 21:29, Hans Petter Selasky wrote:
> >>> You can use usbconfig to add quirks on the fly. See:
> >>>
> >>> usbconfig -h
> >>>
> >>> And:
> >>>
> >>> man usbconfig
> >>
> >> Tried that, but it doesn't work for me or I'm messing things up...
> >>
> >> usbconfig -d 3.3 add_quirk UQ_MSC_NO_SYNC_CACHE
> >>
> >> And errors continue to show up. The man page also is kinda short on da=
ta.
> >
> > After setting the quirk, you need to reset or re-attach the USB device.
>=20
> Not a good behavior for me. What if I need to boot from one? Most FS=20
> don't like been pushed off device.
>=20
> But this doesn't work too.
>=20
> usbconfig -d 3.3 add_quirk UQ_MSC_NO_TEST_UNIT_READY
> usbconfig -d 3.3 reset
>=20
> Gives me:
>=20
> Aug 21 22:46:14 limbo kernel: umass1: at uhub3, port 5, addr 3=20
> (disconnected)
> Aug 21 22:46:14 limbo kernel: (da4:umass-sim1:1:0:0): lost device
> Aug 21 22:46:14 limbo kernel: (da4:umass-sim1:1:0:0): removing device ent=
ry
> Aug 21 22:46:15 limbo root: Unknown USB device: vendor 0x058f product=20
> 0x6387 bus uhub3
> Aug 21 22:46:15 limbo kernel: umass1: <JetFlash Mass Storage Device,=20
> class 0/0, rev 2.00/1.00, addr 3> on usbus3
> Aug 21 22:46:15 limbo kernel: umass1:  SCSI over Bulk-Only; quirks =3D 0x=
0100
>=20
> Here, quirks field doesn't change when I add more quirks.
>=20
> Aug 21 22:46:16 limbo kernel: umass1:2:1:-1: Attached to scbus2
> Aug 21 22:46:16 limbo kernel: (probe0:umass-sim1:1:0:0): TEST UNIT=20
> READY. CDB: 0 0 0 0 0 0
> Aug 21 22:46:16 limbo kernel: (probe0:umass-sim1:1:0:0): CAM status:=20
> SCSI Status Error
> Aug 21 22:46:16 limbo kernel: (probe0:umass-sim1:1:0:0): SCSI status:=20
> Check Condition
> Aug 21 22:46:16 limbo kernel: (probe0:umass-sim1:1:0:0): SCSI sense:=20
> UNIT ATTENTION asc:28,0 (Not ready to ready change, medium may have chang=
ed)
> Aug 21 22:46:16 limbo kernel: da4 at umass-sim1 bus 1 scbus2 target 0 lun=
 0
> Aug 21 22:46:16 limbo kernel: da4: <JetFlash TS4GJFV85 8.07> Removable=20
> Direct Access SCSI-2 device
> Aug 21 22:46:16 limbo kernel: da4: 40.000MB/s transfers
> Aug 21 22:46:16 limbo kernel: da4: 3900MB (7987200 512 byte sectors:=20
> 255H 63S/T 497C)
> Aug 21 22:46:24 limbo kernel: (da4:umass-sim1:1:0:0): SYNCHRONIZE=20
> CACHE(10). CDB: 35 0 0 0 0 0 0 0 0 0
> Aug 21 22:46:24 limbo kernel: (da4:umass-sim1:1:0:0): CAM status: SCSI=20
> Status Error
> Aug 21 22:46:24 limbo kernel: (da4:umass-sim1:1:0:0): SCSI status: Check=
=20
> Condition
> Aug 21 22:46:24 limbo kernel: (da4:umass-sim1:1:0:0): SCSI sense:=20
> ILLEGAL REQUEST asc:26,0 (Invalid field in parameter list)
>=20
> Mentioned patch was looking like:
>=20
> USB_QUIRK(ALCOR, TRANSCEND, 0x0142, 0x0142, UQ_MSC_FORCE_WIRE_BBB,=20
> UQ_MSC_FORCE_PROTO_SCSI, UQ_MSC_NO_GETMAXLUN, UQ_MSC_NO_SYNC_CACHE),
>=20
> But I don't understand what should be set for my flash at 3-4 places...=
=20
> They are covering some range but inspecting my flash I don't see=20
> something close to the 0x142.

This is bcdDevice range. So, change first 0x0142 to 0x100 for your
flash drive or add another quirk (before quirk for all TRANSCEND's)
with 3-4 places set to 0x100.

--=20
LEFT-(UANIC|RIPE)
JID: levsha@jabber.net.ua
PGP fingerprint: 1BCD 7C80 2E04 7282 C944  B0E0 7E67 619E 4E72 9280

--Dxnq1zWXvFF0Q93v
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (FreeBSD)

iQEcBAEBAgAGBQJMcs56AAoJEH5nYZ5OcpKAgG4H/id5PLktSS0/+N+NB3faNIU1
8+vwwASBHLsgy7Oa6yoTZTDIfYWek9jw1C5Pio88DBtkgQN8CFAOosaM+tCZIJPh
cvIcdBaNtkCQ9IlqlLuZBbFEkCn3epBbzYLPygfB/HIFEwg88UKNSz9z+rAPEI2A
3V/qBiXOi+i7RpjhoSKN7ystIHciDsnDtj/V78Q9K/sDgJuOKO+oysDcRyeZ6kup
GtdoyGZ27x45fhMu771vILdr3ZcoOc8onh3PhoNABHfNjIwg4Al09/HlsNhQU1JR
miBRhmdCrUFIbfSzTGm7qx/DOOQNTXyXwRZVrKo6I/cUbGVtdhG6/Wuza3IuXbk=
=eZ2m
-----END PGP SIGNATURE-----

--Dxnq1zWXvFF0Q93v--



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