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

Bug #1250605 reported by exzemat
52
This bug affects 8 people
Affects Status Importance Assigned to Milestone
Linux
Unknown
Unknown
linux (Ubuntu)
Incomplete
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: In kernel 3.16-rc7, uncomment rtsx_pci in /etc/modprobe.d/rtsx_blacklist.conf .

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)
description: updated
summary: - Realtek Card Reader RTL8411 Device 5289 (PCI 03:00.0)
+ Realtek Card Reader Device 5286 (PCI 03:00.0)
Revision history for this message
exzemat (exzemat) wrote :

soory, also affect kubuntu or xubuntu 13.10

Revision history for this message
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)
description: updated
Revision history for this message
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)
description: updated
description: updated
description: updated
exzemat (exzemat)
description: updated
Revision history for this message
exzemat (exzemat) wrote :
Revision history for this message
exzemat (exzemat) wrote :

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

Revision history for this message
Michael B. Sumulong (mbsumulong) wrote :

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

Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in udisks (Ubuntu):
status: New → Confirmed
penalvch (penalvch)
Changed in udisks (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Incomplete
Revision history for this message
exzemat (exzemat) wrote : BootDmesg.txt

apport information

tags: added: apport-collected trusty
description: updated
Revision history for this message
exzemat (exzemat) wrote : CRDA.txt

apport information

Revision history for this message
exzemat (exzemat) wrote : CurrentDmesg.txt

apport information

Revision history for this message
exzemat (exzemat) wrote : IwConfig.txt

apport information

Revision history for this message
exzemat (exzemat) wrote : Lspci.txt

apport information

Revision history for this message
exzemat (exzemat) wrote : Lsusb.txt

apport information

Revision history for this message
exzemat (exzemat) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
exzemat (exzemat) wrote : ProcEnviron.txt

apport information

Revision history for this message
exzemat (exzemat) wrote : ProcInterrupts.txt

apport information

Revision history for this message
exzemat (exzemat) wrote : ProcModules.txt

apport information

Revision history for this message
exzemat (exzemat) wrote : PulseList.txt

apport information

Revision history for this message
exzemat (exzemat) wrote : RfKill.txt

apport information

Revision history for this message
exzemat (exzemat) wrote : UdevDb.txt

apport information

Revision history for this message
exzemat (exzemat) wrote : UdevLog.txt

apport information

Revision history for this message
exzemat (exzemat) wrote : WifiSyslog.txt

apport information

description: updated
Revision history for this message
exzemat (exzemat) wrote : AlsaInfo.txt

apport information

Revision history for this message
exzemat (exzemat) wrote : BootDmesg.txt

apport information

Revision history for this message
exzemat (exzemat) wrote : CRDA.txt

apport information

Revision history for this message
exzemat (exzemat) wrote : CurrentDmesg.txt

apport information

Revision history for this message
exzemat (exzemat) wrote : IwConfig.txt

apport information

Revision history for this message
exzemat (exzemat) wrote : Lspci.txt

apport information

Revision history for this message
exzemat (exzemat) wrote : Lsusb.txt

apport information

Revision history for this message
exzemat (exzemat) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
exzemat (exzemat) wrote : ProcInterrupts.txt

apport information

Revision history for this message
exzemat (exzemat) wrote : ProcModules.txt

apport information

Revision history for this message
exzemat (exzemat) wrote : RfKill.txt

apport information

Revision history for this message
exzemat (exzemat) wrote : UdevDb.txt

apport information

Revision history for this message
exzemat (exzemat) wrote : UdevLog.txt

apport information

Revision history for this message
exzemat (exzemat) wrote : WifiSyslog.txt

apport information

Revision history for this message
exzemat (exzemat) wrote : Re: Realtek Card Reader Device 5286 (PCI 03:00.0)

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)
description: updated
exzemat (exzemat)
tags: added: kernel-bug-exists-upstream kernel-bug-exists-upstream-v3.13-rc3-trusty
removed: apport-collected trusty
Revision history for this message
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
penalvch (penalvch)
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.
Revision history for this message
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)

Revision history for this message
exzemat (exzemat) wrote :

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

Revision history for this message
penalvch (penalvch) wrote :

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
Revision history for this message
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...)

Revision history for this message
penalvch (penalvch) wrote :

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.

Revision history for this message
exzemat (exzemat) wrote :

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

penalvch (penalvch)
description: updated
Revision history for this message
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

Revision history for this message
penalvch (penalvch) wrote :

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

Revision history for this message
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

Revision history for this message
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

Revision history for this message
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

Revision history for this message
exzemat (exzemat) wrote :

add my rtsx.c

Revision history for this message
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?

Revision history for this message
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

Revision history for this message
Takeuchi (g-takeuchi) wrote :

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

Revision history for this message
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?

Revision history for this message
penalvch (penalvch) wrote :

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

Revision history for this message
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 ?

Changed in linux (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
exzemat (exzemat) wrote :

I tested mainline kernel and uncomment rtsx_pci in /etc/modprobe.d/rtsx_blacklist.conf.
inserted SD card is mounted now !
So fixed in mainline

tags: added: kernel-fixed-upstream-3.16-rc7
Revision history for this message
exzemat (exzemat) wrote :

Forget mentioned the mainline kernel : linux-headers-3.16.0-031600rc7

Revision history for this message
penalvch (penalvch) wrote :

exzemat, just to clarify, if you have to uncomment rtsx_pci in /etc/modprobe.d/rtsx_blacklist.conf when testing the mainline for it to work, it's not considered fixed, as you had to implement a WORKAROUND to get it to work.

Would the latest mainline kernel http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.16-utopic/ work without the WORKAROUND?

Changed in linux (Ubuntu):
status: Fix Released → Triaged
Revision history for this message
exzemat (exzemat) wrote :

Hello Christopher.
I uncomment rtsx_pci in in /etc/modprobe.d/rtsx_blacklist.conf, because I blacklisted rtsx_pci before (see step 5 in the present bug description workaround) when I used rts-bpp with ubuntu 14.04 kernel.

So, I think that normally rtsx_blacklist.conf is empty...

Indeed, I will test the latest mainline kernel
Best regards

Revision history for this message
Eus (eus-member) wrote :

$ sudo lspci -v -s 03:00.0
03:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. Device 5286 (rev 01)
 Subsystem: ASUSTeK Computer Inc. Device 202f
 Flags: fast devsel, IRQ 16
 Memory at f7c00000 (32-bit, non-prefetchable) [size=64K]
 Capabilities: [40] Power Management version 3
 Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
 Capabilities: [70] Express Endpoint, MSI 00
 Capabilities: [b0] MSI-X: Enable- Count=1 Masked-
 Capabilities: [d0] Vital Product Data
 Capabilities: [100] Advanced Error Reporting
 Capabilities: [140] Virtual Channel
 Capabilities: [160] Device Serial Number 00-00-00-01-00-4c-e0-00

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 13.10
Release: 13.10
Codename: saucy

$ uname -a
Linux HELLO 3.11.0-26-generic #45-Ubuntu SMP Tue Jul 15 04:02:06 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

[SOLUTION]

I did the following steps from exzemat (you rock!):

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. Replace __devexit_p() with rtsx_remove 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. sudo insmod rts_bpp.ko
5. Voila! It works!

Revision history for this message
rpaco (rpa-rpaco) wrote :

Finally got this to work on my Zoom Style Note laptop. On Ubuntu 14.04 LTS 3.13.0-36 Generic
Card reader has not worked for many updates backwards. 3.11.0-20 was the last to work I think. (I'm guessing it was ages ago)

But some oddities:

Firstly modprobe fails FATAL. Even when card reader is working.

lscpi still shows card reader as "03:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. Device 5289 (rev 01)"

Secondly the card reader only works if "sudo insmod rts_bpp.ko" is typed in a terminal after each boot.
I cant help thinking it should have been included in the install automatically.

Revision history for this message
penalvch (penalvch) wrote :

exzemat / Alessio Gatti, any change with the latest mainline kernel 3.18-rc3?

Eus / rpaco, 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 the default Ubuntu 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
https://wiki.ubuntu.com/Kernel/Policies/DuplicateBugs
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.

As well, please do not announce in this report you created a new bug report.

Thank you for your understanding.

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

Changed in linux (Ubuntu):
status: Triaged → Incomplete
description: updated
Revision history for this message
exzemat (exzemat) wrote :

mainline kernel 3.18-rc3 work for me (with standard SDHC card, 16Go)
indeed, I have this log when installed the kernel :
un-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.18.0-031800rc3-generic /boot/vmlinuz-3.18.0-031800rc3-generic
update-initramfs: Generating /boot/initrd.img-3.18.0-031800rc3-generic
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8107e-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8107e-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168h-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168h-1.fw for module r8169
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.18.0-031800rc3-generic /boot/vmlinuz-3.18.0-031800rc3-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.18.0-031800rc3-generic /boot/vmlinuz-3.18.0-031800rc3-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.18.0-031800rc3-generic /boot/vmlinuz-3.18.0-031800rc3-generic
Création du fichier de configuration GRUB…

I tested too mainline kernel 3.18-rc4, no problem

Revision history for this message
penalvch (penalvch) wrote :

exzemat, the next step is to fully reverse commit bisect from kernel 3.13-rc3 to 3.16-rc7 in order to identify the last bad commit, followed immediately by the first good one. Once this commit has been identified, then it may be reviewed as a candidate for backporting into your release. Could you please do this following https://wiki.ubuntu.com/Kernel/KernelBisection#How_do_I_reverse_bisect_the_upstream_kernel.3F ? Please note, finding adjacent kernel versions is not fully commit bisecting.

Thank you for your understanding.

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

tags: added: needs-reverse-bisect
Revision history for this message
exzemat (exzemat) wrote :

Sorry, I'm trying to bisect kernel since 3 weeks.
No succeed : I don't understand anything in the documentation :
https://wiki.ubuntu.com/Kernel/KernelBisection#Bisecting_Ubuntu_releases

Revision history for this message
penalvch (penalvch) wrote :

exzemat, what precisely about it do you not understand?

Revision history for this message
sugo (suligoi) wrote :

I have a Realtek 5289 sd card reader. With the rts driver I can read only SDHC cards. But when I read this comment http://askubuntu.com/questions/258533/realtek-card-reader-not-working/261504#261504 I try only to type the command
modprobe tifm_sd
just one time and then even if I reboot I can read also normal SD card. Also the output of lspci changed. Previously was like this:
04:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. Device 5289 (rev 01)
and now is
03:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTL4811 PCI Express Card Reader (rev 01).
I can't now revert the change to confirm what I say, because I am not pretty sure if is the result of the command, but may help to other users.

Revision history for this message
penalvch (penalvch) wrote :

sugo, it will help immensely if you filed a new report with the Ubuntu repository kernel (not mainline/upstream) via a terminal:
ubuntu-bug linux

Please feel free to subscribe me to it.

For more on why this is helpful, please see https://wiki.ubuntu.com/ReportingBugs.

Revision history for this message
L'Africain (lafricain79) wrote :

Hello,
On Ubuntu 16.04 I can read but not write.

Revision history for this message
penalvch (penalvch) wrote :

L'Africain, given this report is about specific hardware not working at all, it will help immensely if you use the computer the problem is reproducible with, and provide necessary debugging logs by filing a new report with Ubuntu via a terminal:
ubuntu-bug linux

Please feel free to subscribe me to it.

Revision history for this message
L'Africain (lafricain79) wrote :

Le 09/02/2018 à 21:52, Christopher M. Penalver a écrit :
> L'Africain, given this report is about specific hardware not working at all, it will help immensely if you use the computer the problem is reproducible with, and provide necessary debugging logs by filing a new report with Ubuntu via a terminal:
> ubuntu-bug linux
>
> Please feel free to subscribe me to it.
I don't understand exactly what to need, if I run ubuntu-bug linux
Apport opens me a new launchpad page. Either I don't want to open a new
bug just to subscribe to this one. But if I can help with more
information let me know.
>

To post a comment you must log in.
This report contains Public information  
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.