Contribute
Register

[Guide] Creating a Custom SSDT for USBInjectAll.kext

Joined
Nov 8, 2014
Messages
119
Motherboard
Z370M DS3H
CPU
i5-8400
Graphics
RX 560
Mac
MacBook Pro
Mobile Phone
iOS
As per guide, you must use -uia_exclude_hs to test SSxx ports.
Since you seem to have a keyboard attached to HS01, and a mouse connected to HS02, don't forget to include those.
Such as: -uia_exclude_hs uia_include=HS01,HS02

You should really read post #1 carefully.
If I do that, on reboot Clover crashes and my config.plist is wrecked. Happened multiple times :(
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
191,101
Motherboard
Intel DH67BL
CPU
Core i7-2600K
Graphics
Intel HD 3000
Mac
MacBook Air
Mobile Phone
iOS
Thanks for responding so quickly. What exactly does this mean functionally? What am I losing/breaking if I leave the connector types as 0 for HS13/HS14? I'll pull my hair out reading through the ACPI spec.
We don't really know what Apple uses all the data for.
All we can do is follow their example.
Since it is easy to set the correct value for UsbConnector, no need to split hairs.

Also, should the connector type be different for external 2.0/3.0 hubs?
The devices you plug into controller ports are not a factor. Only the external port's actual type.

For example as you can see from my debug files, I have an external hub (it's actually my Dell U3415W monitor's USB hub) connected to HS03/SS03.
Obviously, UsbConnector=3.

I then have a USB/bluetooth Logitech receiver plugged in to one of the connectors on the back of the monitor. Should HS03/SS03 be 255 as well, or stick with a 3 connector type?
Devices you plug into an external hub have nothing to do with the UsbConnector values for ports on the controller.
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
191,101
Motherboard
Intel DH67BL
CPU
Core i7-2600K
Graphics
Intel HD 3000
Mac
MacBook Air
Mobile Phone
iOS
If I do that, on reboot Clover crashes and my config.plist is wrecked. Happened multiple times :(
You must be editing your config.plist incorrectly.
Never use a text editor, always use Xcode or PlistEdit Pro.

And no need to edit config.plist to enter these kernel flags. Typically, you enter these temporarily via Clover options.
 
Joined
Nov 8, 2014
Messages
119
Motherboard
Z370M DS3H
CPU
i5-8400
Graphics
RX 560
Mac
MacBook Pro
Mobile Phone
iOS
You must be editing your config.plist incorrectly.
Never use a text editor, always use Xcode or PlistEdit Pro.

And no need to edit config.plist to enter these kernel flags. Typically, you enter these temporarily via Clover options.
I understand that and use Xcode. But even when I just do it as a bootflag it doesn’t work and doesn’t exclude the two ports unfortunately. Problem persist when using clover options
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
191,101
Motherboard
Intel DH67BL
CPU
Core i7-2600K
Graphics
Intel HD 3000
Mac
MacBook Air
Mobile Phone
iOS
I understand that and use Xcode. But even when I just do it as a bootflag it doesn’t work and doesn’t exclude the two ports unfortunately. Problem persist when using clover options
It will work if you type the kernel flag(s) correctly.
What do you mean by "exclude the two ports"?

Note: For uia_include, must use *current* USBInjectAll.kext. That specific kernel flag is not available in older versions of USBInjectAll.kext (your ioreg proves you installed the wrong version). Please read post #1 carefully.
 
Last edited:

RehabMan

Moderator
Joined
May 3, 2012
Messages
191,101
Motherboard
Intel DH67BL
CPU
Core i7-2600K
Graphics
Intel HD 3000
Mac
MacBook Air
Mobile Phone
iOS
That no matter what where I type it, I don’t get those ports (HS01,HS02) so the entire exercise stops at the Mojave login screen
As mentioned in post #2555, It is because you're not using the correct version of USBInjectAll.kext.

The correct version of USBInjectAll.kext is linked by post #1.
Must read post #1 carefully.
 
Last edited:
Joined
Nov 26, 2012
Messages
1,268
Motherboard
Gigabyte Z370 Aorus Gaming 5
CPU
i7-8700K
Graphics
RX 580
Mac
iMac, MacBook Pro
Mobile Phone
iOS
The ioreg you attached shows no USB3 devices connected.
Will redo. Should I just upload the IO Reg or do the entire PR again?
 
Joined
Nov 26, 2012
Messages
1,268
Motherboard
Gigabyte Z370 Aorus Gaming 5
CPU
i7-8700K
Graphics
RX 580
Mac
iMac, MacBook Pro
Mobile Phone
iOS

Attachments

RehabMan

Moderator
Joined
May 3, 2012
Messages
191,101
Motherboard
Intel DH67BL
CPU
Core i7-2600K
Graphics
Intel HD 3000
Mac
MacBook Air
Mobile Phone
iOS
Here's one with a USB3 flash drive
It appears to be connecting at USB3 (SS07).
But keep in mind USB flash drives are quite slow.

If you're trying to test USB3 speeds, use a fast device such as a USB3 SSD.
 
Top