You are not logged in.

#1 2012-10-05 17:43:21

frank604
Member
From: BC, Canada
Registered: 2011-04-20
Posts: 1,212

SD Card (Realtek RTS5209) does not recognize SDHC card

Hello fellow Archians,

I just realized my sd card reader does not function at all.  No recognition of sdcard when inserted.  The laptop model is Asus G73jw.  The sdcard / reader works under windows.   I followed http://forums.gentoo.org/viewtopic-t-92 … art-0.html as the card reader was similar, mine is 05:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5209 PCI Express Card Reader (rev 01) so I went to realtek's website and downloaded their driver for RTS5209 which is rts_pstor.  Still no effect even when I load module rts_pstor.  I noticed there are 3 other mods loaded for scsi_mod which are libata, sd_mod, sr_mod.

What should my next step be?  I scoured the forums but it seems to be a very uncommon problem.  Even the asus g73sw (similar to mine) doesn't report a problem with the sd card reader https://wiki.archlinux.org/index.php/ASUS_G73SW

Help me Obi Wan Kenobi, you are my only hope.



Here are the info outputs:

lspci

00:00.0 Host bridge: Intel Corporation Core Processor DMI (rev 11)
00:03.0 PCI bridge: Intel Corporation Core Processor PCI Express Root Port 1 (rev 11)
00:08.0 System peripheral: Intel Corporation Core Processor System Management Registers (rev 11)
00:08.1 System peripheral: Intel Corporation Core Processor Semaphore and Scratchpad Registers (rev 11)
00:08.2 System peripheral: Intel Corporation Core Processor System Control and Status Registers (rev 11)
00:08.3 System peripheral: Intel Corporation Core Processor Miscellaneous Registers (rev 11)
00:10.0 System peripheral: Intel Corporation Core Processor QPI Link (rev 11)
00:10.1 System peripheral: Intel Corporation Core Processor QPI Routing and Protocol Registers (rev 11)
00:16.0 Communication controller: Intel Corporation 5 Series/3400 Series Chipset HECI Controller (rev 06)
00:1a.0 USB controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06)
00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 06)
00:1c.0 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 1 (rev 06)
00:1c.1 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 2 (rev 06)
00:1c.3 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 4 (rev 06)
00:1c.4 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 5 (rev 06)
00:1c.5 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 6 (rev 06)
00:1d.0 USB controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev a6)
00:1f.0 ISA bridge: Intel Corporation Mobile 5 Series Chipset LPC Interface Controller (rev 06)
00:1f.2 SATA controller: Intel Corporation 5 Series/3400 Series Chipset 4 port SATA AHCI Controller (rev 06)
01:00.0 VGA compatible controller: NVIDIA Corporation GF106 [GeForce GTX 460M] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GF106 High Definition Audio Controller (rev a1)
03:00.0 Network controller: Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) (rev 01)
04:00.0 USB controller: Fresco Logic Device 1400 (rev 01)
05:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5209 PCI Express Card Reader (rev 01)
06:00.0 Ethernet controller: Atheros Communications Inc. AR8131 Gigabit Ethernet (rev c0)
ff:00.0 Host bridge: Intel Corporation Core Processor QuickPath Architecture Generic Non-Core Registers (rev 04)
ff:00.1 Host bridge: Intel Corporation Core Processor QuickPath Architecture System Address Decoder (rev 04)
ff:02.0 Host bridge: Intel Corporation Core Processor QPI Link 0 (rev 04)
ff:02.1 Host bridge: Intel Corporation Core Processor QPI Physical 0 (rev 04)
ff:03.0 Host bridge: Intel Corporation Core Processor Integrated Memory Controller (rev 04)
ff:03.1 Host bridge: Intel Corporation Core Processor Integrated Memory Controller Target Address Decoder (rev 04)
ff:03.4 Host bridge: Intel Corporation Core Processor Integrated Memory Controller Test Registers (rev 04)
ff:04.0 Host bridge: Intel Corporation Core Processor Integrated Memory Controller Channel 0 Control Registers (rev 04)
ff:04.1 Host bridge: Intel Corporation Core Processor Integrated Memory Controller Channel 0 Address Registers (rev 04)
ff:04.2 Host bridge: Intel Corporation Core Processor Integrated Memory Controller Channel 0 Rank Registers (rev 04)
ff:04.3 Host bridge: Intel Corporation Core Processor Integrated Memory Controller Channel 0 Thermal Control Registers (rev 04)
ff:05.0 Host bridge: Intel Corporation Core Processor Integrated Memory Controller Channel 1 Control Registers (rev 04)
ff:05.1 Host bridge: Intel Corporation Core Processor Integrated Memory Controller Channel 1 Address Registers (rev 04)
ff:05.2 Host bridge: Intel Corporation Core Processor Integrated Memory Controller Channel 1 Rank Registers (rev 04)
ff:05.3 Host bridge: Intel Corporation Core Processor Integrated Memory Controller Channel 1 Thermal Control Registers (rev 04)

lsmod

Module                  Size  Used by
fuse                   68908  2 
aes_x86_64              7508  3 
cryptd                  8741  0 
aes_generic            26138  1 aes_x86_64
ipheth                  6537  0 
snd_hda_codec_hdmi     23704  4 
hid_logitech_dj         9707  0 
joydev                  9991  0 
usbhid                 36812  1 hid_logitech_dj
nvidia              11207142  33 
hid                    85608  2 usbhid,hid_logitech_dj
uvcvideo               72339  0 
videobuf2_vmalloc       2468  1 uvcvideo
videobuf2_memops        2246  1 videobuf2_vmalloc
videobuf2_core         20575  1 uvcvideo
videodev              100564  2 uvcvideo,videobuf2_core
rts_pstor             400723  0 
btusb                  11892  0 
bluetooth             193532  2 btusb
snd_hda_codec_realtek    59152  1 
media                  10405  2 uvcvideo,videodev
microcode              12377  0 
kvm_intel             124013  0 
arc4                    1410  2 
snd_hda_intel          25700  4 
snd_hda_codec          97432  3 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_intel
ath9k                  93564  0 
ath9k_common            2096  1 ath9k
ath9k_hw              341950  2 ath9k_common,ath9k
ath                    15393  3 ath9k_common,ath9k,ath9k_hw
mei                    32583  0 
mac80211              416391  1 ath9k
acpi_cpufreq            5933  1 
serio_raw               4689  0 
psmouse                71557  0 
pcspkr                  1899  0 
asus_laptop            18462  0 
input_polldev           2882  1 asus_laptop
iTCO_wdt                5989  0 
kvm                   363714  1 kvm_intel
snd_hwdep               6300  1 snd_hda_codec
snd_pcm                74926  3 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
mperf                   1267  1 acpi_cpufreq
snd_page_alloc          7217  2 snd_pcm,snd_hda_intel
snd_timer              18966  1 snd_pcm
snd                    60021  15 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_hda_codec,snd_hda_intel
cfg80211              173210  3 ath,ath9k,mac80211
thermal                 7959  0 
button                  4502  0 
sparse_keymap           3056  1 asus_laptop
battery                 6517  0 
iTCO_vendor_support     1929  1 iTCO_wdt
processor              27015  1 acpi_cpufreq
soundcore               5442  1 snd
atl1c                  33742  0 
video                  11308  0 
i7core_edac            16861  0 
evdev                  10266  21 
lpc_ich                10545  0 
edac_core              37609  1 i7core_edac
mfd_core                2833  1 lpc_ich
coretemp                6006  0 
ac                      2376  0 
crc32c_intel            1987  0 
rfkill                 15604  4 cfg80211,asus_laptop,bluetooth
i2c_core               20508  2 nvidia,videodev
vboxdrv              1823501  0 
ext4                  438999  2 
crc16                   1359  2 ext4,bluetooth
jbd2                   78720  1 ext4
mbcache                 5977  1 ext4
sr_mod                 14823  0 
cdrom                  35648  1 sr_mod
sd_mod                 29271  4 
ahci                   20549  3 
xhci_hcd               84338  0 
libahci                20023  1 ahci
libata                167675  2 ahci,libahci
scsi_mod              133152  4 libata,rts_pstor,sd_mod,sr_mod
ehci_hcd               41058  0 
usbcore               147434  7 btusb,uvcvideo,ehci_hcd,ipheth,usbhid,xhci_hcd
usb_common               954  1 usbcore

lsusb

Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 003 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 13d3:5122 IMC Networks 
Bus 001 Device 004: ID 0b05:1788 ASUSTek Computer, Inc. 
Bus 003 Device 003: ID 05ac:12a0 Apple, Inc. iPhone 4S
Bus 003 Device 004: ID 046d:c52b Logitech, Inc. Unifying Receiver

sudo fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes, 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000c86d7

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *          63    29993354    14996646   83  Linux
/dev/sda2        29993355    31985414      996030   82  Linux swap / Solaris
/dev/sda3        31985415   976773167   472393876+  83  Linux

dmesg | tail after insert and release

[   13.937288] wlan0: associated
[   15.425213] NVRM: GPU at 0000:01:00: GPU-596be79f-b554-3961-3a2a-16f04ad1e254
[   15.425219] NVRM: Your system is not currently configured to drive a VGA console
[   15.425221] NVRM: on the primary VGA device. The NVIDIA Linux graphics driver
[   15.425223] NVRM: requires the use of a text-mode VGA console. Use of other console
[   15.425225] NVRM: drivers including, but not limited to, vesafb, may result in
[   15.425226] NVRM: corruption and stability problems, and is not supported.
[  224.691230] EXT4-fs (sda1): re-mounted. Opts: commit=0
[  224.964366] EXT4-fs (sda3): re-mounted. Opts: commit=0
[  252.946009] fuse init (API version 7.19)

Offline

#2 2012-10-05 17:58:03

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: SD Card (Realtek RTS5209) does not recognize SDHC card

You don't need to download any driver, rts_pstor is in the kernel already. Perhaps it works better than what you installed.

The other option is a new driver Realtek made. It'll be part of kernel 3.7, but you can make it work with 3.6 too, it requires compiling your own kernel though. The patches are here: one, two, three

Offline

#3 2012-10-05 18:21:31

frank604
Member
From: BC, Canada
Registered: 2011-04-20
Posts: 1,212

Re: SD Card (Realtek RTS5209) does not recognize SDHC card

Hi Gusar,

Hrm, this is strange.  Whether I use the rts_pstor that is part of the kernel or download it from realtek and compile it, it still doesn't work.  So maybe this isn't a driver issue.  Maybe it is some other problem besides having the right driver?

I am not interested in compiling my own kernel though.... but I do appreciate the links. 

-Frank

Offline

#4 2012-10-06 07:42:05

frank604
Member
From: BC, Canada
Registered: 2011-04-20
Posts: 1,212

Re: SD Card (Realtek RTS5209) does not recognize SDHC card

Update:  I just put in a different sdhc card in and arch detected it fine.  Strange.  The one that doesn't work has full functionality when I put it in my Canon EOS camera.  Saves and views photos fine.  Could it be the formating that canon does to the sdhc card?  If so, do I need an additional something to read this file system?

Offline

#5 2012-10-06 10:59:52

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: SD Card (Realtek RTS5209) does not recognize SDHC card

Hmm, there's a possibility the SD card from the camera is using ExFAT. It's a patent-encumbered abomination that Microsoft has forced into the SDHC standard (talk about monopoly abuse, but I digress). Though if that was the case, the machine should at least be aware of the SD card, it just couldn't mount it. Anyway: https://wiki.archlinux.org/index.php/ExFAT

Offline

#6 2013-03-27 13:34:11

PackRat
Member
Registered: 2013-03-27
Posts: 18

Re: SD Card (Realtek RTS5209) does not recognize SDHC card

I'm having this same issue with a new install - kernel 3.8.4-1-ARCH

The card reader will not recognize a SDHC card (error -110), but works fine with an older 2GB card.

The reader and the cards worked with Win 7 and Debian.

Will continue the search for a solution.

Offline

#7 2013-03-27 19:01:06

cdysthe
Member
Registered: 2009-11-20
Posts: 62

Re: SD Card (Realtek RTS5209) does not recognize SDHC card

I am having this problem both on Arch and Linux Mint Debian Edition with Liquorix kenrel. With kernel 3.8.4 running the 5209 card reader is not working. I read on a Redhat forum: "The rts_pstor driver has been removed from staging in kernel 3.8 and another driver (rtsx_pci and rtsx_pci_ms) is able to handle this hardware. I've tested it with the recent kernel-3.8.1-201.fc18.x86_64 and it works." I tried to load the those driver but it still doesn't work. I get this in my syslog:

Mar 27 14:05:04 thinkpad-l520 kernel: mmc0: error -110 whilst initialising SD card

I'm hoping a solution will be posted here. In the meantime I'll keep looking.

Last edited by cdysthe (2013-03-27 19:08:09)

Offline

#8 2013-03-29 19:15:36

PackRat
Member
Registered: 2013-03-27
Posts: 18

Re: SD Card (Realtek RTS5209) does not recognize SDHC card

Solved my problems and got my my card reader working properly with my install of Arch, two steps:

1. Used the instructions in the Arch wiki to build a custom 3.7.10 kernel; downloaded kernel from kernel.org

https://wiki.archlinux.org/index.php/Kernel

2. Downloaded and compiled the the rts_pstor driver from the realtek site. The Readme file has the instructions for installing the driver.

http://www.realtek.com.tw/DOWNLOADS/dow … Down=false

Card reader working with SDHC cards now. I'm guessing I could have compiled the driver into the kernel and made this a one step process. Should also note that I compiled the kernel the traditional way since I have done that before; new to Arch so didn't attempt that method. Maybe with the 3.9 kernel when it gets to stable.

Last edited by PackRat (2013-03-29 19:18:16)

Offline

Board footer

Powered by FluxBB