You are not logged in.
Pages: 1
Hi hello,
For my lenovo E530 (without fingerprint reader) it has a SD card reader based on the Realtek chipset:
snippet from lspci:
02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5229 PCI Express Card Reader (rev 01)
It dint work, check a few things but no. I use this install for more than 2 month now and this system has had Arch on it for 3 years (so its a "fresh" install). Dint test the cardreader under Linux for like 4 years.
Only today I discovered my cardreader isnt working. so checked /dev/ and the filebrowser, inserted a card, checked dmesg and only have:
[23555.949535] mmc0: new SD card at address 8fe4
[24441.452440] mmc0: card 8fe4 removed
No /dev/mmc or /dev/sd .. also, no automount stuff detected a card.
https://wiki.archlinux.org/index.php/Le … _Edge_E430
The E430 is very similar, but the listed AUR package is gone, even for a HP Envy laptop the links and solutions all go to this AUR module I like to have. I did find some kind of mirror for it. Could dig that up and try it, but I think that the pakage either needs to be rebuild (Me?) and or these pages updated to reflect the weird fact you are on your own again. Anyway, should I make my own Pakagebuild thing, maybe upload it aswell (its even a 404...) here is the commonly used link: https://aur.archlinux.org/packages.php?ID=60832
And yes, under windows (negative sigh) it "just" works. Im willing to try stuff myself, but I wondered why the pakage is gone, or where it got merged under, and what the best course of action would be. I gues there must be more Cardreader users who have some kind of solution for this.
[EDIT]
I found a PKGBUILD mirror: https://searchcode.com/codesearch/view/40079364/
but even with that or just following the included readme.
(Realtek source: http://www.realtek.com.tw/Downloads/dow … 25&PNid=15
direct link http://12244.wpc.azureedge.net/8012244/ … _v1.07.zip)
I get
$ make
cp -f ./define.release ./define.h
make -C /lib/modules/4.10.6-1-ARCH/build/ SUBDIRS=/home/codeasm/realtek/Realtek_RTS5229_Linux_Driver_v1.07/rts5229 modules
make[1]: *** /lib/modules/4.10.6-1-ARCH/build/: No such file or directory. Stop.
make: *** [Makefile:36: default] Error 2
Last edited by CodeAsm (2017-04-07 10:40:58)
Offline
Looks like no one uploaded it to AUR4. https://github.com/aur-archive?utf8=%E2 … &language=
Offline
Looks like no one uploaded it to AUR4. https://github.com/aur-archive?utf8=%E2 … &language=
Thanks for the quick reply,
had to edit the pkgbuild abit, md5 wasnt correct (Can I trust that link... maybe not)
Manualy checked the MD5, same... weird.
Card reader works
now would you or anybody suggest I need to make a new PKGBUILD or what AUR is using today?
My current PKGBUILD that worked was:
# Contributor: Anton Pirogov <anton pirogov at gmail dot com>
pkgname=rts5229
pkgver=1.0.7
pkgrel=5
license=('unknown')
pkgdesc="Realtek PCIE RTS5229 card reader driver"
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"
#md5sums=('0ecf8bea0ea3842391c68da72fe4c425')
depends=('linux-headers')
makedepends=('gcc')
install='rts5229.install'pakage() {
wget http://12244.wpc.azureedge.net/8012244/ … _v1.07.zip
unzip 0001-Realtek_RTS5229_Linux_Driver_v1.07.zip
tar xf Realtek_RTS5229_Linux_Driver_v1.07/rts5229.tar.bz2
cd rts5229
sed '41 c\\tcp $(TARGET_MODULE).ko ${DESTDIR}/lib/modules/$(shell uname -r)/kernel/drivers/scsi -f' Makefile > MakefileMod
rm Makefile
mv MakefileMod Makefile
mkdir -p $pkgdir/lib/modules/$(uname -r)/kernel/drivers/scsi
make
make DESTDIR="$pkgdir" install
}
Offline
The checksum failed because there is no source. That function is ridiculous, there is no reason to manually download and extract the source archive ... especially using tools that are not part of base-devel.
That would need a lot of fixing up before going to the AUR. (Why is the license "unknown", building should be in a build function not a package function ...)
Here's a better start (using the 1.10 source):
pkgname=rts_pstor
pkgver=1.10
pkgrel=1
license=('GPL2')
pkgdesc="Realtek PCIE RTS5229 card reader driver"
arch=('i686' 'x86_64')
url="http://www.realtek.com/"
source=('http://12244.wpc.azureedge.net/8012244/drivers/rtdrivers/pc/crc/0001-rts_pstor.tar.bz2')
sha256sums=('21d819a9b89f029a86fdc807f212ca38ed903e071bed204b2ddb84b2a017a31f')
build() {
cd "$pkgname"
make
}
package() {
cd "$pkgname"
make DESTDIR="$pkgdir" install
}I'm not familiar with PKGBUILDs for kernel modules, but there are plenty of others to look at to see how to run the build.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
[EDIT] Right, Thank you Trilby.
I checked what code you showed me, and wondered how diferent the drivers must be. well, someone probably already made a great kernel module
Instead of trying to make a working pkgbuild for a kernel module (Wich I probably would have found very intresting)
I found (you dont have to go there) https://community.linuxmint.com/hardware/view/20695 where they explain their problem
Basicly DONT install and/or build these pakages, go for the rtsx_pci kernel modules
I uninstalled (hopefully correct (wich pacman -R rts5229)
and
[qoute]
modprobe mmc_block rtsx_pci rtsx_pci_sdmmc
[/qoute]
then rebuild your initramfs (I just went full noob, mkinitcpio -p linux)
Now I hope rts5229 isnt working somewhere still and rtsx_pci is the right way to go. wich means that any wiki pages should be helped with this new method.
if so, How do I determine for good that my kernel is doing the rtsx_pci modules and no stuff from the rts5229 build pakage?
lsmod yields
mmc_core 122880 2 rtsx_pci_sdmmc,mmc_block
...
rtsx_pci 49152 2 rtsx_pci_sdmmc,rtsx_pci_ms
If I would have tried or found any info on that rtsx_pci would work for my cardreader, I would not have been stuck tday. So to help, others. Did I correctly esptablish conclusion that rtsx_pci is now working and no rts5229? I rebooted ofcourse and inserting and removing IS detected. I had NO SD card in the laptop while booting. So I dont have the problems stated at that linuxmint website.
Orgiginal post: Would you suggest its better to let people downoad and install the pakage from source themselves or making a AUR pakage anyway ( I have no experiance with this)
or spam the original authors in the hopes they still have intrest in this?
Last edited by CodeAsm (2017-04-07 12:28:42)
Offline
If you have the time and will to investigate this further I'd say it would be worth inquiring about this in the linux-mmc mailing list after you gather some info about your hardware and which driver (if any) is loaded for the card reader.
From your description it seems that there is a kernel driver that supports your card reader but for some reason it isn't working. I'm basing my guess on the fact that it detectc that a card is inserted and removed, I suppose that implies there is a driver for the hardware otherwise you would see nothing.
In your case it might be a bug or just that the dev has code to make it work but no hardware to test and no one has come forward to help test it.
R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K
Offline
Thanks rookie,
Yeah I updated my post (reply to Trilby) and think I was mislead by the hardware name (RTS5229) and people not updating or maintaining these (wiki) pages.
It seems the module rtsx_pci would do a fine job.
if I determined this correctly (how can I further check this beyound, well it "still works" and only see rtsx_pci modules in lsmod.
I should try ask or edit these wiki pages I mentiod earlier (those where the only pages on Arch giving me info on how to get my reader to work)
There is no page for my laptop, but would it be good to suggest the "better" kernel module instead of an now non-excistant AUR pakage?
Last edited by CodeAsm (2017-04-07 12:34:35)
Offline
The drivers from the realtek download page are 5 years old. Likely there was no official kernel module at that time. So if rtsx_pci works, I would say it's the way to go. ![]()
btw: building the old modules from the realtak downloads fails on my system..
Last edited by mis (2017-04-07 12:58:04)
Offline
Failed here till I used that last pkgbuild, worked and installed. SD card worked. But I think rtsx_pci is the best way to go, only some dont seem to update their laptop wikipages and so if you search for your chipset, end up there, nobody seems to name their chipset if the card just works. (if you need yours to work, go rtsx_pci)
Hope someone could tell me I did it right, so rtsx_pci works and not that weird compiled pakage I had made (without correct md5 and stuff) maybe rtsx_pci contains the realtek source somewhere too.
Offline
if you need yours to work, go rtsx_pci
I don't have such a device. ![]()
Offline
To make sure the out of tree realtek module is not there somewhere you can remove it with pacman, recreate your initramfs (just for good measure) and then reboot (which you have done it seems).
You will need more than rtsx_pci, most probably also rtsx_pci_sdmmc and a few other modules as you have found out by the output of lsmod, all of which should be automatically loaded, if not then if you know which module you need to load you can configure your system to load the needed modules on every boot.
To find exactly which hardware you have check the output of 'lspci -nn', that should give you at least a vendor_id:product_id and possibly a hardware revision.
You could create a page for your specific model of laptop but usually the problems and solutions will depend mostly on the specific hardware (card reader and its hardware revision) than the whole laptop.
R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K
Offline
Pages: 1