Hi there.

As a followup to Kjeld Jensen's posting, I did some testing with my
QDI USBDisk that arrived today. It is a flash ROM device with 64 MB
capacity (in my case, there are others). The device is found by
Windows, and is working there.
The device is detected and claimed by the usb-storage driver, but can
not be accessed. I compiled verbose USB in the kernel, these are the
messages on loading the usb-storage driver (the device is connected
at this point):

-----------------------------
kernel: usb-uhci.c: $Revision: 1.268 $ time 13:29:24 Dec 21 2001
kernel: usb-uhci.c: High bandwidth mode enabled
kernel: PCI: Found IRQ 10 for device 00:14.2
kernel: usb-uhci.c: USB UHCI at I/O 0x1080, IRQ 10
kernel: usb-uhci.c: Detected 2 ports
kernel: usb.c: new USB bus registered, assigned bus number 1
kernel: usb.c: kmalloc IF c216fba0, numif 1
kernel: usb.c: new device strings: Mfr=0, Product=2, SerialNumber=1
kernel: usb.c: USB device number 1 default language ID 0x0
kernel: Product: USB UHCI Root Hub
kernel: SerialNumber: 1080
kernel: hub.c: USB hub found
kernel: hub.c: 2 ports detected
kernel: hub.c: standalone hub
kernel: hub.c: ganged power switching
kernel: hub.c: global over-current protection
kernel: hub.c: Port indicators are not supported
kernel: hub.c: power on to power good time: 2ms
kernel: hub.c: hub controller current requirement: 0mA
kernel: hub.c: port removable status: RR
kernel: hub.c: local power source is good
kernel: hub.c: no over-current condition exists
kernel: hub.c: enabling power on all ports
kernel: usb.c: hub driver claimed interface c216fba0
kernel: usb-uhci.c: v1.268:USB Universal Host Controller Interface driver
kernel: hub.c: port 1 connection change
kernel: hub.c: port 1, portstatus 101, change 1, 12 Mb/s
kernel: hub.c: port 1, portstatus 103, change 0, 12 Mb/s
kernel: hub.c: USB new device connect on bus1/1, assigned device number 2
kernel: usb.c: kmalloc IF c216fca0, numif 1
kernel: usb.c: new device strings: Mfr=1, Product=3, SerialNumber=2
kernel: usb.c: USB device number 2 default language ID 0x409
kernel: Manufacturer:  USB TECHNOLOGY
kernel: Product: USB Portable Device
kernel: SerialNumber: 000000000001
kernel: usb.c: unhandled interfaces on device
kernel: usb.c: USB device 2 (vend/prod 0x1065/0x2136) is not claimed by
any active driver. kernel:   Length              = 18
kernel:   DescriptorType      = 01
kernel:   USB version         = 1.10
kernel:   Vendor:Product      = 1065:2136
kernel:   MaxPacketSize0      = 64
kernel:   NumConfigurations   = 1
kernel:   Device version      = 0.01
kernel:   Device Class:SubClass:Protocol = 00:00:00
kernel:     Per-interface classes
kernel: Configuration:
kernel:   bLength             =    9
kernel:   bDescriptorType     =   02
kernel:   wTotalLength        = 0020
kernel:   bNumInterfaces      =   01
kernel:   bConfigurationValue =   01
kernel:   iConfiguration      =   00
kernel:   bmAttributes        =   c0
kernel:   MaxPower            =    0mA
kernel: 
kernel:   Interface: 0
kernel:   Alternate Setting:  0
kernel:     bLength             =    9
kernel:     bDescriptorType     =   04
kernel:     bInterfaceNumber    =   00
kernel:     bAlternateSetting   =   00
kernel:     bNumEndpoints       =   02
kernel:     bInterface Class:SubClass:Protocol =   08:06:50
kernel:     iInterface          =   00
kernel:     Endpoint:
kernel:       bLength             =    7
kernel:       bDescriptorType     =   05
kernel:       bEndpointAddress    =   82 (in)
kernel:       bmAttributes        =   02 (Bulk)
kernel:       wMaxPacketSize      = 0040
kernel:       bInterval           =   00
kernel:     Endpoint:
kernel:       bLength             =    7
kernel:       bDescriptorType     =   05
kernel:       bEndpointAddress    =   02 (out)
kernel:       bmAttributes        =   02 (Bulk)
kernel:       wMaxPacketSize      = 0040
kernel:       bInterval           =   00
kernel: SCSI subsystem driver Revision: 1.00
kernel: Initializing USB Mass Storage driver...
kernel: usb.c: registered new driver usb-storage
kernel: usb-storage: act_altsettting is 0
kernel: usb-storage: id_index calculated to be: 72
kernel: usb-storage: Array length appears to be: 74
kernel: usb-storage: USB Mass Storage device detected
kernel: usb-storage: Endpoints: In: 0xca1b54e0 Out: 0xca1b54f4 Int:
0x00000000 (Period 0) kernel: usb-storage: New GUID
106521360000000000000001 kernel: usb-uhci.c: interrupt, status 2, frame#
660 kernel: usb-storage: GetMaxLUN command result is 0, data is 0
kernel: usb-storage: Transport: Bulk
kernel: usb-storage: Protocol: Transparent SCSI
kernel: usb-storage: *** thread sleeping.
kernel: scsi0 : SCSI emulation for USB Mass Storage devices
kernel: usb-storage: queuecommand() called
kernel: usb-storage: *** thread awakened.
kernel: usb-storage: Command INQUIRY (6 bytes)
kernel: usb-storage: 12 00 00 00 ff 00 0f c2 e0 d3 66 d1
kernel: usb-storage: Bulk command S 0x43425355 T 0x1 Trg 0 LUN 0 L 255 F
128 CL 6 kernel: usb-storage: Bulk command transfer result=0
kernel: usb-storage: usb_stor_transfer_partial(): xfer 255 bytes
kernel: usb-storage: usb_stor_bulk_msg() returned 0 xferred 36/255
kernel: usb-storage: Bulk data transfer result 0x1
kernel: usb-storage: Attempting to get CSW...
kernel: usb-storage: Bulk status result = 0
kernel: usb-storage: Bulk status Sig 0x53425355 T 0x1 R -620756992 Stat
0x0 kernel: usb-storage: Fixing INQUIRY data to show SCSI rev 2
kernel: usb-storage: scsi cmd done, result=0x0
kernel: usb-storage: *** thread sleeping.
kernel:   Vendor:           Model:                   Rev:     
kernel:   Type:   Direct-Access                      ANSI SCSI revision:
02 kernel: usb-storage: queuecommand() called
kernel: usb-storage: *** thread awakened.
kernel: usb-storage: Bad LUN (0/1)
kernel: usb-storage: *** thread sleeping.
kernel: usb-storage: queuecommand() called
kernel: usb-storage: *** thread awakened.
kernel: usb-storage: Bad target number (1/0)
kernel: usb-storage: *** thread sleeping.
kernel: usb-storage: queuecommand() called
kernel: usb-storage: *** thread awakened.
kernel: usb-storage: Bad target number (2/0)
kernel: usb-storage: *** thread sleeping.
kernel: usb-storage: queuecommand() called
kernel: usb-storage: *** thread awakened.
kernel: usb-storage: Bad target number (3/0)
kernel: usb-storage: *** thread sleeping.
kernel: usb-storage: queuecommand() called
kernel: usb-storage: *** thread awakened.
kernel: usb-storage: Bad target number (4/0)
kernel: usb-storage: *** thread sleeping.
kernel: usb-storage: queuecommand() called
kernel: usb-storage: *** thread awakened.
kernel: usb-storage: Bad target number (5/0)
kernel: usb-storage: *** thread sleeping.
kernel: usb-storage: queuecommand() called
kernel: usb-storage: *** thread awakened.
kernel: usb-storage: Bad target number (6/0)
kernel: usb-storage: *** thread sleeping.
kernel: usb-storage: queuecommand() called
kernel: usb-storage: *** thread awakened.
kernel: usb-storage: Bad target number (7/0)
kernel: usb-storage: *** thread sleeping.
kernel: WARNING: USB Mass Storage data integrity not assured
kernel: USB Mass Storage device found at 2
kernel: usb.c: usb-storage driver claimed interface c216fca0
kernel: USB Mass Storage support registered.
-------------------------------------------------

Trying to read from /dev/sda (using dd if=/dev/sda of=/dev/null count=1)
yields:

----------------------------------------------
kernel: Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
kernel: usb-storage: queuecommand() called
kernel: usb-storage: *** thread awakened.
kernel: usb-storage: Command TEST_UNIT_READY (6 bytes)
kernel: usb-storage: 00 00 00 00 00 00 00 00 00 00 09 d5
kernel: usb-storage: Bulk command S 0x43425355 T 0xa Trg 0 LUN 0 L 0 F 0
CL 6 kernel: usb-storage: Bulk command transfer result=0
kernel: usb-storage: Attempting to get CSW...
kernel: usb-storage: Bulk status result = 0
kernel: usb-storage: Bulk status Sig 0x53425355 T 0xa R 0 Stat 0x0
kernel: usb-storage: scsi cmd done, result=0x0
kernel: usb-storage: *** thread sleeping.
kernel: usb-storage: queuecommand() called
kernel: usb-storage: *** thread awakened.
kernel: usb-storage: Command READ_CAPACITY (10 bytes)
kernel: usb-storage: 25 00 00 00 00 00 00 00 00 00 09 d5
kernel: usb-storage: Bulk command S 0x43425355 T 0xb Trg 0 LUN 0 L 8 F 128
CL 10 kernel: usb-storage: Bulk command transfer result=0
kernel: usb-storage: usb_stor_transfer_partial(): xfer 8 bytes
kernel: usb-storage: usb_stor_bulk_msg() returned 0 xferred 8/8
kernel: usb-storage: usb_stor_transfer_partial(): transfer complete
kernel: usb-storage: Bulk data transfer result 0x0
kernel: usb-storage: Attempting to get CSW...
kernel: usb-storage: Bulk status result = 0
kernel: usb-storage: Bulk status Sig 0x53425355 T 0xb R 0 Stat 0x0
kernel: usb-storage: scsi cmd done, result=0x0
kernel: usb-storage: *** thread sleeping.
kernel: SCSI device sda: 32160 2048-byte hdwr sectors (66 MB)
kernel: usb-storage: queuecommand() called
kernel: usb-storage: *** thread awakened.
kernel: usb-storage: Command MODE_SENSE (6 bytes)
kernel: usb-storage: 1a 00 3f 00 ff 00 00 00 00 00 09 d5
kernel: usb-storage: Bulk command S 0x43425355 T 0xc Trg 0 LUN 0 L 255 F
128 CL 6 kernel: usb-storage: Bulk command transfer result=0
kernel: usb-storage: usb_stor_transfer_partial(): xfer 255 bytes
kernel: usb-uhci.c: interrupt, status 2, frame# 1114
kernel: usb-storage: usb_stor_bulk_msg() returned -32 xferred 0/255
kernel: usb-storage: clearing endpoint halt for pipe 0xc0010280
kernel: usb-storage: usb_stor_transfer_partial(): unknown error
kernel: usb-storage: Bulk data transfer result 0x2
kernel: usb-storage: Attempting to get CSW...
kernel: usb-storage: Bulk status result = 0
kernel: usb-storage: Bulk status Sig 0x53425355 T 0xc R -16777216 Stat 0x1
kernel: usb-storage: -- transport indicates command failure
kernel: usb-storage: Issuing auto-REQUEST_SENSE
kernel: usb-storage: Bulk command S 0x43425355 T 0xc Trg 0 LUN 0 L 18 F
128 CL 6 kernel: usb-storage: Bulk command transfer result=0
kernel: usb-storage: usb_stor_transfer_partial(): xfer 18 bytes
kernel: usb-storage: usb_stor_bulk_msg() returned 0 xferred 18/18
kernel: usb-storage: usb_stor_transfer_partial(): transfer complete
kernel: usb-storage: Bulk data transfer result 0x0
kernel: usb-storage: Attempting to get CSW...
kernel: usb-storage: Bulk status result = 0
kernel: usb-storage: Bulk status Sig 0x53425355 T 0xc R 0 Stat 0x0
kernel: usb-storage: -- Result from auto-sense is 0
kernel: usb-storage: -- code: 0x70, key: 0x5, ASC: 0x24, ASCQ: 0x0
kernel: usb-storage: Illegal Request: invalid field in CDB
kernel: usb-storage: scsi cmd done, result=0x2
kernel: usb-storage: *** thread sleeping.
kernel: sda: test WP failed, assume Write Enabled
kernel:  sda:<7>usb-storage: queuecommand() called
kernel: usb-storage: *** thread awakened.
kernel: usb-storage: Command READ_10 (10 bytes)
kernel: usb-storage: 28 00 00 00 00 00 00 00 02 00 09 d5
kernel: usb-storage: Bulk command S 0x43425355 T 0xd Trg 0 LUN 0 L 4096 F
128 CL 10 kernel: usb-storage: Bulk command transfer result=0
kernel: usb-storage: usb_stor_transfer_partial(): xfer 4096 bytes
kernel: usb-storage: usb_stor_bulk_msg() returned 0 xferred 4096/4096
kernel: usb-storage: usb_stor_transfer_partial(): transfer complete
kernel: usb-storage: Bulk data transfer result 0x0
kernel: usb-storage: Attempting to get CSW...
kernel: usb-storage: Bulk status result = 0
kernel: usb-storage: Bulk status Sig 0x53425355 T 0xd R 0 Stat 0x0
kernel: usb-storage: scsi cmd done, result=0x0
kernel: usb-storage: *** thread sleeping.
kernel:  sda1 sda2 sda3 sda4
kernel: usb-storage: queuecommand() called
kernel: usb-storage: *** thread awakened.
kernel: usb-storage: Command START_STOP (6 bytes)
kernel: usb-storage: 1b 00 00 00 01 00 00 00 95 40 00 00
kernel: usb-storage: Bulk command S 0x43425355 T 0xe Trg 0 LUN 0 L 0 F 0
CL 6 kernel: usb-storage: Bulk command transfer result=0
kernel: usb-storage: Attempting to get CSW...
kernel: usb-storage: Bulk status result = 0
kernel: usb-storage: Bulk status Sig 0x53425355 T 0xe R 0 Stat 0x1
kernel: usb-storage: -- transport indicates command failure
kernel: usb-storage: Issuing auto-REQUEST_SENSE
kernel: usb-storage: Bulk command S 0x43425355 T 0xe Trg 0 LUN 0 L 18 F
128 CL 6 kernel: usb-storage: Bulk command transfer result=0
kernel: usb-storage: usb_stor_transfer_partial(): xfer 18 bytes
kernel: usb-storage: usb_stor_bulk_msg() returned 0 xferred 18/18
kernel: usb-storage: usb_stor_transfer_partial(): transfer complete
kernel: usb-storage: Bulk data transfer result 0x0
kernel: usb-storage: Attempting to get CSW...
kernel: usb-storage: Bulk status result = 0
kernel: usb-storage: Bulk status Sig 0x53425355 T 0xe R 0 Stat 0x0
kernel: usb-storage: -- Result from auto-sense is 0
kernel: usb-storage: -- code: 0x70, key: 0x5, ASC: 0x24, ASCQ: 0x0
kernel: usb-storage: Illegal Request: invalid field in CDB
kernel: usb-storage: scsi cmd done, result=0x2
kernel: usb-storage: *** thread sleeping.
kernel: SCSI device (ioctl) reports ILLEGAL REQUEST.
kernel: VFS: Disk change detected on device sd(8,0)
kernel: usb-storage: queuecommand() called
kernel: usb-storage: *** thread awakened.
kernel: usb-storage: Command TEST_UNIT_READY (6 bytes)
kernel: usb-storage: 00 00 00 00 00 00 00 00 00 00 ee d3
kernel: usb-storage: Bulk command S 0x43425355 T 0xf Trg 0 LUN 0 L 0 F 0
CL 6 kernel: usb-storage: Bulk command transfer result=0
kernel: usb-storage: Attempting to get CSW...
kernel: usb-storage: Bulk status result = 0
kernel: usb-storage: Bulk status Sig 0x53425355 T 0xf R 0 Stat 0x0
kernel: usb-storage: scsi cmd done, result=0x0
kernel: usb-storage: *** thread sleeping.
kernel: usb-storage: queuecommand() called
kernel: usb-storage: *** thread awakened.
kernel: usb-storage: Command READ_CAPACITY (10 bytes)
kernel: usb-storage: 25 00 00 00 00 00 00 00 00 00 ee d3
kernel: usb-storage: Bulk command S 0x43425355 T 0x10 Trg 0 LUN 0 L 8 F
128 CL 10 kernel: usb-storage: Bulk command transfer result=0
kernel: usb-storage: usb_stor_transfer_partial(): xfer 8 bytes
kernel: usb-storage: usb_stor_bulk_msg() returned 0 xferred 8/8
kernel: usb-storage: usb_stor_transfer_partial(): transfer complete
kernel: usb-storage: Bulk data transfer result 0x0
kernel: usb-storage: Attempting to get CSW...
kernel: usb-storage: Bulk status result = 0
kernel: usb-storage: Bulk status Sig 0x53425355 T 0x10 R 0 Stat 0x0
kernel: usb-storage: scsi cmd done, result=0x0
kernel: usb-storage: *** thread sleeping.
kernel: SCSI device sda: 32160 2048-byte hdwr sectors (66 MB)
kernel: usb-storage: queuecommand() called
kernel: usb-storage: *** thread awakened.
kernel: usb-storage: Command MODE_SENSE (6 bytes)
kernel: usb-storage: 1a 00 3f 00 ff 00 00 00 00 00 ee d3
kernel: usb-storage: Bulk command S 0x43425355 T 0x11 Trg 0 LUN 0 L 255 F
128 CL 6 kernel: usb-storage: Bulk command transfer result=0
kernel: usb-storage: usb_stor_transfer_partial(): xfer 255 bytes
kernel: usb-storage: usb_stor_bulk_msg() returned -32 xferred 0/255
kernel: usb-storage: clearing endpoint halt for pipe 0xc0010280
kernel: usb-storage: usb_stor_transfer_partial(): unknown error
kernel: usb-storage: Bulk data transfer result 0x2
kernel: usb-storage: Attempting to get CSW...
kernel: usb-storage: Bulk status result = 0
kernel: usb-storage: Bulk status Sig 0x53425355 T 0x11 R -16777216 Stat
0x1 kernel: usb-storage: -- transport indicates command failure
kernel: usb-storage: Issuing auto-REQUEST_SENSE
kernel: usb-storage: Bulk command S 0x43425355 T 0x11 Trg 0 LUN 0 L 18 F
128 CL 6 kernel: usb-storage: Bulk command transfer result=0
kernel: usb-storage: usb_stor_transfer_partial(): xfer 18 bytes
kernel: usb-storage: usb_stor_bulk_msg() returned 0 xferred 18/18
kernel: usb-storage: usb_stor_transfer_partial(): transfer complete
kernel: usb-storage: Bulk data transfer result 0x0
kernel: usb-storage: Attempting to get CSW...
kernel: usb-storage: Bulk status result = 0
kernel: usb-storage: Bulk status Sig 0x53425355 T 0x11 R 0 Stat 0x0
kernel: usb-storage: -- Result from auto-sense is 0
kernel: usb-storage: -- code: 0x70, key: 0x5, ASC: 0x24, ASCQ: 0x0
kernel: usb-storage: Illegal Request: invalid field in CDB
kernel: usb-storage: scsi cmd done, result=0x2
kernel: usb-storage: *** thread sleeping.
kernel: sda: test WP failed, assume Write Enabled
kernel:  sda: I/O error: dev 08:00, sector 0
kernel:  I/O error: dev 08:00, sector 0
kernel:  unable to read partition table
kernel: usb-storage: queuecommand() called
kernel: usb-storage: *** thread awakened.
kernel: usb-storage: Command ALLOW_MEDIUM_REMOVAL (6 bytes)
kernel: usb-storage: 1e 00 00 00 01 00 ff ff 7d 6f 09 d5
kernel: usb-storage: Bulk command S 0x43425355 T 0x12 Trg 0 LUN 0 L 0 F 0
CL 6 kernel: usb-storage: Bulk command transfer result=0
kernel: usb-storage: Attempting to get CSW...
kernel: usb-storage: Bulk status result = 0
kernel: usb-storage: Bulk status Sig 0x53425355 T 0x12 R 0 Stat 0x0
kernel: usb-storage: scsi cmd done, result=0x0
kernel: usb-storage: *** thread sleeping.
kernel:  I/O error: dev 08:00, sector 0
kernel: usb-storage: queuecommand() called
kernel: usb-storage: *** thread awakened.
kernel: usb-storage: Command ALLOW_MEDIUM_REMOVAL (6 bytes)
kernel: usb-storage: 1e 00 00 00 00 00 00 00 e0 f1 ee d3
kernel: usb-storage: Bulk command S 0x43425355 T 0x13 Trg 0 LUN 0 L 0 F 0
CL 6 kernel: usb-storage: Bulk command transfer result=0
kernel: usb-storage: Attempting to get CSW...
kernel: usb-storage: Bulk status result = 0
kernel: usb-storage: Bulk status Sig 0x53425355 T 0x13 R 0 Stat 0x0
kernel: usb-storage: scsi cmd done, result=0x0
kernel: usb-storage: *** thread sleeping.
-------------------------------------------

dd itself says
dd: reading `/dev/sda': Input/output error
0+0 records in
0+0 records out


/proc/bus/usb/devices:
T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 0.00
S:  Product=USB UHCI Root Hub
S:  SerialNumber=1080
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=255ms
T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1065 ProdID=2136 Rev= 0.01
S:  Manufacturer= USB TECHNOLOGY
S:  Product=USB Portable Device
S:  SerialNumber=000000000001
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=  0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=  0ms


/proc/scsi/scsi:
Attached devices: 
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: USB DISK Model: Portable Disk    Rev: 0001
  Type:   Direct-Access                    ANSI SCSI revision: 02


/proc/scsi/usb-storage-0/0
   Host scsi0: usb-storage
       Vendor:  USB TECHNOLOGY
      Product: USB Portable Device
Serial Number: 000000000001
     Protocol: Transparent SCSI
    Transport: Bulk
         GUID: 106521360000000000000001
     Attached: Yes


/sbin/lsmod:
sd_mod                 10656   0 (autoclean)
3c59x                  25760   1
usb-storage            97952   0
scsi_mod               92976   2 [sd_mod usb-storage]
sb                      7504   1
sb_lib                 34640   0 [sb]
uart401                 6192   0 [sb_lib]
sound                  55680   1 [sb_lib uart401]
soundcore               3888   4 [sb_lib sound]
usb-uhci               22880   0 (unused)
usbcore                55200   1 [usb-storage usb-uhci]
ext3                   58032   1
jbd                    38208   1 [ext3]


There are no "real" SCSI devices present.
Kernel is 2.4.16 stock, rml's preemption and lock-break patch, IDE patches
from linuxide.org. config availiable if needed.

I'd be happy to test patches if the developers do not have access to
a USBdisk device.

Thanks for your time.

-- 
R!

_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to