I have 2 CF card readers, which I wanted to use with Linux. I've even
bought one of them (SanDisk SDDR-75) because it was reported on quite few
places that it works with Linux.

Readers are:

Apacer AP-MSCRU10 (3-slot reader)
SanDisk SDDR-75 (2-slot reader)

What happens is that when I copy files to CF cards, I get unexpected
behaviours. I will concentrate on Apacer right now, since it seems to
'behave' better than SanDisk, and I'd like to make at least one of them
work. Both of them do hang the machine, though.

With Apacer, things seem to work, /dev/sda1 is mounted properly, but when
I copy files to it, it tends to completely hang the machine. Sometimes, I
can mount it few times in a row, and everything works okay. Once out of 5
times (statistically speaking :) it will completely hang the box, when
copy operation is in progress.

I connected serial console, but when machine hangs nothing comes out. No
errors. It freezes suddenly and completely, and sometimes HDD LED remains
ON, and sometimes not. 

This is what remains in the log:

... removed lots of output that is similar to following...
Apr 22 19:14:10 amber kernel: usb-storage: Bulk data transfer result 0x0
Apr 22 19:14:10 amber kernel: usb-storage: Attempting to get CSW...
Apr 22 19:14:10 amber kernel: usb-storage: Bulk status result = 0
Apr 22 19:14:10 amber kernel: usb-storage: Bulk status Sig 0x53425355 T
0x88 R 0 Stat 0x0
Apr 22 19:14:10 amber kernel: usb-storage: scsi cmd done, result=0x0
Apr 22 19:14:10 amber kernel: usb-storage: *** thread sleeping.
Apr 22 19:14:10 amber kernel: usb-storage: queuecommand() called
Apr 22 19:14:10 amber kernel: usb-storage: *** thread awakened.
Apr 22 19:14:10 amber kernel: usb-storage: Command WRITE_10 (10 bytes)
Apr 22 19:14:10 amber kernel: usb-storage: 2a 00 00 00 04 29 00 00 fe 00
00 00
Apr 22 19:14:10 amber kernel: usb-storage: Bulk command S 0x43425355 T
0x89 Trg 0 LUN 0 L 130048 F 0 CL 10
Apr 22 19:14:10 amber kernel: usb-storage: Bulk command transfer result=0
Apr 22 19:14:10 amber kernel: usb-storage: usb_stor_transfer_partial():
xfer 4096 bytes
Apr 22 19:14:10 amber kernel: usb-storage: usb_stor_bulk_msg() returned 0
xferred 4096/4096
Apr 22 19:14:10 amber kernel: usb-storage: usb_stor_transfer_partial():
transfer complete
Apr 22 19:14:10 amber kernel: usb-storage: usb_stor_transfer_partial():
xfer 4096 bytes
Apr 22 19:14:10 amber kernel: usb-storage: usb_stor_bulk_msg() returned 0
xferred 4096/4096
Apr 22 19:14:10 amber kernel: usb-storage: usb_stor_transfer_partial():
transfer complete
Apr 22 19:14:10 amber kernel: usb-storage: usb_stor_transfer_partial():
xfer 4096 bytes
Apr 22 19:14:10 amber kernel: usb-storage: usb_stor_bulk_msg() returned 0
xferred 4096/4096
Apr 22 19:14:10 amber kernel: usb-storage: usb_stor_transfer_partial():
transfer complete
Apr 22 19:14:10 amber kernel: usb-storage: usb_stor_transfer_partial():
xfer 4096 bytes
Apr 22 19:14:10 amber kernel: usb-storage: usb_stor_bulk_msg() returned 0
xferred 4096/4096
Apr 22 19:14:10 amber kernel: usb-storage: usb_stor_transfer_partial():
transfer complete
Apr 22 19:14:10 amber kernel: usb-storage: usb_stor_transfer_partial():
xfer 2048 bytes
Apr 22 19:14:10 amber kernel: usb-storage: usb_stor_bulk_msg() returned 0
xferred 2048/2048
Apr 22 19:14:10 amber kernel: usb-storage: usb_stor_transfer_partial():
transfer complete
Apr 22 19:14:10 amber kernel: usb-storage: usb_stor_transfer_partial():
xfer 4096 bytes
Apr 22 19:14:10 amber kernel: usb-storage: usb_stor_bulk_msg() returned 0
xferred 4096/4096
Apr 22 19:14:10 amber kernel: usb-storage: usb_stor_transfer_partial():
transfer complete
Apr 22 19:14:10 amber kernel: usb-storage: usb_stor_transfer_partial():
xfer 4096 bytes
Apr 22 19:14:10 amber kernel: usb-storage: usb_stor_bulk_msg() returned 0
xferred 4096/4096
Apr 22 19:14:10 amber kernel: usb-storage: usb_stor_transfer_partial():
transfer complete
Apr 22 19:14:10 amber kernel: usb-storage: usb_stor_transfer_partial():
xfer 4096 bytes
Apr 22 19:14:10 amber kernel: usb-storage: usb_stor_bulk_msg() returned 0
xferred 4096/4096
Apr 22 19:14:10 amber kernel: usb-storage: usb_stor_transfer_partial():
transfer complete
Apr 22 19:14:10 amber kernel: usb-storage: usb_stor_transfer_partial():
xfer 4096 bytes
Apr 22 19:14:10 amber kernel: usb-storage: usb_stor_bulk_msg() returned 0
xferred 4096/4096
Apr 22 19:14:10 amber kernel: usb-storage: usb_stor_transfer_partial():
transfer complete
Apr 22 19:14:10 amber kernel: usb-storage: usb_stor_transfer_partial():
xfer 4096 bytes
Apr 22 19:14:10 amber kernel: usb-storage: usb_stor_bulk_msg() returned 0
xferred 4096/4096
Apr 22 19:14:10 amber kernel: usb-storage: usb_stor_transfer_partial():
transfer complete
Apr 22 19:14:10 amber kernel: usb-storage: usb_stor_transfer_partial():
xfer 4096 bytes
Apr 22 19:14:10 amber kernel: usb-storage: usb_stor_bulk_msg()storage:
usb_stor_transfer_partial(): transfer complete
Apr 22 19:14:10 amber kernel: usb-storage: usb_stor_transfer_parApr 22
19:15:39 amber syslogd 1.4.1: restart.

"usb-storage: usb_stor_transfer_parApr 22" can be seen at the last line.
It never manages to write full string, and every time machine hangs, this
is the exact same output
(...usb_stor_transfer_parSYSLOGD_RESTART_MESSAGE).

This happens on both 2.4.25 and 2.4.26.

lsusb shows:

[EMAIL PROTECTED] root]# lsusb
Unknown line at line 58
Unknown line at line 2296
Unknown line at line 2297
Unknown line at line 2298
Unknown line at line 2299
Unknown line at line 2300
Unknown line at line 2301
Unknown line at line 2302
Unknown line at line 2303
Unknown line at line 2304
Unknown line at line 2305
Unknown line at line 2306
Unknown line at line 2307
Unknown line at line 2308
Unknown line at line 2309
Unknown line at line 2310
Unknown line at line 2311
Unknown line at line 2312
Unknown line at line 2313
Unknown line at line 2314
Unknown line at line 2315
Unknown line at line 2316
Unknown line at line 2317
Unknown line at line 2318
Unknown line at line 2319
Unknown line at line 2320
Unknown line at line 2321
Unknown line at line 2322
Unknown line at line 2323
Unknown line at line 2324
Unknown line at line 2325
Unknown line at line 2326
Unknown line at line 2327
Unknown line at line 2328
Unknown line at line 2329
Unknown line at line 2330
Unknown line at line 2331
Unknown line at line 2332
Unknown line at line 2333
Unknown line at line 2334
Unknown line at line 2335

Bus 003 Device 001: ID 0000:0000  
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            9 Hub
  bDeviceSubClass         0 
  bDeviceProtocol         1 
  bMaxPacketSize0         8
  idVendor           0x0000 
  idProduct          0x0000 
  bcdDevice            2.04
  iManufacturer           3 Linux 2.4.26 ehci_hcd
  iProduct                2 nVidia Corporation nForce2 USB Controller
  iSerial                 1 00:02.2
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           25
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0x40
      Self Powered
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               none
        wMaxPacketSize          2
        bInterval              12
  Language IDs: (length=4)
     0000 (null)((null))

Bus 002 Device 001: ID 0000:0000  
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            9 Hub
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         8
  idVendor           0x0000 
  idProduct          0x0000 
  bcdDevice            0.00
  iManufacturer           0 
  iProduct                2 USB OHCI Root Hub
  iSerial                 1 f8a1d000
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           25
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0x40
      Self Powered
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               none
        wMaxPacketSize          2
        bInterval             255
  Language IDs: (length=4)
     0000 (null)((null))

Bus 002 Device 002: ID 046d:c00e Logitech Inc. Optical Mouse
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 Interface
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         8
  idVendor           0x046d Logitech Inc.
  idProduct          0xc00e Optical Mouse
  bcdDevice           11.00
  iManufacturer           1 Logitech
  iProduct                2 USB-PS/2 Optical Mouse
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           34
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xa0
      Remote Wakeup
    MaxPower               98mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Devices
      bInterfaceSubClass      1 Boot Interface Subclass
      bInterfaceProtocol      2 Mouse
      iInterface              0 
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.10
          bCountryCode            0
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      52
cannot get report descriptor
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               none
        wMaxPacketSize          4
        bInterval              10
  Language IDs: (length=4)
     0409 English(US)

Bus 002 Device 003: ID 0d7d:0240 Apacer 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.00
  bDeviceClass            0 Interface
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         8
  idVendor           0x0d7d Apacer
  idProduct          0x0240 
  bcdDevice            1.00
  iManufacturer           1 
  iProduct                2 USB Reader
  iSerial                 3 03231B00066A
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           39
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0x80
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk (Zip)
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               none
        wMaxPacketSize         64
        bInterval             255
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               none
        wMaxPacketSize         64
        bInterval             255
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               none
        wMaxPacketSize          2
        bInterval               1
  Language IDs: (length=4)
     0409 English(US)

Bus 001 Device 001: ID 0000:0000  
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            9 Hub
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         8
  idVendor           0x0000 
  idProduct          0x0000 
  bcdDevice            0.00
  iManufacturer           0 
  iProduct                2 USB OHCI Root Hub
  iSerial                 1 f8a1b000
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           25
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0x40
      Self Powered
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               none
        wMaxPacketSize          2
        bInterval             255
  Language IDs: (length=4)
     0000 (null)((null))

System is XP2500, 1GB RAM (HIMEM enabled, although it freezes kernel
compiled with HIMEM disabled, as well), nForce2 motherboard.

I also have Nikon CoolPix 4300 camera, and when it is connected via USB
port, everything works just fine. I can copy files to CF card in the
camera, and never had a crash with it. It is single-slot CF camera; not
sure if it makes some difference.

CF cards were 16, 128 and 256MB. 16MB is NIKON (although it has SanDisk
logo on it), and other two are SanDisk.

CONFIG_SCSI_MULTI_LUN is set to y, btw. I've also tried adding 'options
scsi_mod max_scsi_luns=X' in /etc/modules.conf, where X was anything from
1 to 6 (also tried removing ide-scsi modules, before inserting readers).

I am not sure what other information (kernel .config, etc.) I should
provide, and don't want to send 100KB of redundant attachments, so any
help or pointers on how to solve this, or what else to provide, is more
than welcome.

Thanks.

Vanja


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to