Git Product home page Git Product logo

realtek-rts5229-linux-driver's Introduction

General Information

Linux driver for Realtek PCI-Express card reader chip.

Build Steps

  1. Clone this repo
  2. Copy the whole folder into /usr/src/rts5229-1.07/
  3. sudo dkms install -m rts5229 -v 1.07
  4. Copy blacklist-rts5229.conf to /etc/modprobe.d/ (Optional)
  5. sudo update-initramfs -u
  6. sudo dkms autoinstall
  7. reboot your computer

Note: Root privilege is required in step 2, 3 and 4

If you wanna unload the module after suspend, run the following command:

$ echo SUSPEND_MODULES="rts5229" | sudo tee -a /etc/pm/config.d/modules

All procedure:

git clone https://github.com/Zibri/Realtek-rts5229-linux-driver.git
sudo mkdir /usr/src/rts5229-1.07
sudo cp Realtek-rts5229-linux-driver/* /usr/src/rts5229-1.07
cd /usr/src/rts5229-1.07
sudo su
> dkms install -m rts5229 -v 1.07
> exit
sudo mkinitcpio -p linux
sudo dkms autoinstall
reboot

realtek-rts5229-linux-driver's People

Contributors

bionade24 avatar buzden avatar elevate08 avatar kmahyyg avatar rubi-l avatar zibri avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

realtek-rts5229-linux-driver's Issues

rts5227 fails to build module on kernel >5.16

Hello, the change in the kernel is torvalds/linux@af049df
makes the module build fails.

the error:

Deprecated feature: REMAKE_INITRD

Building module:
cleaning build area...
make -j4 KERNELRELEASE=5.16.2-arch1-1 -C /usr/lib/modules/5.16.2-arch1-1/build M=/var/lib/dkms/rts5227/1.07/build....(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.16.2-arch1-1 (x86_64)
Consult /var/lib/dkms/rts5227/1.07/build/make.log for more information.`

if you can update the driver

Best regards

"dkms install..." gives Error

Hi

#dkms install -m rts5229 -v 1.07
Error! Could not locate dkms.conf file.
File: /var/lib/dkms/rts5229/1.07/source/dkms.conf does not exist.

#/var/lib/dkms/rts5229/1.07/source# ls
debug.h general.h README.txt rtsx_chip.h rtsx_transport.c
define.debug Makefile rtsx.c rtsx.h rtsx_transport.h
define.h Makefile_original rtsx_card.c rtsx_scsi.c sd.c
define.release ms.c rtsx_card.h rtsx_scsi.h sd.h
general.c ms.h rtsx_chip.c rtsx_sys.h trace.h

Not sure why dkms is looking in "source" dkms.conf is in the "build" directory. Any ideas?
Thanks,
D

bug on new kernel

Error! Bad return status for module build on kernel: 5.4.0-96-generic (x86_64)
Consult /var/lib/dkms/rts-5229/1.05sutton9/build/make.log for more information.
dpkg: error processing package rts-5229-dkms (--configure):
installed rts-5229-dkms package post-installation script subprocess returned er
ror exit status 10
Errors were encountered while processing:
rts-5229-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)

in log file

/var/lib/dkms/rts-5229/1.05sutton9/build/rtsx.h:193:2: error: implicit declaration of function ‘do_gettimeofday’; did you mean ‘do_settimeofday64’? [-Werror=implicit-function-declaration]
193 | do_gettimeofday(&tv);

Ive got this

Ubuntu not detecting sd card.

I followed step 1-3 in README.txt like you explained.
In step 4 I got permission denied so i opened blacklist.conf in nano and added rtsx_pci to the document.
After reboot ubuntu still wont detect the sd card.

Im dual booting ubuntu/windows and both the card and card reader are working in windows.
Any idea what I can try?

Thanks
Andreas

No rule to make target error

Hello :)

After spending an inordinate amount of time trying to get the sd card reader working in my old Alienware Area-51 R2 (formerly windows 10 now, ubuntu) ... I downloaded the latest version from realtek and ran into the "#include <linux/vmalloc.h>" errors, which I fixed by adjusting the various *.c files... unfortunately with that version, and yours I end up with the same error as follows:

`patrick@Area-51-R2:~/Downloads/realtek/Realtek-rts5229-linux-driver$ sudo make

cp -f ./define.release ./define.h
make -C /lib/modules/4.13.0-46-generic/build/ SUBDIRS= modules
make[1]: Entering directory '/usr/src/linux-headers-4.13.0-46-generic'
make[2]: *** No rule to make target 'arch/x86/entry/syscalls/syscall_32.tbl', needed by 'arch/x86/include/generated/asm/syscalls_32.h'. Stop.
arch/x86/Makefile:253: recipe for target 'archheaders' failed
make[1]: *** [archheaders] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.13.0-46-generic'
Makefile:35: recipe for target 'default' failed
make: *** [default] Error 2`

have you found a workaround? :)

fyi

uname -a Linux Area-51-R2 4.13.0-46-generic #51-Ubuntu SMP Tue Jun 12 12:36:29 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Cheers,

--patrick

How about rtsx_pci_sdmmc and rtsx_pci_ms

When I remove rtsx_pci from my system, it seems rtsx_pci_sdmmc and rtsx_pci_ms depend on it. Are those two no longer needed? When I tried to insert rtsx_pci_sdmmc it complained about an unknown symbol in the module, so I guess they would also need to be compiled?

After inserting rts5229 there is no kernel message when inserting an SD card.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.