Jump to content

USB Card Reader Apple Optimized Legacy Driver (10.6.5/10.6.6/10.6.7/10.6.8)


  • Please log in to reply
93 replies to this topic

#1
Andy Vandijck

Andy Vandijck

    InsanelyMac Deity

  • Coders
  • 1,542 posts
  • Gender:Male
  • Location:Tienen
  • Interests:Programming stuff for Mac OS X...
    Hacking...
    Hard rock (also really big Metallica...
I have succeeded in making Apple's new driver for memory cards (since 10.6.5) working on any USB card reader (internal or external)

Installation steps:
first edit the plist and insert your card readers vendor and device id (where needed).
The parts you need to edit for this step are:
- Fake Apple Card Reader Device
- Fake Apple Card Reader Interface
- Fake Apple Card Reader UMC Inject
- Fake Apple Card Reader SBC Inject
- Any_Internal_SD_Card_Reader_1_00
You can use System Profiler for the vendor + product id's or IORegistryExplorer.
The following are the id's you need to look up in IORegistryExplorer:
- idVendor
- idProduct
If you use a text editor convert the id's to decimal with Calculator.
Insert them in the idVendor and idProduct parts respectively

Then we need to add the SCSI device id's to the following parts:
- AnySDCardReaderAnySBC
- Fake Apple Card Reader SCSI Inject
For this you also need IORegistryExplorer (download below if you don't have it).
Open IORegistryExplorer and next insert a memory card (SD/MMC/...)
Look under the EHCI parts for finding the memory card host controller (will be green because of card insertion).
Under the device look for the IOSCSIPeripheralDeviceNub entry (below the USB device)
Click on this and look for:
- Vendor Identification
- Product Identification
Change these in the Info.plist to the values you see there (Fake Apple Card Reader SCSI Inject + AnySDCardReaderAnySBC)

Install the edited kext using Terminal or kext utility.
Reboot and remove the memory card.
After boot reinsert it and you should see a little SD memory card appearing for the SD card (cool) if you did it right and if you check System Profiler under Card Reader the device will be listed as Apple built-in Card Reader.

Download for needed IORegistryExplorer tool:
http://rapidshare.co...tryExplorer.zip

Download:
http://rapidshare.co...Reader.kext.zip

Here are some pictures on how it looks like on my computer.
Forgot to mention: the default kext id's are for the memory card reader inside the Acer Aspire One D250.

Attached Files



#2
ErmaC

ErmaC

    127.0.0.1

  • Supervisors
  • 4,530 posts
  • Gender:Male
  • Location:Canary Islands

...



I will try!

Thanks Andy for all your nice job!

Very apreciated personalizations!

Fabio

#3
tdtran1025

tdtran1025

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 343 posts
The link keeps asking for upgrade account to download. Please look into it.

#4
Andy Vandijck

Andy Vandijck

    InsanelyMac Deity

  • Coders
  • 1,542 posts
  • Gender:Male
  • Location:Tienen
  • Interests:Programming stuff for Mac OS X...
    Hacking...
    Hard rock (also really big Metallica...

The link keeps asking for upgrade account to download. Please look into it.

I uploaded it to the forum as well. :)

#5
quinielascom

quinielascom

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 749 posts
  • Location:M�xico
Is possible modify this Legacy driver for attach to IOSDHCIBlockDevice.kext as Internal Apple Card Reader ?

The IOSDHCIBlockDevice.kext is for:

SD Host controller [0805]: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter [1180:0822] (No USB)

Vendor ID: 0x1180
Device ID: 0x0822
Sub Vendor ID: 0x1025
Sub System ID: 0x011d
Revision ID: 0x0022

And could work with AppleSDXC.kext (Apple Driver released in 10.6.5) but fails to mount any card.

http://www.projectos...?showtopic=1405

#6
Andy Vandijck

Andy Vandijck

    InsanelyMac Deity

  • Coders
  • 1,542 posts
  • Gender:Male
  • Location:Tienen
  • Interests:Programming stuff for Mac OS X...
    Hacking...
    Hard rock (also really big Metallica...

Is possible modify this Legacy driver for attach to IOSDHCIBlockDevice.kext as Internal Apple Card Reader ?

The IOSDHCIBlockDevice.kext is for:

SD Host controller [0805]: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter [1180:0822] (No USB)

Vendor ID: 0x1180
Device ID: 0x0822
Sub Vendor ID: 0x1025
Sub System ID: 0x011d
Revision ID: 0x0022

And could work with AppleSDXC.kext (Apple Driver released in 10.6.5) but fails to mount any card.

http://www.projectos...?showtopic=1405

The driver mentioned here is only for USB (as you allready know).
I would need an .ioreg dump (with IORegistryExplorer) from an autenthic Mac which contains one of these card adapters (e.g. Macmini4,1)
I will look around myself as well and check for this.

#7
Zprood

Zprood

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 247 posts
  • Gender:Male
  • Location:CHN
Thanks ,works perfectly.

Attached File  Screen_shot_2010_11_14_at_6.17.16_AM.png   96.27KB   843 downloads

Attached File  Screen_shot_2010_11_14_at_6.17.29_AM.png   58.57KB   652 downloads

Attached File  Screen_shot_2010_11_14_at_6.17.59_AM.png   78.07KB   394 downloads



#8
Prasys

Prasys

    Cheese Cheese cheese

  • Retired Developers
  • 338 posts
  • Gender:Male
Nice one andy , way cleaner then hacking the kexts and adding the devid and vendor id manually

#9
jlvaio

jlvaio

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 220 posts
anyway to use it under 10.5.8? :(

#10
Zprood

Zprood

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 247 posts
  • Gender:Male
  • Location:CHN
Hi I just found After log in system ,insert the SD card, and it isn`t mounted. But inserted SD card before start boot ,the driver works perfectly . Can this issue be fix ?

Regards.

#11
Andy Vandijck

Andy Vandijck

    InsanelyMac Deity

  • Coders
  • 1,542 posts
  • Gender:Male
  • Location:Tienen
  • Interests:Programming stuff for Mac OS X...
    Hacking...
    Hard rock (also really big Metallica...

anyway to use it under 10.5.8? :P

No, the new drivers are only available on 10.6.5

Hi I just found After log in system ,insert the SD card, and it isn`t mounted. But inserted SD card before start boot ,the driver works perfectly . Can this issue be fix ?

Regards.

I guess it depends on the card reader.
I haven't had any issues with this on my card reader (as it only attaches to usb EHCI controller after card insertion).
Could you provide me some more info on your card reader (or possibly a few .ioreg IORegistryExplorer files containing the working and not working states)?

#12
Zprood

Zprood

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 247 posts
  • Gender:Male
  • Location:CHN
Yeah, I grap some picture, this is the state and phenomenon .

1, No AnyCardReader.kext, it work normal, just do not show info in the System Profiler and internal device .

Attached File  normal1.png   110.94KB   365 downloads


Attached File  normal.png   158.06KB   318 downloads


2,
A,) AnyCardReader.kext installed, not insert SD card before booting.

Attached File  Screen_shot_2010_11_15_at_11.04.34_AM.png   70.17KB   251 downloads

Attached File  not_insert.png   176.04KB   196 downloads

B, ) But when I make computer sleep and wakeup, the card is mounted. see...

Attached File  sleep.png   162.3KB   214 downloads

Attached File  Screen_shot_2010_11_15_at_11.22.06_AM.png   59.43KB   150 downloads

Attached File  Screen_shot_2010_11_15_at_11.22.33_AM.png   77.03KB   111 downloads


3, With SD card insert like above reply I post.

Here is the dsdt file, I do some patches to make it can sleep.Attached File  dsdt.aml.zip   11.9KB   47 downloads

#13
Prasys

Prasys

    Cheese Cheese cheese

  • Retired Developers
  • 338 posts
  • Gender:Male
I had that issue as well , you know how i fixed it , I add IOProbeScore , 100 to it. It simply means that this kext has higher priority compared to normal USB Kexts. You just gotta add or get andy to add it for you

#14
Zprood

Zprood

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 247 posts
  • Gender:Male
  • Location:CHN

I had that issue as well , you know how i fixed it , I add IOProbeScore , 100 to it. It simply means that this kext has higher priority compared to normal USB Kexts. You just gotta add or get andy to add it for you


Thanks for reply, you mean add IOProbeScore to info.plist ? Or in each part of the info.plist?

I try to add the value but no effect. Can you share you modified kext ?

thanks.

#15
gatsu_1981

gatsu_1981

    InsanelyMac Protégé

  • Members
  • PipPip
  • 65 posts
  • Gender:Male
Works good with cheap internal Keytech USB adapter.

ID fornitore: 0x05ac
ID prodotto: 0x8403

Now it is shown as Apple Card Reader. Fine touch ^_^

#16
stefano.85

stefano.85

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 228 posts
  • Gender:Male
  • Location:Italy
Hi guys, i hope i've correctly modified the plist file. This is what i've got with an sd inserted.
I've installed the kext in E/E of my EFI partition
p.s i've got a multi-card reader, is it possible to add support for other types of card in this kext?



attached two screenshots of system profiler

Attached Files



#17
BlackCH

BlackCH

    InsanelyMac Deity

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,610 posts
  • Gender:Male
  • Location:BCN
Thank you Andy! Works fine here

#18
blakken

blakken

    InsanelyMac Protégé

  • Members
  • Pip
  • 31 posts
Thanks Andy for your work!
I'd say it works half half with my eeepc 1000HE meaning it's not really recognized as internal memory card but it REALLY helps to deepsleep without removing the sd card(but recovering from sleep shows ejection error)
1000HE is particular:it holds under EHCI the webcam and the SDCard reader.
Nevertheless it's really a great work!
I wish it could be realized by DSDT modification but even after googling hours there seems to be no answers.

#19
alexaffonso

alexaffonso

    InsanelyMac Protégé

  • Members
  • Pip
  • 27 posts
  • Location:São Paulo, Brazil

Open IORegistryExplorer and next insert a memory card (SD/MMC/...)
Look under the EHCI parts for finding the memory card host controller (will be green because of card insertion).
Under the device look for the IOSCSIPeripheralDeviceNub entry (below the USB device)


How should I be able to do that if when I insert a Memory Card into the slot nothing happens? I don't have the slot recognized by the system. Into system profiler, it says I do not have a card reader installed at all.

What should I do?

#20
blakken

blakken

    InsanelyMac Protégé

  • Members
  • Pip
  • 31 posts

How should I be able to do that if when I insert a Memory Card into the slot nothing happens? I don't have the slot recognized by the system. Into system profiler, it says I do not have a card reader installed at all.

What should I do?

Download some linux live edition (for instance ubuntu) and load it .
Click the terminal and write under the shell the command "lspci -nn" without brackets you'll find the product Id and the Vendor Id of you card reader.Convert hexadecimal number found to decimal and insert it to kext as described above.
Otherwise if you have windows installed check the system properties of the sd card ,there should be written as well.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   Web hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy