jan4321 Posted February 13, 2021 Share Posted February 13, 2021 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 More sharing options...
jan4321 Posted February 13, 2021 Author Share Posted February 13, 2021 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. 1 Link to comment Share on other sites More sharing options...
Ravenstein Posted December 9, 2023 Share Posted December 9, 2023 so @jan4321 How do you solve your issue? any alternative esp. as you said the bytes are definitely there? Link to comment Share on other sites More sharing options...
cankiulascmnfye Posted December 10, 2023 Share Posted December 10, 2023 (edited) @jan4321 What does this patch do exactly? Maybe there's another way by injecting framebuffer flags or connector flags or something to get the desired effect. In Sonoma I couldn't find the AppleIntelFramebufferAzul driver. No idea where it's located. Edited December 10, 2023 by cankiulascmnfye Link to comment Share on other sites More sharing options...
Recommended Posts