Dell Inspiron 9400 Ricoh R5C832 SD Card not working on ubuntu 11.10

Asked by Mario Martinez on 2011-11-13

Hello!
Im new in linux, just installed it 4 days ago because I wanted to try it, so I apologize in advance if my question sounds obvious or were alrededy addressed.
I just installed Ubuntu 11.10 on a Dell Inspiron 9400, everything seems to work good, with the exception of the SD card reader.
When I insert an SD Card nothing happends, the computer doesnt detect it at all, I also have Windows XP in the same computer and I can confirm that the reader works there without problems.
There was only one moment when the SD card reader detected a card on it, and it was when I was installing Ubuntu and resizing my HDD partitions with the installer, but once ubuntu was installed, the reader didnt work again.
I tried to look for answers searching in google, but without luck, read plenty of posts in different sites with similar problems, but didnt find a solution to mine.

Im using 3.0.0-12 generic Kernel (the one that is included in the installation), and I also downloaded all the updates from the update manager.

lspci shows the information
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)

When I insert a SD Card and type dmesg into the terminal, the next messages appear

d status 0x600b00
[ 5094.962981] end_request: I/O error, dev mmcblk0, sector 242
[ 5094.965155] mmcblk0: error -110 sending read/write command, response 0x0, card status 0x600b00
[ 5094.965158] end_request: I/O error, dev mmcblk0, sector 243
[ 5094.967516] mmcblk0: error -110 sending read/write command, response 0x0, card status 0x600b00
[ 5094.967520] end_request: I/O error, dev mmcblk0, sector 244
[ 5094.967663] mmcblk0: retrying using single block read
[ 5094.969749] mmcblk0: error -110 sending read/write command, response 0x0, card status 0x600b00
[ 5094.969753] end_request: I/O error, dev mmcblk0, sector 293
[ 5094.969820] mmcblk0: error -110 sending read/write command, response 0x0, card status 0x600b00
[ 5094.969824] end_request: I/O error, dev mmcblk0, sector 294
[ 5094.969891] mmcblk0: error -110 sending read/write command, response 0x0, card status 0x600b00
[ 5094.969895] end_request: I/O error, dev mmcblk0, sector 295
[ 5094.972018] mmcblk0: error -110 sending read/write command, response 0x0, card status 0x600b00
[ 5094.972022] end_request: I/O error, dev mmcblk0, sector 296
[ 5094.973115] mmcblk0: error -110 sending read/write command, response 0x0, card status 0x600b00
[ 5094.973118] end_request: I/O error, dev mmcblk0, sector 297
[ 5094.975183] mmcblk0: error -110 sending read/write command, response 0x0, card status 0x600b00
[ 5094.975186] end_request: I/O error, dev mmcblk0, sector 298
[ 5094.976283] mmcblk0: error -110 sending read/write command, response 0x0, card status 0x600b00
[ 5094.976293] end_request: I/O error, dev mmcblk0, sector 299
[ 5094.978390] mmcblk0: error -110 sending read/write command, response 0x0, card status 0x600b00
[ 5094.978393] end_request: I/O error, dev mmcblk0, sector 300
[ 5094.980481] mmcblk0: retrying using single block read
[ 5094.982565] mmcblk0: error -110 sending read/write command, response 0x0, card status 0x600b00
[ 5094.982569] end_request: I/O error, dev mmcblk0, sector 237
[ 5094.984650] mmcblk0: error -110 sending read/write command, response 0x0, card status 0x600b00
[ 5094.984659] end_request: I/O error, dev mmcblk0, sector 238
[ 5094.986739] mmcblk0: error -110 sending read/write command, response 0x0, card status 0x600b00
[ 5094.986743] end_request: I/O error, dev mmcblk0, sector 239
[ 5094.987834] mmcblk0: error -110 sending read/write command, response 0x0, card status 0x600b00
[ 5094.987837] end_request: I/O error, dev mmcblk0, sector 240
[ 5094.989950] mmcblk0: error -110 sending read/write command, response 0x0, card status 0x600b00
[ 5094.989954] end_request: I/O error, dev mmcblk0, sector 241
[ 5094.990095] mmcblk0: error -110 sending read/write command, response 0x0, card status 0x600b00
[ 5094.990098] end_request: I/O error, dev mmcblk0, sector 242
[ 5094.992270] mmcblk0: error -110 sending read/write command, response 0x0, card status 0x600b00
[ 5094.992274] end_request: I/O error, dev mmcblk0, sector 243
[ 5094.994359] mmcblk0: error -110 sending read/write command, response 0x0, card status 0x600b00
[ 5094.994362] end_request: I/O error, dev mmcblk0, sector 244
[ 5094.996465] mmcblk0: retrying using single block read
[ 5094.997547] mmcblk0: error -110 sending read/write command, response 0x0, card status 0x600b00
[ 5094.997551] end_request: I/O error, dev mmcblk0, sector 237
[ 5094.999632] mmcblk0: error -110 sending read/write command, response 0x0, card status 0x600b00
[ 5094.999636] end_request: I/O error, dev mmcblk0, sector 238
[ 5095.000725] mmcblk0: error -110 sending read/write command, response 0x0, card status 0x600b00
[ 5095.000729] end_request: I/O error, dev mmcblk0, sector 239
[ 5095.000802] mmcblk0: error -110 sending read/write command, response 0x0, card status 0x600b00
[ 5095.000806] end_request: I/O error, dev mmcblk0, sector 240
[ 5095.002893] mmcblk0: error -110 sending read/write command, response 0x0, card status 0x600b00
[ 5095.002896] end_request: I/O error, dev mmcblk0, sector 241
[ 5095.005023] mmcblk0: error -110 sending read/write command, response 0x0, card status 0x600b00
[ 5095.005026] end_request: I/O error, dev mmcblk0, sector 242
[ 5095.006137] mmcblk0: error -110 sending read/write command, response 0x0, card status 0x600b00
[ 5095.006140] end_request: I/O error, dev mmcblk0, sector 243
[ 5095.008241] mmcblk0: error -110 sending read/write command, response 0x0, card status 0x600b00
[ 5095.008245] end_request: I/O error, dev mmcblk0, sector 244
[ 5095.008392] mmcblk0: retrying using single block read
[ 5095.009462] mmcblk0: error -110 sending read/write command, response 0x0, card status 0x600b00
[ 5095.009465] end_request: I/O error, dev mmcblk0, sector 0

And more of the same but with different sector number

Any help would be appreciated

Thanks in advance!

When you last used the card ok, did you safetly remove the device or did you just remove the card?

Mario Martinez (mvnord-ss) said : #2

Hello actionparsnip thanks for ur reply

the card was inserted in the computer when I was installing ubuntu, as I alrededy said the installer detected when I was resizing my hard disk (I didnt make any changes to the card, only to my HDD), after ubuntu was installed it didnt detect it anymore so I just removed it, also I just inserted the card right now in another computer with Windows 7 and it works without any problems. I can see all the files open them and delete them.
I just removed safetly the card from the windows 7 computer now and inserted it again in the Inspiron 9400 running Ubuntu 11.10, and I have the same problem, it doesnt detect it and dmesg shows the same messages as above.

Mario Martinez (mvnord-ss) said : #3

Also I have windows XP installed in another partition of the same computer, the card reader works normal in Windows XP (reads the SD card, writes and deletes files)

With the device out, boot the OS, log in then run:

sudo modprobe sdhci

Then wait a few seconds and insert the SD card, does it pick up ok?

If that doesn't make it work, reboot with the device out and login then run:

sudo modprobe tifm_sd

Then insert the card, is it ok?

Let us know which is good (if either) and we can make it stick

Mario Martinez (mvnord-ss) said : #6

again thx for ur reply actionparsnip
this are the results

took out the device of the computer, rebooted and typed in the terminal
sudo modprobe sdhci
inserted the sd card
nothing changed

also wrote lsmod before typing sudo modprobe sdhci and looks like sdhci was alrededy added in the kernel

Should I add tifm_sd together with sdhci to the kernel? or should I first remove sdhci and sdhci_pci using rmmod?

As I said typing lsmod after rebooting and before executing any other instruction in the terminal shows sdhci alrededy added to the kernel

Tried to reboot again and typed sudo modprobe tifm_sd (it added tifm_sd and tifm_core to the kernel) but sdhci was also there because as I said it loads automatically
again no change, still doesnt recognize the SD Card, and dmesg is the same

Also rebooted again, first I removed sdhci_pci and sdhci with sudo rmmod, and then did sudo modprobe tifm_sd
this time dmesg doesnt show any of the error messages I posted above, it just shows
[ 45.028048] sdhci-pci 0000:03:01.1: PCI INT B disabled
however the card reader still doesnt work

hmm, strange. Are there bugs reported?

Mario Martinez (mvnord-ss) said : #8

Well the closest I could find was this
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/773524

and this
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/238208

but as I understad the second is for memorystick support, in my case It doesnt read sd cards, so i think the closest bug is the first link
I would like to know if there is somebody else running 11.10 on a Inspiron 9400 and haves the same problem or its just me, sadly didnt find any information about that yet

Mario Martinez (mvnord-ss) said : #10

I dont know if this is relevant but after looking for an answer almost all the day and not finding anything in internet, I decided to give a try to other linux distros just to see if the problem was there. I tried live cd of the next distros
Mandriva
Fedora
Puppy
Mint
Mint and Mandriva showed exactly the same problem, the reader didnt work and same errors
but surprisingly fedore and puppy managed to read de sd card out of the box. however I didnt try to delete or write files on the card, just saw all the photos that were in the card opening them 1 by 1 and there wasnt problem.

Well I dont have any idea of why in those 2 linux distros the reader worked without problems, I just add this comment so that perhaps it will be useful for other people having the same issue in the future.

Can you help with this problem?

Provide an answer of your own, or ask Mario Martinez for more information if necessary.

To post a message you must log in.