FS#25889 - [linux] Ricoh xD card reader disabled kernel module

Attached to Project: Arch Linux
Opened by Robert Orzanna (orschiro) - Sunday, 04 September 2011, 19:46 GMT
Last edited by Thomas Bächler (brain0) - Wednesday, 09 April 2014, 19:36 GMT
Task Type Bug Report
Category Kernel
Status Closed
Assigned To Tobias Powalowski (tpowa)
Thomas Bächler (brain0)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


The kernel module for the Ricoh xD card reader is not enabled in default kernel. Other distributions such as Ubuntu have it enabled by default. The relevant part in the source code:

Symbol: MTD_NAND_RICOH [=n] │
│ Type : tristate │
│ Prompt: Ricoh xD card reader │
│ Defined at drivers/mtd/nand/Kconfig:127 │
│ Depends on: MTD [=n] && MTD_NAND [=n] && PCI [=y] │
│ Location: │
│ -> Device Drivers │
│ -> Memory Technology Device (MTD) support (MTD [=n]) │
│ -> NAND Device Support (MTD_NAND [=n]) │
│ Selects: MTD_SM_COMMON [=n] │

Can you please justify why you specifically disable this module and if there is any chance to have it enabled in future releases.
This task depends upon

Closed by  Thomas Bächler (brain0)
Wednesday, 09 April 2014, 19:36 GMT
Reason for closing:  Implemented
Additional comments about closing:  3.14-4
Comment by Jan de Groot (JGC) - Tuesday, 06 September 2011, 07:50 GMT
This option is about MTD NAND support for Ricoh xD cardreaders. Currently we don't enable MTD NAND support in the kernel at all.
Comment by Robert Orzanna (orschiro) - Tuesday, 06 September 2011, 21:37 GMT
Can you name the reason for disabling it whilst other distribution obviously support it?

Comment by Tobias Powalowski (tpowa) - Friday, 09 September 2011, 13:12 GMT
Fixed on svn.
Comment by Robert Orzanna (orschiro) - Friday, 09 September 2011, 23:34 GMT
Thanks a lot. So it will be available with next kernel update?

Comment by Tobias Powalowski (tpowa) - Saturday, 10 September 2011, 06:05 GMT
Comment by Robert Orzanna (orschiro) - Sunday, 09 October 2011, 01:04 GMT
I updated the kernel and load r852 module. However, the card still does not show up in my file manager, nor in /dev. I can upload the output of /dev/ as soon as you reopen it.

Comment by Tobias Powalowski (tpowa) - Sunday, 09 October 2011, 05:44 GMT
Then please post the options you need to get it working.
Comment by Robert Orzanna (orschiro) - Tuesday, 11 October 2011, 18:55 GMT
I am not really sure what option is missing. This is the output of lspci -v:

0d:00.3 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 12)
Subsystem: Lenovo Device 210d
Flags: bus master, medium devsel, latency 64, IRQ 17
Memory at febfe800 (32-bit, non-prefetchable) [size=256]
Capabilities: <access denied>
Kernel driver in use: r852
Kernel modules: r852

That is, the r852 module is the correct one and could be loaded. However, as far as I can see no corresponding device is found in /dev (see attachment).

What else could I try or do you need?
Comment by Tobias Powalowski (tpowa) - Wednesday, 12 October 2011, 06:51 GMT
crw------- 1 root root 90, 0 Oct 12 07:51 mtd0
crw------- 1 root root 90, 1 Oct 12 07:51 mtd0ro
or sdb1
Comment by Robert Orzanna (orschiro) - Wednesday, 12 October 2011, 08:54 GMT
I must have overlooked them.

However, how to correctly mount them?

sudo mount /dev/mtd0 /mnt
mount: /dev/mtd0 is not a block device

sudo mount /dev/mtd0ro /mnt
mount: /dev/mtd0ro is not a block device

Though I'm not sure about the file system on the card.
Comment by Robert Orzanna (orschiro) - Friday, 28 October 2011, 19:45 GMT
I could finally solve the problem which is not related to the kernel.

In addition to the r852 module I also had to load the ssfdc module to enable the proper file system.

Therefore this bug can be closed.

Once again thanks for your help.


Comment by Ole Ernst (olebowle) - Friday, 07 March 2014, 14:35 GMT
  • Field changed: Percent Complete (100% → 0%)
Well the same has happend again, see: [url]https://bbs.archlinux.org/viewtopic.php?id=177933[/url]. I hope for inclusion as I don't want to build the modules out of tree all the time.
Comment by Thomas Bächler (brain0) - Tuesday, 08 April 2014, 08:11 GMT
I am confused, when did this option "disappear"?
Comment by Thomas Bächler (brain0) - Tuesday, 08 April 2014, 08:13 GMT