Still some USB problems with Gentoo 2.6.12-r9
Now, that my USB transfer speed issue with the Gentoo 2.6.12 Linux kernel is settled, I’m still having problems with my noname cardreader, which works perfectly with kernel 2.6.11.
Here is the dmesg-output, after my memory stick was plugged into the the USB-connector. This is how it should be (usb-storage already loaded during the boot process of the system.)
usb 1-6: new high speed USB device using ehci_hcd and address 8 scsi4 : SCSI emulation for USB Mass Storage devices usb-storage: device found at 8 usb-storage: waiting for device to settle before scanning Vendor: LEXAR Model: JUMPDRIVE PRO Rev: 0 Type: Direct-Access ANSI SCSI revision: 02 SCSI device sda: 503808 512-byte hdwr sectors (258 MB) sda: Write Protect is off sda: Mode Sense: 6b 00 00 00 sda: assuming drive cache: write through SCSI device sda: 503808 512-byte hdwr sectors (258 MB) sda: Write Protect is off sda: Mode Sense: 6b 00 00 00 sda: assuming drive cache: write through sda: sda1 Attached scsi removable disk sda at scsi4, channel 0, id 0, lun 0 Attached scsi generic sg0 at scsi4, channel 0, id 0, lun 0, type 0 usb-storage: device scan complete
In particular notice the line, where “sda: sda1” is displayed. The partition on the stick is correctly recognized. And the following is the dmesg-output, once the cardreader was plugged in.
usb 1-6: new high speed USB device using ehci_hcd and address 7 scsi3 : SCSI emulation for USB Mass Storage devices usb-storage: device found at 7 usb-storage: waiting for device to settle before scanning Vendor: ICSI Model: CF Card Rev: 1.1D Type: Direct-Access ANSI SCSI revision: 00 Attached scsi removable disk sda at scsi3, channel 0, id 0, lun 0 Attached scsi generic sg0 at scsi3, channel 0, id 0, lun 0, type 0 Vendor: ICSI Model: MS Card Rev: 1.1D Type: Direct-Access ANSI SCSI revision: 00 Attached scsi removable disk sdb at scsi3, channel 0, id 0, lun 1 Attached scsi generic sg1 at scsi3, channel 0, id 0, lun 1, type 0 Vendor: ICSI Model: SD Card Rev: 1.1D Type: Direct-Access ANSI SCSI revision: 00 Attached scsi removable disk sdc at scsi3, channel 0, id 0, lun 2 Attached scsi generic sg2 at scsi3, channel 0, id 0, lun 2, type 0 Vendor: ICSI Model: SM Card Rev: 1.1D Type: Direct-Access ANSI SCSI revision: 00 Attached scsi removable disk sdd at scsi3, channel 0, id 0, lun 3 Attached scsi generic sg3 at scsi3, channel 0, id 0, lun 3, type 0 usb-storage: device scan complete
There is no equivalent output for the partition, which should have been recognized. And now for the interesting bit. I unplugged the cardreader, removed the usb-storage-module with the command modprobe -r usb-storage and reinserted the cardreader.
usb 1-6: new high speed USB device using ehci_hcd and address 9 Initializing USB Mass Storage driver... scsi5 : SCSI emulation for USB Mass Storage devices usbcore: registered new driver usb-storage USB Mass Storage support registered. usb-storage: device found at 9 usb-storage: waiting for device to settle before scanning Vendor: ICSI Model: CF Card Rev: 1.1D Type: Direct-Access ANSI SCSI revision: 00 SCSI device sda: 259584 512-byte hdwr sectors (133 MB) sda: Write Protect is off sda: Mode Sense: 43 00 00 08 sda: assuming drive cache: write through SCSI device sda: 259584 512-byte hdwr sectors (133 MB) sda: Write Protect is off sda: Mode Sense: 43 00 00 08 sda: assuming drive cache: write through sda: sda1 Attached scsi removable disk sda at scsi5, channel 0, id 0, lun 0 Attached scsi generic sg0 at scsi5, channel 0, id 0, lun 0, type 0 Vendor: ICSI Model: MS Card Rev: 1.1D Type: Direct-Access ANSI SCSI revision: 00 Attached scsi removable disk sdb at scsi5, channel 0, id 0, lun 1 Attached scsi generic sg1 at scsi5, channel 0, id 0, lun 1, type 0 Vendor: ICSI Model: SD Card Rev: 1.1D Type: Direct-Access ANSI SCSI revision: 00 Attached scsi removable disk sdc at scsi5, channel 0, id 0, lun 2 Attached scsi generic sg2 at scsi5, channel 0, id 0, lun 2, type 0 Vendor: ICSI Model: SM Card Rev: 1.1D Type: Direct-Access ANSI SCSI revision: 00 Attached scsi removable disk sdd at scsi5, channel 0, id 0, lun 3 Attached scsi generic sg3 at scsi5, channel 0, id 0, lun 3, type 0 usb-storage: device scan complete
Here I’m seeing the correct recognition of the partition on the CF-card and I can perfectly mount the file system.
Not really satisfactory, but there is at least a workaround (reloading of usb-storage). Tomorrow I’m will retest this scenario on the PC in my company, which is a P4 with Intel chipset to see if the behaviour is different. Just for complettness sake, here is the lsusb -v output of the cardreader:
Bus 001 Device 009: ID 0dda:2001 Integrated Circuit Solution, Inc.
cannot get string descriptor 1, error = Broken pipe(32)
cannot get string descriptor 2, error = Broken pipe(32)
cannot get string descriptor 3, error = Broken pipe(32)
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x0dda Integrated Circuit Solution, Inc.
idProduct 0x2001
bcdDevice 1.1d
iManufacturer 1
iProduct 2
iSerial 3
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 4
bmAttributes 0x80
MaxPower 500mA
cannot get string descriptor 5, error = Broken pipe(32)
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk (Zip)
iInterface 5
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type none
wMaxPacketSize 512
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type none
wMaxPacketSize 512
bInterval 0
Language IDs: (length=4)
0409 English(US)
