I have a Sony SE Laptop, which has a RealTeK RTS5209 PCIe SD Reader, but there are many other types and brands of laptops that have the same type of SD reader such as the entire Sony ‘S’ range and the HP DV6 6020.
Its great to see some independent development and a framework evolving for a Voodooo SD driver.
Hardware ID: 10ec:5209 = Realtek Semiconductor Co, RTS5209 PCI Express Card Reader Chip Set
So the big problem here is that the device is PCIe based
, Apple have never used a PCIe based card reader, they have always used a USB bus based device thus there is no existing driver.
Getting any info on the Realtek 5209 chipset has proven difficult, I cant even find it on RealTek’s own site, but some specs can be found here :-http://www.realtek.com.tw/Downloads/downloadsView.aspx?Langid=1&PNid=15&PFid=25&Level=4&Conn=3&DownTypeID=3&GetDown=false
The important thing to note is that it is compliant with the SDIO Spec V2, which is essentially an API for card readers.
On the RealTek download site there is a Unix/Linux Driver available here: -http://www.realtek.com.tw/Downloads/dow ... Down=false
This Linux Driver is now just about supported by all flavors of Linux including Ubuntu and Fedora. The Driver is known as RTS_PSTOR and if not included in your Linux Distro you can download the sources and compile it. The package includes a make file .. etc so its reasonable straight forward to install.
I’ve tested RTS_PSTOR under Ubuntu and Fedora and it works great.
So we have Linux based driver with sources that work.
The next problem is to start to figure out how to port it to OSX.
After much research and hunting in various forums in addition to this devlopment I I found that JMicron also manufacture a PCIe based card reader chipset known as the JMB38X and it like the RealTek chip is available in several versions but the one that is most interesting is the JMB385 this is essentially almost the same device as the Realtek RTS5209. The Device summary for the JMB385 can be viewed here: -http://www.jmicron.com/Product_JMB385.htm
Like the RealTek device it to is compliant with the SDIO V2 Spec and like the Realtek device, JMicron have a Linux driver available, the exciting news about this device is that the Linux Driver has been successfully ported to OSX. The project can be reviewed along with the OSX sources here: -http://www.insanelymac.com/forum/topic/132679-driver-for-laptop-card-readers-internal-pci-bu
I wonder if it would be possible to combine the two above projects in to this project which seems the most well developed. Unfortunately this is beyond my OSX programming capabilities, I know its possible to port linux to OSX but it involves rewriting the hardware I/O something I have no experience with.
I just wondered if the above sources could be of benefit to this development, I use the linux driver every day and it works perfect so underlying code is good. I’m happy to be an apprentice if any of the more experienced device-driver programmer’s want to take lead and I am open to everyone’s advice and guidance on this proposal.
Note: I first posted this a year ago on TyonyMac_X86 over a year ago so apologies if everybody already knows about this. http://www.tonymacx86.com/lion-laptop-support/51039-realteck-pcie-card-reader-10ec-5209-osx-driver-project.html#post326148