Micky1979 Posted July 6, 2016 Share Posted July 6, 2016 Sure! This is the log: 0:138 0:000 KextsToPatch: 6 requested 0:138 0:000 KextsToPatch 0: IOAHCIBlockStorage (Enable TRIM for SSD)Matched OSes: 10.11.6,10.12.x 0:138 0:000 Kext bin patch, data len: 11 0:138 0:000 KextsToPatch 1: AppleUSBXHCIPCI (remove usb limit)Matched OSes: 10.7.x,10.8.x,10.9.x,10.10.x,10.11.x,10.12.x 0:138 0:000 Kext bin patch, data len: 7 0:138 0:000 KextsToPatch 2: AppleHDA (Zeroing 11d41983 codec)Matched OSes: 10.7.x,10.8.x,10.9.x,10.10.x,10.11.x 0:138 0:000 Kext bin patch, data len: 4 0:138 0:000 KextsToPatch 3: AppleHDA (Zeroing 11d4198a codec (patched by AppleHDA Patcher.app))Matched OSes: 10.12.x 0:138 0:000 Kext bin patch, data len: 4 0:138 0:000 KextsToPatch 4: AppleHDA (Zeroing 11d41984 codec (patched by AppleHDA Patcher.app)) Kext bin patch, data len: 4 0:138 0:000 KextsToPatch 5: AppleHDA (Patching 11d4198b with 111d76e0 codec (patched by AppleHDA Patcher.app)) Kext bin patch, data len: 4 Trim is enabled only for EC and Sierra (not working in Yosemite ...is wanted.. and is a test, so OSes are matched correctly ) KextsToPatch 3 make my audio in a working state only for Sierra! (I'm in Sierra) KextsToPatch 2 make my audio working in all other OSes... as I tested BOOTIA32.efi.zip BOOTX64.efi.zip CLOVERIA32.efi.zip CLOVERX64.efi.zip 2 Link to comment Share on other sites More sharing options...
MattsCreative Posted July 6, 2016 Share Posted July 6, 2016 with what version, me or cecekpawon? i used both your files together so im not sure Link to comment Share on other sites More sharing options...
Riley Freeman Posted July 6, 2016 Share Posted July 6, 2016 Should have posted this here, but 3589 hangs on my laptop when applying kext patches in Sierra if I have MatchOS set. If I remove MatchOS it works fine. It doesn't hang with El Capitan. Link to comment Share on other sites More sharing options...
sebinouse Posted July 6, 2016 Share Posted July 6, 2016 Sure! Thanks ! 1 Link to comment Share on other sites More sharing options...
Micky1979 Posted July 6, 2016 Share Posted July 6, 2016 Should have posted this here, but 3589 hangs on my laptop when applying kext patches in Sierra if I have MatchOS set. If I remove MatchOS it works fine. It doesn't hang with El Capitan. Rebooting in 10.12 DP2.. see you after the reboot.. Link to comment Share on other sites More sharing options...
MattsCreative Posted July 6, 2016 Share Posted July 6, 2016 Sure! This is the log: 0:138 0:000 KextsToPatch: 6 requested 0:138 0:000 KextsToPatch 0: IOAHCIBlockStorage (Enable TRIM for SSD)Matched OSes: 10.11.6,10.12.x 0:138 0:000 Kext bin patch, data len: 11 0:138 0:000 KextsToPatch 1: AppleUSBXHCIPCI (remove usb limit)Matched OSes: 10.7.x,10.8.x,10.9.x,10.10.x,10.11.x,10.12.x 0:138 0:000 Kext bin patch, data len: 7 0:138 0:000 KextsToPatch 2: AppleHDA (Zeroing 11d41983 codec)Matched OSes: 10.7.x,10.8.x,10.9.x,10.10.x,10.11.x 0:138 0:000 Kext bin patch, data len: 4 0:138 0:000 KextsToPatch 3: AppleHDA (Zeroing 11d4198a codec (patched by AppleHDA Patcher.app))Matched OSes: 10.12.x 0:138 0:000 Kext bin patch, data len: 4 0:138 0:000 KextsToPatch 4: AppleHDA (Zeroing 11d41984 codec (patched by AppleHDA Patcher.app)) Kext bin patch, data len: 4 0:138 0:000 KextsToPatch 5: AppleHDA (Patching 11d4198b with 111d76e0 codec (patched by AppleHDA Patcher.app)) Kext bin patch, data len: 4 Trim is enabled only for EC and Sierra (not working in Yosemite ...is wanted.. and is a test, so OSes are matched correctly ) KextsToPatch 3 make my audio in a working state only for Sierra! (I'm in Sierra) KextsToPatch 2 make my audio working in all other OSes... as I tested these cause kernel panics https://drive.google.com/file/d/0B3y5hldpEFDYbDlCb0hGRHBWNlU/view?usp=sharingclover 3589 installer Link to comment Share on other sites More sharing options...
sebinouse Posted July 6, 2016 Share Posted July 6, 2016 Sure! This is the log: 0:138 0:000 KextsToPatch: 6 requested 0:138 0:000 KextsToPatch 0: IOAHCIBlockStorage (Enable TRIM for SSD)Matched OSes: 10.11.6,10.12.x 0:138 0:000 Kext bin patch, data len: 11 0:138 0:000 KextsToPatch 1: AppleUSBXHCIPCI (remove usb limit)Matched OSes: 10.7.x,10.8.x,10.9.x,10.10.x,10.11.x,10.12.x 0:138 0:000 Kext bin patch, data len: 7 0:138 0:000 KextsToPatch 2: AppleHDA (Zeroing 11d41983 codec)Matched OSes: 10.7.x,10.8.x,10.9.x,10.10.x,10.11.x 0:138 0:000 Kext bin patch, data len: 4 0:138 0:000 KextsToPatch 3: AppleHDA (Zeroing 11d4198a codec (patched by AppleHDA Patcher.app))Matched OSes: 10.12.x 0:138 0:000 Kext bin patch, data len: 4 0:138 0:000 KextsToPatch 4: AppleHDA (Zeroing 11d41984 codec (patched by AppleHDA Patcher.app)) Kext bin patch, data len: 4 0:138 0:000 KextsToPatch 5: AppleHDA (Patching 11d4198b with 111d76e0 codec (patched by AppleHDA Patcher.app)) Kext bin patch, data len: 4 Trim is enabled only for EC and Sierra (not working in Yosemite ...is wanted.. and is a test, so OSes are matched correctly ) KextsToPatch 3 make my audio in a working state only for Sierra! (I'm in Sierra) KextsToPatch 2 make my audio working in all other OSes... as I tested Your files work fine as long as MatchOS is not set ... If it is set to "10.12.x" it hangs at kext patch ... Link to comment Share on other sites More sharing options...
Micky1979 Posted July 6, 2016 Share Posted July 6, 2016 Riley Freeman and sebinouse can I have your SystemVersion.plist? Link to comment Share on other sites More sharing options...
sebinouse Posted July 6, 2016 Share Posted July 6, 2016 Riley Freeman and sebinouse can I have your SystemVersion.plist? Ok I missed something ... As I don't have any SystemVersion.plist ... Only one config.plist and that's it ! Can you point me which updates I have missed ? thx Link to comment Share on other sites More sharing options...
Micky1979 Posted July 6, 2016 Share Posted July 6, 2016 Oh sorry I mean that: /System/Library/CoreServices/SystemVersion.plist Link to comment Share on other sites More sharing options...
Riley Freeman Posted July 6, 2016 Share Posted July 6, 2016 @sebinouse it's in /System/Library/CoreServices/ Here's mine. Not sure what you're expecting to see though. Looks normal to me. SystemVersion_laptop.zip Link to comment Share on other sites More sharing options...
Micky1979 Posted July 6, 2016 Share Posted July 6, 2016 @sebinouse it's in /System/Library/CoreServices/ Here's mine. Not sure what you'e expecting to see though. Looks normal to me. Yep in fact is fine, but I remembar Lion installer where the ProductVersion key was like that: ProductVersion= "10.7.1 " With an additional space to the end of the string. The code compare the MatchOS string by splitting in sub string when a "," is found", but this does not happen when no separators are found and so use the entire string as to find a match. Later in the code this is again split i their components separated by ".", so the array will come like that: 10 7 x .. the same for the ProductVersion key: 10 7 1 So the code compare index 0 of MatchOS key (10) if equal to ProductVersion index 0 (10) .. same for the index 1: compare index 1 of MatchOS key (7) if equal to ProductVersion index 1 (7) if MatchOS index 2, ie x the function return as valid because should not compare index 2 of ProductVersion since the first two are already equal. There's only a different approach loading the string in case of only one Os is given and maybe we should check for the null terminated character or something else. Also why I ask for the SystemVersion.plist, considering that here works. Ok I have a few patches.... BTW is a new patch and need to be well debug Link to comment Share on other sites More sharing options...
Riley Freeman Posted July 6, 2016 Share Posted July 6, 2016 Ok, well at least that's ruled out. It's just weird that it hangs on the laptop but not the desktop. 1 Link to comment Share on other sites More sharing options...
sebinouse Posted July 6, 2016 Share Posted July 6, 2016 Oh sorry I mean that: /System/Library/CoreServices/SystemVersion.plist Here it is ! SystemVersion.plist.zip 1 Link to comment Share on other sites More sharing options...
bs0d Posted July 6, 2016 Share Posted July 6, 2016 you could just convert the elements to integers. 2 Link to comment Share on other sites More sharing options...
Micky1979 Posted July 6, 2016 Share Posted July 6, 2016 atoi? BTW I think is a memory leak again. Here it is ! It's ok. Link to comment Share on other sites More sharing options...
Fljagd Posted July 6, 2016 Share Posted July 6, 2016 @sebinouse it's in /System/Library/CoreServices/ Here's mine. Not sure what you're expecting to see though. Looks normal to me. Type in terminal sw_vers -productVersion Link to comment Share on other sites More sharing options...
Micky1979 Posted July 6, 2016 Share Posted July 6, 2016 Guys, making a new command line with refactored code where you can pass as argument your config.plist and w/o need to boot with modified Clover.. testers needed. Give me 20 minutes Usage: MatchOS_test /path/to/a/config.plist Os version is taken from your System. Just need a config with some MatchOS entries. That's why I think is a memory problem: 1) build the command and run it. Save the output. 2) open the project and uncomment line 65: //deallocMatchOSes(mos); to be: deallocMatchOSes(mos); 3) build again and re-run the command 4) Compare outputs and let me know. MatchOS_test.zip Link to comment Share on other sites More sharing options...
sebinouse Posted July 6, 2016 Share Posted July 6, 2016 Type in terminal sw_vers -productVersion Last login: Wed Jul 6 19:52:32 on console Mac-mini:~ nuc$ sw_vers -productVersion 10.12 Link to comment Share on other sites More sharing options...
Riley Freeman Posted July 6, 2016 Share Posted July 6, 2016 The output from both is the same here. I ran it in El Capitan so I could boot into it with MatchOS set in the config. Strangely, it says that the first patch is disabled even though it should match. ------------------- MatchOS = 10.11.x Patch 0 with comment (HD4000 Boot Fix) is Disabled for 10.11.5 ------------------- MatchOS = 10.12.x Patch 1 with comment (HD4000 Boot Fix (10.12)) is Disabled for 10.11.5 ------------------- Link to comment Share on other sites More sharing options...
Fljagd Posted July 6, 2016 Share Posted July 6, 2016 Guys, making a new command line with refactored code where you can pass as argument your config.plist and w/o need to boot with modified Clover.. testers needed. Give me 20 minutes Usage: MatchOS_test /path/to/a/config.plist Os version is taken from your System. Just need a config with some MatchOS entries. That's why I think is a memory problem: 1) build the command and run it. Save the output. 2) open the project and uncomment line 65: //deallocMatchOSes(mos); to be: deallocMatchOSes(mos); 3) build again and re-run the command 4) Compare outputs and let me know. 2 such Archive.zip Link to comment Share on other sites More sharing options...
Micky1979 Posted July 6, 2016 Share Posted July 6, 2016 Here is: not freed: ------------------- MatchOS = 10.11.6,10.12.x Patch 0 with comment (Enable TRIM for SSD) is Enabled for 10.11.6 ------------------- MatchOS = 10.7.x,10.8.x,10.9.x,10.10.x,10.11.x,10.12.x Patch 1 with comment (remove usb limit) is Enabled for 10.11.6 ------------------- MatchOS = 10.7.x,10.8.x,10.9.x,10.10.x,10.11.x Patch 2 with comment (Zeroing 11d41983 codec) is Enabled for 10.11.6 ------------------- MatchOS = 10.12.x Patch 3 with comment (Zeroing 11d4198a codec (patched by AppleHDA Patcher.app)) is Disabled for 10.11.6 ------------------- Patch 4 with comment (Zeroing 11d41984 codec (patched by AppleHDA Patcher.app)) has no MatchOS entry.. ------------------- Patch 5 with comment (Patching 11d4198b with 111d76e0 codec (patched by AppleHDA Patcher.app)) has no MatchOS entry.. ------------------- Freed: ------------------- MatchOS = 10.11.6,10.12.x Patch 0 with comment (Enable TRIM for SSD) is Enabled for 10.11.6 ------------------- MatchOS = 10.7.x,10.8.x,10.9.x,10.10.x,10.11.x,10.12.x Patch 1 with comment (remove usb limit) is Enabled for 10.11.6 ------------------- MatchOS = 10.7.x,10.8.x,10.9.x,10.10.x,10.11.x Patch 2 with comment (Zeroing 11d41983 codec) is Enabled for 10.11.6 ------------------- MatchOS = 10.12.x Patch 3 with comment (Zeroing 11d4198a codec (patched by AppleHDA Patcher.app)) is Enabled for 10.11.6 ------------------- Patch 4 with comment (Zeroing 11d41984 codec (patched by AppleHDA Patcher.app)) has no MatchOS entry.. ------------------- Patch 5 with comment (Patching 11d4198b with 111d76e0 codec (patched by AppleHDA Patcher.app)) has no MatchOS entry.. ------------------- look at "Patch 3" of both 2 such You should have MatchOS set in each KextsToPatch dictionary: <dict> <key>MatchOS</key> <string>10.7.x,10.8.x,10.9.x,10.10.x,10.11.x</string> <key>Comment</key> <string>Zeroing 11d41983 codec</string> <key>Find</key> <data>gxnUEQ==</data> <key>Name</key> <string>AppleHDA</string> <key>Replace</key> <data>AAAAAA==</data> </dict> otherwise we cannot see nothing. EDIT just make a copy of a config plist to your Desktop and play with it.. no need to be your real one.. The output from both is the same here. I ran it in El Capitan so I could boot into it with MatchOS set in the config. Strangely, it says that the first patch is disabled even though it should match. ------------------- MatchOS = 10.11.x Patch 0 with comment (HD4000 Boot Fix) is Disabled for 10.11.5 ------------------- MatchOS = 10.12.x Patch 1 with comment (HD4000 Boot Fix (10.12)) is Disabled for 10.11.5 ------------------- Please make it like that: VOID deallocMatchOSes(struct MatchOSes *s) { return; INTN i; assert(s != NULL); for (i = 0; i < s->count; i++) { FreePool(s->array); } FreePool(s); } 1 Link to comment Share on other sites More sharing options...
Riley Freeman Posted July 6, 2016 Share Posted July 6, 2016 Please make it like that: VOID deallocMatchOSes(struct MatchOSes *s) { return; INTN i; assert(s != NULL); for (i = 0; i < s->count; i++) { FreePool(s->array); } FreePool(s); } No difference. I'll try it in Sierra. Update: No difference in Sierra. Still says that both patches are Disabled. 1 Link to comment Share on other sites More sharing options...
Micky1979 Posted July 6, 2016 Share Posted July 6, 2016 Confirm that is happened with only one OS set and not if you do like that? --> MatchOS = 10.11.x,10.13.x ..that means that only one token is not allocated correctly an return true always allowing the patch due to this: if (!MatchOS || !CurrOS) { return TRUE; //undefined matched corresponds to old behavior } MatchOS is NULL Link to comment Share on other sites More sharing options...
Riley Freeman Posted July 6, 2016 Share Posted July 6, 2016 In Sierra when I added a second OS to the strings both commands ended with "Segmentation fault: 11". Link to comment Share on other sites More sharing options...
Recommended Posts