To check your SCSI devices, run the command sg_scan -i .
Install the sg3-utils package if you haven't already (on Debian, apt-get install sg3-utils). If you see that, the kernel is recognizing the USB device. If you have a look through the file /proc/bus/usb/devices, you should see a section with an S: line and the name of your reader and an I: line with Driver=usb-storage. And, plug the thing in, if you haven't already. It will prevent the whole thing from working correctly.Ĭompile your kernel with these options and reboot (or just load the relevant modules if you've got them). Make sure you do not select the “Low Performance USB Blockĭriver” ( BLK_DEV_UB).
Whatever USB drivers you need, one or more of: ECHI HCD ( CONFIG_USB_EHCI_HCD, usb-ehci-hcd.o), UHCI ( CONFIG_USB_UHCI, usb-uhci.o), OHCI ( CONFIG_USB_OHCI, usb-ohci.o).Preliminary USB device file system ( CONFIG_USB_DEVICEFS).In the “ USB Support” section of the kernel configuration, enable the following: You need to use the USB mass storage driver to access your reader. Probe all LUNs on each SCSI device ( CONFIG_SCSI_MULTI_LUN), required only for multi-card devices.SCSI generic support ( CONFIG_CHR_DEV_SG, sg.o).
SCSI disk support ( CONFIG_BLK_DEV_SD, sd_mod.o).The configuration name and the module name are listed: In the “ SCSI Support” section, enable these. The USB driver serves up your reader as a SCSI device, so you also need to install the SCSI drivers. I have also done this with 2.6.x kernels and it all works. It should work with any 2.4.x series kernel. I originally did this on Debian sarge with Linux kernel 2.4.19. If you have any particular successes or failures using these instructions, let me know. With minimal modifications, the setup is the same for USB CD-ROM drives, floppies, etc. You should be able to follow the same procedure for other USB storage devices (portable hard drives, other media cards, etc.). Using USB Mass Storage Devices (one page of the Linux USB How-To).
I didn't find any instructions that were as straightforward as they should be, so.įirst things first. I recently got a Compact Flash card reader and set about getting it to work under Linux (x86).