Contribute
Register

Patch AppleHDA kext on-the-fly with Clover bootloader

Status
Not open for further replies.
Joined
Jan 29, 2013
Messages
747
Motherboard
Gigabyte Z390 Aorus Pro Wifi
CPU
I7-9700K
Graphics
NITRO+ RX 5700 XT
Mac
  1. iMac
Mobile Phone
  1. iOS
Sorry, couple of noob questions coming your way....



Just to clarify:

This in theory (or confirmed?) allows us, on clover at least, to update, without the need to replace AppleHDA.kext again?

The above is provided these two>

layout12.zml.zlib
Platforms.zml.zlib

<remain after update?

The above two files are copied from modded AppleHDA, copied to vanilla AppleHDA and renamed?

ProBookIDT.kext goes in SLE, and will not be removed during update due to being none standard apple kext, or would need replacing again?


Sorry about the basic questions, thought it all made sense, then wanted to check lol

Thanks
 

RehabMan

Moderator
Joined
May 2, 2012
Messages
183,514
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
Sorry, couple of noob questions coming your way....



Just to clarify:

This in theory (or confirmed?) allows us, on clover at least, to update, without the need to replace AppleHDA.kext again?

The above is provided these two>

layout12.zml.zlib
Platforms.zml.zlib

<remain after update?

I think it is likely.

The above two files are copied from modded AppleHDA, copied to vanilla AppleHDA and renamed?

Yes.

ProBookIDT.kext goes in SLE, and will not be removed during update due to being none standard apple kext, or would need replacing again?

Generally, the Apple updates never remove "non-standard" kexts...
 
Joined
Jan 29, 2013
Messages
747
Motherboard
Gigabyte Z390 Aorus Pro Wifi
CPU
I7-9700K
Graphics
NITRO+ RX 5700 XT
Mac
  1. iMac
Mobile Phone
  1. iOS
hmm, didn't work for me.

Ive double checked, think Ive done everything correctly.

Screen Shot 2013-12-12 at 21.42.28.jpg

Copied said files from patched AppleHDA, replaced x>z as instructed, copied both files to resources vanilla AppleHDA, put that and other kext in SLE, repaired cache etc..

Did I miss something?

*fixed it , all working.

Thanks
 
Joined
Oct 21, 2012
Messages
3,445
Motherboard
HP Elitebook 8470p
CPU
i5 3320M
Graphics
HD 4000, 1600x900
Mobile Phone
  1. iOS
Sorry for that....
But the deleted post was meant for 10.9 kext. Now if it will work in the future is up to Apple.
Can i repost?

The code does not work. Your script works though.
 
Joined
Nov 24, 2012
Messages
629
Motherboard
HP Probook 6470b
CPU
Intel Core i5-3320M
Graphics
Intel HD 4000, 1600x900
Mac
Classic Mac
Mobile Phone
The code does not work. Your script works though.
Will check again if I messed up somewhere.
Because if clover does things as described it should work.

BTW: you have a 1600x900 display and running on AAPL,ig-platform-id: 01660004, right?

Edit:
Can you get the kext clover patches and attach it here?
 
Joined
Oct 21, 2012
Messages
3,445
Motherboard
HP Elitebook 8470p
CPU
i5 3320M
Graphics
HD 4000, 1600x900
Mobile Phone
  1. iOS
Will check again if I messed up somewhere.
Because if clover does things as described it should work.

BTW: you have a 1600x900 display and running on AAPL,ig-platform-id: 01660004, right?

Edit:
Can you get the kext clover patches and attach it here?

Yes, I'm using 01660004. Can you give me a terminal code script to patch similar to the Clover script you posted?

Clover patches the kext in kernel cache, not the real cache, so I can't get it.
 
Joined
Nov 24, 2012
Messages
629
Motherboard
HP Probook 6470b
CPU
Intel Core i5-3320M
Graphics
Intel HD 4000, 1600x900
Mac
Classic Mac
Mobile Phone
Yes, I'm using 01660004. Can you give me a terminal code script to patch similar to the Clover script you posted?

Clover patches the kext in kernel cache, not the real cache, so I can't get it.
Yeah good idea, I will try to dumb down my script, so we can test it out in the terminal first.
 
Joined
Oct 21, 2012
Messages
3,445
Motherboard
HP Elitebook 8470p
CPU
i5 3320M
Graphics
HD 4000, 1600x900
Mobile Phone
  1. iOS
Yeah good idea, I will try to dumb down my script, so we can test it out in the terminal first.

In the original patch, I see that you change also:
04 00 00 81 -> 08 00 00 06

Is it necessary?
 
Joined
Nov 24, 2012
Messages
629
Motherboard
HP Probook 6470b
CPU
Intel Core i5-3320M
Graphics
Intel HD 4000, 1600x900
Mac
Classic Mac
Mobile Phone
I tried this and it works:
Code:
sudo perl -pi -e 's|\x01\x03\x01\x01\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x40\x10\x07\x00\x00\x10\x07\x00\x00\x00\x00\x00\x00\x70\x36\x05\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x05\x03\x00\x00\x02\x00\x00\x00\x30\x02\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x40\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x40\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x40\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00|\x01\x02\x04\x02\x00\x00\x00\x04\x00\x00\x00\x01\x00\x00\x00\x40\x10\x07\x00\x00\x10\x07\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x05\x03\x00\x00\x02\x00\x00\x00\x30\x02\x00\x00\x02\x05\x00\x00\x00\x04\x00\x00\x07\x04\x00\x00\x03\x04\x00\x00\x00\x04\x00\x00\x81\x00\x00\x00\x04\x06\x00\x00\x00\x04\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x11\x00\x00\x00\x00\x00\x00\x00\x00|' ~/Desktop/AppleIntelFramebufferCapri.kext/Contents/MacOS/AppleIntelFramebufferCapri
 
Status
Not open for further replies.
Top