From owner-freebsd-usb@FreeBSD.ORG Mon Aug 23 19:58:58 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 115FC1065672 for ; Mon, 23 Aug 2010 19:58:58 +0000 (UTC) (envelope-from i@levsha.me) Received: from expo.ukrweb.net (mail.univua.net [91.202.128.78]) by mx1.freebsd.org (Postfix) with ESMTP id 4CE208FC12 for ; Mon, 23 Aug 2010 19:58:57 +0000 (UTC) Received: from [95.132.152.178] (helo=laptop.levsha.me) by expo.ukrweb.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.71 (FreeBSD)) (envelope-from ) id 1OncsN-0001gx-LP; Mon, 23 Aug 2010 22:40:14 +0300 Received: from levsha by laptop.levsha.me with local (Exim 4.72 (FreeBSD)) (envelope-from ) id 1Oncrs-000A4s-K6; Mon, 23 Aug 2010 22:39:40 +0300 Date: Mon, 23 Aug 2010 22:39:40 +0300 From: Mykola Dzham To: Volodymyr Kostyrko Message-ID: <20100823193940.GA38170@laptop.levsha.me> References: <201008192338.37828.hselasky@c2i.net> <4C701AE7.8030805@gmail.com> <201008212029.59291.hselasky@c2i.net> <4C703019.8070600@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Dxnq1zWXvFF0Q93v" Content-Disposition: inline In-Reply-To: <4C703019.8070600@gmail.com> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: Mykola Dzham X-SA-Exim-Connect-IP: 95.132.152.178 X-SA-Exim-Mail-From: i@levsha.me X-SA-Exim-Scanned: No (on expo.ukrweb.net); SAEximRunCond expanded to false Cc: freebsd-usb@freebsd.org Subject: Re: ranscend JetFlash V85 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Aug 2010 19:58:58 -0000 --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: 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: 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--