You are not logged in.

#1 2014-08-31 16:45:51

olivarch
Member
Registered: 2013-01-26
Posts: 48

sd card module/driver not loaded anymore

Hi,

since a recent update (linux 3.16 maybe ? ) the sd card module is not loaded anymore.
I have to load it manually :
modprobe -v rtsx_usb

(or add a module load in /etc/modules-load.d/)

My guess is that the "block" hook is not finding it anymore...
Any idea why ?

# uname -a
Linux azerty 3.16.1-1-ARCH #1 SMP PREEMPT Thu Aug 14 07:40:19 CEST 2014 x86_64 GNU/Linux

# /etc/mkinitcpio.conf :
HOOKS="base udev autodetect modconf keymap block lvm2 encrypt filesystems keyboard fsck"

sdcard  NOT working:

# lsmod | egrep 'mmc|sdhci|sd'
sd_mod                 44356  5
crc_t10dif             12431  1 sd_mod
scsi_mod              142915  2 libata,sd_mod

sdcard working:

#lsmod | egrep 'mmc|sdhci|sd'
rtsx_usb_sdmmc         25280  0
mmc_core              110475  1 rtsx_usb_sdmmc
rtsx_usb               17487  2 rtsx_usb_sdmmc,rtsx_usb_ms
led_class              12859  3 rtsx_usb_sdmmc,iwldvm,asus_wmi
sd_mod                 44356  5
crc_t10dif             12431  1 sd_mod
scsi_mod              142915  2 libata,sd_mod

Offline

#2 2014-09-05 12:06:28

olivarch
Member
Registered: 2013-01-26
Posts: 48

Re: sd card module/driver not loaded anymore

Well, in fact it's a bit weirder...

I'm loading the rtsx_usb module at boot.

Then I plug my sd card :

Sep 05 13:51:24 azerty kernel: mmc0: new ultra high speed SDR50 SDHC card at address aaaa
Sep 05 13:51:24 azerty kernel: mmcblk0: mmc0:aaaa SU16G 14.8 GiB
Sep 05 13:51:24 azerty kernel:  mmcblk0: p1

It's not mounting... 10 seconds later :

Sep 05 13:51:34 azerty kernel: ehci-pci 0000:00:1a.0: dev 1.4 ep2in scatterlist error -104/-110

Later on:

Sep 05 13:51:54 azerty systemd-udevd[229]: worker [3393] /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.4/3-1.4:1.0/rtsx_usb_sdmmc.3/mmc_host/mmc0/mmc0:aaaa/block/mmcblk0/mmcblk0p1 timeout; kill it
Sep 05 13:51:54 azerty systemd-udevd[229]: seq 2164 '/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.4/3-1.4:1.0/rtsx_usb_sdmmc.3/mmc_host/mmc0/mmc0:aaaa/block/mmcblk0/mmcblk0p1' killed
Sep 05 13:51:55 azerty systemd-udevd[229]: worker [3393] terminated by signal 9 (Killed)

Still not mounted obviously.

Now, I add another module :

# modprobe -v sdhci
insmod /lib/modules/3.16.1-1-ARCH/kernel/drivers/mmc/host/sdhci.ko.gz

Sep 05 13:53:38 azerty kernel: sdhci: Secure Digital Host Controller Interface driver
Sep 05 13:53:38 azerty kernel: sdhci: Copyright(c) Pierre Ossman

I remove the card and insert it again:

Sep 05 13:53:51 azerty kernel: mmc0: card aaaa removed
Sep 05 13:53:57 azerty kernel: mmc0: new ultra high speed SDR50 SDHC card at address aaaa
Sep 05 13:53:57 azerty kernel: mmcblk0: mmc0:aaaa SU16G 14.8 GiB
Sep 05 13:53:57 azerty kernel:  mmcblk0: p1
Sep 05 13:53:57 azerty org.gtk.Private.UDisks2VolumeMonitor[1554]: libbluray/bdnav/index_parse.c:162: indx_parse(): error opening /run/media/olivarch/6663-3733/BDMV/index.bdmv
Sep 05 13:53:57 azerty org.gtk.Private.UDisks2VolumeMonitor[1554]: libbluray/bdnav/index_parse.c:162: indx_parse(): error opening /run/media/olivarch/6663-3733/BDMV/BACKUP/index.bdmv
Sep 05 13:53:57 azerty kernel: FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
Sep 05 13:53:57 azerty udisksd[1409]: Mounted /dev/mmcblk0p1 at /run/media/olivarch/6663-3733 on behalf of uid 1000

Now it's working...
I tried to load both rtsx_usb and sdhci at boot but it doesn't work, it seems that I need to do it manually...
Weird.

Offline

Board footer

Powered by FluxBB