SD CARD RTS5229 reader not recognized

Hi guys,

i’m new here… :smiley:
I didn’t find the answear on google…

a driver for read my sd card, i need it for my raspberry pi

thanks.

[*] What’s your model?
[*] Is an USB?
[*] or Building in your box Sometimes managed as an USB port?
[*] What Howto are you follow? I suggest this raspberry-pi

Normaly we don’t have driver’s here, all are automaticaly support by the kernel, type this in your terminal:

lsusb

or

lspci

2 Likes
[WAL@localhost ~]$ lsusb
Bus 001 Device 002: ID 8087:8000 Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 003: ID 04f2:b446 Chicony Electronics Co., Ltd 
Bus 002 Device 009: ID 12d1:14dc Huawei Technologies Co., Ltd. E33372 LTE/UMTS/GSM HiLink Modem/Networkcard
Bus 002 Device 005: ID 045e:07fd Microsoft Corp. Nano Transceiver 1.1
Bus 002 Device 004: ID 04d9:a0cd Holtek Semiconductor, Inc. 
Bus 002 Device 002: ID 14cd:8601 Super Top 4-Port hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


[WAL@localhost ~]$ lspci
00:00.0 Host bridge: Intel Corporation Haswell-ULT DRAM Controller (rev 0b)
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b)
00:03.0 Audio device: Intel Corporation Haswell-ULT HD Audio Controller (rev 0b)
00:14.0 USB controller: Intel Corporation 8 Series USB xHCI HC (rev 04)
00:16.0 Communication controller: Intel Corporation 8 Series HECI #0 (rev 04)
00:1b.0 Audio device: Intel Corporation 8 Series HD Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 1 (rev e4)
00:1c.2 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 3 (rev e4)
00:1c.3 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 4 (rev e4)
00:1c.4 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 5 (rev e4)
00:1d.0 USB controller: Intel Corporation 8 Series USB EHCI #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation 8 Series LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 8 Series SATA Controller 1 [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 8 Series SMBus Controller (rev 04)
**01:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5229 PCI Express Card Reader (rev 01)**
07:00.0 Network controller: Intel Corporation Wireless 3160 (rev 83)
08:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c)
09:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Topaz XT [Radeon R7 M260/M265 / M340/M360 / M440/M445]

i do not use usb, i have card reader slot on my laptop (toshiba laptop).

i will install fedora on my raspberry pi, thanks you for the link.

the problem is: in can not format my sd card on fedora.

Welcome! @WAL

The problem that your card reader is not recognize by the kernel, this can be a bug or a regression:

lspci -nnpk
lspci -vmmnn
lspci -v

This Card Reader is manage through rtsx_(pci|usb) in upstream.

You can try to unload and then reload the driver again and look if this work:

Get a list all modules that manage your card…

lsmod | grep rts

remove and load again

modprobe -r rtsx_pci
modprobe rtsx_pci

Look at the message:

journalctl -b | tail

if everyting is ok, try to format your sd card… follow the guide…

Regards.,

1 Like
[WAL@localhost ~]$ journalctl -b | tail
May 04 17:21:40 localhost.localdomain sudo[3973]:      WAL : TTY=pts/0 ; PWD=/home/WAL ; USER=root ; COMMAND=/usr/sbin/modprobe rtsx_usb
May 04 17:21:40 localhost.localdomain audit[3973]: USER_CMD pid=3973 uid=1000 auid=1000 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='cwd="/home/WAL" cmd=6D6F6470726F626520727473785F757362 terminal=pts/0 res=success'
May 04 17:21:40 localhost.localdomain audit[3973]: CRED_REFR pid=3973 uid=0 auid=1000 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:setcred grantors=pam_localuser,pam_unix acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
May 04 17:21:41 localhost.localdomain sudo[3973]: pam_systemd(sudo:session): Cannot create session: Already running in a session or user slice
May 04 17:21:41 localhost.localdomain audit[3973]: USER_START pid=3973 uid=0 auid=1000 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:session_open grantors=pam_keyinit,pam_limits,pam_keyinit,pam_limits,pam_systemd,pam_unix acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
May 04 17:21:41 localhost.localdomain sudo[3973]: pam_unix(sudo:session): session opened for user root by (uid=0)
May 04 17:21:41 localhost.localdomain kernel: usbcore: registered new interface driver rtsx_usb
May 04 17:21:41 localhost.localdomain sudo[3973]: pam_unix(sudo:session): session closed for user root
May 04 17:21:41 localhost.localdomain audit[3973]: USER_END pid=3973 uid=0 auid=1000 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:session_close grantors=pam_keyinit,pam_limits,pam_keyinit,pam_limits,pam_systemd,pam_unix acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
May 04 17:21:41 localhost.localdomain audit[3973]: CRED_DISP pid=3973 uid=0 auid=1000 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:setcred grantors=pam_localuser,pam_unix acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'

Please do this, all in the same session, in sequence:

modprobe -r rtsx_pci
modprobe rtsx_pci

Look at the message:

journalctl -b | tail

and the last step:

lspci

NOTE

If you see this message again in the last lspci is a driver problem (Bug’s or Regression) and should be reported to the KERNEL team because the driver doesn’t recognize your reader card:

**01:00.0 Unassigned class [ff00]:

With all this information login in redhat bugzilla with your FAS an report with all this information howto-file-a-bug

Regards.,

1 Like

that’s the message after all: :expressionless:

01:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5229 PCI Express Card Reader (rev 01)
my disks:

Screenshot%20from%202019-05-04%2019-43-23

upgrade to fedora 30 can solve my problem ? :thinking:

Thanks.

Try this:

modprobe -r rtsx_pci
modprobe -r rtsx_pci_sdmmc
modprobe -r rtsx_pci_ms
depmod -a
modprobe -r rts_pstor
modprobe rts_pstor

Now check which module is operated:

lspci -v

if everything go well, Now blacklisted rtsx_pci adding at the end of this file :

sudo echo "blacklist rtsx_pci" >> /lib/modprobe.d/dist-blacklist.conf

Show Blacklist:

modprobe --showconfig | grep blacklist

Regards…

hi,

modprobe -r rts_pstor >> modprobe: FATAL: Module rts_pstor not found.
modprobe rts_pstor >> modprobe: FATAL: Module rts_pstor not found in directory /lib/modules/5.0.10-200.fc29.x86_64

those commands does not work

Screenshot%20from%202019-05-05%2013-57-51

I think we finally found a good method, try to compile the driver by yourself:

delete the line in this file that point out to: blacklisted rtsx_pci

sudo nano /lib/modprobe.d/dist-blacklist.conf

sudo dnf install kernel kernel-{core,devel,modules*,headers} gcc gcc-c++ dkms git

You can have two Option:

  1. from REALTEK, search PCIE RTS5229 card reader driver for Linux, you can read README.txt

    • make
    • sudo make install
    • sudo depmod
    • reboot your computer
  2. from GITHUB

    • Clone this repo
    • Copy the whole folder into /usr/src/rts5229-1.07/
    • dkms install -m rts5229 -v 1.07
    • Copy blacklist-rts5229.conf to /etc/modprobe.d/ (Optional)
    • reboot your computer

Regards.,

1 Like

hi,

1.REALTEK did not sent to me download link.
2. Successfully installed, nothing changed :expressionless:

Thanks.

Could you please install this application via Flatpak and run it, and you can find in gnome-shell, that application open a terminal and run a Test of all your Hardware and provide and URL copy then an open in a web browser … or run in terminal:

Flatpak

Add a remote:

flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo

Install universal package:

flatpak install flathub org.linux_hardware.hw-probe

Now you can create computer probes:

flatpak run org.linux_hardware.hw-probe -all -upload

and try the following step:

NOTES:

You can find your SmarCard Smartcards, here

First you should be sure that your system detect your smart card :

open a terminal and type the follow :

lsusb

Install opensc (OpenSC provides a set of libraries and utilities to work with smart cards) :

sudo dnf install opensc ccid pcsc-lite pcsc-tools

enable the systemd process daemon :

sudo systemctl enable pcscd        # enable at boot
sudo systemctl start pcscd           # start the process
sudo systemctl status pcscd        # verify the status

Workaround in Terminal

REMEMBER to delete the line in this file that point out to: blacklisted rtsx_pci

sudo nano /lib/modprobe.d/dist-blacklist.conf # and delete the line blacklisted ***rtsx_pci***

insert the card :

sudo pcsc_scan

check the lector :

opensc-tool -l

¿Card Available?

opensc-tool -an

We can read the content?

pkcs11-tool -L

Web Browser (any kind of certificate)

In firefox preference → privacy and security → certificates → security devices, you can see your device