Jump to content
Welcome to InsanelyMac Forum

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

Karol Trojanowski

IOSDHCIBlockDevice.kext driver for JMicron SD card readers for 10.7/10.8

5 posts in this topic

Recommended Posts

Hi All,


VoodooSDHCI did nothing for me, so I did some minor changes to be able to build Brendon Allen's and Forest Godfrey's SD card reader driver under Mountain Lion in 64 bit mode. (Source: http://osxsdhci.sourceforge.net) The included kext is x86/x86_64, but I'm on 10.8, so I have no idea how well it works in 32bit mode (but in that case you're well off with the original driver). I built it against 10.7 framework, so Lion people can probably use it too. Sources included.


I happened to have the exact same card reader as specified in the original Info.plist, i.e. 197b:2381, so I figured "whatever" and went for it. It's been 6 hours and I'm basically done. If you have a different device, you can try to edit the Info.plist file and change IOPCIMatch. For example:

$ lspci -vvnn | grep SD
06:00.2 SD Host controller [0805]: JMicron Technology Corp. Standard SD Host Controller [197b:2381] (prog-if 01)


Then you should edit your Info.plist to look like this:



(Note the reverse ordering of the vendor and device IDs.)


For the moment I have disabled multiblock transfer high speed transfer because of CRC errors and/or mismatched MD5 checksums (and kernel panics, for that matter). If anyone has any idea how to figure this out, fire away. I assume that some numbers don't align anymore when __LP64__ is defined (see IOBlockStorageDevice).


Any feedback welcome. This is a debug binary, so prepare to have your dmesg spammed.




IOSDHCIBlockDevice (source).zip


Share this post

Link to post
Share on other sites

Yep, that works (after editing the Info.plist). But maybe someone will make use of this driver.


P.S. What is the source of this kext you posted? The one from the voodooprojects forums didn't work for me.


Hah, silly me. It's the same driver. It has the same errors! No good :(

Edited by Karol Trojanowski

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By Twml
      I have an HP Elitebook 8460P running High Sierra 10.13.1
      I'm trying to get wifi working, my internal wifi as far as i can tell is not mac compatible, its a intel centrino wireless
      I also cant change my wifi card, the elitebook i have only accepts a few different cards or it wont boot past post if it is changed.
      Also i have managed to brick the system a few times attempting different kext or pkgs. I cant seem to figure it out for high sierra. 
      I have a WiFi USB RTL8188CUS, that i had working in Yosemite 10.10 using a 10.9 pkg.
      but as far as i can tell 10.11 El Capitan was the last driver support for the card, and doesnt work in 10.13.1. the wifi utility wont open to connect to a network. 
      Is there a possible way to get this card working, or do i need to buy a new wifi usb.
      If i do need a new one what would be a good one to buy? i need it to have 10.13.1 driver support and be usb also not be to expensive, N300 is good enough but i do have an AC1750 router.
      Im fairly new to getting Mac running on Intel Based PCs. 
      any help would be greatly appreciated.

      I got it working but it sometimes randomly disconnects me from wifi and wont reconnect until a reboot.
      The kext i used was for 10.11 El Capitan. i was just using the El Capitan only kext before and not the multi edition kext.
      Attached is the utility and kext i used.
      So i still need help but i have made a little progress
      RTL8188CUS 10.11 WiFi.zip
    • By clockT
      Vorrei solo un piccolo aiutino nel post installazione su questa config
      Zotac GeForce GTS 250 1024 MB
      1) Non riesco ad attivare l'audio , e so che mi sto perdendo in un bicchiere d'acqua
      2) Vorrei sapere se il config.plist è configurato bene per la mobo
      3)poi nn capisco perchè dopo il boot vedo un kernel panic ma dopo  va tutto liscio..bah
      spero che mi aiutate in questa config
    • By davideantonio
      Hi guys, I Have an ASUS N752VX, and I've installed mac OS High Sierra, in my laptop. Unfortunately I have some problems with kexts.
      - Touchpad I2C,
      -  Ethernet.
      P.S. Maybe , the second one, is caused by my USB Wi-fi, because my wi-fi module seems to not work 'cause it is not compatible! 
    • By Mieze
      A New Driver for Realtek RTL8111

      Due to the lack of an OS X driver that makes use of the advanced features of the Realtek RTL81111/8168 series I started a new project with the aim to create a state of the art driver that gets the most out of those NICs which can be found on virtually any cheap board on the market today. Based on Realtek's Linux driver (version 8.035.0) I have written a driver that is optimized for performance while making efficient use of system resources and keeping the CPU usage down under heavy load.

      Key Features of the Driver
      Supports Realtek RTL8111/8168 B/C/D/E/F/G found on recent boards. Support for multisegment packets relieving the network stack of unnecessary copy operations when assembling packets for transmission. No-copy receive and transmit. Only small packets are copied on reception because creating a copy is more efficient than allocating a new buffer. TCP, UDP and IPv4 checksum offload (receive and transmit). TCP segmentation offload under IPv4. Support for TCP/IPv6 and UDP/IPv6 checksum offload. Fully optimized for Mountain Lion (64bit architecture) but should work with Lion too. As of now there is no support for Snow Leopard but it can be added if someone will create the necessary patches. Supports Wake on LAN. Support for Energy Efficient Ethernet (EEE) which can be disabled by setting enableEEE to NO in the drivers Info.plist without rebuild. The default is YES. The driver is published under GPLv2. Limitations
      As checksum offload doesn't work with jumbo frames they are currently unsupported and will definitely never be. No support for 32bit kernels. Installation
      Before you install the driver you have to remove any installed driver for RTL8111/8168.
      Goto /S/L/E and delete the old driver (Lnx2mac, AppleRealtekRTL8169, etc.). Recreate the kernel cache. Open System Preferences and delete the corresponding network interface, e. g. en0. If you forget this step you might experience strange problems with certain Apple domains, iTunes and iCloud later. Reboot. Install the new driver and recreate the kernel cache. I recommend to use Kext Wizard or a similar utility for the installation. Reboot Open System Preferences again, select Network and check if the new network interface has been created automatically or create it manually now. Configure the interface. Troubleshooting
      Make sure you have followed the installation instructions especially when you have issues with certain domains while the others are working fine. Use the debug version to collect log data when trying to track down problems. The kernel log messages can be found in /var/log/system.log. For Sierra and above use "log show --predicate "processID == 0" --debug" in order to retrieve kernel logs. Include the log data when asking for support or giving feedback. I'm an engineer, not a clairvoyant. Check your BIOS settings. You might want to disable Network Boot and the UEFI Network Stack as these can interfere with the driver. Double check that you have removed any other Realtek kext from your system because they could prevent the driver from working properly. Verify your bootloader configuration, in particular the kernel flags. Avoid using npci=0x2000 or npci=0x3000.  In Terminal run netstat -s in order to display network statistics. Carefully examine the data for any unusual activity like a high number of packets with bad IP header checksums, etc. In case auto-configuration of the link layer connection doesn't work it might be necessary to select the medium manually in System Preferences under Network for the interface. Use Wireshark to create a packet dump in order to collect diagnostic information. Keep in mind that there are many manufacturers of network equipment. Although Ethernet is an IEEE standard different implementations may show different behavior causing incompatibilities. In case you are having trouble try a different switch or a different cable. FAQ
      How can I retrieve the kernel logs?In Terminal type "grep kernel /var/log/system.log". ​I want to disable Energy Efficient Ethernet (EEE) but I don't know how?​Take a look at the driver's Info.plist file. There you will find an option named <key>enableEEE</key>. Change its value from <true/> to <false/>. Don't forget to recreate the kernel cache after changing the value.​ WoL from S5 doesn't work with this driver but under Windows it's working. Is this a driver bug?No it isn't, the driver is working as it should because OS X doesn't support WoL from S5. Current status
      The driver has been successfully tested under 10.8.x and 10.9 with the B, C, D, E, F and G versions of the RTL8111/8168 and is known to work stable on these devices. Changelog
      Version 2.2.2 (2018-01-21) Force ASPM state to disabled/enabled according to the config parameter setting. Requires 10.12 or newer. Version 2.2.1 (2016-03-12): Updated underlying linux sources from Realtek to 8.041.00. Added support for RTL8111H. Implemented Apple’s polled receive driver model (RXPOLL). Requires 10.11 or newer. Support for older versions of OS X has been dropped. Version 2.0.0 (2015-06-21): ​Uses Apple's private driver interface introduced with 10.8. Supports packet scheduling with QFQ. Please note that 2.0.0 is identical to 2.0.0d2. Only the version number has changed. Version 1.2.3 (2014-08-23):Reworked TSO4 and added support for TSO6. Version 1.2.2 (2014-08-44): ​Added an option to disable Active State Power Management (ASPM, default disabled) as ASPM seems to result in unstable operation of some chipsets. ​Resolved a problem with Link Aggregation after reboot. Added a workaround for the multicast filter bug of chipset 17 (RTL8111F) which prevented Bonjour from working properly​ ​Version 1.2.0 (2014-04-24): Updated underlying linux sources from Realtek to 8.037.00. Improved interrupt mitigate to use a less aggressive value for 10/100 MBit connections. ​Version 1.1.3 (2013-11-29): Improved transmit queue handling made it possible to reduce CPU load during packet transmission. Improved deadlock detection logic in order to avoid false positives due to lost interrupts. Version 1.1.2 (2013-08-03): Improved SMB performance in certain configurations. Faster browsing of large shares. ​Version 1.1.0 (2013-06-08): Support for TCP/IPv6 and UDP/IPv6 checksum offload added (can be disabled in Info.plist). Maximum size of the scatter-gather-list has been increased from 24 to 40 segments to resolve performance issues with TSO4 when offloading large packets which are highly fragmented. TSO4 can be disabled in Info.plist without rebuild. Statistics gathering has been improved to deliver more detailed information (resource shortages, transmitter resets, transmitter interrupt count). The interrupt mitigate settings has been changed to improve performance with SMB and to reduce CPU load. Configuration option added to allow for user defined interrupt mitigate settings without rebuild. Version 1.0.4 (2013-05-04):Moved setLinkStatus(kIONetworkLinkValid) from start() to enable(). Cleaned up getDescCommand(). Version 1.0.3 (2013-04-25):​The issue after a reboot from Windows has been eliminated. Version 1.0.2 (2013-04-22):​Added support for rx checksum offload of TCP and UDP over IPv6. Version 1.0.1 (2013-03-31): Improved behavior when rx checksum offload isn't working properly. Adds the chipset's model name to IORegistry so that it will show up in System Profiler. Known Issues
      There are still performance problems with regard to SMB in certain configurations. My tests indicate that Apple's Broadcom driver shows the same behavior with those configurations. Obviously it's a more general problem that is not limited to my driver. WoL does not work in certain configurations. Old systems with 3 and 4 series chipsets exhibit performance issues in recent versions of macOS because there is no optimized power management for these systems in macOS anymore as Apple dropped support for the underlying hardware a long time ago. In case you are affected, please upgrade your hardware or find an alternative solution because I have no plans for a workaround. Sorry, but I don't think that it's worth the effort. Getting the driver
      The source code can be found here: https://github.com/M...driver_for_OS_X There is also a pre-build binary for Mavericks and Yosemite: http://www.insanelym...n-and-wireless/  
      Building from Source
      I'm using XCode 4.6.3 for development. You can get a free copy of XCode after becoming a member of the Apple developer program. The free membership is sufficient in order to get access to development tools and documentation.
    • By Carlocarre65
      Salve, sono un soddisfatto possessore di un hackintosh (ASUS K56CB, i3-3217U-nVidia740M-SSD-8GB di RAM), una sola cosa mi fa ancora preferire Windows a MacOS, il touchpad, il mio PC monta un elan PS2, il problema è che in rete ho trovato solo 2 tipi di kext 
      1. VoodooPS2 che però non mi fa funzionare ne tastiera ne pad
      2. Kext elan fatto da un utente che mediante le gestures simula delle scorciatoie da tastiera che eseguono la funzione, inutilizzabile.
      Parlando con altri utenti hackintosh ho saputo che per far funzionare voodoops2 in realtà bisogna anche patchare il dsdt (o ssdt,non ricordo) per ottenere delle gestures ottime, il problema è che io non sono minimamente capace, o provato a googlare e ad applicarmi ma non ci sono riuscito. Qualcuno può aiutarmi/fornirmi soluzioni alternative? Grazie in anticipo. 
      (In allegato nel link di drive la cartella EFI in quanto pesa troppo per essere allegata con la funzione del forum)