Hi,

I've got a 256MB flash drive (067b:2517), which is detected by the usb
modul:

hub.c: port 1 connection change
hub.c: port 1, portstatus 101, change 1, 12 Mb/s
hub.c: port 1, portstatus 103, change 10, 12 Mb/s
hub.c: USB new device connect on bus1/2/1, assigned device number 17
usb.c: kmalloc IF c53b3d60, numif 1
usb.c: new device strings: Mfr=1, Product=4, SerialNumber=0
usb.c: USB device number 17 default language ID 0x409
Manufacturer: Prolific Technology Inc.
Product: USB_Storage
usb.c: unhandled interfaces on device
usb.c: USB device 17 (vend/prod 0x67b/0x2517) is not claimed by any active
drive
r.
  Length              = 18
  DescriptorType      = 01
  USB version         = 2.00
  Vendor:Product      = 067b:2517
  MaxPacketSize0      = 64
  NumConfigurations   = 1
  Device version      = 0.01
  Device Class:SubClass:Protocol = 00:00:00
    Per-interface classes
Configuration:
  bLength             =    9
  bDescriptorType     =   02
  wTotalLength        = 0020
  bNumInterfaces      =   01
  bConfigurationValue =   01
  iConfiguration      =   00
  bmAttributes        =   c0
  MaxPower            =    0mA

  Interface: 0
  Alternate Setting:  0
    bLength             =    9
    bDescriptorType     =   04
    bInterfaceNumber    =   00
    bAlternateSetting   =   00
    bNumEndpoints       =   02
    bInterface Class:SubClass:Protocol =   08:05:50
    iInterface          =   00
    Endpoint:
      bLength             =    7
      bDescriptorType     =   05
      bEndpointAddress    =   01 (out)
      bmAttributes        =   02 (Bulk)
      wMaxPacketSize      = 0040
      bInterval           =   00
    Endpoint:
      bLength             =    7
      bDescriptorType     =   05
      bEndpointAddress    =   82 (in)
      bmAttributes        =   02 (Bulk)
      wMaxPacketSize      = 0040
      bInterval           =   00
usb.c: kusbd: /sbin/hotplug add 17
usb.c: kusbd policy returned 0xfffffffe

and the usb-storage driver after loading it:

T:  Bus=01 Lev=02 Prnt=14 Port=00 Cnt=01 Dev#= 15 Spd=12  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=067b ProdID=2517 Rev= 0.01
S:  Manufacturer=Prolific Technology Inc.
S:  Product=USB_Storage
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=05 Prot=50 Driver=usb-storage
E:  Ad=01(O) Atr=02(Bulk) MxPS=  64 Ivl=  0ms
E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=  0ms

The scsi driver also detects it pretty well:

scsi0 : SCSI emulation for USB Mass Storage devices
  Vendor: Prolific  Model: UsbFlashDisk      Rev: PROL
  Type:   Direct-Access                      ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 512000 512-byte hdwr sectors (262 MB)
sda: Write Protect is off
 sda1 sda2 sda3 sda4
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 17
usb.c: usb-storage driver claimed interface c53b3d60
USB Mass Storage support registered.

However, I cannot read or write anything from/to it:

aramis:~# dd if=/dev/sda of=/tmp/xxx bs=512 count=1
dd: reading `/dev/sda': Input/output error
0+0 records in
0+0 records out
aramis:~# mount /dev/sda1 /mnt/u
/dev/sda1: Input/output error
mount: you must specify the filesystem type
aramis:~# mount /dev/sda /mnt/u
/dev/sda: Input/output error
mount: you must specify the filesystem type

Device 08:01 not ready.
 I/O error: dev 08:01, sector 0
FAT: unable to read boot sector
UMSDOS: msdos_read_super failed, mount aborted.
Device 08:01 not ready.
 I/O error: dev 08:01, sector 0
FAT: unable to read boot sector
Device 08:01 not ready.
 I/O error: dev 08:01, sector 0
FAT: unable to read boot sector
Device 08:00 not ready.
 I/O error: dev 08:00, sector 0
Device 08:00 not ready.
 I/O error: dev 08:00, sector 0
FAT: unable to read boot sector
UMSDOS: msdos_read_super failed, mount aborted.
Device 08:00 not ready.
 I/O error: dev 08:00, sector 0
FAT: unable to read boot sector
Device 08:00 not ready.
 I/O error: dev 08:00, sector 0
FAT: unable to read boot sector

I also attached a part of the log of the usb-storage driver which may be
important...

So, if anyone can help me, or say something hope-rising, I am awaiting it
(and please add my e-mail address to the Cc: field)

Thanks,

Zsolt

Jun 13 17:18:57 aramis kernel: usb-storage: Fixing INQUIRY data to show SCSI rev 2
Jun 13 17:18:57 aramis kernel: usb-storage: scsi cmd done, result=0x0
Jun 13 17:18:57 aramis kernel: usb-storage: *** thread sleeping.
Jun 13 17:18:57 aramis kernel:   Vendor: Prolific  Model: UsbFlashDisk      Rev: PROL
Jun 13 17:18:57 aramis kernel:   Type:   Direct-Access                      ANSI SCSI 
revision: 02
Jun 13 17:18:57 aramis kernel: usb-storage: queuecommand() called
Jun 13 17:18:57 aramis kernel: usb-storage: *** thread awakened.
Jun 13 17:18:57 aramis kernel: usb-storage: Bad LUN (0/1)
Jun 13 17:18:57 aramis kernel: usb-storage: *** thread sleeping.
Jun 13 17:18:57 aramis kernel: usb-storage: queuecommand() called
Jun 13 17:18:57 aramis kernel: usb-storage: *** thread awakened.
Jun 13 17:18:57 aramis kernel: usb-storage: Bad target number (1/0)
Jun 13 17:18:57 aramis kernel: usb-storage: *** thread sleeping.
Jun 13 17:18:57 aramis kernel: usb-storage: queuecommand() called
Jun 13 17:18:57 aramis kernel: usb-storage: *** thread awakened.
Jun 13 17:18:57 aramis kernel: usb-storage: Bad target number (2/0)
Jun 13 17:18:57 aramis kernel: usb-storage: *** thread sleeping.
Jun 13 17:18:57 aramis kernel: usb-storage: queuecommand() called
Jun 13 17:18:57 aramis kernel: usb-storage: *** thread awakened.
Jun 13 17:18:57 aramis kernel: usb-storage: Bad target number (3/0)
Jun 13 17:18:57 aramis kernel: usb-storage: *** thread sleeping.
Jun 13 17:18:57 aramis kernel: usb-storage: queuecommand() called
Jun 13 17:18:57 aramis kernel: usb-storage: *** thread awakened.
Jun 13 17:18:57 aramis kernel: usb-storage: Bad target number (4/0)
Jun 13 17:18:57 aramis kernel: usb-storage: *** thread sleeping.
Jun 13 17:18:57 aramis kernel: usb-storage: queuecommand() called
Jun 13 17:18:57 aramis kernel: usb-storage: *** thread awakened.
Jun 13 17:18:57 aramis kernel: usb-storage: Bad target number (5/0)
Jun 13 17:18:57 aramis kernel: usb-storage: *** thread sleeping.
Jun 13 17:18:57 aramis kernel: usb-storage: queuecommand() called
Jun 13 17:18:57 aramis kernel: usb-storage: *** thread awakened.
Jun 13 17:18:57 aramis kernel: usb-storage: Bad target number (6/0)
Jun 13 17:18:57 aramis kernel: usb-storage: *** thread sleeping.
Jun 13 17:18:57 aramis kernel: usb-storage: queuecommand() called
Jun 13 17:18:57 aramis kernel: usb-storage: *** thread awakened.
Jun 13 17:18:57 aramis kernel: usb-storage: Bad target number (7/0)
Jun 13 17:18:57 aramis kernel: usb-storage: *** thread sleeping.
Jun 13 17:18:57 aramis kernel: Attached scsi removable disk sda at scsi0, channel 0, 
id 0, lun 0
Jun 13 17:18:57 aramis kernel: usb-storage: queuecommand() called
Jun 13 17:18:57 aramis kernel: usb-storage: *** thread awakened.
Jun 13 17:18:57 aramis kernel: usb-storage: Command TEST_UNIT_READY (6 bytes)
Jun 13 17:18:57 aramis kernel: usb-storage: 00 00 00 00 00 00 00 00 00 00 58 c5
Jun 13 17:18:57 aramis kernel: usb-storage: Bulk command S 0x43425355 T 0x177 Trg 0 
LUN 0 L 0 F 0 CL 12
Jun 13 17:18:57 aramis kernel: usb-storage: Bulk command transfer result=0
Jun 13 17:18:57 aramis kernel: usb-storage: Attempting to get CSW...
Jun 13 17:18:57 aramis kernel: usb-storage: Bulk status result = 0
Jun 13 17:18:57 aramis kernel: usb-storage: Bulk status Sig 0x53425355 T 0x177 R 0 
Stat 0x1
Jun 13 17:18:57 aramis kernel: usb-storage: -- transport indicates command failure



-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to