LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-07-2017, 06:07 PM   #1
husarz
LQ Newbie
 
Registered: Dec 2016
Location: Poland
Distribution: Slackware64
Posts: 16

Rep: Reputation: Disabled
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?
 
Old 12-08-2017, 02:32 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 8,717

Rep: Reputation: 887Reputation: 887Reputation: 887Reputation: 887Reputation: 887Reputation: 887Reputation: 887
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

Last edited by business_kid; 12-08-2017 at 02:42 PM.
 
Old 12-08-2017, 03:42 PM   #3
husarz
LQ Newbie
 
Registered: Dec 2016
Location: Poland
Distribution: Slackware64
Posts: 16

Original Poster
Rep: Reputation: Disabled
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.
 
Old 12-09-2017, 02:07 PM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 8,717

Rep: Reputation: 887Reputation: 887Reputation: 887Reputation: 887Reputation: 887Reputation: 887Reputation: 887
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Realtek card reader reports as an external USB storage when empty WinonuX Linux - Hardware 5 03-09-2014 06:47 PM
[SOLVED] Realtek USB SD Card reader with Kernel 3.2.7 not working Grischuna Slackware 3 03-17-2012 12:02 PM
no 5.1 channel audio in built in realtek ALC888 sound card kunalghosh SUSE / openSUSE 2 05-30-2008 09:18 PM
Built-in card reader sofocle Linux - Hardware 6 12-29-2006 07:25 PM
The built-in card reader of my ThinkPad shreks Fedora 1 01-16-2006 11:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration