Jump to content

OpenCore custom patch "Failed to pk find com.apple.driver.AppleIntelFramebufferAzul"


jan4321
 Share

4 posts in this topic

Recommended Posts

Thanks to OpenCore 0.6.6 and friends I have been able to fairly easy set up bigSur 11.2.1 on an Esprimo Q920 i5-4590T HD4600 (MacMini7,1). Everything is working correctly including graphics with WhateverGreen.

 

However, I want to experiment with some custom tinkering. I want to change a few bytes in AppleIntelFramebufferAzul. So I wrote a patch and put it in config.plist:

 

    <key>Kernel</key>
    <dict>
        <key>Patch</key>
        <array>
            <dict>
                <key>Arch</key>
                <string>Any</string>
                <key>Base</key>
                <string></string>
                <key>Comment</key>
                <string>TEST ignore result validateSourceSize AppleIntelFramebufferAzul</string>
                <key>Count</key>
                <integer>1</integer>
                <key>Enabled</key>
                <true/>
                <key>Find</key>
                <data>McCEyXVt</data>
                <key>Identifier</key>
                <string>com.apple.driver.AppleIntelFramebufferAzul</string>
                <key>Limit</key>
                <integer>0</integer>
                <key>Mask</key>
                <data></data>
                <key>MaxKernel</key>
                <string></string>
                <key>MinKernel</key>
                <string>19.0.0</string>
                <key>Replace</key>
                <data>McCQkOtt</data>
                <key>ReplaceMask</key>
                <data></data>
                <key>Skip</key>
                <integer>0</integer>
            </dict>
        </array>
    </dict>

 

The bytes are sure there in AppleIntelFramebufferAzul:

test@Mac-mini ~ % xxd -g 0 -c 32 /System/Library/Extensions/AppleIntelFramebufferAzul.kext/Contents/MacOS/AppleIntelFramebufferAzul |grep "$(echo 'McCEyXVt'|base64 -D|xxd -p)"
0000f240: b600000089c131c084c9756d48ff052d63060048ff05365e0600458b86d80100  ......1...umH..-c..H..6^..E.....

 

However the patch does not get applied:

58:389 00:035 OCAK: Failed to pk find com.apple.driver.AppleIntelFramebufferAzul - Not Found
58:389 00:000 OC: Prelinked patcher result 0 for com.apple.driver.AppleIntelFramebufferAzul (TEST ignore result validateSourceSize AppleIntelFramebufferAzul) - Not Found

 

Can anybody help me understand why does the patch does not get applied?

 

 

Link to comment
Share on other sites

I found the answer to why the patch does not get applied here:

https://github.com/acidanthera/bugtracker/issues/1244

 

 

Quote

the kernel caches are now separated in 3 files (kernel collections): boot kernel extensions, auxiliary kernel extensions, and user kernel extensions. First two are built by Apple and are never modified by the end user. Last two are loaded by the kernel and thus are unavailable during boot. All GPU drivers belong to auxiliary kernel collection, making the only possible way to patch them is via Lilu and friends.

 

  • Like 1
Link to comment
Share on other sites

  • 2 years later...
 Share

×
×
  • Create New...