Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

Realtech PCI Card Reader HOW TO [solution]

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
15 posts • Page 1 of 1
Author
Message
RayDude
Advocate
Advocate
User avatar
Posts: 2195
Joined: Sat May 29, 2004 6:11 am
Location: San Jose, CA

Realtech PCI Card Reader HOW TO [solution]

  • Quote

Post by RayDude » Wed Feb 20, 2019 6:59 pm

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

Here is the hardware:

Code: Select all

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: Select all

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.
Top
Bruce
n00b
n00b
Posts: 50
Joined: Fri Sep 27, 2002 3:11 am

  • Quote

Post by Bruce » Sat Feb 23, 2019 6:05 pm

Actually, this helped me. Thanks for the post.

Bruce
Top
marziods
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 136
Joined: Thu Jun 25, 2009 1:22 pm
Location: <Roma>par lavor | Udine | Friul | Italie

  • Quote

Post by marziods » Mon Mar 25, 2019 11:29 am

nice job!
tnx...
linux user #493115
Top
clytle374
Apprentice
Apprentice
Posts: 227
Joined: Tue Aug 01, 2006 3:07 am

  • Quote

Post by clytle374 » Fri Mar 29, 2019 6:01 am

Thanks, you saved me a couple hours
NooB since RedHat 6.1
Top
impiusnex
n00b
n00b
Posts: 1
Joined: Sat Jul 27, 2019 6:06 pm

  • Quote

Post by impiusnex » Thu Aug 15, 2019 8:03 pm

Thank you for this, saved me a lot of time.
Top
depontius
Advocate
Advocate
Posts: 3533
Joined: Wed May 05, 2004 4:06 pm

  • Quote

Post by depontius » Sat Aug 17, 2019 8:35 pm

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: Select all

# 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
Top
tomaszg
n00b
n00b
User avatar
Posts: 9
Joined: Tue Oct 28, 2008 2:33 pm
Contact:
Contact tomaszg
Website

  • Quote

Post by tomaszg » Tue Nov 12, 2019 5:22 pm

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
Top
henner989
n00b
n00b
Posts: 1
Joined: Wed Aug 19, 2020 1:44 pm
Location: UK

  • Quote

Post by henner989 » Wed Aug 19, 2020 1:47 pm

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
Top
sebekk23
Tux's lil' helper
Tux's lil' helper
Posts: 88
Joined: Sun Mar 29, 2015 6:09 pm

  • Quote

Post by sebekk23 » Thu Dec 17, 2020 5:44 pm

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


Edit: Works!!!! Thx!
Top
ptrtoj
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 82
Joined: Mon Nov 20, 2017 4:04 am
Location: Seoul,Korea(Republic of)
Contact:
Contact ptrtoj
Website

  • Quote

Post by ptrtoj » Thu Feb 18, 2021 3:37 am

You saved another life in 2021 :)

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

Thanks!
Top
ahodgson
n00b
n00b
Posts: 1
Joined: Thu Jun 03, 2021 7:27 pm

thanks!

  • Quote

Post by ahodgson » Thu Jun 03, 2021 7:31 pm

That was a lot of non-obvious interdependencies. Thanks!
Top
mario-gar
n00b
n00b
Posts: 1
Joined: Thu Jun 10, 2021 2:30 pm

Thanks but.....

  • Quote

Post by mario-gar » Thu Jun 10, 2021 2:40 pm

thanks but somebody can publish the details and steps of the solution, please.
Top
Fitap
Guru
Guru
User avatar
Posts: 502
Joined: Sun Mar 13, 2011 4:20 pm
Location: Rosario, Argentina

  • Quote

Post by Fitap » Tue Feb 08, 2022 12:37 am

Thank you !
Top
richardash1981
Tux's lil' helper
Tux's lil' helper
Posts: 94
Joined: Fri Apr 08, 2005 5:26 pm
Location: England

  • Quote

Post by richardash1981 » Sun Apr 10, 2022 2:34 pm

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:A ... ion/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: Select all

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: Select all

sudo modprobe -r rtsx_pci_sdmmc  rtsx_pci
sudo modprobe rtsx_pci
Top
Spanik
Veteran
Veteran
Posts: 1170
Joined: Fri Dec 12, 2003 9:10 pm
Location: Belgium

  • Quote

Post by Spanik » Tue Mar 28, 2023 3:58 pm

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
Top
Post Reply

15 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic