Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SD Card slot not working after upgrade to kernel 3.6 & 3.7
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
keba
Guru
Guru


Joined: 02 Jun 2006
Posts: 304
Location: Switzerland

PostPosted: Thu Nov 01, 2012 11:45 pm    Post subject: SD Card slot not working after upgrade to kernel 3.6 & 3 Reply with quote

Hi,

I've got a strange problem: I updated my kernel from 3.4.3 to 3.6.3, and all of a sudden, the SD slot isn't working any more. Basically, the device is still recognized but when I insert an SD card, nothing happens. Is this related to kernel 3.6? Or is there a new kernel option I need to activate for it to work?

Thanks
keba
_________________
Prayer can change the world!


Last edited by keba on Wed Jan 09, 2013 11:31 am; edited 1 time in total
Back to top
View user's profile Send private message
fdelente
n00b
n00b


Joined: 04 Oct 2012
Posts: 39

PostPosted: Fri Nov 02, 2012 9:01 am    Post subject: Reply with quote

If it can help, I had once the same problem under Slackware, I had to use the « sg_map » command to be able to mount an SD-Card.
Back to top
View user's profile Send private message
keba
Guru
Guru


Joined: 02 Jun 2006
Posts: 304
Location: Switzerland

PostPosted: Fri Nov 02, 2012 10:53 am    Post subject: Reply with quote

it's really strange. Under kernel 3.4, when I insert an SD card, KDE recognises it right away. Under 3.6, nothing...

dmesg (kernel 3.6) says:
Code:

[    1.678678] sdhci: Secure Digital Host Controller Interface driver
[    1.679920] sdhci: Copyright(c) Pierre Ossman
[    1.681214] sdhci-pci 0000:05:00.2: SDHCI controller found [1180:0822] (rev 21)
[    1.683543] sdhci-pci 0000:05:00.2: Will use DMA mode even though HW doesn't fully claim to support it.
[    1.684773] sdhci-pci 0000:05:00.2: setting latency timer to 64


lspci:
Code:
05:00.2 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 21)
[/code]
_________________
Prayer can change the world!
Back to top
View user's profile Send private message
Clad in Sky
l33t
l33t


Joined: 04 May 2007
Posts: 756
Location: Germany

PostPosted: Fri Nov 02, 2012 4:45 pm    Post subject: Reply with quote

Maybe you're missing something in your kernel.

I found this in a documentation on how to install Gentoo on a T420:
"You need to enable Device Drivers -> MMC/SD/SDIO card support -> Secure Digital Host Controller Interface support (MMC_SDHCI) in your kernel to get it work."
I'm not sure, though, if this is only for the Smartcard reader.

If the card reader is connected via USB internally, you should also choose Device Drivers → SCSI Device Support → SCSI Disk support + in the same menu Probe all LUNs on each SCSI device.
_________________
Kali Ma
Now it's autumn of the aeons
Dance with your sword
Now it's time for the harvest
Back to top
View user's profile Send private message
keba
Guru
Guru


Joined: 02 Jun 2006
Posts: 304
Location: Switzerland

PostPosted: Fri Nov 02, 2012 10:28 pm    Post subject: Reply with quote

Well, this is what's enabled in my kernel. This identical setup worked fine in kernel 3.4. Note: I enabled "SDHCI platform and OF driver helper" to see whether it would help, but no...
Code:

Device Drivers -->
    MMC/SD/SDIO card support -->
        --- MMC/SD/SDIO card support
        [ ]   MMC debugging
        [ ]   Assume MMC/SD cards are non-removable (DANGEROUS)
        [ ]   MMC host clock gating (EXPERIMENTAL)
              *** MMC/SD/SDIO Card Drivers ***
        <*>   MMC block device driver
        (8)     Number of minors per block device
        [*]     Use bounce buffer for simple hosts
        < >   SDIO UART/GPS class support
        < >   MMC host test driver
              *** MMC/SD/SDIO Host Controller Drivers ***
        <*>   Secure Digital Host Controller Interface support
        <*>   SDHCI support on PCI bus
        [*]       Ricoh MMC Controller Disabler  (EXPERIMENTAL)
        < >   SDHCI platform and OF driver helper
        < >   Winbond W83L51xD SD/MMC Card Interface support
        < >   TI Flash Media MMC/SD Interface support  (EXPERIMENTAL)
        < >   MMC/SD driver for Ricoh Bay1Controllers (EXPERIMENTAL)
        < >   ENE CB710 MMC/SD Interface support
        < >   VIA SD/MMC Card Reader Driver
        < >   VUB300 USB to SDIO/SD/MMC Host Controller support
        < >   USB SD Host Controller (USHC) support


Oh, and Device Drivers → SCSI Device Support → SCSI Disk support + in the same menu Probe all LUNs on each SCSI device have been enabled all along...
_________________
Prayer can change the world!
Back to top
View user's profile Send private message
Clad in Sky
l33t
l33t


Joined: 04 May 2007
Posts: 756
Location: Germany

PostPosted: Sat Nov 03, 2012 7:35 am    Post subject: Reply with quote

Can you mount the card manually? Perhaps it's just not mounted.
_________________
Kali Ma
Now it's autumn of the aeons
Dance with your sword
Now it's time for the harvest
Back to top
View user's profile Send private message
keba
Guru
Guru


Joined: 02 Jun 2006
Posts: 304
Location: Switzerland

PostPosted: Sat Nov 03, 2012 8:44 am    Post subject: Reply with quote

I wish. It would show up in KDE if I could. It doesn't even show up in /dev though!!! With kernel-3.4 it does.
_________________
Prayer can change the world!
Back to top
View user's profile Send private message
Clad in Sky
l33t
l33t


Joined: 04 May 2007
Posts: 756
Location: Germany

PostPosted: Sat Nov 03, 2012 1:22 pm    Post subject: Reply with quote

Did you make the new kernel with the old config via make oldconfig? If not, perhaps you're missing a driver (although I don't actually believe so).
Try lspci -n and paste the output here to see which kernel drivers you need:
http://kmuto.jp/debian/hcl/

Also worked with the output you provided above and yielded:
http://kmuto.jp/debian/hcl/RICOH/R5C822+SD/SDIO/MMC/MS/MSPro+Host+Adapter+-+R5C592+Memory+Stick+Bus+Host+Adapter

At the end of the list, there is:
R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter
->> Works with the extra Modules sdhci and mmc_block.

Does that help at all?

Edit:
From what you posted, you already have that. Perhaps building them as modules works? If not, there's a mail address there where you can send a question.
_________________
Kali Ma
Now it's autumn of the aeons
Dance with your sword
Now it's time for the harvest
Back to top
View user's profile Send private message
keba
Guru
Guru


Joined: 02 Jun 2006
Posts: 304
Location: Switzerland

PostPosted: Mon Nov 05, 2012 2:40 am    Post subject: Reply with quote

That webpage you posted is really helpful :) Unfortunately it uses information for kernel 3.2. Yes, I did an oldconfig. And I do have the drivers. I am starting to think that there must be a bug in kernel 3.6...
_________________
Prayer can change the world!
Back to top
View user's profile Send private message
keba
Guru
Guru


Joined: 02 Jun 2006
Posts: 304
Location: Switzerland

PostPosted: Wed Nov 07, 2012 12:41 am    Post subject: Reply with quote

After an upgrade to kernel 3.6.7 the issue is still there :(
_________________
Prayer can change the world!
Back to top
View user's profile Send private message
keba
Guru
Guru


Joined: 02 Jun 2006
Posts: 304
Location: Switzerland

PostPosted: Thu Nov 08, 2012 2:20 am    Post subject: Reply with quote

These people are having the same problem. They claim it's a problem with kernel-3.6.x, which may be solved in 3.7.
When I insert an SD card, nothing happens in dmesg, or /var/log/messages. The card is not detected by the kernel at all. Nor by udev, since udevadm monitor doesn't show anything.
_________________
Prayer can change the world!
Back to top
View user's profile Send private message
keba
Guru
Guru


Joined: 02 Jun 2006
Posts: 304
Location: Switzerland

PostPosted: Sun Dec 02, 2012 10:20 pm    Post subject: Reply with quote

It seems it's not just my built-in SD slot, but also an external USB card reader (with SD, CF, etc.). It is not working either. :( Any ideas?
_________________
Prayer can change the world!
Back to top
View user's profile Send private message
keba
Guru
Guru


Joined: 02 Jun 2006
Posts: 304
Location: Switzerland

PostPosted: Wed Jan 09, 2013 11:30 am    Post subject: Reply with quote

This is the output from dmesg | grep sdhci, running kernel 3.7
Code:

[    1.672613] sdhci: Secure Digital Host Controller Interface driver
[    1.673970] sdhci: Copyright(c) Pierre Ossman
[    1.675281] sdhci-pci 0000:05:00.2: SDHCI controller found [1180:0822] (rev 21)
[    1.677566] sdhci-pci 0000:05:00.2: Will use DMA mode even though HW doesn't fully claim to support it.
[    1.678872] sdhci-pci 0000:05:00.2: setting latency timer to 64
[    1.683034] sdhci-pltfm: SDHCI platform and OF driver helper

It's still not working :(
_________________
Prayer can change the world!
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3182

PostPosted: Wed Jan 09, 2013 12:29 pm    Post subject: Reply with quote

Paste the output of "lspci -n" into http://kmuto.jp/debian/hcl/ and check the module for your sdcard controller.

If you use "make oldconfig" to configure your kernel, you should rerun "make nconfig" and check. I have seen the kernel options get deselected when using "make oldconfig" because the options tend to move around and not get automatically enabled.
_________________
emerge --quiet redefined | E17 vids: I, II
Back to top
View user's profile Send private message
keba
Guru
Guru


Joined: 02 Jun 2006
Posts: 304
Location: Switzerland

PostPosted: Wed Jan 09, 2013 8:58 pm    Post subject: Reply with quote

That's the strange thing. My modules are enable as they should be: sdhci-pci. It loads, as dmesg shows, but then no device node gets created. Is this a udev problem?
_________________
Prayer can change the world!
Back to top
View user's profile Send private message
billium
Apprentice
Apprentice


Joined: 22 Mar 2003
Posts: 172

PostPosted: Thu Jan 10, 2013 12:32 pm    Post subject: Reply with quote

@keba

I have the same Richo controller on a thinkpad X61s and can mount SD cards o.k.
I run ~amd64, keep it up-to-date, it is kernel 3.7.1 and no special udev rules.

I can do other tests if it helps ... just ask here.

I am using pmount as I have broken razor-qt at the moment.

@ppurka thanks for nconfig .. never seen that before :)
Back to top
View user's profile Send private message
keba
Guru
Guru


Joined: 02 Jun 2006
Posts: 304
Location: Switzerland

PostPosted: Thu Jan 10, 2013 9:08 pm    Post subject: Reply with quote

Hi Billium,

could you send me your .config for the kernel? Maybe it will help and I can figure it out. I'm quite sure some kernel option got deselected between kernel 3.4 and 3.6, but I have no idea which...
PS: I'm on a Thinkpad X61s too.

Thanks
_________________
Prayer can change the world!
Back to top
View user's profile Send private message
billium
Apprentice
Apprentice


Joined: 22 Mar 2003
Posts: 172

PostPosted: Fri Jan 11, 2013 9:06 pm    Post subject: Reply with quote

check pm
Back to top
View user's profile Send private message
keba
Guru
Guru


Joined: 02 Jun 2006
Posts: 304
Location: Switzerland

PostPosted: Fri Jan 11, 2013 11:08 pm    Post subject: Reply with quote

Thank you very much! :)
_________________
Prayer can change the world!
Back to top
View user's profile Send private message
mlouis
n00b
n00b


Joined: 22 Feb 2013
Posts: 1

PostPosted: Fri Feb 22, 2013 5:39 pm    Post subject: Reply with quote

having the same problem, resolved with
https://patchwork.kernel.org/patch/1936791/
Back to top
View user's profile Send private message
keba
Guru
Guru


Joined: 02 Jun 2006
Posts: 304
Location: Switzerland

PostPosted: Sat Feb 23, 2013 1:13 am    Post subject: Reply with quote

Nice, thanks. It seems this was integrated in kernel 3.8. I'll see if it works and report back.
_________________
Prayer can change the world!
Back to top
View user's profile Send private message
keba
Guru
Guru


Joined: 02 Jun 2006
Posts: 304
Location: Switzerland

PostPosted: Mon Mar 18, 2013 10:51 am    Post subject: Reply with quote

I just installed kernel 3.8, but it still does not work! This is driving me crazy. I just started up kernel 3.4, and the SD card was recognised immediately.
_________________
Prayer can change the world!
Back to top
View user's profile Send private message
fbcyborg
Advocate
Advocate


Joined: 16 Oct 2005
Posts: 3020
Location: ROMA

PostPosted: Sat Mar 30, 2013 5:31 pm    Post subject: Reply with quote

Hi guys, just updated to 3.8.5 and the bug is still there.
_________________
[HOWTO] Come criptare la /home usando cryptsetup e luks
[HOWTO] Abilitare il supporto al dom0 XEN su kernel 3.X
Help answer the unanswered
Back to top
View user's profile Send private message
sbdmmg
n00b
n00b


Joined: 01 Jul 2010
Posts: 32
Location: NJ, USA

PostPosted: Mon Jun 10, 2013 5:04 am    Post subject: Reply with quote

Hi,

Same problem here, running 3.8.13 on Lenovo X1 Carbon.
from lspci:
Code:

02:00.0 System peripheral: Ricoh Co Ltd MMC/SD Host Controller (rev 07)

from dmesg:
Code:

[ 3403.828219] sdhci: Secure Digital Host Controller Interface driver
[ 3403.828224] sdhci: Copyright(c) Pierre Ossman
[ 3407.397040] sdhci-pci 0000:02:00.0: SDHCI controller found [1180:e822] (rev 7)
[ 3407.424503] mmc0: SDHCI controller on PCI [0000:02:00.0] using DMA

However, nothing happens when a card is inserted in the reader.

Any news on this issue?
Thanks,

Davide

P.S. here is the additional output from dmesg when re-compiling with 'MMC_DEBUG'
http://pastebin.com/d8UqRsgm
Back to top
View user's profile Send private message
alinefr
n00b
n00b


Joined: 05 Jul 2009
Posts: 9

PostPosted: Mon Jun 10, 2013 5:45 pm    Post subject: Reply with quote

sbdmmg wrote:
Hi,

Same problem here, running 3.8.13 on Lenovo X1 Carbon.
from lspci:
Code:

02:00.0 System peripheral: Ricoh Co Ltd MMC/SD Host Controller (rev 07)


Did you enabled CONFIG_MEMSTICK_R592?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum