Skip to content
/ rts5139 Public

Linux kernel drivers module backport for RTS5129/RTS5139 USB MMC card reader

License

Notifications You must be signed in to change notification settings

ljmf00/rts5139

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RTS5129/RTS5139

Overview

This is a temporary fix for RTS5129/RTS5139 USB MMC card reader on Linux 3.16+ kernels.

This ocurred during a transition from 3.15 to 3.16 kernel, as a result of the staging/rts5139 driver (which worked with the RTS5129/RTS5139) being replaced by the newer rtsx driver (which does not work with the RTS5129/RTS5139). This project reverts back to the old drivers as a temporary measure to get things up and running again.

Requirements

  • make
  • gcc
  • linux-headers

Building

  1. Checkout, build and install the replacement driver.
cd /tmp
git clone https://github.com/aurorafossorg/rts5139.git
cd rts5139
make
sudo make install
  1. Blacklist the problematic modules by adding blacklist-rts5139.conf, blacklist-rts5139-dkms.conf, or this to /etc/modprobe.d/:
blacklist rtsx_usb_sdmmc
blacklist rtsx_usb_ms
blacklist rtsx_usb
  1. Then, make sure you generate modules.dep and map files.
sudo depmod -a
  1. Finally, disable module autoloading (and, optionally, also in the initial RAM filesystem)

  2. Blacklist rtsx mmc modules via kernel parameters.

  3. If wanted/needed, update the initramfs.

  4. Reboot, and check to see if the card reader works.

License

GNU General Public License - Version 2, June 1991