Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Mar 2016 11:02:24 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-usb@FreeBSD.org
Subject:   [Bug 208081] JMicron 20329 USB to ATA/ATAPI Bridge error
Message-ID:  <bug-208081-17@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D208081

            Bug ID: 208081
           Summary: JMicron 20329 USB to ATA/ATAPI Bridge error
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: usb
          Assignee: freebsd-usb@FreeBSD.org
          Reporter: sylvain@sylvaingarrigues.com
                CC: freebsd-amd64@FreeBSD.org
                CC: freebsd-amd64@FreeBSD.org

Hello,

My USB drive is recognized by FreeBSD but it cannot find partitions on it.

The error message (in /var/log/messages) is:

usbd_set_config_index: could not read device status: USB_ERR_SHORT_XFER
ugen7.2: <JMicron> at usbus7
umass0: <MSC Bulk-Only Transfer> on usbus7
umass0:  SCSI over Bulk-Only; quirks =3D 0x4080
umass0:5:0: Attached to scbus5
da0 at umass-sim0 bus 0 scbus5 target 0 lun 0
da0: <SAMSUNG HM320JX > Fixed Direct Access SCSI-2 device
da0: Serial Number 32291B141A84
da0: 40.000MB/s transfers
da0: 305245MB (625142448 512 byte sectors)
da0: quirks=3D0x2<NO_6_BYTE>

Here are some info:
# usbconfig -u 7 -a 2 dump_device_desc
ugen7.2: <USB to ATAATAPI Bridge JMicron> at usbus7, cfg=3D0 md=3DHOST spd=
=3DHIGH
(480Mbps) pwr=3DON (2mA)

  bLength =3D 0x0012=20
  bDescriptorType =3D 0x0001=20
  bcdUSB =3D 0x0200=20
  bDeviceClass =3D 0x0000  <Probed by interface class>
  bDeviceSubClass =3D 0x0000=20
  bDeviceProtocol =3D 0x0000=20
  bMaxPacketSize0 =3D 0x0040=20
  idVendor =3D 0x152d=20
  idProduct =3D 0x2329=20
  bcdDevice =3D 0x0100=20
  iManufacturer =3D 0x0001  <JMicron>
  iProduct =3D 0x0002  <USB to ATA/ATAPI Bridge>
  iSerialNumber =3D 0x0005  <32291B141A84>
  bNumConfigurations =3D 0x0001=20


I tried adding some quirks (see patch below) but it doesn't work either.

The drive is recognized under Mac OS or Windows.

Any help?


Index: sys/dev/usb/quirk/usb_quirk.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- sys/dev/usb/quirk/usb_quirk.c       (revision 296946)
+++ sys/dev/usb/quirk/usb_quirk.c       (working copy)
@@ -239,6 +239,10 @@
        USB_QUIRK(IOMEGA, ZIP100, 0x0000, 0xffff, UQ_MSC_FORCE_WIRE_BBB,
            UQ_MSC_FORCE_PROTO_SCSI,
            UQ_MSC_NO_TEST_UNIT_READY), /* XXX ZIP drives can also use ATAP=
I */
+       USB_QUIRK(JMICRON, JM20329, 0x0000, 0xffff, UQ_MSC_FORCE_WIRE_BBB,
+           UQ_MSC_FORCE_PROTO_SCSI,
+           UQ_MSC_IGNORE_RESIDUE,
+           UQ_MSC_NO_SYNC_CACHE),
        USB_QUIRK(JMICRON, JM20337, 0x0000, 0xffff, UQ_MSC_FORCE_WIRE_BBB,
            UQ_MSC_FORCE_PROTO_SCSI,
            UQ_MSC_NO_SYNC_CACHE),
Index: sys/dev/usb/usbdevs
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- sys/dev/usb/usbdevs (revision 296946)
+++ sys/dev/usb/usbdevs (working copy)
@@ -2527,6 +2527,7 @@
 product JETI SPC1201           0x04b2  FTDI compatible adapter

 /* JMicron products */
+product JMICRON JM20329                0x2329  USB to ATA/ATAPI Bridge
 product JMICRON JM20336                0x2336  USB to SATA Bridge
 product JMICRON JM20337                0x2338  USB to ATA/ATAPI Bridge

--=20
You are receiving this mail because:
You are the assignee for the bug.=



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