Fedora Linux Support Community & Resources Center
  #1  
Old 28th June 2006, 01:35 AM
abensonox Offline
Registered User
 
Join Date: Jul 2005
Location: Pasadena, CA
Posts: 40
Ricoh Card Reader in FC5

I just bought a Dell Precision M90 and installed FC5 on it. The laptop has a built in memory card reader. It's currently not working (i.e. if I put a memory card into it nothing happens). From reading around, it sounds as though this should be supported under the 2.6.17 kernel (e.g. http://www.gidnetwork.com/b-109.html) which I have installed.

Both the mmc_block and mmc_core kernel modules (which I think should detect the card) are loaded.

Does anyone have any ideas about how to get this card reader to work?

System details are:
Dell Precision M90
Fedora Core 5
kernel-smp-2.6.17-1.2139_FC5

The relevant parts of the output from lspci are:

03:01.0 FireWire (IEEE 1394): Ricoh Co Ltd Unknown device 0832
03:01.1 Class 0805: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 19)
03:01.2 System peripheral: Ricoh Co Ltd Unknown device 0843 (rev 01)
03:01.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 0a)
03:01.4 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 05)

-Andrew.
Reply With Quote
  #2  
Old 28th June 2006, 02:29 AM
Brian1's Avatar
Brian1 Offline
Registered User
 
Join Date: Nov 2004
Location: Seymour, Indiana
Posts: 2,511
Don't have that hardware but looking at the site do you have the sdhci module loaded? I did a quick compile to add the following section as describe and when done using this commnad to see the modules that are installed.

Run the command ' ls /lib/modules/`uname -r`/kernel/drivers/mmc ' and see if you have all the following modules listed.
mmc_block.ko
mmc_core.ko
sdhci.ko
wbsd.ko

From a quick download of that precompiled kernel it appears to all be present. So does ' dmesg ' show anything after inserting the sd card as described?

Brian1
__________________
Distribution: RHEL 5.1 with Pieces of this and that.
Kernel 2.6.23.9, KDE 3.5.8 and KDE 4.0 beta, Plus Development src.rpm, ATI fglrx64_7_1_0-8.433-1 rpm with 3D and DRI working.
Acer 5100-5840 with webcam, ati, sdcard reader, sound, atheros based wireless, all working. Only thing not working is the memory stick reader.
Reply With Quote
  #3  
Old 28th June 2006, 04:52 PM
abensonox Offline
Registered User
 
Join Date: Jul 2005
Location: Pasadena, CA
Posts: 40
Hi Brian,

Thanks for your reply. Here's the output that I get:

$ ls /lib/modules/`uname -r`/kernel/drivers/mmc
mmc_block.ko mmc_core.ko sdhci.ko wbsd.ko

So I have all the modules you mention. An "lsmod" shows that only sdhci and mmc_core are loaded though. Should mmc_block and wbsd be loaded also?

Inserting the card into the reader results in no new output when I do "dmesg".

Thanks!

Andrew.
Reply With Quote
  #4  
Old 28th June 2006, 10:15 PM
Brian1's Avatar
Brian1 Offline
Registered User
 
Join Date: Nov 2004
Location: Seymour, Indiana
Posts: 2,511
Not sure if mmc_block is needed. I would modprobe it and give it a try. Can't hurt if not needed. The other wbsd is for the following according to the kernel docs.
This selects the Winbond(R) W83L51xD Secure digital and
Multimedia card Interface.
If you have a machine with a integrated W83L518D or W83L519D

And the sdhci says this.
This select the generic Secure Digital Host Controller Interface.
It is used by manufacturers such as Texas Instruments(R), Ricoh(R)
and Toshiba(R). Most controllers found in laptops are of this type.

Thats about all I know about it.
Brian1
__________________
Distribution: RHEL 5.1 with Pieces of this and that.
Kernel 2.6.23.9, KDE 3.5.8 and KDE 4.0 beta, Plus Development src.rpm, ATI fglrx64_7_1_0-8.433-1 rpm with 3D and DRI working.
Acer 5100-5840 with webcam, ati, sdcard reader, sound, atheros based wireless, all working. Only thing not working is the memory stick reader.
Reply With Quote
  #5  
Old 28th June 2006, 10:24 PM
abensonox Offline
Registered User
 
Join Date: Jul 2005
Location: Pasadena, CA
Posts: 40
Thanks for your help with this.

Loading the mmc_block module doesn't seem to help. Still nothing from dmesg after I insert the card. I'm wondering if the card reader just isn't being correctly identified.

-Andrew.
Reply With Quote
  #6  
Old 29th June 2006, 12:41 AM
Brian1's Avatar
Brian1 Offline
Registered User
 
Join Date: Nov 2004
Location: Seymour, Indiana
Posts: 2,511
That is possiable. It seems some of these readers are properity hardware requiring custom software for them to work. I wish more of them would just use USB as the interface to these devices. Would be easier for all.

Brian1
__________________
Distribution: RHEL 5.1 with Pieces of this and that.
Kernel 2.6.23.9, KDE 3.5.8 and KDE 4.0 beta, Plus Development src.rpm, ATI fglrx64_7_1_0-8.433-1 rpm with 3D and DRI working.
Acer 5100-5840 with webcam, ati, sdcard reader, sound, atheros based wireless, all working. Only thing not working is the memory stick reader.
Reply With Quote
  #7  
Old 29th June 2006, 01:49 AM
abensonox Offline
Registered User
 
Join Date: Jul 2005
Location: Pasadena, CA
Posts: 40
It sure would be!!!!!

-Andrew
Reply With Quote
  #8  
Old 30th June 2006, 02:07 AM
nt4cats Offline
Registered User
 
Join Date: Aug 2005
Location: Philadelphia, PA
Posts: 99
I'm in exactly the same boat as you with my Dell Inspiron e1505. This probably looks familliar:

03:01.0 FireWire (IEEE 1394): Ricoh Co Ltd Unknown device 0832
03:01.1 Class 0805: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 19)
03:01.2 System peripheral: Ricoh Co Ltd Unknown device 0843 (rev 01)
03:01.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 0a)
03:01.4 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 05)

I'd really (really really really) like to get the FireWire working, and the card reader would be nice, too. I'll continue to search around the 'net, and if I see anthing, I'll post it here. Please let me know if you make progress with either the FireWire or the card reader.
Reply With Quote
  #9  
Old 11th July 2006, 10:39 PM
aalbiol Offline
Registered User
 
Join Date: Jul 2006
Posts: 1
I have manageg to make the card reader work by adding the following line
/sbin/modprobe mmc_block
to the file /etc/rc.local
I use an updated fedora fc5 distribtution.
Kernel 2.6.17-1.2139_FC5
The laptop is a Lenovo Thinkpad Z60t
-----------------------------------
14:00.2 Class 0805: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 17)
-----------------------------------
In order to make the firewire work try to add
/sbin/modprobe raw1394
at /etc/rc.local
Reply With Quote
  #10  
Old 12th July 2006, 04:46 PM
abensonox Offline
Registered User
 
Join Date: Jul 2005
Location: Pasadena, CA
Posts: 40
Hi aalbiol,

Thanks for you suggestion. Unfortunately this doesn't seem to work for me. I added the lines to /etc/rc.local but on inserting the memory stick I still get no response (i.e. nothing new in /var/log/messages or from dmesg).

-Andrew
Reply With Quote
  #11  
Old 16th July 2006, 04:57 PM
achitnis Offline
Registered User
 
Join Date: May 2004
Location: Bangalore, India
Age: 51
Posts: 2
Quote:
Originally Posted by abensonox
Hi aalbiol,

Thanks for you suggestion. Unfortunately this doesn't seem to work for me. I added the lines to /etc/rc.local but on inserting the memory stick I still get no response (i.e. nothing new in /var/log/messages or from dmesg).

-Andrew
As root :

/sbin/modprobe sdhci
/sbin/modprobe mmc_block

Insert card in reader. Under gnome or kde, the card should get automounted. If not, try this:

dmesg |grep mmcblk

Look for a line like

mmcblk0: p1

The p1 is your key. Now run

mkdir -p /mnt/sd
mount /dev/mmcblk0p1 /mnt/sd

Tested on an IBM Thinkpad X60s, under FC5 (kernel 2.6.17-1.2145_FC5smp)

-ac
Reply With Quote
  #12  
Old 16th July 2006, 05:55 PM
nt4cats Offline
Registered User
 
Join Date: Aug 2005
Location: Philadelphia, PA
Posts: 99
Talking

achitnis' recommendation worked for me as well, thanks.

In order to make this change happen automagically you can add the modprobe commands manually to /etc/rc.d/rc.local -- or there is a directory called /etc/sysconfig/modules that has scripts for inserting modules. This is the route I used, as the modprobe commands get called much earlier in the boot process using this technique versus using rc.local. For your card reader it probably doesn't matter how early/late you do the modprobe, but sometimes it is good to know that you have choices about where (and when) to load modules.

The script I created in /etc/sysconfig/modules has the following contents:
Code:
#!/bin/sh
for i in sdhci mmc_block;do
        modprobe $i >/dev/null 2>&1
done
Make sure the script has 755 permissions, and it has to be named to match the wildcard '*.modules'. I called mine 'ricoh-card-reader.modules'.

I now have all of the hardware in my laptop that I plan to use supported & working (card reader, firewire, media keys, wifi, graphics, sound). I haven't tried the s-video out or the bluetooth, but that's because I don't have a need for them at this point (I wouldn't use them if I was running Windoze). Maybe they work, maybe they don't.
Reply With Quote
  #13  
Old 16th July 2006, 08:52 PM
achitnis Offline
Registered User
 
Join Date: May 2004
Location: Bangalore, India
Age: 51
Posts: 2
Quote:
Originally Posted by nt4cats
The script I created in /etc/sysconfig/modules has the following contents:
Code:
#!/bin/sh
for i in sdhci mmc_block;do
        modprobe $i >/dev/null 2>&1
done
Make sure the script has 755 permissions, and it has to be named to match the wildcard '*.modules'. I called mine 'ricoh-card-reader.modules'.
Excellent - I just learnt something new and useful!

Many thanks!
Reply With Quote
  #14  
Old 16th July 2006, 09:17 PM
nt4cats Offline
Registered User
 
Join Date: Aug 2005
Location: Philadelphia, PA
Posts: 99
I just thought of one more thing that I didn't include earlier -- the code that actually invokes the scripts in /etc/sysconfig/modules is in /etc/rc.d/rc.sysinit. Enjoy!
Reply With Quote
  #15  
Old 17th July 2006, 05:55 PM
abensonox Offline
Registered User
 
Join Date: Jul 2005
Location: Pasadena, CA
Posts: 40
Unfortunately this didn't work for me! After the two /sbin/modprobe commands, I insert the card. No automounting happens, so I tried

dmesg |grep mmcblk

but I get nothing - no mention of "mmcblk" from dmesg.

Thanks for all the suggestions!
Reply With Quote
Reply

Tags
card, fc5, reader, ricoh

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HP Pavilion dv6000 Ricoh Card Reader wvn Hardware & Laptops 33 20th December 2008 07:43 AM
Ricoh card Reader Dangermouse Guides & Solutions (No Questions) 5 23rd November 2007 04:56 PM
f8 - e1505 ricoh card reader no longer works since upgrade; mmc_block module mrmailer Hardware & Laptops 2 19th November 2007 05:38 PM
Card reader GemPlus and memory card sle4442 problem zah Hardware & Laptops 1 11th November 2007 08:49 AM
SD card size is not correctly recognized using USB card reader and Fedora 7 garrett Hardware & Laptops 6 27th October 2007 10:53 PM


Current GMT-time: 21:08 (Saturday, 18-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat