FireWolf Pl.

A Place of Freedom

@FireWolf5 years ago

06/9
21:17
OS X OS X El Capitan

CX20585 OS X El Capitan Patched AppleHDA Audio Driver

After I finished installing OS X El Capitan 10.11 Developer Beta 1 on my ASUS laptop, it’s time to make a patched audio driver based on native OS X El Capitan AppleHDA to make my CX20585 work.

Since I am using Clover as my bootloader, I will use Clover’s KextsToPatch to apply the binary patch.

 

Introduction:

By using Clover’s KextsToPatch, basically your don’t have to re-create a patched AppleHDA driver after every system update.

So, here is the step-by-step tutorial.

Step-by-step Tutorial:

STEP 1. Boot OS X El Capitan with kext-dev-mode=1 and rootless=0 kernel flags.

kext-dev-mode=1: Known in OS X Yosemite. Disable kernel extensions signatures check.

rootless=0: New kernel flag in OS X El Capitan. Disable the rootless security.

Otherwise you cannot modify Apple’s kexts in /System/Library/Extensions, which means, to be more specific, you cannot use commands such as chmod, rm, chown to modify properties of Apple’s kernel extensions or delete them.

STEP 2. Mount EFI system partition and open the Config.plist with Clover Configurator.app

Add the following patch in the KextsToPatch sections:

(a) .xml.zlib -> .zml.zlib Patch

Name: AppleHDA

Find

786D6C2E7A6C

Replace

7A6D6C2E7A6C

(b) CX20585 Codec ID Patch

Find

8419D411

Replace

6950F114

(c) Remove Sound Assertion Patch

Find

536F756E6420617373657274696F6E20696E202573206174206C696E652025640A002573002564

Replace

000000000000000000000000000000000000000000000000000000000000000000000000000000

And here is a screenshot of Clover Configurator. (Please only focus on AppleHDA part)

114331tfn2dicnn2dedffj

STEP 3. Add modified layout12.zml.zlib & Platforms.zml.zlib

First, please make sure that you have vanilla AppleHDA.kext in your /System/Library/Extensions directory.

If you don’t have one or are not sure about it, please download the vanilla AppleHDA.kext from here:

Version: OS X Capitan Developer Beta 1 (15A178w)
Downloads: 1011DB1_vanilla_AppleHDA.kext

Then download patched layout12.zml.zlib and Platforms.zml.zlib and copy them into AppleHDA.kext/Contents/Resources.

Downloads: Patched_layout+platform

STEP 4. Add HDAHardwareConfigurations property in FakeSMC.kext

Open the Info.plist of FakeSMC.kext with PlistEdit Pro or Xcode

Copy the following contents and paste as IOKitPersonalities’s child.

Save the file.  (Not necessary now, I will double-check this.)

STEP 4. Final

Use Kext Wizard to install patched FakeSMC.kext and AppleHDA.kext.

Repair your disk permissions and rebuild the kexts caches.

Reboot and enjoy.

 

If you have any further question, feel free to leave comments.

And I will approve your comments as quickly as possible.

 

 

CX20585 OS X El Capitan Patched AppleHDA Audio Driver

  1. Oliver Ma
    UnknownUnknownUnknownUnknown

    don’t you need kext to patch to force inject AppleHDA?
    I just can not load AppleHDA by default.So I choose force inject and now work well

    Reply
    1. UnknownUnknownUnknownUnknown

      I couldn’t open “Network” in sytsem preferences. 😐 Same thing with the Energy Saver thing ‘cos I would like to be patient and wait ’til Network loads cos once I am AFK for a bit longer, I couldn’t open my laptop anymore and have to restart. Help? :c

      Reply