Package Details: rts5227-dkms 1.07-5

Git Clone URL: (read-only)
Package Base: rts5227-dkms
Description: Driver to support Realtek RTS5227/5229 SD Card Reader
Upstream URL:
Licenses: GPL2
Submitter: mober
Maintainer: robertfoster
Last Packager: robertfoster
Votes: 2
Popularity: 0.251348
First Submitted: 2017-06-22 13:19
Last Updated: 2018-02-08 20:06

Dependencies (1)

Required by (0)

Sources (4)

Latest Comments

otcho commented on 2018-02-15 19:38

Driver isn't loaded with current kernel - am I missing something? It installed fine, but lscpi gives me

00:00.0 Host bridge: Intel Corporation Broadwell-U Host Bridge -OPI (rev 09)
02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5227 PCI Express Card Reader (rev 01)


robertfoster commented on 2018-01-17 14:51

Please use this in the meantime, astyonax will merge PR asap:

# Maintainer: mober <maxATmoberDOTat>
# Thanks to:
# * astyonax@github

pkgdesc="Driver to support Realtek RTS5227/5229 SD Card Reader"
arch=('i686' 'x86_64')


    # Copy dkms .conf
    install -Dm644 dkms.conf "${pkgdir}/usr/src/${_pkgbase}-${pkgver}/dkms.conf"
    # Set name and version
    sed -e "s/@_PKGBASE@/${_pkgbase}/" \
        -e "s/@PKGVER@/${pkgver}/" \
        -i "${pkgdir}/usr/src/${_pkgbase}-${pkgver}/dkms.conf"

    # Blacklist rtsx_pci
    install -Dm644 "blacklist-${pkgname}.conf" "${pkgdir}/etc/modprobe.d/blacklist-${pkgname}.conf"

    # Fix suspend
    install -Dm755 "${pkgname}" "${pkgdir}/usr/lib/systemd/system-sleep/${pkgname}"

    # Copy sources (including Makefile)
    cd "${sourceDir}"
    for d in `find . -type d`
        install -dm755  "${installDir}/$d"
    for f in `find . -type f ! -name '' ! -name '.gitignore'`
        install -m644 "${sourceDir}/$f" "${installDir}/$f"


Makefile.patch not needed, I've merged it in sources

turboencabulator commented on 2017-12-18 04:07

Thank you @robertfoster, I was able to dkms rebuild the driver after that change successfully and add the module to kernel. For those using Arch, once you finish with the yaourt process and get the error reported by @ldmdev and others, go to the directory with the source code for e.g. "/var/lib/dkms/rts5227/1.07/source", then edit the file "rtsx_scsi.c" as described by @robertfoster in his link and save the edits. Then do a <$ make clean> inside the "build" directory under "../1.07/" finally under the "/var/lib/dkms" directory, execute < $ dkms install rts5227/1.07 -k 4.XX.X-X-ARCH > where 4.XX.X-X-ARCH is your kernel version. This should complete all the remaining install steps and end automatically with depmod.

robertfoster commented on 2017-12-07 14:39

Please use this to fix dkms on latest kernel:

ldmdev commented on 2017-11-26 22:13

Same for me

==> dkms install rts5227/1.07 -k 4.14.2-1-MANJARO
Error! Bad return status for module build on kernel: 4.14.2-1-MANJARO (x86_64)
Consult /var/lib/dkms/rts5227/1.07/build/make.log for more information.


jyettec commented on 2017-10-07 20:57

Same problem as alter2000

alter2000 commented on 2017-10-06 08:39

The package gets installed but the driver doesn't. Here's what pacaur says in the end (Thinkpad T440p ans `lspci -k` is identical to the Ubuntu specs:

==> dkms install rts5227/1.07 -k 4.13.3-1-ARCH
Error! Bad return status for module build on kernel: 4.13.3-1-ARCH (x86_64)
Consult /var/lib/dkms/rts5227/1.07/build/make.log for more information.

And the log is here:

I'm not really fluent in the C family, so I don't know what's going on or how to fix. Thanks anyway!