This is the old SliTaz forum - Please use the main forum.slitaz.org

[SOLVED] sd card (mmc) not recognized
  • monzmonz March 2010
    SliTaz does not see a SD flash memory card (the kind used in digital cameras) when i insert one into my Toshiba Satellite Pro A215-S5850. I am able to see and mount the card when booting into Linux Mint (i.e., Ubuntu) on the same machine.

    Also, I normally use SliTaz on my eee-pc, and it is installed entirely on a SD-card, and works with no problems. I even have GRUB installed on the "MBR" of that SD-card and set the eee-pc BIOS to boot from it, entirely bypassing the original Xandros Linux installed on the machine ... but of course i have Xandros available on the GRUB menu if i want it.

    Any solutions to get the card seen and mounted on the Toshiba? This is a rather large version of SliTaz (1.8G in a separate /usr partition and 1.5G in the partition holding everything else), with lots of tools installed, and it surprises me that i have this problem.
  • monzmonz April 2010
    Can anyone help with this? I installed the linux-mmc tazpkg, but there is no /dev/mmcblk0 ... no mmc anywhere in /dev/.

    I see that /etc/udev/rules.d/60-persistent-storage.rules is where the udev is supposed to create the mmcblk0, but it is not happening on my machine.
  • erniaernia April 2010
    the card reader is detected from the kernel? is it on the usb bus? is it a multicard reader? output of lsusb it it's usb?
  • monzmonz April 2010
    using grep i found that my card device appears here:


    # pwd
    /sys/devices/pci0000:00/0000:00:14.4/0000:14:06.1/mmc_host/mmc0

    # ls -l
    lrwxrwxrwx 1 root root 0 Apr 5 01:24 device -> ../../../0000:14:06.1
    drwxr-xr-x 3 root root 0 Apr 4 21:09 mmc0:b368
    drwxr-xr-x 2 root root 0 Apr 5 01:24 power
    lrwxrwxrwx 1 root root 0 Apr 4 21:09 subsystem -> ../../../../../../class/mmc_host
    -rw-r--r-- 1 root root 4096 Apr 4 21:09 uevent


    here is the other relevant info:


    # dsmesg | grep mmc
    ricoh-mmc: Ricoh MMC Controller disabling driver
    ricoh-mmc: Copyright(c) Philip Langdale
    ricoh-mmc: Ricoh MMC controller found at 0000:14:06.2 [1180:0843] (rev 12)
    ricoh-mmc: Controller is now disabled.
    Registered led device: mmc0::
    mmc0: SDHCI controller on PCI [0000:14:06.1] using DMA
    mmc0: new SD card at address b368



    # lspci
    00:00.0 Host bridge: ATI Technologies Inc RS690 Host Bridge
    00:01.0 PCI bridge: ATI Technologies Inc RS690 PCI to PCI Bridge (Internal gfx)
    00:04.0 PCI bridge: ATI Technologies Inc Device 7914
    00:05.0 PCI bridge: ATI Technologies Inc RS690 PCI to PCI Bridge (PCI Express Port 1)
    00:06.0 PCI bridge: ATI Technologies Inc RS690 PCI to PCI Bridge (PCI Express Port 2)
    00:12.0 SATA controller: ATI Technologies Inc SB600 Non-Raid-5 SATA
    00:13.0 USB Controller: ATI Technologies Inc SB600 USB (OHCI0)
    00:13.1 USB Controller: ATI Technologies Inc SB600 USB (OHCI1)
    00:13.2 USB Controller: ATI Technologies Inc SB600 USB (OHCI2)
    00:13.3 USB Controller: ATI Technologies Inc SB600 USB (OHCI3)
    00:13.4 USB Controller: ATI Technologies Inc SB600 USB (OHCI4)
    00:13.5 USB Controller: ATI Technologies Inc SB600 USB Controller (EHCI)
    00:14.0 SMBus: ATI Technologies Inc SBx00 SMBus Controller (rev 14)
    00:14.1 IDE interface: ATI Technologies Inc SB600 IDE
    00:14.2 Audio device: ATI Technologies Inc SBx00 Azalia (Intel HDA)
    00:14.3 ISA bridge: ATI Technologies Inc SB600 PCI to LPC Bridge
    00:14.4 PCI bridge: ATI Technologies Inc SBx00 PCI to PCI Bridge
    00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
    00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
    00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
    00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
    01:05.0 VGA compatible controller: ATI Technologies Inc RS690M [Radeon X1200 Series]
    08:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 01)
    0e:00.0 Ethernet controller: Atheros Communications Inc. AR5001 Wireless Network Adapter (rev 01)
    14:06.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 05)
    14:06.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 22)
    14:06.2 System peripheral: Ricoh Co Ltd R5C843 MMC Host Controller (rev 12)
    14:06.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 12)
    14:06.4 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev ff)



    # lsusb
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 001 Device 003: ID 04f2:b008 Chicony Electronics Co., Ltd USB 2.0 Camera
    Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 003 Device 002: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
    Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub


    You can see that the MMC reader is listed under lspci, not under lsusb.

    Under dmesg you can see that it says the Ricoh controller disables the driver. What is going on there?

    PS - What is the proper way to quote code here in the forum?
  • erniaernia April 2010
    this
    http://cateee.net/lkddb/web-lkddb/MMC_RICOH_MMC.html
    should explain what's going on
    does it works modprobing:
    mmc_core ricoh_mmc sdhci-pci sdhci
    ?
    to quote code you use
    < pre >text< /pre >
    with no spaces inside tags
  • monzmonz April 2010
    hi ernia ... so then it is correct for my driver to be disabled, right?

    I did not try modprobing those modules, because sdhci, ricoh_mmc, and sdhci are all set up to be loaded automatically in my /etc/rcS.conf ... i never put them there, so SliTaz did that on its own. And lsmod shows that mmc_core is also already loaded.

    So i'm still confused ... why does this machine not see my SD card? Also, i should note that # grep mmcblk0 yields no result.


    # lsmod
    Module Size Used by Not tainted
    ipv6 198616 12
    sdhci_pci 6280 0
    vboxdrv 137792 0
    kqemu 118980 0
    ricoh_mmc 3312 0
    sdhci 13892 1 sdhci_pci
    mmc_core 37792 1 sdhci
    ohci1394 24984 0
    ieee1394 65416 1 ohci1394
    ath5k 103228 0
    mac80211 138268 1 ath5k
    led_class 3436 2 sdhci,ath5k
    cfg80211 52872 2 ath5k,mac80211
    k8temp 3820 0
    hwmon 2028 1 k8temp
    snd_seq 40164 0
    snd_seq_device 5544 1 snd_seq
    snd_hda_codec_realtek 179412 1
    snd_hda_intel 22020 4
    snd_hda_codec 49928 2 snd_hda_codec_realtek,snd_hda_intel
    snd_hwdep 5988 1 snd_hda_codec
    snd_pcm 51780 2 snd_hda_intel,snd_hda_codec
    snd_timer 16344 2 snd_seq,snd_pcm
    snd 43584 16 snd_seq,snd_seq_device,snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer
    soundcore 5180 1 snd
    snd_page_alloc 7256 2 snd_hda_intel,snd_pcm
    ati_agp 6000 0
    agpgart 25980 1 ati_agp
    ext4 179020 0
    mbcache 6032 1 ext4
    jbd2 44916 1 ext4
    crc16 1536 1 ext4
  • erniaernia April 2010
    try
    modprobe mmc_block
    .
    what's the output of
    tail -f /var/log/messages
    when you insert your sd card?
  • monzmonz April 2010
    Ah ... thanks, ernia! ... # modprobe mmc_block did it!

    Does that have to be added manually to /etc/rcS.conf ?
  • jozeejozee April 2010
    yes, if you want it to be detected every time you boot. Other thing I want to check is whether "tazhw detect-usb" auto-loads mmc_block or not. Please check. I hope you are using or upgraded to 3.0.

    Another request would be to create a guide in http://doc.slitaz.org/en:guides:start and please write down your journey on installing, booting and using Slitaz from sd card. Many people many benefit from your guide.
  • monzmonz April 2010
    Hi jozee ... I would be happy to write a guide, but i don't have the faintest idea how to do it. Please explain how i can create one ... or maybe you can create the empty link and i'll fill it.
  • monzmonz April 2010
    ok, thanks, i'll do it as soon as i have time.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership

SliTaz Social