WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: tc2.9 don't recognize SD cards  (Read 5315 times)

Offline Onyarian

  • Sr. Member
  • ****
  • Posts: 337
tc2.9 don't recognize SD cards
« on: March 03, 2010, 03:14:16 PM »
My first impression is very good but one of the first differences with 2.8 is that he does not recognize my two SD discs of my Aspire One.
In 2.8 he recognizes them like mmcblk0p1 and mmcblk1p1, but in 2.9 they are not detected and included in fstab. So that I cannot use them.

can I contribute with any information that helps?

Offline Onyarian

  • Sr. Member
  • ****
  • Posts: 337
Re: tc2.9 don't recognize SD cards
« Reply #1 on: March 04, 2010, 11:09:12 AM »
booted with base norestore, the results of dmesg are:

in tc2.81:
Quote
...
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pci 0000:01:00.0: SDHCI controller found [197b:2382] (rev 0)
sdhci-pci 0000:01:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
sdhci-pci 0000:01:00.0: setting latency timer to 64
Registered led device: mmc0::
mmc0: SDHCI controller on PCI [0000:01:00.0] using ADMA
sdhci-pci 0000:01:00.2: SDHCI controller found [197b:2381] (rev 0)
sdhci-pci 0000:01:00.2: PCI INT A -> GSI 16 (level, low) -> IRQ 16
sdhci-pci 0000:01:00.2: Refusing to bind to secondary interface.
sdhci-pci 0000:01:00.2: PCI INT A disabled
sdhci-pci 0000:04:00.0: SDHCI controller found [197b:2382] (rev 0)
sdhci-pci 0000:04:00.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19
sdhci-pci 0000:04:00.0: setting latency timer to 64
Registered led device: mmc1::
mmc1: 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
intel_rng: FWH not detected
mmc0: new SDHC card at address aaaa
mmc1: new SDHC card at address b368
Synaptics Touchpad, model: 1, fw: 7.2, id: 0x1c0b1, caps: 0xd04771/0xa40000
input: SynPS/2 Synaptics TouchPad as /devices/platform/i8042/serio2/input/input6
mmcblk0: mmc0:aaaa SD16G 14.8 GiB
 mmcblk0: p1
mmcblk1: mmc1:b368 SDC   14.9 GiB
 mmcblk1: p1
...

in tc2.9:
Quote
...
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
intel_rng: FWH not detected
sdhci-pci 0000:01:00.0: SDHCI controller found [197b:2382] (rev 0)
sdhci-pci 0000:01:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
sdhci-pci 0000:01:00.0: setting latency timer to 64
Registered led device: mmc0::
mmc0: SDHCI controller on PCI [0000:01:00.0] using ADMA
sdhci-pci 0000:01:00.2: SDHCI controller found [197b:2381] (rev 0)
sdhci-pci 0000:01:00.2: PCI INT A -> GSI 16 (level, low) -> IRQ 16
sdhci-pci 0000:01:00.2: Refusing to bind to secondary interface.
sdhci-pci 0000:01:00.2: PCI INT A disabled
sdhci-pci 0000:04:00.0: SDHCI controller found [197b:2382] (rev 0)
sdhci-pci 0000:04:00.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19
sdhci-pci 0000:04:00.0: setting latency timer to 64
Registered led device: mmc1::
mmc1: 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
usb 2-1: new low speed USB device using uhci_hcd and address 2
mmc0: new SDHC card at address aaaa
usb 2-1: configuration #1 chosen from 1 choice
input: Kensington Kensington Ci75m Wireless Notebook Mouse as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1:1.0/input/input5
Clocksource tsc unstable (delta = -134299338 ns)
generic-usb 0003:047D:1048.0001: input: USB HID v1.10 Mouse [Kensington Kensington Ci75m Wireless Notebook Mouse] on usb-0000:00:1d.0-1/input0
mmc1: new SDHC card at address b368
Synaptics Touchpad, model: 1, fw: 7.2, id: 0x1c0b1, caps: 0xd04771/0xa40000
input: SynPS/2 Synaptics TouchPad as /devices/platform/i8042/serio2/input/input6
usb-storage: device scan complete
...

does it helps?

Offline MakodFilu

  • Newbie
  • *
  • Posts: 46
Re: tc2.9 don't recognize SD cards
« Reply #2 on: March 04, 2010, 05:27:00 PM »
Somewhat curious... if you try to:

mount /mnt/sda1
mount /mnt/sdb1
mount /mnt/sdc1
...

does any of those commands happen to mount any of your cards?

Offline roberts

  • Administrator
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: tc2.9 don't recognize SD cards
« Reply #3 on: March 04, 2010, 06:45:12 PM »
Please post the output of  lsmod

It should list sdhci
10+ Years Contributing to Linux Open Source Projects.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10962
Re: tc2.9 don't recognize SD cards
« Reply #4 on: March 05, 2010, 12:44:15 AM »
ls -lh /dev/mmc*
The only barriers that can stop you are the ones you create yourself.

Offline OldAdamUser2

  • Full Member
  • ***
  • Posts: 199
Re: tc2.9 don't recognize SD cards
« Reply #5 on: March 05, 2010, 04:21:29 AM »
I am assuming that you use Mount Tool to try to mount and access these drives. What happens on my machine is that when I plug in an SD card or a usb stick, it does not show up immediately with Mount Tool. I have to cycle through the complete series of available drives a couple of times before the new drives pop up. Have you tried that?

Offline Onyarian

  • Sr. Member
  • ****
  • Posts: 337
Re: tc2.9 don't recognize SD cards
« Reply #6 on: March 05, 2010, 07:28:33 AM »
booted with base norestore waitusb=5, the results are:

lsmod in tc2.9:
Quote
Module                  Size  Used by    Not tainted
squashfs               11732  0
scsi_wait_scan           260  0
sdhci_pci               3444  0
sdhci                   9436  1 sdhci_pci
r8169                  18352  0
mmc_core               23428  1 sdhci
serio_raw               2240  0
wmi                     2952  0
battery                 5976  0
ac                      1732  0

lsmod in tc2.81:
Quote
Module                  Size  Used by    Not tainted
squashfs               11732  0
scsi_wait_scan           260  0
mmc_block               5140  0
serio_raw               2240  0
r8169                  18352  0
sdhci_pci               3444  0
sdhci                   9436  1 sdhci_pci
wmi                     2952  0
mmc_core               23428  2 mmc_block,sdhci
ac                      1732  0
battery                 5976  0

ls -lh /dev/mmc* in tc 2.9 --- > no file or directory
ls -lh /dev/m* in tc 2.9
Quote
crw-r-----    1 root     staff      1,   1 Mar  5 16:07 /dev/mem
crw-r-----    1 root     root      13,  63 Mar  5 16:07 /dev/mice
crw-r-----    1 root     root      13,  32 Mar  5 16:07 /dev/mouse0
crw-r-----    1 root     root      13,  33 Mar  5 16:07 /dev/mouse1

ls -lh /dev/mmc* in tc 2.81:
Quote
brw-r-----    1 root     staff    179,   0 Mar  5 16:10 /dev/mmcblk0
brw-r-----    1 root     staff    179,   1 Mar  5 16:10 /dev/mmcblk0p1
brw-r-----    1 root     staff    179,   8 Mar  5 16:10 /dev/mmcblk1
brw-r-----    1 root     staff    179,   9 Mar  5 16:10 /dev/mmcblk1p1

or ls -lh /dev/m* in tc 2.81:
Quote
crw-r-----    1 root     staff      1,   1 Apr 18  2009 /dev/mem
brw-r-----    1 root     staff    179,   0 Mar  5 16:10 /dev/mmcblk0
brw-r-----    1 root     staff    179,   1 Mar  5 16:10 /dev/mmcblk0p1
brw-r-----    1 root     staff    179,   8 Mar  5 16:10 /dev/mmcblk1
brw-r-----    1 root     staff    179,   9 Mar  5 16:10 /dev/mmcblk1p1
lrwxrwxrwx    1 root     root           10 Mar  5 16:10 /dev/mouse -> input/mice

seems that the diference is the mmc_block module



OldAdamUser2: this is no my case, because the Aspire One have 2 SD cardreaders and this SD are permanently on it.


Offline roberts

  • Administrator
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: tc2.9 don't recognize SD cards
« Reply #7 on: March 05, 2010, 07:40:16 AM »
Hmmm, missing mmc_block module.
Do this:

sudo modprobe mmc_block
sudo rebuildfstab
10+ Years Contributing to Linux Open Source Projects.

Offline roberts

  • Administrator
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: tc2.9 don't recognize SD cards
« Reply #8 on: March 05, 2010, 08:29:13 AM »
I see that there is a missing udev rule for mmc_block. Now I can fix it.
10+ Years Contributing to Linux Open Source Projects.

Offline Onyarian

  • Sr. Member
  • ****
  • Posts: 337
Re: tc2.9 don't recognize SD cards
« Reply #9 on: March 05, 2010, 08:31:39 AM »
sudo modprobe mmc_block

lsmod
Quote
Module                  Size  Used by    Not tainted
mmc_block               5140  0
squashfs               11732  0
scsi_wait_scan           260  0
sdhci_pci               3444  0
sdhci                   9436  1 sdhci_pci
serio_raw               2240  0
r8169                  18352  0
mmc_core               23428  2 mmc_block,sdhci
battery                 5976  0
ac                      1732  0
wmi                     2952  0

in this moment there are the two entries mmcblk0p1 and mmcblk1p1 in the mount tool and fstab:
Quote
# /etc/fstab

proc            /proc        proc    defaults          0       0

sysfs           /sys         sysfs   defaults          0       0

devpts          /dev/pts     devpts  defaults          0       0

tmpfs           /dev/shm     tmpfs   defaults          0       0

/dev/mmcblk0p1  /mnt/mmcblk0p1  vfat     noauto,users,exec,umask=000 0 0 # Added

/dev/mmcblk1p1  /mnt/mmcblk1p1  vfat     noauto,users,exec,umask=000 0 0 # Added

/dev/sda1       /mnt/sda1       ext2     noauto,users,exec,relatime 0 0 # Added

/dev/sda2       none            swap     defaults             0 0 # Added by TC

/dev/sdb1       /mnt/sdb1       ext2     noauto,users,exec,relatime 0 0 # Added

sudo rebuildfstab
(no diference)

and the last entries in dmesg:
Quote
...
mmcblk0: mmc0:aaaa SD16G 14.8 GiB
 mmcblk0: p1
mmcblk1: mmc1:b368 SDC   14.9 GiB
 mmcblk1: p1
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended


Offline Onyarian

  • Sr. Member
  • ****
  • Posts: 337
Re: tc2.9 don't recognize SD cards
« Reply #10 on: March 05, 2010, 08:35:46 AM »
Ok!

I was writing above while you were writing the solution!

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10962
Re: tc2.9 don't recognize SD cards
« Reply #11 on: March 05, 2010, 08:37:17 AM »
I have to wonder why it is no longer included in 151, while it was in 80-drivers.rules in 116.

edit: Ah, found out:

http://git.kernel.org/?p=linux/hotplug/udev.git;a=commit;h=a8aab0e95b18c772c91104c02a283d03180ff19f

"rules: remove MMC rule, 2.6.30 has the modalias".
« Last Edit: March 05, 2010, 08:42:13 AM by curaga »
The only barriers that can stop you are the ones you create yourself.

Offline OldAdamUser2

  • Full Member
  • ***
  • Posts: 199
Re: tc2.9 don't recognize SD cards
« Reply #12 on: March 06, 2010, 07:28:28 PM »
Not sure it's related, but TC 2.3 always recognizes and makes available to mount my three different usb storage devices (1 GB usb stick, 2 GB SanDisk mp3 player, and  2 GB Phillips mp3 player). TC 2.8 recognizes all three, but does not create an automatic mount point for the SanDisk. I have to create /mnt/sdd for it in a terminal and then mount it with "mount -t auto /dev/sdd /mnt/sdd".

It's no big deal, but it is strange.

Offline ^thehatsrule^

  • Administrator
  • Hero Member
  • *****
  • Posts: 1726
Re: tc2.9 don't recognize SD cards
« Reply #13 on: March 06, 2010, 08:50:54 PM »
That's probably due to the stricter rules in 2.6.1 (iirc) that require partition tables.