You are not logged in.

#1 2009-11-08 03:00:56

epsilom
Member
Registered: 2009-04-18
Posts: 29

How mount sd card (Ricoh controller)

Hi Arch community

I try mount sd card memory in my laptop hp dv6000,

insert card memory sd and not create device /dev/mmcblk0

$ ls /dev/m*
/dev/mcelog  /dev/mem  /dev/mixer

I was try:
sudo modprobe sdhci
sudo modprobe mmc_block
sudo modprobe tifm_sd
sudo modprobe mmc_core

nothing:

$ ls /dev/m*
/dev/mcelog  /dev/mem  /dev/mixer

I have archlinux updated (07/11/09)
$ uname -nr
archlinux 2.6.31-ARCH

please help

thanks

Last edited by epsilom (2009-11-11 16:01:04)

Offline

#2 2009-11-08 03:26:31

humanzoo
Member
Registered: 2007-10-14
Posts: 28

Re: How mount sd card (Ricoh controller)

On both my desktop and laptop, SD cards pop up as /dev/sd*. Check the end of the dmesg command's output to see what the device is getting assigned.

Offline

#3 2009-11-08 04:21:15

epsilom
Member
Registered: 2009-04-18
Posts: 29

Re: How mount sd card (Ricoh controller)

Hi humanzoo

in sd* only show my hard disk:

$ls /dev/sd*
/dev/sda  /dev/sda1  /dev/sda2  /dev/sda3  /dev/sda4  /dev/sda5  /dev/sda6  /dev/sda7

in dmesg show:

$ dmesg |grep sdhci
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pci 0000:05:05.1: SDHCI controller found [1180:0822] (rev 19)
sdhci-pci 0000:05:05.1: enabling device (0000 -> 0002)
sdhci-pci 0000:05:05.1: PCI INT B -> GSI 17 (level, low) -> IRQ 17

$ dmesg |grep mmc
sr0: scsi3-mmc drive: 24x/24x writer dvd-ram cd/rw xa/form2 cdda tray
ricoh-mmc: Ricoh MMC Controller disabling driver
ricoh-mmc: Copyright(c) Philip Langdale
ricoh-mmc: Ricoh MMC controller found at 0000:05:05.2 [1180:0843] (rev 1)
ricoh-mmc: Controller is now disabled.
Registered led device: mmc0::
mmc0: SDHCI controller on PCI [0000:05:05.1] using PIO

any idea?

Offline

#4 2009-11-08 05:54:14

vajorie
Member
Registered: 2009-03-12
Posts: 66

Re: How mount sd card (Ricoh controller)

This should show you where your sdcard is:

# fdisk -l

On mine, this command will list a bunch of /dev/sda1,2,3 etc, which are my hard disk partitions, and one /dev/sdb1, which is my sdcard.

To mount (in my case, my sdcard that appears as /dev/sdb1),

$ pmount /dev/sdb1 sdcard

pmount is in the extra and you may need to install it with

# pacman -S pmount

The pmount command above will mount your sdcard under /media/sdcard. You can change "sdcard" with anything you want. If there are files in that sdcard that you want to execute (like a script), do

$ pmount -e /dev/sdb1 sdcard

Offline

#5 2009-11-08 16:38:53

epsilom
Member
Registered: 2009-04-18
Posts: 29

Re: How mount sd card (Ricoh controller)

Hi vajorie

$ fdisk -l

Disco /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cilindros of 16065 * 512 = 8225280 bytes
Disk identifier: 0x282d282d

Disposit. Inicio    Comienzo      Fin      Bloques  Id  Sistema
/dev/sda1               1        1824    14651248+  83  Linux
/dev/sda2   *        1825        4256    19535040   83  Linux
/dev/sda3            4257       11551    58597087+  83  Linux
/dev/sda4           11552       14593    24434865    5  Extendida
/dev/sda5           11552       11873     2586433+  82  Linux swap / Solaris
/dev/sda6           11874       12781     7293478+  83  Linux
/dev/sda7           12782       14593    14554858+  83  Linux

but my sdcard not identified in sdb, this is the problem I don't know in where my sdcard is identified

$ pmount -e /dev/sdb1 sdcard
Error: no existe el dispositivo /dev/sdb1

Offline

#6 2009-11-09 12:07:26

dobedo
Member
From: Belgium
Registered: 2008-10-04
Posts: 113

Re: How mount sd card (Ricoh controller)

When you run a dmesg right after plugging the card, do you see a device created ? nothing in logs ?

Last edited by dobedo (2009-11-09 12:11:02)

Offline

#7 2009-11-09 12:37:31

grey
Member
From: Europe
Registered: 2007-08-23
Posts: 679

Re: How mount sd card (Ricoh controller)

You could try contacting the people that posted in http://bbs.archlinux.org/viewtopic.php?id=47011. Same problem as yours as far as I can tell, unfortunately no clear solution. However, they seemed to have a good idea about what is going on.


Good ideas do not need lots of lies told about them in order to gain public acceptance.

Offline

#8 2009-11-09 13:41:07

rasat
Forum Fellow
From: Finland, working in Romania
Registered: 2002-12-27
Posts: 2,293
Website

Re: How mount sd card (Ricoh controller)

Is your SD slot detected?
Run "lspci". In the result look for "SD Host controller".

Try "sudo modprobe sdhci-pci"


Markku

Offline

#9 2009-11-11 15:57:45

epsilom
Member
Registered: 2009-04-18
Posts: 29

Re: How mount sd card (Ricoh controller)

I have Ricoh R5C822 sdcard controller:

lspci | grep MMC
05:05.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 19)
05:05.2 System peripheral: Ricoh Co Ltd R5C843 MMC Host Controller (rev 0a)

I've done everything you said. I search in web an found possible solution (in https://bugs.launchpad.net/ubuntu/+sour … bug/111089 ):

modprobe -r sdhci
 setpci -s `lspci | grep "SD\/SDIO\/MMC\/MS\/MSPro" | awk '{print $1}'` 0xCA=0x57
 setpci -s `lspci | grep "SD\/SDIO\/MMC\/MS\/MSPro" | awk '{print $1}'` 0xCB=0x02
 setpci -s `lspci | grep "SD\/SDIO\/MMC\/MS\/MSPro" | awk '{print $1}'` 0xCA=0x00
 modprobe sdhci

but I have problem with setpci:

$ sudo setpci -s `lspci | grep "SD\/SDIO\/MMC\/MS\/MSPro" | awk '{print $1}'` 0xCA=0x57
setpci: Missing width.
Try `setpci --help' for more information.

try again:

$ lspci | grep "SD\/SDIO\/MMC\/MS\/MSPro" | awk '{print $1}'
05:05.1
$ sudo setpci -s 05:05.1 0xCA=0x57
setpci: Missing width.
Try `setpci --help' for more information.
$ sudo setpci -s '05:05.1' 0xCA=0x57
setpci: Missing width.
Try `setpci --help' for more information.

I don't understand is wrong.... please help

thanks

Offline

#10 2009-11-11 16:06:51

grey
Member
From: Europe
Registered: 2007-08-23
Posts: 679

Re: How mount sd card (Ricoh controller)

There is a bug report for that: http://bugs.archlinux.org/task/16751. It isn't very helpful, though.


Good ideas do not need lots of lies told about them in order to gain public acceptance.

Offline

#11 2009-12-29 22:55:04

Leonid.I
Member
From: Aethyr
Registered: 2009-03-22
Posts: 999

Re: How mount sd card (Ricoh controller)

Sorry to revive an old thread, but is there any firmware for the controller, which could be broken in the new kernel? Just covering all possibilities...

L.


Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd

Offline

Board footer

Powered by FluxBB