Contribute
Register

Patch AppleHDA kext on-the-fly with Clover bootloader

Status
Not open for further replies.
Joined
Oct 21, 2012
Messages
3,445
Motherboard
HP Elitebook 8470p
CPU
i5 3320M
Graphics
HD 4000, 1600x900
Mobile Phone
  1. iOS
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


Changing the "8" bit in original patch to "4" makes my Display port-to-VGA not work. The following code works to me:
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\x08\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

I see you try to interchange "4" and "8" to make them unique right? Can you confirm this works to you too?

About Clover patch, I think we have some problem, need to debug later.
 
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
Changing the "8" bit in original patch to "4" makes my Display port-to-VGA not work. The following code works to me:
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\x08\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

I see you try to interchange "4" and "8" to make them unique right? Can you confirm this works to you too?
Nah, you got it right, I overlooked that (it is interesting, my DP>HDMI worked fine).

About Clover patch, I think we have some problem, need to debug later.
Yeah, or maybe ask in some forum where some of the Clover developers hangout.
 
Joined
Oct 21, 2012
Messages
3,445
Motherboard
HP Elitebook 8470p
CPU
i5 3320M
Graphics
HD 4000, 1600x900
Mobile Phone
  1. iOS
Ive just restarted, and for some reason lost audio again?

Only thing I did was switch between UEFI without CSM> with CSM to boot windows legacy, then back again..

Try repair permission/rebuild cache.
 
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
Try repair permission/rebuild cache.


Thats made no change unfortunately.

it seems appleHDA.kext is loaded

Code:
com.apple.driver.AppleHDA (2.5.2fc2)

here is config.

View attachment config.plist

Checked files are still in place in AppleHDA.kext/Contents/Resources

Also confirmed probookIDT.kext is still present.
 
Joined
Oct 21, 2012
Messages
3,445
Motherboard
HP Elitebook 8470p
CPU
i5 3320M
Graphics
HD 4000, 1600x900
Mobile Phone
  1. iOS
Try this (it's already has layout files)

Also, check Console for any "Sound assertition"
 

Attachments

  • AppleHDA.kext.zip
    1.2 MB · Views: 345
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
Well, I was expecting that to work, and then be kicking myself for having done something wrong like spelled something wrong or something, but its made no change after installing, repairing cache, permissions etc and restart..

Also, where do I look in log for sound assertions?
 
Joined
Oct 21, 2012
Messages
3,445
Motherboard
HP Elitebook 8470p
CPU
i5 3320M
Graphics
HD 4000, 1600x900
Mobile Phone
  1. iOS
Well, I was expecting that to work, and then be kicking myself for having done something wrong like spelled something wrong or something, but its made no change after installing, repairing cache, permissions etc and restart..

Also, where do I look in log for sound assertions?

Console, filter by "sound assertion". Also, try my AppleHDA to see if it works.
 
Status
Not open for further replies.
Top