LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-10-2007, 06:44 AM   #1
sausagejohnson
Member
 
Registered: Mar 2004
Location: Canberra Area, Australia
Distribution: Kubuntu
Posts: 242

Rep: Reputation: 30
Arrow USB Multi Card Reader Problem Revisted


I recently posted my problem regarding getting my multi card reader running again after upgrading from FC4 to FC6. Rather than refer to the old post I have done a lot of research and experimentation and would like to restart discussion afresh.


PROBLEM:
--------
The multicard reader will not declare itself unless I remove the ehci-hcd module with "modprobe -r ehci-hcd" and then unplug the reader from the motherboard USB header socket and back in again.


RESEARCH:
---------
Some points to note:
* My other USB storage devices are working correctly and all connect as SCSI devices such as my Olympus camera and even my GP2X (which is a quirkly little device to connect).
* I have multi-luns enabled.
* I have tried kernels 2.6.19-1.2895.fc6 and 2.6.20 (the latter mentioned improvements in USB in the changelog so it was worth trying)
* It all worked fine in FC4 so the hardware does play nicely.
* As noted above, it works on removal of the echi module and then unplug and plug into the motherboard.

QUESTION:
---------
There is obviously a problem with the initalisation of the device at boot time. Is there something in the scsi command set, /proc or /sys value that will allow a complete "reboot" of the device or re-initialisation as if I had physically unplugged and plugged back in? That way I could at least make a script until the problem improves.
 
Old 02-10-2007, 12:56 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
I am not at my desktop this weekend but to unload a device from the scsi chain use the echo command. Check out this link from a quick search on google.
http://tldp.org/HOWTO/archived/SCSI-...g-HOWTO-4.html

Brian
 
Old 02-11-2007, 01:59 AM   #3
sausagejohnson
Member
 
Registered: Mar 2004
Location: Canberra Area, Australia
Distribution: Kubuntu
Posts: 242

Original Poster
Rep: Reputation: 30
Hi Brian,

Thanks so much this is just the kind of info I am after. I unplugged the device and back in again to get it going and get the required device/interface numbers. I am unsure how to identify the correct parameters.

The document link you mention shows me the required line I need, ie:

echo "scsi add-single-device a b c d" > /proc/scsi/scsi

I tried to first check what the a b c d were by looking doing an: ls /sys/bus/scsi/devices
I get: 1:0:0:0 1:0:0:1 1:0:0:2 1:0:0:3

Then to recreate the problem I inserted the ehci-hcd module and then removed it again which kills the cardreader. Now I try a scsi insert with:

echo "scsi add-single-device 1 0 0 0" > /proc/scsi/scsi

But this gives the line: bash: echo: write error: No such device or address

Ok, so that indicates to me that 1:0:0:0 is not the required IDs for a b c d.

My lsusb -v section for the card reader shows the following:

Quote:
Bus 001 Device 005: ID 05e3:0710 Genesys Logic, Inc. USB 2.0 33-in-1 Card Reader
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x05e3 Genesys Logic, Inc.
idProduct 0x0710 USB 2.0 33-in-1 Card Reader
bcdDevice 91.44
iManufacturer 0
iProduct 1 USB Storage
iSerial 2 000000009144
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
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
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
bNumConfigurations 1
I am having difficultly identifying from the above what is:

* hostadapter id
* SCSI channel on hostadapter
* ID
* LUN

Last edited by sausagejohnson; 02-11-2007 at 02:18 AM.
 
Old 02-11-2007, 10:44 AM   #4
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
You get better info issuing the command ' cat /proc/scsi/scsi '

Brian
 
Old 02-11-2007, 03:58 PM   #5
sausagejohnson
Member
 
Registered: Mar 2004
Location: Canberra Area, Australia
Distribution: Kubuntu
Posts: 242

Original Poster
Rep: Reputation: 30
Ah ok, I'll get the device working and check the contents there this evening.
 
Old 02-12-2007, 01:55 AM   #6
sausagejohnson
Member
 
Registered: Mar 2004
Location: Canberra Area, Australia
Distribution: Kubuntu
Posts: 242

Original Poster
Rep: Reputation: 30
Ok, excellent, I do have the numbers now...

# cat /proc/scsi/scsi
Attached devices:
Host: scsi1 Channel: 00 Id: 00 Lun: 00
Vendor: Generic Model: STORAGE DEVICE Rev: 9144
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 00 Lun: 01
Vendor: Generic Model: STORAGE DEVICE Rev: 9144
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 00 Lun: 02
Vendor: Generic Model: STORAGE DEVICE Rev: 9144
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 00 Lun: 03
Vendor: Generic Model: STORAGE DEVICE Rev: 9144
Type: Direct-Access ANSI SCSI revision: 02


So my numbers should be:
1 0 0 0
1 0 0 1
1 0 0 2
1 0 0 3

Hmmm... they're the numbers I came up with before. Maybe I was on the money to start with.
So I enable and disable the ehci-hcd module to kill the cardreader with:

modprobe ehci-hcd
modprobe -r ehci-hcd

Now to try the scsi commands:
echo "scsi add-single-device 1 0 0 0" > /proc/scsi/scsi
echo "scsi add-single-device 1 0 0 1" > /proc/scsi/scsi
echo "scsi add-single-device 1 0 0 2" > /proc/scsi/scsi
echo "scsi add-single-device 1 0 0 3" > /proc/scsi/scsi

And all come back with:
-bash: echo: write error: No such device or address

So it looks like that is where I am stuck.
 
Old 02-12-2007, 05:37 PM   #7
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Check out this script. Run it after you do the disabling/enabling of ehci-hcd. Rescan-Scsi_Bus
http://www.garloff.de/kurt/linux/

Brian
 
Old 02-13-2007, 01:13 AM   #8
sausagejohnson
Member
 
Registered: Mar 2004
Location: Canberra Area, Australia
Distribution: Kubuntu
Posts: 242

Original Poster
Rep: Reputation: 30
Got the script and ran it. Message back was: No SCSI host adapters found in sysfs

So I'm beginning to think that this is a hardware initialisation thing, not a device wakeup. There is a green led on the reader. The led will only light and the reader come alive under the following two conditions:

1) the ehci-hcd is not present
2) the unit is plugged into the motherboard after linux loads

So I think it has to do with power. Perhaps I need a command that will wake up the actual motherboard usb port or the power supply to the device.
 
Old 02-13-2007, 04:13 PM   #9
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
I know of nothing that can do that and it may be possible the motherboard could even do that. Other than that I have one more idea. Go into the bios and see if there is an option like Legacy USB. If so enable it or un enable it and see if that works.

Brian
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
USB Multi-card Flash Reader in Kernel 2.6.19 sausagejohnson Linux - Hardware 20 02-01-2007 08:20 PM
USB Multi card reader in linux sjmgeezer Linux - Hardware 2 07-21-2005 07:15 AM
multi-card usb reader support MikTheUser Linux - Hardware 1 02-14-2005 04:53 PM
USB multi-card reader; only one card can be mounted in Slack 10. KidsWriter71 Linux - Hardware 6 09-11-2004 07:24 PM
USB multi-card reader woes bgnrsmnd Linux - Newbie 1 11-06-2003 06:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration