LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   multicard reader problem in Slack 10.2 (https://www.linuxquestions.org/questions/slackware-14/multicard-reader-problem-in-slack-10-2-a-378277/)

surfer63 10-30-2005 05:35 AM

multicard reader problem in Slack 10.2
 
I'm trying to use my multi card reader in slackware 10.2. I already know that my multicard reader "behaves" like a multi-scsi device, therefor when I connect my kernel/modules should detect a multi scsi device, but that doesn't happen. I have no problem mounting "simple" usb memory keys.

What I did and found:
I searched the web and found two threads (as I didn't post before (in this forum) I'm not allowed to provide a link, so I copy some text in :-(
----- Start copied thread --------------
cd /usr/src/linux
make menuconfig

(Code: Kernel 2.6.x)

Device Drivers --->
SCSI device support --->
<M> SCSI device support
<M> SCSI disk support
<*> SCSI generic support
<*> Probe all LUNs on each SCSI device
USB support --->
<M> Support for Host-side USB
<M> EHCI HCD (USB 2.0) support
<M> OHCI HCD support
<M> UHCI HCD (most Intel and Via) support
<M> USB Mass Storage support

The first three SCSI options are necessary because the USB Mass Storage driver depends on them. The last SCSI option is where all the magic is done. Without it, only one slot of your device will work properly, because the system will stop looking for disk after it finds the first one. With this option it will keep looking for other disks until it probes all possible addresses. The EHCI, OHCI and UHCI will be necessary depending on your USB host. My Toshiba Satellite, for instance, uses both EHCI (for USB 2.0) and UHCI (for USB 1.x).

Then make your kernel and install the modules:

make
make modules_install
cp System.map /boot/System.map
cp arch/i386/boot/bzImage /boot/bzImage

And reboot your system

-- Mounting the drives

When your system comes back up, just plug your reader and you should be able to mount the cards using the /dev/sdX devices. My Iomega 7-in-1 reader maps the floppy to /dev/sda, the CF/MicroDrive to /dev/sdb and the SM/SD/MMC/MS to /dev/sdc, so if I wanna mount my SD card I need to run the following command:

mount -t vfat /dev/sdc1 /mnt/usb

--- End of copied thread ----------------
(However, this thread was for Gentoo linux, a debian spin-off, and not for slackware)

So I followed the advice and compiled myself a new kernel.
Well, first of all I couldn't find a scsi_mod.ko as describeb. I do however find a modified (new) ide-scsi.ko and a modified dc395x.ko.

My multicard reader still doesn't show up properly.
I found another thread describing to add the following line to my /etc/modules.conf
options scsi_mod max_scsi_luns=8
but then again: I do not have a scsi_mod module.

Here a "tail /var/log/messages" when I plug in the card-reader.
------------------------------
usb 1-6: new high speed USB device using ehci_hcd and address 4
Initializing USB Mass Storage driver...
scsi0 : SCSI emulation for USB Mass Storage devices
usbcore: registered new driver usb-storage
Vendor: USB 2.0 Model: CF Card CF Rev: 1.6E
Type: Direct-Access ANSI SCSI revision: 00
usb 1-6: USB disconnect, address 4
sda : READ CAPACITY failed.
sda: Write Protect is off
sda : READ CAPACITY failed.
sda: Write Protect is off
sda : READ CAPACITY failed.
sda: Write Protect is off
sda:<3>Buffer I/O error on device sda, logical block 0
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
usb 1-6: new high speed USB device using ehci_hcd and address 5
scsi1 : SCSI emulation for USB Mass Storage devices
Vendor: USB 2.0 Model: CF Card CF Rev: 1.6E
Type: Direct-Access ANSI SCSI revision: 00
Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
------------------------------
As you can see it detects a CF card reader on id0, lun0. But my xD card and SD card on lun xx are not detected (and unfortunately, on my company winXP laptop and my kids WinXP pc the cardreader works perfect, so it's not malfunctioning.)

Note: It does not matter whether I connect the reader with or without a card already inserted and neither does it change the /log/messages netries.

I am newbie when it comes to kernel compiling and modifiying.
Any guru here that can help me out?

thanks in advance.

gnashley 10-30-2005 11:44 AM

You need to enable 'probe all LUNS' to use multi-card readers.

surfer63 10-30-2005 12:49 PM

I do not exactly know what you mean.
I checked the following options in the "make menuconfig"
Quote:

Device Drivers --->
SCSI device support --->
<M> SCSI device support
<M> SCSI disk support
<*> SCSI generic support
<*> Probe all LUNs on each SCSI device
and then compiled the new kernel and modules.

Is that not the same as what you said ?
Quote:

You need to enable 'probe all LUNS' to use multi-card readers....
Correct me if I'm wrong.

rkelsen 10-30-2005 09:39 PM

Re: multicard reader problem in Slack 10.2
 
The instructions in your original post are missing a very important step: Installing LILO. If you didn't do that, then your new kernel won't boot.

If you have selected all the options as shown in the kernel config example above, then you should have a scsi_mod module, as well as sd_mod and usb-storage. If you have all 3, and chose CONFIG_SCSI_MULTI_LUN in your kernel config, you should be laughin'...

Also, ensure that the "Low performance USB driver" is disabled, or the whole thing won't work.

surfer63 10-31-2005 12:31 PM

Thanks for the reply.

I had forgotten the LILO part (to busy following others directions and not thinking myself).

After reboot I added the multicard reader and it correctly shows up in "/var/log/messages"

Quote:

usb 3-1.1: new full speed USB device using uhci_hcd and address 5
Initializing USB Mass Storage driver...
scsi0 : SCSI emulation for USB Mass Storage devices
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
Vendor: USB 2.0 Model: CF Card CF Rev: 1.6E
Type: Direct-Access ANSI SCSI revision: 00
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 0
Vendor: USB 2.0 Model: MS Card MS Rev: 1.6E
Type: Direct-Access ANSI SCSI revision: 00
Attached scsi removable disk sdb at scsi0, channel 0, id 0, lun 1
Attached scsi generic sg1 at scsi0, channel 0, id 0, lun 1, type 0
Vendor: USB 2.0 Model: SD Card MMC/SD Rev: 1.6E
Type: Direct-Access ANSI SCSI revision: 00
Attached scsi removable disk sdc at scsi0, channel 0, id 0, lun 2
Attached scsi generic sg2 at scsi0, channel 0, id 0, lun 2, type 0
Vendor: USB 2.0 Model: SM Card SM Rev: 1.6E
Type: Direct-Access ANSI SCSI revision: 00
Attached scsi removable disk sdd at scsi0, channel 0, id 0, lun 3
Attached scsi generic sg3 at scsi0, channel 0, id 0, lun 3, type 0
Vendor: USB 2.0 Model: XD Card XD Rev: 1.6E
Type: Direct-Access ANSI SCSI revision: 00
Attached scsi removable disk sde at scsi0, channel 0, id 0, lun 4
Attached scsi generic sg4 at scsi0, channel 0, id 0, lun 4, type 0
Now I can mount my SD card as /dev/sdc1 and my xD card as /dev/sde1 (on whatever mountpoint).

Thanks a lot.

Harry


All times are GMT -5. The time now is 08:56 PM.