Ubuntu

10ec:5286 [Clevo W310CZ] Realtek Card Reader not working.

Reported by exzemat on 2013-11-12
26
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Linux
Unknown
Unknown
linux (Ubuntu)
Medium
Unassigned

Bug Description

I have a Clevo W310CZ. No result when i put a sd card in with ubuntu 13.10.

Upstream post: http://marc.info/?l=linux-mmc&m=138774674016006&w=4

WORKAROUND: Only in 12.04, as this doesn't work for 13.10:
1. Download:
https://bugs.launchpad.net/ubuntu/+source/udisks/+bug/971876/+attachment/2991730/+files/rts_bpp.tar.bz2
2. Extract archive, edit rtsx.c:
2.1. Remove __devinit from rtsx_probe in line 893
2.2. Remove __devexit from rtsx_remove in line 1048
2.3. Extract rtsx_remove from __devexit_p() in line 1074
3. Compile with "make"
4. As root, make install
5. Blacklist rtsx_pci in /etc/modprobe.d/rtsx_blacklist.conf (add "blacklist rtsx_pci")
6. 'modprobe rts_bpp'
7. run mkinitcpio -p linux
8. Restart the machine

lsmod
Module Size Used by
joydev 17377 0
parport_pc 32701 0
ppdev 17671 0
rfcomm 69070 12
bnep 19564 2
vesafb 13828 0
snd_hda_codec_hdmi 41117 1
snd_hda_codec_via 27860 1
x86_pkg_temp_thermal 14162 0
intel_powerclamp 14705 0
coretemp 13435 0
kvm_intel 138538 0
kvm 431315 1 kvm_intel
crct10dif_pclmul 14289 0
crc32_pclmul 13113 0
ghash_clmulni_intel 13259 0
cryptd 20329 1 ghash_clmulni_intel
arc4 12608 2
snd_hda_intel 48171 3
snd_hda_codec 188738 3 snd_hda_codec_hdmi,snd_hda_codec_via,snd_hda_intel
snd_hwdep 13602 1 snd_hda_codec
iwldvm 237440 0
snd_pcm 102033 3 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
mac80211 596969 1 iwldvm
microcode 23518 0
snd_page_alloc 18710 2 snd_pcm,snd_hda_intel
btusb 28267 0
bluetooth 371880 22 bnep,btusb,rfcomm
snd_seq_midi 13324 0
snd_seq_midi_event 14899 1 snd_seq_midi
snd_rawmidi 30095 1 snd_seq_midi
snd_seq 61560 2 snd_seq_midi_event,snd_seq_midi
psmouse 97626 0
serio_raw 13413 0
iwlwifi 165398 1 iwldvm
lpc_ich 21080 0
cfg80211 479757 3 iwlwifi,mac80211,iwldvm
wmi 19070 0
snd_seq_device 14497 3 snd_seq,snd_rawmidi,snd_seq_midi
snd_timer 29433 2 snd_pcm,snd_seq
i915 655752 3
drm_kms_helper 52651 1 i915
video 19318 1 i915
snd 69141 17 snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_via,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec,snd_hda_intel,snd_seq_device,snd_seq_midi
drm 296739 4 i915,drm_kms_helper
mei_me 18421 0
mei 77692 1 mei_me
i2c_algo_bit 13413 1 i915
mac_hid 13205 0
soundcore 12680 1 snd
lp 17759 0
parport 42299 3 lp,ppdev,parport_pc
r8169 67341 0
mii 13934 1 r8169
ahci 25819 4
libahci 31898 1 ahci
---
ApportVersion: 2.12.7-0ubuntu3
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: ubuntu 2909 F.... pulseaudio
CasperVersion: 1.336ubuntu1
CurrentDesktop: Unity
DistroRelease: Ubuntu 14.04
LiveMediaBuild: Ubuntu 14.04 LTS "Trusty Tahr" - Alpha amd64 (20131222)
MachineType: Notebook W310CZ
MarkForUpload: True
Package: linux (not installed)
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: initrd=/casper/initrd.lz file=/cdrom/preseed/username.seed boot=casper quiet splash -- BOOT_IMAGE=/casper/vmlinuz.efi
ProcVersionSignature: Ubuntu 3.12.0-7.15-generic 3.12.4
RelatedPackageVersions:
 linux-restricted-modules-3.12.0-7-generic N/A
 linux-backports-modules-3.12.0-7-generic N/A
 linux-firmware 1.117
Tags: trusty
Uname: Linux 3.12.0-7-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
dmi.bios.date: 05/03/2013
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 4.6.5
dmi.board.asset.tag: Tag 12345
dmi.board.name: W310CZ
dmi.board.vendor: Notebook
dmi.board.version: V2.0
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: Notebook
dmi.chassis.version: N/A
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr4.6.5:bd05/03/2013:svnNotebook:pnW310CZ:pvrNotApplicable:rvnNotebook:rnW310CZ:rvrV2.0:cvnNotebook:ct10:cvrN/A:
dmi.product.name: W310CZ
dmi.product.version: Not Applicable
dmi.sys.vendor: Notebook

exzemat (exzemat) on 2013-11-12
description: updated
summary: - Realtek Card Reader RTL8411 Device 5289 (PCI 03:00.0)
+ Realtek Card Reader Device 5286 (PCI 03:00.0)
exzemat (exzemat) wrote :

soory, also affect kubuntu or xubuntu 13.10

exzemat (exzemat) wrote :

i come back on ubuntu 12.04 lts.
if you need somthing that i can test in live usb, tell me

exzemat (exzemat) on 2013-12-04
description: updated
exzemat (exzemat) wrote :

it's seems that the other one realteck chipset
05:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. Device 5289 (rev 01)
is also affected.
see:
http://forum.ubuntu-fr.org/viewtopic.php?id=1348281 (in french)

exzemat (exzemat) on 2013-12-14
description: updated
description: updated
description: updated
exzemat (exzemat) on 2013-12-15
description: updated
exzemat (exzemat) wrote :

maybe possible to ad recent patch
https://lkml.org/lkml/2013/11/1/65

exzemat, it looks like the kernel.org link is referring to RTL 0x5209, not the RTL 0x5289 device: https://bugzilla.kernel.org/show_bug.cgi?id=57061#c18

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in udisks (Ubuntu):
status: New → Confirmed
Changed in udisks (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Incomplete

apport information

tags: added: apport-collected trusty
description: updated
exzemat (exzemat) wrote : CRDA.txt

apport information

apport information

apport information

exzemat (exzemat) wrote : Lspci.txt

apport information

exzemat (exzemat) wrote : Lsusb.txt

apport information

apport information

apport information

apport information

apport information

apport information

exzemat (exzemat) wrote : RfKill.txt

apport information

exzemat (exzemat) wrote : UdevDb.txt

apport information

apport information

apport information

description: updated

apport information

apport information

exzemat (exzemat) wrote : CRDA.txt

apport information

apport information

apport information

exzemat (exzemat) wrote : Lspci.txt

apport information

exzemat (exzemat) wrote : Lsusb.txt

apport information

apport information

apport information

apport information

exzemat (exzemat) wrote : RfKill.txt

apport information

exzemat (exzemat) wrote : UdevDb.txt

apport information

apport information

apport information

I had 2 reports with ubuntu 14.04 Daily build tested in live usb : sd card still doesn't mount)

- first with apport-collect -p linux
- second with SUDO apport-collect -p linux (because some informations seems no present without root's permission)

I specified which one with (Sudo) in text/plain descriptions

I will do new report with latest upstream kernel, when I will understood how test this... (need to read some instructions and may be reinstall distribution : I need working sd card reader for chrismas's time so I reinstalled ubuntu 12.04 with rts_bpp driver which work fine)

exzemat (exzemat) on 2013-12-22
description: updated
exzemat (exzemat) on 2013-12-22
tags: added: kernel-bug-exists-upstream kernel-bug-exists-upstream-v3.13-rc3-trusty
removed: apport-collected trusty
exzemat (exzemat) wrote :

ok, I have installed 14-04, mainline kernel v3.13-rc3-trusty, and reboot on.
no sd card mount
I update report.
hope that it could be help.

I will reinstall monday 12.04 for next 2 weeks, tell me when/if you want i test something/patch/kernel...
thanks

tags: added: apport-collected trusty
description: updated
Changed in udisks (Ubuntu):
status: Incomplete → Confirmed
description: updated
tags: added: precise saucy
affects: udisks (Ubuntu) → linux (Ubuntu)
Changed in linux (Ubuntu):
status: Confirmed → Incomplete
summary: - Realtek Card Reader Device 5286 (PCI 03:00.0)
+ 10ec:5286 [Clevo W310CZ] Realtek Card Reader not working.
exzemat (exzemat) wrote :

I don' t know Christopher.
you want that i test some previous version, which one (so many) ?

however, i think that no one driver support this sd card reader before precise (it's a "recent" chipset).
The driver rts_bpp was created for ubuntu 12.04, before, no solution existed for this chipset:
see https://bugs.launchpad.net/ubuntu/+source/udisks/+bug/971876

But after 12.04( for recent kernel of 12.04 too, as you can see on the lauchpad bug mentioned above, but some manipulations exist to force the rts_bpp driver), the driver rtsx_pci was incorpored to kernel (and supposed to support 5286/5289) replace rts_bpp : see last comment of colin-law (on the bug mentionned above)

no one version after 12.04 (i tested 13.04 and 13.10) support rts_bpp. but it's seems the driver rtsx_pci doesn't support this chipset realtek 5286/5289

i tested this laptop on last fedora, and archlinux, no more result...so this bug concern all distributions/recent kernel (>3.2.0-36)

exzemat (exzemat) wrote :

Christopher, i see that you change status: Confirmed → Incomplete.
what do you miss ?
some information that i could give ,

exzemat, the issue you are reporting is an upstream one. Could you please report this problem through the appropriate channel (would check with linux-mmc) by following the instructions _verbatim_ at https://wiki.ubuntu.com/Bugs/Upstream/kernel#KernelTeam.2BAC8-KernelTeamBugPolicies.Overview_on_Reporting_Bugs_Upstream ?

Please provide a direct URL to your post once you have made it so that it may be tracked.

Thank you for your understanding.

Changed in linux (Ubuntu):
status: Incomplete → Triaged
description: updated
exzemat (exzemat) wrote :

oups,...
I've already created bug on mozilla/kernel
https://bugzilla.kernel.org/show_bug.cgi?id=67491

I see afetr that the protocol is mail to maintener before
I send email to : <email address hidden>

hope that will be efficient...

(I don't speech english very well, so sorry...)

exzemat, yes, you would want to e-mail the linux-mmc mailing list, and follow the kernel.org format when you do. Unfortunately, your upstream bugzilla report didn't follow the kernel.org format, so it wouldn't have the information developers want, and is on bugzilla, which is largely ignored by upstream developers.

exzemat (exzemat) wrote :

I edit bugzilla bug to follow the kernel.org format (copy-past of my email to <email address hidden>)

description: updated
Alessio Gatti (volperossa) wrote :

I don't kow exectly why, but I've been abe to resolve ( see now SD cards and can read/write them!) on my ASUS X551CA with Ubuntu 12.04 LTS and kernel 3.8.0-34-generic 64bit.

Please remember that for 12.04 the issue was resolved, but for kernels following 3.2 the fix was not working anymore .Today I made a silly attempt: I went to Realtek site and downloaded the "most recent" driver, that is for 5229 card (my lspc lists a 5286 instead). To do that, I:

1) Downloaded the driver from Realtek site (link: http://www.realtek.com.tw/Downloads/downloadsView.aspx?Langid=1&PNid=15&PFid=25&Level=4&Conn=3&DownTypeID=3&GetDown=false)

2) attempt to Compile the driver via command make

3) You get a set of errors that you can correct by editing file rtsx.c, along the line of the first comment in this bug, i.e. removing any reference to deprecated function "__devinit". Ignore warning messages, they're OK

4) do a sudo make install

5) issue a command depmod that will do nothing :-)

6) Reboot your PC, and when you insert an SD card it will see it !!!

I followed the instructions for make and install of this web page: http://pclinuxoshelp.com/index.php/Compiling_drivers_for_Realtek_card_reader

Alessio Gatti, thank you for your comment. So your hardware and problem may be tracked, could you please file a new report with Ubuntu by executing the following in a terminal while booted into a Ubuntu repository kernel (not a mainline one) via:
ubuntu-bug linux

For more on this, please read the official Ubuntu documentation:
Ubuntu Bug Control and Ubuntu Bug Squad: https://wiki.ubuntu.com/Bugs/BestPractices#X.2BAC8-Reporting.Focus_on_One_Issue
Ubuntu Kernel Team: https://wiki.ubuntu.com/KernelTeam/KernelTeamBugPolicies#Filing_Kernel_Bug_reports
Ubuntu Community: https://help.ubuntu.com/community/ReportingBugs#Bug_reporting_etiquette

When opening up the new report, please feel free to subscribe me to it.

Thank you for your understanding.

Helpful bug reporting tips:
https://wiki.ubuntu.com/ReportingBugs

exzemat (exzemat) wrote :

Dear Alessio,
what is the difference betwen your manipulation and the manipulation describe in the first post ?
I think that the result is similar.
on my laptop (with 3.8 kernel on ubuntu 12.04) no problem to install the realtek driver for this sd card (after manipulation described in the first post), but only for 12.04.
the problem is for recent ubuntu versions...
best regards

Alessio Gatti (volperossa) wrote :

@exzemat,
I'm not sure I did everything right (I'm not an expert in Linux), but my attempts to apply the patch of THIS thread were always unsuccessful: I could not compile / add the module and the SD card reader was dead.

It was only when I applied the same manupulations described in post #1 directly to the driver files provided by Realtek in their site, but FOR A DIFFERENT CARD that my PC could use the SD card.

In full honesty I think there is a chance that the COMBINATION of the two actions (failure to install this 3d patch + attempt to install the driver from Realtek site) may have worked.

@penalvch,
thank you very much for your interest and support in this issue. Unfortunately I'm far from my PC for a while, but I'll definitively do what you suggest as soon as I can put my hands on it again. So, be patient with me: this may take still some days (busy week ahead!).

Alex

exzemat (exzemat) wrote :

after some manipulations, I succed to install realtek 5286/5289 driver rts-bpp.
In fact it's seems that field proc_info indeed is not presented in kernel sources on ubuntu 13.10.
so, need to commented.
see step 3
https://forums.gentoo.org/viewtopic-t-974708-start-0.html

to resume
WORKAROUND: work for 13.10:
1. Download:
https://bugs.launchpad.net/ubuntu/+source/udisks/+bug/971876/+attachment/2991730/+files/rts_bpp.tar.bz2
2. Extract archive, edit rtsx.c:
2.1. Remove __devinit from rtsx_probe in line 893
2.2. Remove __devexit from rtsx_remove in line 1048
2.3. Extract rtsx_remove from __devexit_p() in line 1074
2.4. Remove line 125 to 156
static int proc_info (struct Scsi_Host *host, char *buffer,
  char **start, off_t offset, int length, int inout)
{
 char *pos = buffer;

 if (inout)
  return length;

 SPRINTF(" Host scsi%d: %s\n", host->host_no, CR_DRIVER_NAME);

 SPRINTF(" Vendor: Realtek Corp.\n");
 SPRINTF(" Product: Barossa Plusplus\n");
 SPRINTF(" Version: %s\n", DRIVER_VERSION);
 SPRINTF(" Build: %s\n", __TIME__);

 /*
  * Calculate start of next buffer, and return value.
  */
 *start = buffer + offset;

 if ((pos - buffer) < offset)
  return (0);
 else if ((pos - buffer - offset) < length)
  return (pos - buffer - offset);
 else
  return (length);
}

2.5 Remove line 259
.proc_info = proc_info,

3. Compile with "make"
4. As root, make install
5. Blacklist rtsx_pci in /etc/modprobe.d/rtsx_blacklist.conf (add "blacklist rtsx_pci")
6. 'modprobe rts_bpp'
7. run mkinitcpio -p linux
8. Restart the machine

exzemat (exzemat) wrote :

add my rtsx.c

teledyn (garym-teledyn) wrote :

7. run mkinitcpio -p linux

my system doesn't have this command -- is there a package I need to install or some subpath to it?

exzemat (exzemat) wrote :

No, it's a mistake (mine).
mkinitcpio is need for some distribution (archlinux for exemple), but not for ubuntu
ubuntu doesn't need the 7. step

Takeuchi (g-takeuchi) wrote :

I tried the solution, but I got a "FATAL: Module rtl_bpp not found." when running mod_probe

Takeuchi (g-takeuchi) wrote :

My Ubuntu 13.10 mounted the card reader out of the box, but when I copy large files, it ends corrupted.

Any ideas?

Takeuchi, thank you for your comment. So your hardware and problem may be tracked, could you please file a new report with Ubuntu by executing the following in a terminal while booted into a Ubuntu repository kernel (not a mainline one) via:
ubuntu-bug linux

For more on this, please read the official Ubuntu documentation:
Ubuntu Bug Control and Ubuntu Bug Squad: https://wiki.ubuntu.com/Bugs/BestPractices#X.2BAC8-Reporting.Focus_on_One_Issue
Ubuntu Kernel Team: https://wiki.ubuntu.com/KernelTeam/KernelTeamBugPolicies#Filing_Kernel_Bug_reports
Ubuntu Community: https://help.ubuntu.com/community/ReportingBugs#Bug_reporting_etiquette

When opening up the new report, please feel free to subscribe me to it.

Thank you for your understanding.

Helpful bug reporting tips:
https://wiki.ubuntu.com/ReportingBugs

exzemat (exzemat) wrote :

After some update (on Ubuntu 13.10), I need to reinstall rts-bpp.
(just step 3. and 4.,no need to blacklist anymore)
no problem to reinstall, but I don't understand why.
any idea to make the change permanent ?

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.