View previous topic :: View next topic |
Author |
Message |
RayDude Advocate
Joined: 29 May 2004 Posts: 2088 Location: San Jose, CA
|
Posted: Wed Feb 20, 2019 6:59 pm Post subject: Realtech PCI Card Reader HOW TO [solution] |
|
|
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 |
|
|
Bruce n00b
Joined: 27 Sep 2002 Posts: 50
|
Posted: Sat Feb 23, 2019 6:05 pm Post subject: |
|
|
Actually, this helped me. Thanks for the post.
Bruce |
|
Back to top |
|
|
marziods Tux's lil' helper
Joined: 25 Jun 2009 Posts: 136 Location: <Roma>par lavor | Udine | Friul | Italie
|
Posted: Mon Mar 25, 2019 11:29 am Post subject: |
|
|
nice job!
tnx... _________________ linux user #493115 |
|
Back to top |
|
|
clytle374 Apprentice
Joined: 01 Aug 2006 Posts: 221
|
Posted: Fri Mar 29, 2019 6:01 am Post subject: |
|
|
Thanks, you saved me a couple hours _________________ NooB since RedHat 6.1 |
|
Back to top |
|
|
impiusnex n00b
Joined: 27 Jul 2019 Posts: 1
|
Posted: Thu Aug 15, 2019 8:03 pm Post subject: |
|
|
Thank you for this, saved me a lot of time. |
|
Back to top |
|
|
depontius Advocate
Joined: 05 May 2004 Posts: 3525
|
Posted: Sat Aug 17, 2019 8:35 pm Post subject: |
|
|
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 |
|
|
tomaszg n00b
Joined: 28 Oct 2008 Posts: 9
|
Posted: Tue Nov 12, 2019 5:22 pm Post subject: |
|
|
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 |
|
|
henner989 n00b
Joined: 19 Aug 2020 Posts: 1 Location: UK
|
Posted: Wed Aug 19, 2020 1:47 pm Post subject: |
|
|
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 |
|
|
sebekk23 Tux's lil' helper
Joined: 29 Mar 2015 Posts: 78
|
Posted: Thu Dec 17, 2020 5:44 pm Post subject: |
|
|
Thx mate! I have problem with this reader - will try your solution
Edit: Works!!!! Thx! |
|
Back to top |
|
|
whjeon Tux's lil' helper
Joined: 20 Nov 2017 Posts: 82 Location: Seoul,Korea(Republic of)
|
Posted: Thu Feb 18, 2021 3:37 am Post subject: |
|
|
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 |
|
|
ahodgson n00b
Joined: 03 Jun 2021 Posts: 1
|
Posted: Thu Jun 03, 2021 7:31 pm Post subject: thanks! |
|
|
That was a lot of non-obvious interdependencies. Thanks! |
|
Back to top |
|
|
mario-gar n00b
Joined: 10 Jun 2021 Posts: 1
|
Posted: Thu Jun 10, 2021 2:40 pm Post subject: Thanks but..... |
|
|
thanks but somebody can publish the details and steps of the solution, please. |
|
Back to top |
|
|
Fitap Guru
Joined: 13 Mar 2011 Posts: 451 Location: Rosario, Argentina
|
Posted: Tue Feb 08, 2022 12:37 am Post subject: |
|
|
Thank you ! |
|
Back to top |
|
|
richardash1981 Tux's lil' helper
Joined: 08 Apr 2005 Posts: 94 Location: England
|
Posted: Sun Apr 10, 2022 2:34 pm Post subject: |
|
|
To clarify, to make this hardware work you need to have several kernel options selected. For reasons below, you want to build them as modules, not monolithic-ally into the kernel (in the Linux kernel menuconfing, press M. If you don't know how to configure and compile a kernel, consult the Gentoo documentation: https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Kernel and https://wiki.gentoo.org/wiki/Kernel).
For the PCIexpress card reader, you need to have the following selected (as per the locations in the first post):
Code: |
CONFIG_MMC
CONFIG_MMC_BLOCK
CONFIG_MMC_REALTEK_PCI
CONFIG_MISC_RTSX_PCI
|
Secondly, there seem to be some issues with the controller not always initialising on boot correctly, which means it doesn't work. Certainly this happens with the RTS522A rev 01 hardware in the HP EliteBook 840 G3. The result is that no block device is created and the card is not visible.
The work-around is fairly simple - remove the modules and re-load them (you do not need to remove the card), and the device will show up and work:
Code: |
sudo modprobe -r rtsx_pci_sdmmc rtsx_pci
sudo modprobe rtsx_pci
|
|
|
Back to top |
|
|
Spanik Veteran
Joined: 12 Dec 2003 Posts: 1008 Location: Belgium
|
Posted: Tue Mar 28, 2023 3:58 pm Post subject: |
|
|
I know I'm delving this from rather deep but thanks to this I can use my card reader in my laptop for the first time in 12 years!
Yeah, I was bored today... _________________ Expert in non-working solutions |
|
Back to top |
|
|
|