Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Realtech PCI Card Reader HOW TO [solution]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
RayDude
Veteran
Veteran


Joined: 29 May 2004
Posts: 1558
Location: San Jose, CA

PostPosted: Wed Feb 20, 2019 6:59 pm    Post subject: Realtech PCI Card Reader HOW TO [solution] Reply with quote

I wanted to post this for anyone who has the same problem as me.

Here is the hardware:

Code:
07:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS522A PCI Express Card Reader (rev 01)
        Subsystem: Hewlett-Packard Company RTS522A PCI Express Card Reader
        Kernel driver in use: rtsx_pci
        Kernel modules: rtsx_pci


This applies to all the realtech family PCI Express Card Readers: RTS5227, RTS5229 and many others.

See here: https://cateee.net/lkddb/web-lkddb/MFD_RTSX_PCI.html

You must enable two modules in the kernel to get this to work.

The first is in: Device Drivers -> Misc devices -> Realtek PCI-E card reader

The second is in: Device Drivers -> MMC/SD/SDIO card support -> Realtek PCI-E SD/MMC Card Interface Driver

The second depends on the first and will not show up until the first is set to Y or M.

It took me several hours to figure this out as I couldn't find any instructions anywhere.

The device mounts as:

Code:
Disk /dev/mmcblk0: 14.9 GiB, 15931539456 bytes, 31116288 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
Disklabel type: dos
Disk identifier: 0x00000000


Hope this helps someone in the future.
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
Bruce
n00b
n00b


Joined: 27 Sep 2002
Posts: 49

PostPosted: Sat Feb 23, 2019 6:05 pm    Post subject: Reply with quote

Actually, this helped me. Thanks for the post.

Bruce
Back to top
View user's profile Send private message
marziods
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jun 2009
Posts: 136
Location: <Roma>par lavor | Udine | Friul | Italie

PostPosted: Mon Mar 25, 2019 11:29 am    Post subject: Reply with quote

nice job!
tnx...
_________________
linux user #493115
Back to top
View user's profile Send private message
clytle374
Apprentice
Apprentice


Joined: 01 Aug 2006
Posts: 196

PostPosted: Fri Mar 29, 2019 6:01 am    Post subject: Reply with quote

Thanks, you saved me a couple hours
_________________
NooB since RedHat 6.1
Back to top
View user's profile Send private message
impiusnex
n00b
n00b


Joined: 27 Jul 2019
Posts: 1

PostPosted: Thu Aug 15, 2019 8:03 pm    Post subject: Reply with quote

Thank you for this, saved me a lot of time.
Back to top
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 3423

PostPosted: Sat Aug 17, 2019 8:35 pm    Post subject: Reply with quote

A few years back I managed to get the SD reader on my Thinkpad T440P running, at the time I believe I might have snagged a driver off of the web, but I'm not sure. In the meantime it appears that that driver has gone upstream anyway.

So this isn't working for me, and I believe I've done what's necessary, however I may have done more, and that may be what is stopping me. Under "Misc devices" I have pcie and usb enabled. (MISC_RTSX_PCI and MISC_RTSX_USB) Under "MMC/SD/SDIO card support" I also have both pcie and usb enabled. (MMC_REALTEK_PCI and MMC_REALTEK_USB) For loaded modules:
Code:
# lsmod | grep rtsx
rtsx_pci_sdmmc         32768  0
mmc_core              188416  1 rtsx_pci_sdmmc
rtsx_pci               77824  1 rtsx_pci_sdmmc
mfd_core               16384  2 rtsx_pci,lpc_ich

However when I plug in an SD Card, dmesg says nothing.
_________________
.sigs waste space and bandwidth
Back to top
View user's profile Send private message
tomaszg
n00b
n00b


Joined: 28 Oct 2008
Posts: 9

PostPosted: Tue Nov 12, 2019 5:22 pm    Post subject: Reply with quote

Thanks, that was helpful.

I'll only add that the module MMC block device driver is also needed. Otherwise kernel recognizes the device but doesn't create a device to access it.
_________________
AMD FX-8370E | 16GB | Radeon Fury | Asus Xonar DX | no case
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
Page 1 of 1

 
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