What should ?
Edit kernel configuration
Installing the Drivers
The USB driver serves up your reader as a SCSI device, so you also need to install the SCSI drivers. In the “SCSI Support” section, enable these. The configuration name and the module name are listed:
SCSI Support (CONFIG_SCSI, scsi.o)
SCSI disk support (CONFIG_BLK_DEV_SD, sd_mod.o)
SCSI generic support (CONFIG_CHR_DEV_SG, sg.o)
Probe all LUNs on each SCSI device (CONFIG_SCSI_MULTI_LUN), required only for multi-card devices.
You need to use the USB mass storage driver to access your reader. In the “USB Support” section of the kernel configuration, enable the following:
Support for USB (CONFIG_USB, usb.o)
Preliminary USB device file system (CONFIG_USB_DEVICEFS)
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)
USB Mass Storage support (CONFIG_USB_STORAGE, usb-storage.o)
Make sure you do not select the “Low Performance USB Block Driver” (BLK_DEV_UB). It will prevent the whole thing from working correctly.
Compile your kernel with these options and reboot (or just load the relevant modules if you’ve got them). And, plug the thing in, if you haven’t already.
Multi Card Readers
If you have an n-in-1 card reader that can deal with multiple cards, the process isn’t much different. Make sure that “Probe all LUNs on each SCSI device” (CONFIG_SCSI_MULTI_LUN) is enabled in your kernel. If this isn’t compiled in, you can add this line to your /etc/modprobe.d/cardreader
:
options scsi_mod max_scsi_luns=8
Or, for a more temporary solution, run this command:
echo 8 > /sys/module/scsi_mod/parameters/max_luns
**_
When that is done you must reboot, and use new kernel.
And type 'sg_scan -i'
for scan SCSI devices.
Should get text like that:
[8016:8012 0:510] 10:28:03 вт ное 02 [root@Calculate64: +2] ~
(2:510)# sg_scan -i
/dev/sg0: scsi0 channel=0 id=0 lun=0 [em]
ATA ExcelStor Techno P22O [rmb=0 cmdq=0 pqual=0 pdev=0x0]
/dev/sg1: scsi1 channel=0 id=0 lun=0 [em]
ATA ST3160815AS 3.AA [rmb=0 cmdq=0 pqual=0 pdev=0x0]
/dev/sg2: scsi4 channel=0 id=0 lun=0 [em]
HL-DT-ST DVDRAM GSA-H44N RB00 [rmb=1 cmdq=0 pqual=0 pdev=0x5]
/dev/sg3: scsi4 channel=0 id=1 lun=0 [em]
HL-DT-ST DVD-RAM GSA-H58N 1.01 [rmb=1 cmdq=0 pqual=0 pdev=0x5]
/dev/sg4: scsi6 channel=0 id=0 lun=0 [em]
Generic USB Storage-CFC I19A [rmb=1 cmdq=0 pqual=0 pdev=0x0]
/dev/sg5: scsi6 channel=0 id=0 lun=1 [em]
Generic USB Storage-SDC I19A [rmb=1 cmdq=0 pqual=0 pdev=0x0]
/dev/sg6: scsi6 channel=0 id=0 lun=2 [em]
Generic USB Storage-SMC I19A [rmb=1 cmdq=0 pqual=0 pdev=0x0]
/dev/sg7: scsi6 channel=0 id=0 lun=3 [em]
Generic USB Storage-MSC I19A [rmb=1 cmdq=0 pqual=0 pdev=0x0]
699/3017MB 0.98 1.05 1.33 1/291 14282
[8016:8012 0:511] 10:28:14 вт ное 02 [root@Calculate64: +2] ~
(2:511)#