Jump to content

Kext patches by Bootloader


Alex009988
 Share

16 posts in this topic

Recommended Posts

In this topic I want to gain useful patches.

This method is good that patch are not made at drivers, this made at kernel-cash in RAM

 

Patch against any sound assertion for AppleHDA, the author is Alex Auditore

 

 

hex 536F756E6420617373657274696F6E20->00000000000000000000000000000000

http://www.insanelymac.com/forum/topic/292377-how-to-get-rid-of-any-sound-assertions-on-applehda/

			<dict>
				<key>Comment</key>
				<string>Patch_against_assertions</string>
				<key>Find</key>
				<data>
				U291bmQgYXNzZXJ0aW9uIA==
				</data>
				<key>Name</key>
				<string>AppleHDA</string>
				<key>Replace</key>
				<data>
				AAAAAAAAAAAAAAAAAAAAAA==
				</data>
			</dict> 

 

 

The patch for Bluetooth controller which did not get the camand Wakeup, for ML 10.8.5 and Mavericks. For example, Artheros AR3011 is one of them. The author is Time Walker

****[IOBluetoothHostControllerUSBTransport][configurePM]-- ERROR -- waited 30 seconds and still did notget the commandWakeup() notification --this=0xffffff8013dd5800**** 

 

 

For Mountain Lion

hex 0000010f85de000000->0000010f84de000000

<dict>
                <key>Comment</key>
                <string>configurePM BT</string>
                <key>Name</key>
                <string>IOBluetoothHostControllerUSBTransport</string>
                <key>Find</key>
                <data>AAABD4XeAAAA</data>
                <key>Replace</key>
                <data>AAABD4TeAAAA</data>
            </dict> 

For Mavericks

hex 0000000f8507010000->0000000f8407010000

		<key>KextsToPatch</key>
		<array>
			<dict>
				<key>Comment</key>
				<string>configurePM BT</string>
				<key>Find</key>
				<data>
				AAAAD4UHAQAA
				</data>
				<key>Name</key>
				<string>IOBluetoothHostControllerUSBTransport</string>
				<key>Replace</key>
				<data>
				AAAAD4QHAQAA
				</data>
			</dict> 

 

 

The patch against an error  "fall back to old SMC mode" for ML 10.8.5, the author is TimeWalker

 

 

hex 4885C07510488D3D7D50->4885C0EB6E488D3D7D55

        <dict>
            <key>Comment</key>
            <string>fall back to old SMC mode</string>
            <key>Name</key>
            <string>AppleSMC</string>
            <key>Find</key>
            <data>SIXAdRBIjT19UA==</data>
            <key>Replace</key>
            <data>SIXA625IjT19VQ==</data>
        </dict>

 

 

The patch against this error in Console. "ATHR: unknown locate: 21" for Mavericks(That may not work, try to use the patch below), the author is Skvo

 

 

hex: 753b4885f6 -> e9bc000000

            <dict>
                <key>Comment</key>
                <string>Wi-Fi Region 10.9</string>
                <key>Name</key>
                <string>AirPortAtheros40</string>
                <key>Find</key>
                <data>dTtIhfY=</data>
                <key>Replace</key>
                <data>6bwAAAA=</data>
            </dict> 

 

 

The patch against this error in Console. "ATHR: unknown locate: 21" for ML and Mavericks, the author is Skvo

 

hex: 0FB787DC040000 -> B8640000009090

            <dict>
                <key>Comment</key>
                <string>Wi-Fi Region 10.8.X</string>
                <key>Name</key>
                <string>AirPortAtheros40</string>
                <key>Find</key>
                <data>D7eH3AQAAA==</data>
                <key>Replace</key>
                <data>uGQAAACQkA==</data>
            </dict> 

 

 

Fixing Orange disks, Vovhik

 

 

hex: 45787465726e616c -> 496e7465726e616c (ASCII: External -> Internal)

            <dict>
                <key>Comment</key>
                <string>Fix Orange Disk</string>
                <key>Name</key>
                <string>AppleAHCIPort</string>
                <key>Find</key>
                <data>RXh0ZXJuYWw=</data>
                <key>Replace</key>
                <data>SW50ZXJuYWw=</data>
            </dict>

 

 

Against reset of CMOS for ML 10.8.X the author is rayup

 

 

hex 753089d8 -> eb3089d8

            <dict>
                <key>Comment</key>
                <string> fix CMOS Reset for 10.8.x</string>
                <key>Name</key>
                <string>AppleRTC</string>
                <key>Find</key>
                <data>dTCJ2A==</data>
                <key>Replace</key>
                <data>6zCJ2A==</data>
            </dict>

 

 

Against reset of CMOS for Mavericks, the author is SunKI

 

 

hex: 752e0fb6 -> eb2e0fb6

          <dict>
                <key>Comment</key>
                <string>fix CMOS reset for 10.9</string>
                <key>Name</key>
                <string>AppleRTC</string>
                <key>Find</key>
                <data>dS4Ptg==</data>
                <key>Replace</key>
                <data>6y4Ptg==</data>
            </dict>

 

 

Patch for activation of TRIM for SSD, which are unsupported by apple. The author is Grand Pennell

 

 

hex: 4150504c4520535344 -> 000000000000000000

<dict>
                <key>Comment</key>
                <string>Orange Disk Fix</string>
                <key>Name</key>
                <string>AppleAHCIPort</string>
                <key>Find</key>
                <data>RXh0ZXJuYWw=</data>
                <key>Replace</key>
                <data>AAAAAAAAAAA=</data>
            </dict>

 

 

Patch for AppleHDA xml->zml, the author is abxite

 

 

hex: 786d6c2e7a6c -> 7a6d6c2e7a6c

<dict>
                <key>Comment</key>
                <string>Replace xml to zml</string>
                <key>Name</key>
                <string>AppleHDA</string>
                <key>Find</key>
                <data>eG1sLnps</data>
                <key>Replace</key>
                <data>em1sLnps</data>
            </dict>

 

 

Patch agains kernel panic called AppleIntelPowerManagement

 

hex: e20000000f30 -> e20000009090

<dict>
                <key>Comment</key>
                <string>AppleIntelCpuPM Kernel Panic fix</string>
                <key>Name</key>
                <string>AppleIntelCPUPowerManagement</string>
                <key>Find</key>
                <data>4gAAAA8w</data>
                <key>Replace</key>
                <data>4gAAAJCQ</data>
        </dict>

 

 

Patch agains Kernel Panic during using MacPro4.1-5.1

 

 

hex: 720a004d616350726f342c31004d616350726f352c310058 -> 720a00000000000000000000000000000000000000000058

<dict>
                <key>Comment</key>
                <string>No Panic on MacPro4,1 - 5,1</string>
                <key>Name</key>
                <string>AppleTyMCEDriver</string>
                <key>Find</key>
                <data>cgoATWFjUHJvNCwxAE1hY1BybzUsMQBY</data>
                <key>Replace</key>
                <data>cgoAAAAAAAAAAAAAAAAAAAAAAAAAAABY</data>
            </dict> 

 

 

Multiple patch of AppleUSBXHCI(only for Mountain Lion) for supporting controller USB3.0 which are made which are made by other manufacturers(means not intel), The author Zetith432 http://www.insanelymac.com/forum/topic/285157-patched-appleusbxhci-from-os-1082/

 

 

            <dict>
                <key>Comment</key>
                <string>Patch_to_USB3.0_ML</string>
                <key>Find</key>
                <data>dSZIi7vo</data>
                <key>Name</key>
                <string>AppleUSBXHCI</string>
                <key>Replace</key>
                <data>6yZIi7vo</data>
            </dict>
            <dict>
                <key>Comment</key>
                <string>Patch_to_USB3.0_ML</string>
                <key>Find</key>
                <data>dVtJiw==</data>
                <key>Name</key>
                <string>AppleUSBXHCI</string>
                <key>Replace</key>
                <data>61tJiw==</data>
            </dict>
            <dict>
                <key>Comment</key>
                <string>Patch_to_USB3.0_ML</string>
                <key>Find</key>
                <data>PQABDw==</data>
                <key>Name</key>
                <string>AppleUSBXHCI</string>
                <key>Replace</key>
                <data>PQAADw==</data>
            </dict>
            <dict>
                <key>Comment</key>
                <string>Patch_to_USB3.0_ML</string>
                <key>Find</key>
                <data>gUkIAABA</data>
                <key>Name</key>
                <string>AppleUSBXHCI</string>
                <key>Replace</key>
                <data>gUkIAAAA</data>
            </dict>
            <dict>
                <key>Comment</key>
                <string>Patch_to_USB3.0_ML</string>
                <key>Find</key>
                <data>RCQIAABA</data>
                <key>Name</key>
                <string>AppleUSBXHCI</string>
                <key>Replace</key>
                <data>RCQIAAAA</data>
            </dict>
            <dict>
                <key>Comment</key>
                <string>Patch_to_USB3.0_ML</string>
                <key>Find</key>
                <data>AEAAQYtG</data>
                <key>Name</key>
                <string>AppleUSBXHCI</string>
                <key>Replace</key>
                <data>AAAAQYtG</data>
            </dict>
            <dict>
                <key>Comment</key>
                <string>Patch_to_USB3.0_ML</string>
                <key>Find</key>
                <data>AcaDfw==</data>
                <key>Name</key>
                <string>AppleUSBXHCI</string>
                <key>Replace</key>
                <data>AMaDfw==</data>
            </dict> 

 

 

Multiple patch of AppleUSBXHCI(only for Mavericks) for supporting controller USB3.0 which are made which are made by other manufacturers(means not intel), The author shiecldk 

http://www.insanelymac.com/forum/topic/285157-patched-appleusbxhci-from-os-1082/page-5?do=findComment&comment=1923014

 

 

            <dict>
                <key>Comment</key>
                <string>Patch_to_USB3.0_Mav</string>
                <key>Find</key>
                <data>dUtJiwc=</data>
                <key>Name</key>
                <string>AppleUSBXHCI</string>
                <key>Replace</key>
                <data>60tJiwc=</data>
            </dict>
            <dict>
                <key>Comment</key>
                <string>Patch_to_USB3.0_Mav</string>
                <key>Find</key>
                <data>gUsIAABAAA==</data>
                <key>Name</key>
                <string>AppleUSBXHCI</string>
                <key>Replace</key>
                <data>gUsIAAAAAA==</data>
            </dict>
            <dict>
                <key>Comment</key>
                <string>Patch_to_USB3.0_Mav</string>
                <key>Find</key>
                <data>QcdFCAAAQAA=</data>
                <key>Name</key>
                <string>AppleUSBXHCI</string>
                <key>Replace</key>
                <data>QcdFCAAAAAA=</data>
            </dict>
            <dict>
                <key>Comment</key>
                <string>Patch_to_USB3.0_Mav</string>
                <key>Find</key>
                <data>QcdHCAAAQAA=</data>
                <key>Name</key>
                <string>AppleUSBXHCI</string>
                <key>Replace</key>
                <data>QcdHCAAAAAA=</data>
            </dict>
            <dict>
                <key>Comment</key>
                <string>Patch_to_USB3.0_Mav</string>
                <key>Find</key>
                <data>xoDIAAAAAQ==</data>
                <key>Name</key>
                <string>AppleUSBXHCI</string>
                <key>Replace</key>
                <data>xoDIAAAAAA==</data>
            </dict>
            <dict>
                <key>Comment</key>
                <string>Patch_to_USB3.0_Mav</string>
                <key>Find</key>
                <data>dU1Ii7voAQAA</data>
                <key>Name</key>
                <string>AppleUSBXHCI</string>
                <key>Replace</key>
                <data>601Ii7voAQAA</data>
            </dict> 

 

 

Patch(IOAHCIBlockStorage) against cessation on "still waiting for root device", The auther is bcc9

http://www.insanelymac.com/forum/topic/280062-waiting-for-root-device-when-kernel-cache-used-only-with-some-disks-fix/

 

 

hex 1: EB4C0000EA03 -> EB4C0000E801

hex 2: 740E488D3DA5900000 -> BFC800000090909090

            <dict>
                <key>Name</key>
                <string>IOAHCIBlockStorage</string>
                <key>Find</key>
                <data>60wAAOoD</data>
                <key>Replace</key>
                <data>60wAAOgB</data>
            </dict>
            <dict>
                <key>Name</key>
                <string>IOAHCIBlockStorage</string>
                <key>Find</key>
                <data>dA5IjT2lkAAA</data>
                <key>Replace</key>
                <data>v8gAAACQkJCQ</data>
            </dict> 

 

 

About patching of AppleHDA, see more here

http://www.insanelymac.com/forum/topic/290092-how-to-patch-applehda-with-the-help-of-bootloader/

 

 

Example 1

Patch for Clover(config.plist), for TRIM activation against orange hard disks.

    <key>KernelAndKextPatches</key>
    <dict>
        <key>KextsToPatch</key>
        <array>
            <dict>
                <key>Comment</key>
                <string>TRIM Enabler</string>
                <key>Name</key>
                <string>IOAHCIBlockStorage</string>
                <key>Find</key>
                <data>QVBQTEUgU1NE</data>
                <key>Replace</key>
                <data>AAAAAAAAAAAA</data>
            </dict>
            <dict>
                <key>Comment</key>
                <string>Orange Disk Fix</string>
                <key>Name</key>
                <string>AppleAHCIPort</string>
                <key>Find</key>
                <data>RXh0ZXJuYWw=</data>
                <key>Replace</key>
                <data>AAAAAAAAAAA=</data>
            </dict>
        </array>
    </dict>

And  is should  look so  at PlistEdit Pro, for instance

 

post-974387-0-65340400-1372006851_thumb.png

 

Example 2 And so it looks at bareBoot

        <key>KextPatches</key>
        <array>
            <dict>
                <key>Comment</key>
                <string>TRIM Enabler</string>
                <key>Name</key>
                <string>IOAHCIBlockStorage</string>
                <key>Find</key>
                <data>QVBQTEUgU1NE</data>
                <key>Replace</key>
                <data>AAAAAAAAAAAA</data>
            </dict>
            <dict>
                <key>Comment</key>
                <string>Orange Disk Fix</string>
                <key>Name</key>
                <string>AppleAHCIPort</string>
                <key>Find</key>
                <data>RXh0ZXJuYWw=</data>
                <key>Replace</key>
                <data>AAAAAAAAAAA=</data>
            </dict>
        </array>

Example 3. Some patches from XPC, just for example.(xpc_patcher.plist)

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
	<dict>

    <key>XpcPatcher</key>
    <dict>
 
	<key>MachOPatch0</key> 
	<dict>
	<key>Apply</key>
	<integer>1</integer>
	<key>SystemVersion</key>
	<string>0x000</string>	
	<key>Description</key>
	<string>Patch for ALC670</string>
	<key>FileName</key>
	<string>AppleHDA</string>
	<key>Search</key>
	<string>8408ec10</string>
	<key>Replace</key>
	<string>00000000</string>
	</dict>

	<key>MachOPatch1</key>
	<dict>
	<key>Apply</key>
	<integer>1</integer>
	<key>SystemVersion</key>
	<string>0x000</string>
	<key>Description</key>
	<string>Patch for ALC670</string>
	<key>FileName</key>
	<string>AppleHDA</string>
	<key>Search</key>
	<string>786d6c2e7a6c </string>
	<key>Replace</key>
	<string>7a6d6c2e7a6c</string>
	</dict>

	<key>MachOPatch2</key>
	<dict>
	<key>Apply</key>
	<integer>1</integer>
	<key>SystemVersion</key>
	<string>0x000</string>
	<key>Description</key>
	<string>Patch for ALC670</string>
	<key>FileName</key>
	<string>AppleHDA</string>
	<key>Search</key>
	<string>8419d411</string>
	<key>Replace</key>
	<string>7006ec10</string>
	</dict>
	
	<key>MachOPatch3</key>
	<dict>
	<key>Apply</key>
	<integer>1</integer>
	<key>SystemVersion</key>
	<string>0x000</string>
	<key>Description</key>
	<string>fix CMOS reset for 10.9</string>
	<key>FileName</key>
	<string>AppleRTC</string>
	<key>Search</key>
	<string>752e0fb6</string>
	<key>Replace</key>
	<string>eb2e0fb6</string>
	</dict>
	
	</dict>  

  </dict>

</plist>

 

 

Edited by Alex Auditore
  • Like 9
Link to comment
Share on other sites

thank you for your hard work. If any patch for xfx 6950 please help thank you.

Link to comment
Share on other sites

thank you for your hard work. If any patch for xfx 6950 please help thank you.

Hello. I remember you have two indetical two cards. I recomend you to try Clover it has powerful injection.

But in this case I think Graphics part of your DSDT should be restored to initial state. Otherwise DSDT with patched graphics will impede Clover.

Link to comment
Share on other sites

  • 4 months later...

The patch against "ATHR: unknown locate:" for Mavericks didn't work for me, but this one does:

<dict>
<key>Comment</key>
<string>Wi-Fi Region Log Fix</string>
<key>Find</key>
<data>
D7eH3AQAAA==
</data>
<key>Name</key>
<string>AirPortAtheros40</string>
<key>Replace</key>
<data>
uGQAAACQkA==
</data>
</dict>

Or 0FB787DC040000 -> B8640000009090.

 

It injects FCC as region.

  • Like 1
Link to comment
Share on other sites

The patch against "ATHR: unknown locate:" for Mavericks didn't work for me, but this one does:

<dict>
<key>Comment</key>
<string>Wi-Fi Region Log Fix</string>
<key>Find</key>
<data>
D7eH3AQAAA==
</data>
<key>Name</key>
<string>AirPortAtheros40</string>
<key>Replace</key>
<data>
uGQAAACQkA==
</data>
</dict>

Or 0FB787DC040000 -> B8640000009090.

 

It injects FCC as region.

Ok. Thanks, I've written a remark about it and make spoilers so as to get the top more readable.

  • Like 1
Link to comment
Share on other sites

  • 2 months later...
  • 4 months later...

Is it possible to make a kext to patch on-the-fly instead of bootloader?

Im also having the same question can a kextpatcher.kext be made that it would be responsible to patch others kexts on boot like clover ?

I use ozmosis as a bootloader and having such a kext would be ideal  :)

Link to comment
Share on other sites

  • 1 month later...

Here is a patch to speed up boot time. My Dell XPS 720 has a really slow boot time because of AppleNForceATA, this cuts it from 1:18 to 23 seconds. On my MacBookPro8,1 and my Z68 build this cuts about 20 seconds off the boot time.

            <dict>
                <key>Comment</key>
                <string>IOATAFamily Faster Boot</string>
                <key>Find</key>
                <data>
                gfscDA==
                </data>
                <key>Name</key>
                <string>IOATAFamily</string>
                <key>Replace</key>
                <data>
                gfsyAA==
                </data>
            </dict>            
  • Like 1
Link to comment
Share on other sites

  • 1 month later...
  • 1 year later...
 Share

×
×
  • Create New...