LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Realtek USB built-in Card Reader (https://www.linuxquestions.org/questions/linux-hardware-18/realtek-usb-built-in-card-reader-4175619154/)

husarz 12-07-2017 05:07 PM

Realtek USB built-in Card Reader
 
Hey,

I have Realtek USB built-in Card Reader:

Bus 002 Device 003: ID 0bda:0186 Realtek Semiconductor Corp. Card Reader

as I see in the kernel (Slackware64 14.2 with 4.9.25) there are three modules which are relevant to this reader:

usb_storage
rtsx_usb
ums-realtek

where the last one as I see from the kernel documentation/help is only to handle the card reader power saving mode:
'Say Y here to include additional code to support the power-saving funct for Realtek RTS51xx USB card readers.'

I have problems with the reader after wkae up from hibernation it returns

Code:

blk_update_request: I/O error, dev sdb, sector 0
Buffer I/O error on dev sdb, logical block 0, async page read
Dev sdb: unable to read RDB block 0

when only usb_storage is used. Now I'm testing all three. My question is if someone has this Realtek USB built-in Card Reader and which modules should be used with it?

business_kid 12-08-2017 01:32 PM

I've a Realtek reader; They're pretty crap, but who cares? Here's mine
Code:

Bus 001 Device 003: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
I have built my own kernel 4.9.45 on Slackware-14.2 and there's a driver for RTS5129/39 card readers. I had a look
Code:

bash-4.3$ lsmod |grep mmc 
mmc_block              28044  0
rtsx_usb_sdmmc        12160  0
mmc_core              100690  2 rtsx_usb_sdmmc,mmc_block
rtsx_usb                9615  1 rtsx_usb_sdmmc

If you're building your own kernel or initrd, you need probably all of the above 4 modules.
EDIT: From the look of your lsusb output, you need to update your usb.ids and pci.ids. There's an update-pciids binary in Slackware, and you can easily do something similar for the usb.ids with wget

husarz 12-08-2017 02:42 PM

Thanks for your reply business_kid. I forgot that it is possible to update those ids.

Code:

-rw-r--r-- 1 root root 556422 Mar  7  2016 /usr/share/hwdata/usb.ids
but it wasn't so old ;p

I see that you have one more module loaded that I don't have - rtsx_usb_sdmmc. Will recompile the kernel and load it. Surprisingly even if those modules are available (rtsx and ums) they are not loaded when usb_storage is loaded. I think they should be.

business_kid 12-09-2017 01:07 PM

I specifically have the module for RTS5129 and I have the RTS5129; I also have 'pertinent modules' selected which allows the kernel build machinery to say "oh yeah, if he wants that, then he has to have this."

Despite this, my sd card reader is a POS, or the driver is crap. I'm having to kill bash because any disk utilities are hanging atm. Mind you, I am banging things about a bit.


All times are GMT -5. The time now is 10:17 AM.