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: 1794
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: 204

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: 3456

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
henner989
n00b
n00b


Joined: 19 Aug 2020
Posts: 1
Location: UK

PostPosted: Wed Aug 19, 2020 1:47 pm    Post subject: Reply with quote

Hi all,

Could someone kindly explain exactly what I need to do to get these drivers working? I'm new to Linux and don't want to muck anything up. Basically, I think this is solution to my non-functioning card reader that works fine when I load Windows, but it doesn't work on Linux. If someone could explain in layman's terms how to implement the OP's solution, that would be amazing and very, very much appreciated.

All the best
Back to top
View user's profile Send private message
sebekk23
n00b
n00b


Joined: 29 Mar 2015
Posts: 43

PostPosted: Thu Dec 17, 2020 5:44 pm    Post subject: Reply with quote

Thx mate! I have problem with this reader - will try your solution ;)


Edit: Works!!!! Thx!
Back to top
View user's profile Send private message
whjeon
Tux's lil' helper
Tux's lil' helper


Joined: 20 Nov 2017
Posts: 82
Location: Seoul,Korea(Republic of)

PostPosted: Thu Feb 18, 2021 3:37 am    Post subject: Reply with quote

You saved another life in 2021 :)

Also not only card reader made by REALTEK,
The wifi module was loaded successfully!(rtl8822be)

Thanks!
Back to top
View user's profile Send private message
ahodgson
n00b
n00b


Joined: 03 Jun 2021
Posts: 1

PostPosted: Thu Jun 03, 2021 7:31 pm    Post subject: thanks! Reply with quote

That was a lot of non-obvious interdependencies. Thanks!
Back to top
View user's profile Send private message
mario-gar
n00b
n00b


Joined: 10 Jun 2021
Posts: 1

PostPosted: Thu Jun 10, 2021 2:40 pm    Post subject: Thanks but..... Reply with quote

thanks but somebody can publish the details and steps of the solution, please.
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