Ricoh 5 in 1 card reader not working on Ubuntu 8.10 / 9.04

Reported by mandy on 2008-12-27
92
This bug affects 17 people
Affects Status Importance Assigned to Milestone
Ubuntu
Undecided
Unassigned

Bug Description

Linux fausto-laptop 2.6.27-9-generic #1 SMP Thu Nov 20 22:15:32 UTC 2008 x86_64 GNU/Linux

fausto@fausto-laptop:~$ lspci | grep Ricoh
01:04.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 05)
01:04.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 22)
01:04.2 System peripheral: Ricoh Co Ltd R5C843 MMC Host Controller (rev 12)
01:04.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 12)
01:04.4 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev ff)

I tried reading memory a memory stick but it doesn't work, no way to automatically mount.

Ilmari Vacklin (wolverian) wrote :

Confirming on Dell XPS M1330, internal Ricoh R5C832 card reader. I have only tested with MMC cards however. Attaching lspci and dmesg commands. Inserting an MMC card does not output anything in any log.

Ilmari Vacklin (wolverian) wrote :
Scott Bronson (bronson) wrote :

This is still a problem in Jaunty. The SD card reader doesn't work on my Thinkpad T500.

The suggestion from https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.22/+bug/111089 works great. After running the following commands (replace 15:00.2 with your PCI bus, use lspci -vv to find it), SD cards are recognized on insertion.

sudo setpci -s 15:00.2 0xCA=0x57 # Write Enable
sudo setpci -s 15:00.2 0xCB=0x02 # (MMC Disable)
sudo setpci -s 15:00.2 0xCA=0x00 # (Write Disable)

I have these log messages...

root@t500-jaunty:/home/bronson# dmesg | grep ricoh
[ 1417.045165] ricoh-mmc: Resuming.
[ 1417.045178] ricoh-mmc: Controller is now disabled.
[ 1753.136930] ricoh-mmc: Suspending.
[ 1753.136945] ricoh-mmc: Controller is now re-enabled.

So, the ricoh-mmc driver appears to be present but not fixing this bug?

Scott Bronson (bronson) wrote :

For people searching, this is the syslog message that I receive when inserting the sd card fails:

May 7 16:46:52 t500-jaunty kernel: [84386.653203] mmc0: error -110 whilst initialising SD card

Sebastian Klus (klus-spam) wrote :

Confirmed for HP DV6000 with Ubuntu 9.04.

I am trying to mount Memory Sticks, but no success.

Outputs:
lspci | grep Ricoh
07:05.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller
07:05.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 19)
07:05.2 System peripheral: Ricoh Co Ltd R5C843 MMC Host Controller (rev 0a)
07:05.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 05)
07:05.4 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev ff)

lspci -vv #only extract shown
07:05.4 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev ff) (prog-if ff)
 !!! Unknown header type 7f

Proposed setpci commands show no effect, neither when running them on 07:05.0 (Firewire; according to https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.22/+bug/111089/comments/19) nor when running them on 07:05.2 (MMC Controler).

So no luck up to now.

summary: - Ricoh 5 in 1 card reader not working on Ubuntu 8.10
+ Ricoh 5 in 1 card reader not working on Ubuntu 8.10 / 9.04
Bertoldo Fonseca (bertoldo) wrote :

It seems that this bug affect the 9.10 too. I have a HP DV6000t and nothing happen when I insert my Memory Stick.
Here the output of some useful informations:

bertoldo@klinger-laptop:~$ sudo lspci | grep -i ricoh
07:05.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller
07:05.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 19)
07:05.2 System peripheral: Ricoh Co Ltd R5C843 MMC Host Controller (rev 0a)
07:05.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 05)
07:05.4 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev ff)

bertoldo@klinger-laptop:~$ dmesg | grep -i ricoh
[ 6.836183] ricoh-mmc: Ricoh MMC Controller disabling driver
[ 6.836186] ricoh-mmc: Copyright(c) Philip Langdale
[ 6.999404] ricoh-mmc: Ricoh MMC controller found at 0000:07:05.2 [1180:0843] (rev 1)
[ 6.999423] ricoh-mmc: Controller is now disabled.

bertoldo@klinger-laptop:~$ lsmod | grep -i ricoh
ricoh_mmc 4480 0

Scott Bronson (bronson) wrote :

Strange, I'm pretty sure stock Karmic is working on my T500 just fine. I'm running a prerelease though, I'll install the final version in a week or two and report back if it's still broken.

Bertoldo, does the workaround linked above work for you? Here's one description: https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.22/+bug/111089/comments/15

Sebastian Klus (klus-spam) wrote :

Same for me - cardreader not working on HP dv6000 (at least for Memory Stick Pro).

I did not get in working in previous Ubuntu version and the workaround does not work for me on Koala either.

Output of lspci | grep Ricoh is showing:
07:05.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller
07:05.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 19)
07:05.2 System peripheral: Ricoh Co Ltd R5C843 MMC Host Controller (rev 0a)
07:05.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 05)
07:05.4 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev ff)

Output of lspci -vv is attached.

Thanks in advance for any help. And if you need any additional info, please let me know.

Sebastian

Sebastian Klus (klus-spam) wrote :

Just saw at https://bugs.launchpad.net/ubuntu/+source/linux/+bug/238208 that, in my case (Memory Stick), it's more a driver issue that a bug.

So please omit my previous comment.

Thanks,
Sebastian

Bertoldo Fonseca (bertoldo) wrote :

Hi Scott,

I tried this:
sudo setpci -s 07:05.2 0xCA=0x57
sudo setpci -s 07:05.2 0xCB=0x02
sudo setpci -s 07:05.2 0xCA=0x00

But didn't work. I read both, the post you sent me and the blog linked in the post, twice to ensure that I did everything correct.

This kind of problem is a shame, in my opinion. Now that I get free from windows on my laptop I find a issue like this one. I'm not able to get my pictures of my camera in a easy way.

Anyway, thanks for your help.

SDonatas (sdonatas) wrote :

I confirm that SD, XD... cards doesn't work on ubuntu 9.10, 10,04 and i believe all other versions. My laptop is HP dv6500 and uses ricoh 5in1 card reader hardware. Any ideas?

slicks (slicks) wrote :

I suggest that something wrong or disabled in kernel. Because on Ubuntu 8.04 Ricoh cardreader worked perfect with my Memory stick adapter, but in 8.10, 9,04, 9.10 - it doesn't work.

slicks (slicks) wrote :

hm... any ideas at all?

J. Schraten (0nickyet) wrote :

Card Reader works out of the box with Fedora 13. Perhaps someone should compare.

J. Schraten (0nickyet) wrote :

With 10.10 the problem is solved again. Is there a solution in 10.04 available?

Jior (tepanahui) wrote :

Wrong, my ricoh R5C822 works terrific in 8.04, 8.10, 9.04,9.10,10.04 and now it doesnt works. I tried even update to kernel 2.6.36 and 2.6.37 and i get the same thing. Im probing all solutions from installing new modules, disabling legacy floppy, deactivating some features in vbox, running some scripts from torvalds website, and so on. and NOTHING seems to be effective.
My card reader is dead.

jior@jior-vvlp:~$ lspci | grep -i ricoh
03:01.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller
03:01.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 19)
03:01.2 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 0a)
03:01.3 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 05)

jior@jior-vvlp:~$ dmesg | grep ricoh #returns nothing
jior@jior-vvlp:~$

at least the error 101 whlst disappeared.

¿suggestions?

António Oliveira (tomane) wrote :
Download full text (51.0 KiB)

I'm running kubuntu 11.04 and I'm unable to read an 8G SD card.

Hopefuly this may be usefull to track down the problem.
Thanks in advance.

--8<------------
$lspci
00:00.0 Host bridge: Intel Corporation Mobile 4 Series Chipset Memory Controller Hub (rev 07)
00:01.0 PCI bridge: Intel Corporation Mobile 4 Series Chipset PCI Express Graphics Port (rev 07)
00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 03)
00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 03)
00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 03)
00:1c.1 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 2 (rev 03)
00:1c.4 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 5 (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 03)
00:1d.3 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 93)
00:1f.0 ISA bridge: Intel Corporation ICH9M LPC Interface Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation ICH9M/M-E SATA AHCI Controller (rev 03)
00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 03)
01:00.0 VGA compatible controller: ATI Technologies Inc Mobility Radeon HD 3650
01:00.1 Audio device: ATI Technologies Inc RV635 Audio device [Radeon HD 3600 Series]
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 02)
03:00.0 Network controller: Intel Corporation WiFi Link 5100
04:06.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 05)
04:06.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 22)
04:06.2 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 12)
04:06.3 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 12)

-----------8<------------------
$ sudo lshw
tinta-roriz
    description: Notebook
    product: Satellite A300 (Montevina_Fab)
    vendor: TOSHIBA
    version: PSAGCE-09E01LPT
    serial: 19221224Q
    width: 64 bits
    capabilities: smbios-2.4 dmi-2.4 vsyscall64 vsyscall32
    configuration: boot=normal chassis=notebook family=Intel_Mobile sku=Montevina_Fab uuid=23A7F7F0-DC5E-11DD-A70E-001E3390EBDF
  *-core
       description: Motherboard
       product: Portable PC
       vendor: TOSHIBA
       physical id: 0
       version: Base Board Version
       serial: Base Board Serial Number
       slot: Base Board Chassis Location
     *-firmware
          description: BIOS
          vendor: INSYDE
          phy...

António Oliveira (tomane) wrote :

My bad!
I meant kubuntu 11.04

Sorry for that.

jhoechtl (johann-hoechtl) wrote :

Still not working for kernel 3.0.0 / Oneiric 11.10 Linux deneb 3.0.0-13-generic #22-Ubuntu SMP Wed Nov 2 13:27:26 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

Not working with Oneiric - card is mounted but can not open anytning

root@u1110x64-Pavilion-dv6500-Ania-Algis:/home/ania# lspci -v|grep -i sd
07:05.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 22)
 Kernel driver in use: sdhci-pci
 Kernel modules: sdhci-pci
root@u1110x64-Pavilion-dv6500-Ania-Algis:/home/ania# uname -a
Linux u1110x64-Pavilion-dv6500-Ania-Algis 3.0.0-13-generic #22-Ubuntu SMP Wed Nov 2 13:27:26 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
root@u1110x64-Pavilion-dv6500-Ania-Algis:/home/ania#

This is still problem with Precise Pangolin Beta 2 (12.04). SD card once inserted into reader is recognised and you can see a list of files but I can not open anything bigger than few KB.

root@u1204x64-algis-ania-HP-Pavilion-dv6500:/home/ania# lspci |grep Ricoh
07:05.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 05)
07:05.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 22)
07:05.2 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 12)
07:05.3 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 12)
root@u1204x64-algis-ania-HP-Pavilion-dv6500:/home/ania# dmidecode |grep Prod
 Product Name: HP Pavilion dv6500 Notebook PC
 Product Name: 30D0
root@u1204x64-algis-ania-HP-Pavilion-dv6500:/home/ania# lspci -v|grep -A5 R5C822
07:05.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 22)
 Subsystem: Hewlett-Packard Company Device 30cf
 Flags: bus master, medium devsel, latency 64, IRQ 7
 Memory at b0100800 (32-bit, non-prefetchable) [size=256]
 Capabilities: [80] Power Management version 2
 Kernel driver in use: sdhci-pci
root@u1204x64-algis-ania-HP-Pavilion-dv6500:/home/ania# uname -a
Linux u1204x64-algis-ania-HP-Pavilion-dv6500 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

jan-teichmann (teichmann-jan) wrote :

Did you check whether the sdhci module is loaded?

the sdhci module is loaded but card reader is unusable

root@u1204x64-Pavilion-dv6500-Ania-i-Algis:/home/ania# lsmod |grep sdhci
sdhci_pci 18826 0
sdhci 33205 1 sdhci_pci
root@u1204x64-Pavilion-dv6500-Ania-i-Algis:/home/ania# uname -a
Linux u1204x64-Pavilion-dv6500-Ania-i-Algis 3.2.0-24-generic #39-Ubuntu SMP Mon May 21 16:52:17 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
root@u1204x64-Pavilion-dv6500-Ania-i-Algis:/home/ania#

I am attaching screenshot where laptop has crashed after card has been inserted.

Hello
I have just tried latest daily kernel 3.5.0-999-generic_3.5.0-999.201206260421_amd64 but no different for card reader.

Detailed test results:
- For both SD and MMC cards they are properly detected and automonted when inserted. You can see content list together with right size of the files but you can not open files greater then few kilobytes. this means that I can create and open text files but none of the pictures or videos
- XD and Sony Memory Stick cards are not recognised
- Behaviour is exactly the same with Fedora 17

With current 3.2.0-25-generic kernel at least this card reader is not crashing OS.

Any help or recommendation would be appreciated.

Daz

Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu laptop testing tracker.

A list of all reports related to this bug can be found here:
http://laptop.qa.ubuntu.com/qatracker/reports/bugs/311781

tags: added: laptop-testing
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers