Contribute
Register

[Guide] Creating a Custom SSDT for USBInjectAll.kext

Still ejecting randomly, new troubleshooting files attached. Done everything you suggested.
Code:
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext USBInjectAll.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext RealtekRTL8111.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext realtekALC.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext FakeSMC.kext
kext-dev-mode allowing invalid signature -67013 0xFFFFFFFFFFFEFA3B for kext AppleMobileDevice.kext
kext-dev-mode allowing invalid signature -67054 0xFFFFFFFFFFFEFA12 for kext AppleHDA.kext
KernelCache ID: 0E998D29CF08D061DA33864106098EEB
symlink("/System/Library/PrelinkedKernels/prelinkedkernel", "/System/Library/Caches/com.apple.kext.caches/Startup/kernelcache") failed 17 (File exists) <createPrelinkedKernel 2795>

kextstat|grep -y acpiplat
   13    1 0xffffff7f8359d000 0x66000    0x66000    com.apple.driver.AppleACPIPlatform (5.0) 867C81BE-EA01-3A65-89F4-06D78E6514CA <12 11 7 6 5 4 3 1>
kextstat|grep -y appleintelcpu
kextstat|grep -y applelpc
   89    0 0xffffff7f83113000 0x3000     0x3000     com.apple.driver.AppleLPC (3.1) F51595F0-F9B1-3B85-A1C3-F984DAD4107E <86 12 5 4 3>
kextstat|grep -y applehda
   92    1 0xffffff7f83287000 0x1d000    0x1d000    com.apple.driver.AppleHDAController (278.56) CFB0D0AE-F09A-3660-8F95-7A02FD5FBF07 <91 90 79 12 7 6 5 4 3 1>
  127    0 0xffffff7f83409000 0xb4000    0xb4000    com.apple.driver.AppleHDA (278.56) A4EB06C9-A40A-39EF-9C4A-D7F23DB9A2F9 <126 104 92 91 90 79 6 5 4 3 1>
 

Attachments

  • clover.zip
    582 KB · Views: 68
  • ioreg.zip
    853.3 KB · Views: 78
How do I go about addressing "no accommodation of _OSI("Darwin")" that you originally mentioned? I compiled and installed ssdt-xosi, added the find and replace patch, but don't know about the sorted order bit. What would be the order? I have ssdt.aml(ssdtprgen), ssdt-1.aml(injects lpc id), ssdt-xosi.aml, ssdt-uiac.aml

Code:
<key>SortedOrder</key>
       <array>
           <string>SSDT.aml</string>
           <string>SSDT-1.aml</string>
           <string>SSDT-XOSI.aml</string>
           <string>SSDT-UIAC.aml</string>
       </array>

I fixed everything else and moved kexts to s/l/e also

"OS Check Fix" patches in ACPI patching guide...
https://www.tonymacx86.com/threads/guide-patching-laptop-dsdt-ssdts.152573/

Or, like you mention, you can use _OSI->XOSI patch + SSDT-XOSI.aml (as mentioned in my hotpatch guide).

Of the SSDTs you mention, there is no load order dependency, therefore no reason to use SortedOrder. SortedOrder is primarily needed only if you have patched OEM SSDTs in ACPI/patched.
 
Or, like you mention, you can use _OSI->XOSI patch + SSDT-XOSI.aml (as mentioned in my hotpatch guide).
I did do this(though I used sorted order, which I will clear), the resulting ioreg and all are right above your post, with the usb drives still ejecting themselves :/ (as an aside, does everyone need the XOSI patch? I'm asking so I can help a friend add it to his hackintosh)

This is what it looks like after I moved to another port. In this case, the front port was disconnecting too much. The back port does it less, but does it at least once every 15mins or so
Screen Shot 2017-03-28 at 00.45.58.png
 
Last edited:
I did do this(though I used sorted order, which I will clear), the resulting ioreg and all are right above your post, with the usb drives still ejecting themselves :/ (as an aside, does everyone need the XOSI patch? I'm asking so I can help a friend add it to his hackintosh)

This is what it looks like after I moved to another port. In this case, the front port was disconnecting too much. The back port does it less, but does it at least once every 15mins or so
View attachment 244550

I would have to see the resulting ioreg...
But maybe it is a device specific problem...
 
It does not appear that USBInjectAll.kext is installed.
Read post #1.

Hi Rehabman. Got a quick question in Ioreg it shows HP11 to HP18, PRT1,3,8 do i remove these sorts of Ports?
 

Attachments

  • Jack’s iMac.ioreg
    4.8 MB · Views: 123
Last edited:
Hi Rehabman. Got a quick question in Ioreg it shows HP11 to HP18, PRT1,3,8 do i remove these sorts of Ports?

HPxx ports can be removed with "HUB1", "HUB2" configuration in the SSDT.
PRT1,PRT3,PRT8 come from AppleUSBHub.kext (Plugin in IOUSBHostFamily.kext). Look at the Info.plist and you'll see...
Getting rid of PRTx requires patching AppleUSBHub.kext or using a different SMBIOS.
 
I would have to see the resulting ioreg...
But maybe it is a device specific problem...
The ioreg was in the above post. Do you want the ioreg with it disconnected multiple times? Also, without darkwake my computer doesn't wake the screen after sleep, can I put it back in?
 
HPxx ports can be removed with "HUB1", "HUB2" configuration in the SSDT.
PRT1,PRT3,PRT8 come from AppleUSBHub.kext (Plugin in IOUSBHostFamily.kext). Look at the Info.plist and you'll see...
Getting rid of PRTx requires patching AppleUSBHub.kext or using a different SMBIOS.

What would the easiest to do? I know you mentioned something about using XHCIMux.
 
What would the easiest to do? I know you mentioned something about using XHCIMux.

Easiest between what?
For your current situation, both of the tasks in my reply need to be done.
 
Back
Top