Contribute
Register

[Guide] Creating a Custom SSDT for USBInjectAll.kext

RehabMan

Moderator
Joined
May 3, 2012
Messages
188,929
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
MacBook Air
Mobile Phone
iOS
Often RehabMan answers questions in this thread with "Read #1 carefully".

While carefully reading #1 I created an SSDT for my system, easily reducing the port count to bellow 15. However, after all configuration and rebooting, the SSDT was not activated. The IOregistry showed all ports in their full beauty as if the SSDT was not there.

The root cause was not reading #1 carefully enough. I had installed USBInjectAll.kext in /Library/Extentions instead of /System/Library/Extentions. Shame on me - the post says "(install to the system volume)".



After installing the kext in the correct location with KextBeast, everything works like a charm and I can even boot from an USB3 disk (with the kext in its /S/L/E dir) that failed to boot after the port limit patch got stale some time ago.

I am posting this because searching for SSDT USBInjectAll Fails and SSDT USBInjectAll no change did not give me any hints and this may help others troubleshooting. And because I am still a bit puzzled as I recall that during troubleshooting I established that the kext was loaded when it was in /Library/Extentions/.

Hat tip to RehabMan for the excellent tools, good Howtos, and community engagement.

--OMK
As per FAQ, kexts on 10.11 and later are installed to /L/E (/Library/Extensions), not /S/L/E.
Although USBInjectAll.kext will work from either.

Kexts should never be installed to /Library/Extentions, macOS/OS X will ignore anything you place there.
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
188,929
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
MacBook Air
Mobile Phone
iOS
i was so stupid, didnt know that usbinject.kext has newer version (maybe RehabMan should mention that for stupids like me).
Post #1 has the link to the required USBInjectAll.kext.
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
188,929
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
MacBook Air
Mobile Phone
iOS
Hi rehabman, im attaching my ioreg to fix a sleep/wake issue with a GA-Z68M-D2H board and a BCM94360CS2 card in an adapter running via PCIe with a usb header for bluetooth.
Not sure what port the usb header is on or what to edit once i find the appropriate port?
You need to follow post #1.
Your ioreg proves you don't even have the EHCx->EH0x renames.
 
Joined
Jun 14, 2011
Messages
33
Motherboard
ASRock Fatal1ty Z370 Gaming-ITX
CPU
i7-9700k
Graphics
Vega 56
Got it... I have edited the EHCx renames.
Ive attempted to follow your guide to create a usb ssdt but no luck. can you take a look at my ioreg?
Ive uploaded my SSDT as well
 

Attachments

RehabMan

Moderator
Joined
May 3, 2012
Messages
188,929
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
MacBook Air
Mobile Phone
iOS
Got it... I have edited the EHCx renames.
Ive attempted to follow your guide to create a usb ssdt but no luck. can you take a look at my ioreg?
Ive uploaded my SSDT as well
"Problem Reporting" files are incomplete.
Read FAQ, "Problem Reporting" again. Carefully. Attach all requested files/output.
https://www.tonymacx86.com/threads/faq-read-first-laptop-frequent-questions.164990/
Use the gen_debug.sh tool mentioned in the FAQ, that way it is less likely you'll omit something.
 
Joined
Jun 14, 2011
Messages
33
Motherboard
ASRock Fatal1ty Z370 Gaming-ITX
CPU
i7-9700k
Graphics
Vega 56

Attachments

Joined
Jul 20, 2012
Messages
23
Motherboard
OSX 10.12.6
CPU
i7 2600k 3.4 (OC 4.2)
Graphics
Gainward GTX970 4gb
Mac
MacBook Pro, Mac mini
Mobile Phone
iOS
I'm just about to try to get USB3 working on my system again and was wondering if my specs are too low for it to work in High Sierra...

Gigabyte GA-Z68X-UD3R - i7-2600K - GTX 970 4GB

Should this system support USB3 in a Hackintosh?
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
188,929
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
MacBook Air
Mobile Phone
iOS
The SSDT-UIAC-ALL.aml you have created is working.
If you look under EH01, you will see only the PR01 defined by the SSDT.
Of course, EH02, HUB1, HUB2 are all still defaulted to a complete list of ports as per USBInjectAll.kext defaults as you didn't provide overrides for those.
You need to finish as per post #1.
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
188,929
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
MacBook Air
Mobile Phone
iOS
I'm just about to try to get USB3 working on my system again and was wondering if my specs are too low for it to work in High Sierra...

Gigabyte GA-Z68X-UD3R - i7-2600K - GTX 970 4GB

Should this system support USB3 in a Hackintosh?
6-series USB is not natively supported (6-series Intel chipset does not have USB3).
As per post #1, this covers only natively supported USB3.

You should add a supported USB3 card (such as FL1100-based card).
 
Joined
Jun 14, 2011
Messages
33
Motherboard
ASRock Fatal1ty Z370 Gaming-ITX
CPU
i7-9700k
Graphics
Vega 56
The SSDT-UIAC-ALL.aml you have created is working.
If you look under EH01, you will see only the PR01 defined by the SSDT.
Of course, EH02, HUB1, HUB2 are all still defaulted to a complete list of ports as per USBInjectAll.kext defaults as you didn't provide overrides for those.
You need to finish as per post #1.
I have edited my SSDT.
I added PRO1 to EH01.
Should all my hubs be labeled 255?
When saving out from DSL to AML, why does the "//"UsbConnector", 255" line disappear?

I attached my dsl, aml as well as ioreg if you have the time to take a look.
Thx for the help rehabman!
 

Attachments

Top