Contribute
Register

[Guide] Creating a Custom SSDT for USBInjectAll.kext

Thank you RehabMan again, for providing us this amazing guide.

If someone is interested, here is the SSDT for Gigabyte Z390 Aorus Ultra mobo.
It has only a XHCI controller, with the following ports:

Hello, will this work on an already (mostly working) build? I have the same mobo with a i9 9900k, running 10.13.6. My USB's are mostly functional, but am having some issues with certain USB controllers and I was told it might be because I don't have the 15 port limit. Thank you for any help you might have.
 
Problem solved!!!!
I just had to read 1st post more carefully. I had to do rename
- EHC1->EH01 and EHC2->EH02
I thoought that on z370 that wouldn´t be needed

That had nothing to do with solving the problem.
100-series and later do not have EHCI.
 
Hello, will this work on an already (mostly working) build? I have the same mobo with a i9 9900k, running 10.13.6. My USB's are mostly functional, but am having some issues with certain USB controllers and I was told it might be because I don't have the 15 port limit. Thank you for any help you might have.

Not possible to answer your question with such vague details.
 
Thank you RehabMan again, for providing us this amazing guide.

If someone is interested, here is the SSDT for Gigabyte Z390 Aorus Ultra mobo.
It has only a XHCI controller, with the following ports:

(USB2 / USB3)
HS03 / SS03 : USB3.1 Gen2 [red], next to the Ethernet port
HS04 / SS04 : USB3.1 Gen2 [red], next to the Ethernet port
HS05 / SS05 : USB3.1 Gen1 [yellow], next to the Type-C port
HS06 / SS06 : USB3.1 Type-C back
HS07 / SS07 : USB3.1 Gen1 [yellow], next to the HDMI port
HS08 / SS08 : USB3.1 Gen1 [yellow], next to the HDMI port

(USB2)
HS11 : 4 USB2 back ports (hub)
HS12 : USB2 internal ITE, ignored to stay at 15 port limit
HS13 : 2 USB2 front ports (hub), assuming you're using the mobo USB_1 internal header
HS14 : USB2 internal bluetooth

Hey @biscate, I have the same Motherboard and Im trying to learn how to do this SSDT stuff.
What you came up with is pretty close to what I did with a couple exceptions, and I wanted to see what you thought.

Since HS06 is a USB type-C shouldn't the USBConnector be set to 9, rather than 3?

And since HS11 and HS13 are on internal hubs shouldn't they set to 255? Or is 255 ONLY for an internal device like the onboard bluetooth?

I'm also curious about what you have under "HUB1", and wondering if that is even necessary since we only have XHCI controllers on our boards?
Not trying to "pick" or be critical, just trying to understand what you did to see if I am doing something wrong.
 
Hey @biscate, I have the same Motherboard and Im trying to learn how to do this SSDT stuff.
What you came up with is pretty close to what I did with a couple exceptions, and I wanted to see what you thought.

Since HS06 is a USB type-C shouldn't the USBConnector be set to 9, rather than 3?
Yes, you're right, it's a fine tunning I didn't touch.

And since HS11 and HS13 are on internal hubs shouldn't they set to 255? Or is 255 ONLY for an internal device like the onboard bluetooth?
I understand that "internal" is used for onboard devices (like bluetooth), directly connected to the board (using an USB port). So, in this case, HS11 and HS13 are not internal, because they connect the board to external devices, (through back panel and headers to chassis connectors).

I'm also curious about what you have under "HUB1", and wondering if that is even necessary since we only have XHCI controllers on our boards?
I guess HUB1 is needed in the patch coding hierarchy, it's may be used to logically connects devices attached to ports grouped on hubs, like HS11 and HS13.
If I say something wrong, @RehabMan please correct my mind.

Not trying to "pick" or be critical, just trying to understand what you did to see if I am doing something wrong.
It's fine. We all learn together!
 
Last edited:
I understand that "internal" is used for onboard devices (like bluetooth), directly connected to the board (using an USB port). So, in this case, HS11 and HS13 are not internal, because they connect the board to external devices, (through back panel and headers to chassis connectors).

But if those ports are actually connected to an internal hub, should be UsbConnector=255.

I guess HUB1 is needed in the patch coding hierarchy, it's may be used to logically connects devices attached to ports grouped on hubs, like HS11 and HS13.
If I say something wrong, @RehabMan please correct my mind.

HUB1 has no application on systems where there is no EHCI controller.
 
Hi @RehabMan, in these days I have some kernel panic while I work, almost all of them report: last loaded kext at 31540879507967: com.apple.driver.usb.cdc.acm 5.0.0

Could it be a problem related to usb ports/controllers?

I've read that the 8086,a2af controller is now natively supported by High Sierra, so it's no longer necessary to use xhci-200-series-injector.kext, is that correct?

Or am I confusing?

Is there any wrong kext? Or a wrong clover setting?

Can I help me understand what's wrong?
Thank you so much!!
 

Attachments

  • debug_23112.zip
    2.1 MB · Views: 66
Hi @RehabMan, in these days I have some kernel panic while I work, almost all of them report: last loaded kext at 31540879507967: com.apple.driver.usb.cdc.acm 5.0.0

Could it be a problem related to usb ports/controllers?

I've read that the 8086,a2af controller is now natively supported by High Sierra, so it's no longer necessary to use xhci-200-series-injector.kext, is that correct?

Or am I confusing?

Is there any wrong kext? Or a wrong clover setting?

Can I help me understand what's wrong?
Thank you so much!!
you haven't installed your kexts properly:

Code:
Kext rejected due to improper filesystem permissions: <OSKext 0x7fa50cab4410 [0x7fffad9f9b30]> { URL = "FakeSMC.kext/ -- file:///Library/Extensions/", ID = "org.netkas.driver.FakeSMC" }
FakeSMC.kext does not authenticate; omitting.
Kext rejected due to improper filesystem permissions: <OSKext 0x7fa50ca70400 [0x7fffad9f9b30]> { URL = "FakeSMC_CPUSensors.kext/ -- file:///Library/Extensions/", ID = "org.hwsensors.driver.CPUSensors" }
FakeSMC_CPUSensors.kext does not authenticate; omitting.
Kext rejected due to improper filesystem permissions: <OSKext 0x7fa50ca6f900 [0x7fffad9f9b30]> { URL = "FakeSMC_GPUSensors.kext/ -- file:///Library/Extensions/", ID = "org.hwsensors.driver.GPUSensors" }
FakeSMC_GPUSensors.kext does not authenticate; omitting.
Kext rejected due to improper filesystem permissions: <OSKext 0x7fa50ca67500 [0x7fffad9f9b30]> { URL = "FakeSMC_ACPISensors.kext/ -- file:///Library/Extensions/", ID = "org.hwsensors.driver.ACPISensors" }
FakeSMC_ACPISensors.kext does not authenticate; omitting.
Kext rejected due to improper filesystem permissions: <OSKext 0x7fa50c9976e0 [0x7fffad9f9b30]> { URL = "USBInjectAll.kext/ -- file:///Library/Extensions/", ID = "com.rehabman.driver.USBInjectAll" }
USBInjectAll.kext does not authenticate; omitting.
Kext rejected due to improper filesystem permissions: <OSKext 0x7fa50c95cc70 [0x7fffad9f9b30]> { URL = "WhateverGreen.kext/ -- file:///Library/Extensions/", ID = "as.vit9696.WhateverGreen" }
WhateverGreen.kext does not authenticate; omitting.
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fa50c943e30 [0x7fffad9f9b30]> { URL = "IntelMausiEthernet.kext/ -- file:///Library/Extensions/", ID = "com.insanelymac.IntelMausiEthernet" }
Kext rejected due to improper filesystem permissions: <OSKext 0x7fa50c91e2d0 [0x7fffad9f9b30]> { URL = "FakeSMC_LPCSensors.kext/ -- file:///Library/Extensions/", ID = "org.hwsensors.driver.LPCSensors" }
FakeSMC_LPCSensors.kext does not authenticate; omitting.
Kext rejected due to improper filesystem permissions: <OSKext 0x7fa50c8fbca0 [0x7fffad9f9b30]> { URL = "Lilu.kext/ -- file:///Library/Extensions/", ID = "as.vit9696.Lilu" }
Lilu.kext does not authenticate; omitting.
kext file:///System/Library/Extensions/PACESupportFamily.kext/Contents/PlugIns/PACESupportSnowLeopard.kext/ is in hash exception list, allowing to load
KernelCache ID: 7C6AA8B0D37B1108CACB7E31C905155B
kext file:///System/Library/Extensions/PACESupportFamily.kext/ is in hash exception list, allowing to load
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fb69d083660 [0x7fffad9f9b30]> { URL = "PACESupportLeopard.kext/ -- file:///System/Library/Extensions/PACESupportFamily.kext/Contents/PlugIns/", ID = "com.paceap.kext.pacesupport.leopard" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fb69d086300 [0x7fffad9f9b30]> { URL = "PACESupportTiger.kext/ -- file:///System/Library/Extensions/PACESupportFamily.kext/Contents/PlugIns/", ID = "com.paceap.kext.pacesupport.tiger" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fb69d088940 [0x7fffad9f9b30]> { URL = "PACESupportPanther.kext/ -- file:///System/Library/Extensions/PACESupportFamily.kext/Contents/PlugIns/", ID = "com.paceap.kext.pacesupport.panther" }
kext file:///System/Library/Extensions/PACESupportFamily.kext/Contents/PlugIns/PACESupportSnowLeopard.kext/ is in hash exception list, allowing to load
Kext rejected due to improper filesystem permissions: <OSKext 0x7fb69c0054f0 [0x7fffad9f9b30]> { URL = "Lilu.kext/ -- file:///Library/Extensions/", ID = "as.vit9696.Lilu" }
Kext rejected due to improper filesystem permissions: <OSKext 0x7fb69d230220 [0x7fffad9f9b30]> { URL = "FakeSMC_LPCSensors.kext/ -- file:///Library/Extensions/", ID = "org.hwsensors.driver.LPCSensors" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fb69d24bf80 [0x7fffad9f9b30]> { URL = "IntelMausiEthernet.kext/ -- file:///Library/Extensions/", ID = "com.insanelymac.IntelMausiEthernet" }
Kext rejected due to improper filesystem permissions: <OSKext 0x7fb69d26e700 [0x7fffad9f9b30]> { URL = "WhateverGreen.kext/ -- file:///Library/Extensions/", ID = "as.vit9696.WhateverGreen" }
Kext rejected due to improper filesystem permissions: <OSKext 0x7fb69d28e980 [0x7fffad9f9b30]> { URL = "USBInjectAll.kext/ -- file:///Library/Extensions/", ID = "com.rehabman.driver.USBInjectAll" }
Kext rejected due to improper filesystem permissions: <OSKext 0x7fb69d321e00 [0x7fffad9f9b30]> { URL = "FakeSMC_ACPISensors.kext/ -- file:///Library/Extensions/", ID = "org.hwsensors.driver.ACPISensors" }
Kext rejected due to improper filesystem permissions: <OSKext 0x7fb69d3296b0 [0x7fffad9f9b30]> { URL = "FakeSMC_GPUSensors.kext/ -- file:///Library/Extensions/", ID = "org.hwsensors.driver.GPUSensors" }
Kext rejected due to improper filesystem permissions: <OSKext 0x7fb69d329890 [0x7fffad9f9b30]> { URL = "FakeSMC_CPUSensors.kext/ -- file:///Library/Extensions/", ID = "org.hwsensors.driver.CPUSensors" }
Kext rejected due to improper filesystem permissions: <OSKext 0x7fb69d370210 [0x7fffad9f9b30]> { URL = "FakeSMC.kext/ -- file:///Library/Extensions/", ID = "org.netkas.driver.FakeSMC" }

Kexts rejected... - all those should be removed and installed correctly

How and where to install kexts:
 
Back
Top