Package Details: rts5227-dkms 1.07-5

Git Clone URL: https://aur.archlinux.org/rts5227-dkms.git (read-only)
Package Base: rts5227-dkms
Description: Driver to support Realtek RTS5227/5229 SD Card Reader
Upstream URL: http://www.realtek.com.tw/Downloads/downloadsView.aspx?Langid=1&PNid=15&PFid=25&Level=4&Conn=3&DownTypeID=3&GetDown=false
Licenses: GPL2
Submitter: mober
Maintainer: robertfoster
Last Packager: robertfoster
Votes: 3
Popularity: 0.485385
First Submitted: 2017-06-22 13:19
Last Updated: 2018-02-08 20:06

Dependencies (1)

Required by (0)

Sources (4)

Latest Comments

rellieberman commented on 2018-06-23 22:47

Also blacklisting rtsx_pci seems to stop at least 2 other modules from loading (rtsx_pci, rtsx_pci_ms, rtsx_pci_sdmmc), these are all replaced by rts5227?

rellieberman commented on 2018-06-23 22:21

Have you got it to work?

I seems I have 2 issues:

  1. Before I installed this driver I got dmesg errors every time I inserted a card. Now nothing seems to happen at all even though the correct module (rts5227) is loaded.

  2. The module only loads automatically on the first reboot after installation, after that I have to load it manually like mentioned bellow. This still doesn't get the card reader to work. Moreover, even after manually loading rts5227 the card reader doesn't appear in lspci (it did the first time rts5227 was used).

njoyard commented on 2018-06-14 07:59

Quick followup: manually modprobing rtsx_pci solves the issue.

I'll have to find why the modules are no longer inserted at boot.

njoyard commented on 2018-06-14 07:56

Same here, the driver was working (with the same package version and PKGBUILD from @robertfoster below) with a previous kernel, but is no longer.

I have to manually modprobe rts5227 for it to load, which seems to succeed:

[   96.555652] SCSI subsystem initialized
[   96.559899] Initializing Realtek PCIE storage driver...

But then nothing happens when (un)plugging a sdcard.

ochurlaud commented on 2018-04-29 20:49

@robertfoster: my dmesg doesn't log anything concerning sd card when I plug/unplug it.

robertfoster commented on 2018-04-29 15:24

@otcho @ochurlaud please take a look at dmesg. lspci output is not representative of working drivers but, in this case, of assigning a correct identification to device. See for pciids

ochurlaud commented on 2018-04-29 14:22

Same as @otcho here...

I'll be please to see this working :)

otcho commented on 2018-02-15 19:38

Driver isn't loaded with current 4.15.3.1 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)

Cheers!

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
#   https://github.com/astyonax/patched-RTS5227-5229

_pkgbase=rts5227
pkgname=rts5227-dkms
pkgver=1.07
pkgrel=5
pkgdesc="Driver to support Realtek RTS5227/5229 SD Card Reader"
arch=('i686' 'x86_64')
url="http://www.realtek.com.tw/Downloads/downloadsView.aspx?Langid=1&PNid=15&PFid=25&Level=4&Conn=3&DownTypeID=3&GetDown=false"
license=('')
depends=('dkms')
source=("rts5229::git+https://github.com/astyonax/patched-RTS5227-5229.git"
    'dkms.conf'
    'blacklist-rts5227-dkms.conf'
    'rts5227-dkms-suspend.sh'
)

package(){
    sourceDir="${srcdir}/rts5229/rts5229"
    installDir="${pkgdir}/usr/src/${_pkgbase}-${pkgver}"

    # 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}-suspend.sh" "${pkgdir}/usr/lib/systemd/system-sleep/${pkgname}-suspend.sh"

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

md5sums=('SKIP'
         '63ab60ad3295c0aed7219dbddfd50af3'
         '6640eecc5bcc3584397a7d1a33eb028f'
         'e59828310982d2943318900d7017b99f')

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.

All comments