LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-21-2010, 10:44 PM   #1
ddu_
Member
 
Registered: Dec 2004
Distribution: Slackware
Posts: 114

Rep: Reputation: 16
SD slot recognition post bootup


Hey all, I have a problem I'm struggling to figure out. I have an Acer Aspire One "netbook" that has 2 SD slots. If I insert and try to mount an SD card post bootup it can't detect the card (not listed in fdisk -l, and no messages generated to dmesg). Almost as if the slot isn't functioning.

The weird thing is, if I boot the computer up with the SD card IN the slot, it picks it up no problem, shown in fdisk as /dev/mmcblk0p1, and I am able to mount it no problem. I am also able to unmount and remove the card and the SD slot continues to function normally. Although I can boot up the computer with the SD card in the slot with no issues, I'd like to be able to have that "slot" active on boot even if I don't have a card in it.

A few more details, Im running slackware 13 with fluxbox wm. Any help is appreciated. Thanks!
 
Old 02-22-2010, 09:55 AM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,495

Rep: Reputation: 193Reputation: 193
Some module is probably not loading when the card is not present at boot time. According to this:

https://help.ubuntu.com/community/AspireOne

It appears to be the pciehp module:

Quote:
pciehp module still missing. All USB ports are hot-pluggable, RH SD works if card is present on boot. LH SD slot has been reported to be hot-pluggable but on some AaO's it is not. As workaround add "pciehp.pciehp_force=1" to defoptions in /boot/grub/menu.lst or to GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub if you are already using grub2.
You can try adding the above workaround to your lilo.conf append line and see if it works. If your not sure how to accomplish this, post your /etc/lilo.conf here and I'll walk you through it. You can also try manually loading pciehp after you boot up and see if an sd card is then picked up by running as root:

# modprobe pciehp

then insert sd card and run:

# fdisk -l
 
Old 02-22-2010, 05:14 PM   #3
ddu_
Member
 
Registered: Dec 2004
Distribution: Slackware
Posts: 114

Original Poster
Rep: Reputation: 16
hrm, I tried manually running modprobe pciehp post boot (without SD card inserted during boot) and fdisk -l doesn't show the SD card. I also tried putting "pciehp.pciehp_force=1" into the append= line in lilo.conf (and reran lilo, saving the changes) and the same results. Looks like that's not solving the problem. Thanks though, any other suggestions?
 
Old 02-22-2010, 06:56 PM   #4
ddu_
Member
 
Registered: Dec 2004
Distribution: Slackware
Posts: 114

Original Poster
Rep: Reputation: 16
i will add this, when I boot up with the card in the slot, bootup logs show the following:

Quote:
Registered led device: mmc0::
mmc0: SDHCI controller on PCI [0000:04:00.0] using ADMA
sdhci-pci 0000:04:00.2: SDHCI controller found [197b:2381] (rev 0)
sdhci-pci 0000:04:00.2: PCI INT A -> GSI 19 (level, low) -> IRQ 19
sdhci-pci 0000:04:00.2: Refusing to bind to secondary interface.
sdhci-pci 0000:04:00.2: PCI INT A disabled
mmc0: new SDHC card at address b46f
HDA Intel 0000:00:1b.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
HDA Intel 0000:00:1b.0: setting latency timer to 64
mmcblk0: mmc0:b46f SD08G 7.40 GiB
mmcblk0: p1
 
Old 02-24-2010, 05:23 PM   #5
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,495

Rep: Reputation: 193Reputation: 193
See what modules are loading with the card inserted at boot time by running:

$ lspci > lspci.txt

That creates the text file lspci.txt in your home directory and dumps the output of the lspci command to lspci.txt. The lscpi command lists all loaded modules. Then boot without a card inserted and see what modules are loaded by running:

$ lspci

Compare the output with your text file you previously created. It looks like another module is binding to the card reader device(sdhci-pci?) when you boot without the card inserted and it interferes with pciehp when it is later loaded after boot.
 
Old 02-24-2010, 08:41 PM   #6
ddu_
Member
 
Registered: Dec 2004
Distribution: Slackware
Posts: 114

Original Poster
Rep: Reputation: 16
thanks for following up. Here's the difference with the two outputs (4 additional lines in the with.sd.txt file):

Quote:
04:00.0 System peripheral: JMicron Technology Corp. SD/MMC Host Controller
04:00.2 SD Host controller: JMicron Technology Corp. Standard SD Host Controller
04:00.3 System peripheral: JMicron Technology Corp. MS Host Controller
04:00.4 System peripheral: JMicron Technology Corp. xD Host Controller
I'm not entirely sure what to do from here. Any more help is appreciated!
 
Old 02-26-2010, 08:06 AM   #7
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,495

Rep: Reputation: 193Reputation: 193
Well, you're not alone:

https://bugs.launchpad.net/ubuntu/+s...ux/+bug/258446

Seems like a common problem with that jmicron card reader.

I still think something is interfering with the pciehp module when a card is not present at boot time. Let's test the theory by running lsmod. With the card present, boot up and run as root:

# lsmod > lsmod.txt

and reboot without a card and run:

# lsmod

Compare the output and see what modules are different in the two cases. My guess is that with card present, you will see the pciehp module loaded and without the card you will see sdhci-pci loaded. The sdhci-pci module is a driver for certain card readers but from everything I see your jmicron reader should use the pciehp module. If I'm right, you may be able to work around the problem by blacklisting sdhci-pci and forcing the pciehp module to load instead.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
memry slot info and used slot info arunka Programming 5 02-09-2006 10:17 AM
gnome fails to load on login after bootup - unless bootup first in win xp doubletruncation Fedora 6 12-07-2005 09:32 AM
SD slot in notebook mmm Linux - Hardware 7 02-13-2005 01:31 AM
How to convert a bootup floppy to a bootup CD ? wlaw Linux - Newbie 2 07-15-2004 04:28 AM


All times are GMT -5. The time now is 05:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration