>From the usba_debug_buf, all SCSI commands sent by scsa2usb driver failed at status phase(CSW) of a transfer, as follows: ...
s2u0: scsa2usb_handle_scsi_cmd_sub_class: opcode = 0x0 count = 0x0 ehci0: ehci_check_for_short_xfer: residue=13 direction=0x100 ehci0: ehci_check_for_short_xfer: requested data=13 received data=0 s2u0: scsa2usb_handle_csw_result: no enough data (0) ... s2u0: scsa2usb_handle_scsi_cmd_sub_class: opcode = 0x25 count = 0x8 s2u0: bytes in each logical block=0x200,number of total logical blocks=0x950f8 b0 ehci0: ehci_check_for_short_xfer: residue=13 direction=0x100 ehci0: ehci_check_for_short_xfer: requested data=13 received data=0 s2u0: scsa2usb_handle_csw_result: no enough data (0) ... it seems each time the SCSI command was sent successfully, but USB driver cannot get any status data about that command from device. So all these commands failed. Could you try some other different USB2.0 storage devices on the same port to see if they work well? If only the Prolific device does not work, I can compile a debug version scsa2usb driver to you to get more debug information. You need tell me your OS build. Thanks Guoqing Palle Lyckegaard ??: > On Wed, 1 Apr 2009, guoqing zhu - Sun Microsystems - Beijing China wrote: > >> Date: Wed, 01 Apr 2009 10:45:29 +0800 >> From: guoqing zhu - Sun Microsystems - Beijing China >> <Guoqing.Zhu at Sun.COM> >> To: Palle Lyckegaard <palle at lyckegaard.dk> >> Cc: driver-usb at opensolaris.org >> Subject: Re: [driver-usb] Prolific Technology Inc. Mass Storage >> Device (usb67b >> , 2506) >> >> Palle Lyckegaard : >>> Hi, >>> >>> I have problems getting an external USB disk enclosure to work >>> properly with OpenSolaris/SPARC. >>> >>> The unit identifies it self as >>> Prolific Technology Inc. Mass Storage Device (usb67b,2506) >>> (http://www.prolific.com.tw/eng/Products.asp?ID=69) >>> >>> The device is known to work properly with Window Vista and the >>> external disk is formatted with an NTFS filesystem. >>> >>> dmesg shows this: >>> >>> Mar 31 17:31:45 odin usba: [ID 912658 kern.info] USB 2.0 device >>> (usb67b,2506) operating at hi speed (USB 2.x) on USB 2.0 root hub: >>> storage at 6, scsa2usb0 at bus address 2 >>> Mar 31 17:31:45 odin usba: [ID 349649 kern.info] Prolific Technology >>> Inc. Mass Storage Device 000000000000 >>> Mar 31 17:31:45 odin genunix: [ID 936769 kern.info] scsa2usb0 is >>> /pci at 1f,0/pci at 1/usb at 4,3/storage at 6 >>> Mar 31 17:31:45 odin genunix: [ID 408114 kern.info] >>> /pci at 1f,0/pci at 1/usb at 4,3/storage at 6 (scsa2usb0) online >>> Mar 31 17:31:45 odin scsi: [ID 193665 kern.info] sd0 at scsa2usb0: >>> target 0 lun 0 >>> Mar 31 17:31:45 odin genunix: [ID 936769 kern.info] sd0 is >>> /pci at 1f,0/pci at 1/usb at 4,3/storage at 6/disk at 0,0 >>> >>> >>> The output from rmformat is (with a several minute delay between the >>> two entries): >>> >>> Looking for devices... >>> 1. Logical Node: /dev/rdsk/c0t1d0s2 >>> Physical Node: /pci at 1f,0/pci at 1,1/ide at 3/sd at 1,0 >>> Connected Device: SAMSUNG CDRW/DVD SM-352F T900 >>> Device Type: DVD Reader >>> Bus: IDE >>> Size: <Unknown> >>> Label: <Unknown> >>> Access permissions: <Unknown> >>> 2. Logical Node: /dev/rdsk/c2t0d0s2 >>> Physical Node: /pci at 1f,0/pci at 1/usb at 4,3/storage at 6/disk at 0,0 >>> Connected Device: Prolific Mass Storage Dev 0100 >>> Device Type: <Unknown> >>> Bus: USB >>> Size: <Unknown> >>> Label: <Unknown> >>> Access permissions: <Unknown> >> It seems Inquiry command was not processed correctly. >>> >>> >>> Trying to use rmformat to format the disk with >>> /usr/bin/rmformat -F long /dev/rdsk/c2t0d0s2 >>> gives a "No media in specified device" error message. >>> >>> iostat -Ei output: >>> sd0 Soft Errors: 0 Hard Errors: 14 Transport Errors: 90 >>> Vendor: Prolific Product: Mass Storage Dev Revision: 0100 Device Id: >>> Size: 0.00GB <0 bytes> >>> Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0 >>> Illegal Request: 2 Predictive Failure Analysis: 0 >>> >>> >>> I have tried to add the device (usb67b,2506) to the scsa2usb driver >>> in the /etc/driver_aliases file using the update_drv(1M) command and >>> also updated the /kernel/drv/scsa2usb.conf file with two lines like >>> this: >>> ... >>> attribute-override-list = >>> "vid=* reduced-cmd-support=true"; >>> ... >> After you set this, did you reboot the system? > > Yes > >> >> Could you get the debug infos from mdb as follows and send it to me? > > Attached... > >> >> #echo "::usba_clear_debug_buf" |mdb -wk >> then Plug in your usb device and wait several seconds >> #echo "::usba_debug_buf" |mdb -k > /tmp/usblog >> #echo "::prtusb" | mdb -k >> /tmp/usblog >> #dmesg >> /tmp/usblog >> #prtconf -D >> /tmp/usblog >> >> Thanks >> Guoqing >>> >>> >>> Have I overlooked something or is the device not supported properly >>> by the scsa2usb driver? >>> >>> I'm running an older version of OpenSolaris (SunOS odin 5.11 snv_90 >>> sun4u sparc SUNW,Ultra-5_10). >>> >>> Regards >>> Palle >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> _______________________________________________ >>> driver-usb mailing list >>> driver-usb at opensolaris.org >>> http://mail.opensolaris.org/mailman/listinfo/driver-usb >> >>