Package Details: rts5227-dkms 1.08-1

Git Clone URL: https://aur.archlinux.org/rts5227-dkms.git (read-only, click to copy)
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: None
Last Packager: robertfoster
Votes: 11
Popularity: 0.000000
First Submitted: 2017-06-22 13:19 (UTC)
Last Updated: 2023-04-04 22:25 (UTC)

Dependencies (1)

Required by (0)

Sources (2)

Latest Comments

« First ‹ Previous 1 2 3 4 Next › Last »

rellieberman commented on 2018-06-23 22:21 (UTC) (edited on 2018-06-23 22:34 (UTC) by rellieberman)

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 (UTC)

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 (UTC)

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 (UTC)

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

robertfoster commented on 2018-04-29 15:24 (UTC)

@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 (UTC)

Same as @otcho here...

I'll be please to see this working :)

<deleted-account> commented on 2018-02-15 19:38 (UTC)

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 (UTC) (edited on 2018-02-07 17:31 (UTC) by robertfoster)

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