CompactFlash Card Reader - 2.6.4rc3


Results 1 to 2 of 2

Thread: CompactFlash Card Reader - 2.6.4rc3

  1. #1
    Join Date
    Jul 2002
    Location
    USA
    Posts
    28

    *RESOLVED*CompactFlash Card Reader

    I just need some help getting this dang flash card reader working again. Its a PNY CompactFlash reader. It worked under 2.4...as /dev/sda. Well since upgrading to 2.6 all I get is /dev/sg0 for it. Yesterday I got udev working, and have the newest sysfsutils, hotplug scripts, etc. Udev and sysfs do a great job of creating/removing sg0 when I connect and disconnect the reader, but no sda. I can't mount sg0. Here's what I get when I connect the reader, I enabled verbose output for USB Mass Storage in the kernel...

    root@matthurne:/# dmesg
    usb 2-1: new full speed USB device using address 6
    usb-storage: USB Mass Storage device detected
    usb-storage: act_altsetting is 0, id_index is 39
    usb-storage: -- associate_dev
    usb-storage: Vendor: SIIG
    usb-storage: Product: CompactFlash Card Reader
    usb-storage: Transport: Bulk
    usb-storage: Protocol: Transparent SCSI
    usb-storage: Endpoints: In: 0xcd9904c0 Out: 0xcd9904d4 Int: 0x00000000 (Period 0)
    usb-storage: usb_stor_control_msg: rq=fe rqtype=a1 value=0000 index=00 len=1
    usb-storage: GetMaxLUN command result is -32, data is 0
    usb-storage: *** thread sleeping.
    scsi3 : SCSI emulation for USB Mass Storage devices
    usb-storage: queuecommand called
    usb-storage: *** thread awakened.
    usb-storage: Faking INQUIRY command
    usb-storage: scsi cmd done, result=0x0
    usb-storage: *** thread sleeping.
    Vendor: SIIG Model: CompactFlash Car Rev: 0113
    Type: Direct-Access ANSI SCSI revision: 02
    Attached scsi generic sg0 at scsi3, channel 0, id 0, lun 0, type 0
    usb-storage: queuecommand called
    usb-storage: *** thread awakened.
    usb-storage: Bad target number (1:0)
    usb-storage: scsi cmd done, result=0x40000
    usb-storage: *** thread sleeping.
    usb-storage: queuecommand called
    usb-storage: *** thread awakened.
    usb-storage: Bad target number (2:0)
    usb-storage: scsi cmd done, result=0x40000
    usb-storage: *** thread sleeping.
    usb-storage: queuecommand called
    usb-storage: *** thread awakened.
    usb-storage: Bad target number (3:0)
    usb-storage: scsi cmd done, result=0x40000
    usb-storage: *** thread sleeping.
    usb-storage: queuecommand called
    usb-storage: *** thread awakened.
    usb-storage: Bad target number (4:0)
    usb-storage: scsi cmd done, result=0x40000
    usb-storage: *** thread sleeping.
    usb-storage: queuecommand called
    usb-storage: *** thread awakened.
    usb-storage: Bad target number (5:0)
    usb-storage: scsi cmd done, result=0x40000
    usb-storage: *** thread sleeping.
    usb-storage: queuecommand called
    usb-storage: *** thread awakened.
    usb-storage: Bad target number (6:0)
    usb-storage: scsi cmd done, result=0x40000
    usb-storage: *** thread sleeping.
    usb-storage: queuecommand called
    usb-storage: *** thread awakened.
    usb-storage: Bad target number (7:0)
    usb-storage: scsi cmd done, result=0x40000
    usb-storage: *** thread sleeping.
    WARNING: USB Mass Storage data integrity not assured
    USB Mass Storage device found at 6

    root@matthurne:/# cat /proc/modules
    snd_pcm_oss 49092 0 - Live 0xe0ccd000
    snd_mixer_oss 17408 1 snd_pcm_oss, Live 0xe0c37000
    snd_emu10k1 93444 0 - Live 0xe0c41000
    snd_rawmidi 20928 1 snd_emu10k1, Live 0xe0bf4000
    snd_pcm 87808 2 snd_pcm_oss,snd_emu10k1, Live 0xe0c0f000
    snd_timer 22144 1 snd_pcm, Live 0xe0bd7000
    snd_seq_device 6724 2 snd_emu10k1,snd_rawmidi, Live 0xe0bbb000
    snd_ac97_codec 61828 1 snd_emu10k1, Live 0xe0be3000
    snd_page_alloc 9220 2 snd_emu10k1,snd_pcm, Live 0xe0bab000
    snd_util_mem 3264 1 snd_emu10k1, Live 0xe0bb5000
    snd_hwdep 7616 1 snd_emu10k1, Live 0xe0bb2000
    snd 47108 10 snd_pcm_oss,snd_mixer_oss,snd_emu10k1,snd_rawmidi, snd_pcm,snd_timer,snd_seq_device,snd_ac97_codec,sn d_util_mem,snd_hwdep, Live 0xe0bc2000
    soundcore 7328 1 snd, Live 0xe0baf000
    agpgart 26760 0 - Live 0xe0b45000
    nvidia 2070760 12 - Live 0xe0da3000
    smbfs 63412 3 - Live 0xe0b4d000
    usblp 11264 0 - Live 0xe0b00000
    uhci_hcd 29960 0 - Live 0xe0b31000
    ehci_hcd 24000 0 - Live 0xe0b0f000
    floppy 54772 0 - Live 0xe0b22000
    sg 23888 0 - Live 0xe0b08000
    vfat 12480 0 - Live 0xe0afb000
    fat 40864 1 vfat, Live 0xe0abd000
    nls_base 6400 3 smbfs,vfat,fat, Live 0xe0a98000
    binfmt_aout 6092 0 - Live 0xe0a95000
    ide_cd 38272 0 - Live 0xe0aeb000
    cdrom 36576 1 ide_cd, Live 0xe0ae1000
    sidewinder 12928 0 - Live 0xe0ab8000
    emu10k1_gp 2560 0 - Live 0xe0a93000
    gameport 3584 2 sidewinder,emu10k1_gp, Live 0xe0a91000
    joydev 8512 0 - Live 0xe0a8d000
    usb_storage 38912 0 - Live 0xe0aad000
    usbcore 92372 6 usblp,uhci_hcd,ehci_hcd,usb_storage, Live 0xe0ac9000
    scsi_mod 60640 2 sg,usb_storage, Live 0xe0a9d000

    root@matthurne:/# lsusb
    Unknown line at line 1809
    Duplicate HUT Usage Spec at line 2650
    Bus 004 Device 001: ID 0000:0000 Virtual Hub
    Bus 003 Device 001: ID 0000:0000 Virtual Hub
    Bus 002 Device 006: ID 05e3:0700 Genesys Logic, Inc. SIIG US2256 CompactFlash Card Reader
    Bus 002 Device 003: ID 04b8:0005 Seiko Epson Corp. Stylus Printer
    Bus 002 Device 001: ID 0000:0000 Virtual Hub
    Bus 001 Device 001: ID 0000:0000 Virtual Hub

    root@matthurne:/# sg_scan
    /dev/sg0: scsi3 channel=0 id=0 lun=0 [em] type=0

    root@matthurne:/# sg_map
    /dev/sg0

    Notice the printer, which works fine through /dev/lp0 as udev set it up...so it seems USB in general is fine as well as udev. Something with the USB Mass Storage drivers perhaps? *shrug* Let me know if you can help and/or if you need any more information.
    Last edited by matthurne; 03-07-2004 at 11:48 PM.

  2. #2
    Join Date
    Jul 2002
    Location
    USA
    Posts
    28

    RESOLVED

    Well after weeks of trying to fix this problem, I finally got it worked out. I use Slackware...on boot I had it load the usb modules and scsi modules. Well, I had it loading sg (scsi generic) but not sd_mod (scsi disk). So I loaded sd_mod, unplugged the card reader and plugged it back in, and beautiful udev slapped sda and sda1 into my dev directory and everything works.

    Yay. :-D

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •