Re: Umass device doesn't work (didn't with old stack either)

From: Luigi Rizzo <rizzo_at_iet.unipi.it>
Date: Sun, 15 Mar 2009 13:10:06 +0100
On Sun, Mar 15, 2009 at 01:32:10PM +0200, Ian Freislich wrote:
> Hi
> 
> I have a device that I'd very much like to get working.  It didn't
> work with the old USB stack, but HPS has been *very* much more
> responsive so maybe there's hope.

You can try sysutils/kdpatch to patch the quirks table for
umass. As far as I can tell the table has the same format
in usb2 and usb1 so the following should work:

kldpatch umass.ko - _at_0 0x10d6 0x0000xxxx 0xffffffff 0x0201 0x4200

(replace xxxx with the usb product id for your device).
0x201 means use ATAPI commands over BBB protocol which is what
      your messages say. Perhaps 0x101 also works here.

0x4000 means the following:
        /* Device cannot handle a SCSI synchronize cache command.  Normally
         * this quirk would be handled in the cam layer, but for IDE bridges
         * we need to associate the quirk with the bridge and not the
         * underlying disk device.  This is handled by faking a success result.
         */
	#       define NO_SYNCHRONIZE_CACHE     0x4000

you may have to play with different flags and quirks to make the
thing work.

	cheers
	luigi

> On insert I get the followinng message:
> 
> ugen0.3: <vendor 0x10d6> at usbus0
> umass0: <vendor 0x10d6 USB MASS STORAGE CLASS, class 0/0, rev 1.10/1.00, addr 3> on usbus0
> umass0:  8070i (ATAPI) over Bulk-Only; quirks = 0x0000
> umass0:3:0:-1: Attached to scbus3
> da0 at umass-sim0 bus 0 target 0 lun 0
> da0: <JNC MP3 PLAYER 1.00> Removable Direct Access SCSI-0 device 
> da0: 1.000MB/s transfers
> da0: 499MB (1023713 512 byte sectors: 64H 32S/T 499C)
> GEOM: da0: partition 1 does not start on a track boundary.
> GEOM: da0: partition 1 does not end on a track boundary.
> (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi status == 0x0
> umass0: at uhub0, port 1, addr 3 (disconnected)
> (da0:umass-sim0:0:0:0): lost device
> (da0:umass-sim0:0:0:0): removing device entry
> ugen0.3: <vendor 0x10d6> at usbus0 (disconnected
> 
> Ian
> 
> --
> Ian Freislich
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
Received on Sun Mar 15 2009 - 11:21:17 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:44 UTC