Contribute
Register

Mojave 10.14.4 Port Limit Removal Patch

Status
Not open for further replies.
Hey community.
All my USB 2.0 and 3.0 works fine for USB flash drives but my external HDD (WD 2TB Black My Passport Ultra USB 3.0) not visible in finder.
But his spindle is rotates!
Any ideas for me?
8700K | GA-Z370 HD3 | UHD 630 | Mojave 10.14.4
It's port limit or I must fix my DSDT?
I attach my EFI folder.

UPDATE:
I copy code from start post and this works! Awesome!
@ModMike, BIG thanks man!
 

Attachments

  • EFI.zip
    3.2 MB · Views: 98
Last edited:
The patch is not working for my build, using SMBIOS iMac 19,2 and 10.14.5 Public Beta 1. No USBInjectAll. My USB are recognized natively but limited to 15.
Checked IOUSBHostFamily and the hexidecimals from the patch are visible.
Any ideas ?


Screen Shot 2019-04-09 at 6.24.30 PM.png
 
The patch is not working for my build, using SMBIOS iMac 19,2 and 10.14.5 Public Beta 1. No USBInjectAll. My USB are recognized natively but limited to 15.
Checked IOUSBHostFamily and the hexidecimals from the patch are visible.
Any ideas ?


View attachment 398488

As each new version requires its own patch, this is expected when going from 10.14.4 to 10.14.5.

You would be better off creating your own SSDT as that does not need updating every time there is a new 10.14.x release.
 
My problem is I have too many USB ports :) I would like to get rid of kext patching but my board has 6 USB3/USB2 ports and 6 USB2-only ports and another USB 3.1 port that I disabled already by SSDT/UBSInjectAll.kext as I own no device that needs this port (the SSDT disables the ports not existing as well, leaving 18). At the backplate I need two of the USB3 ports and I would like to keep the two up front of my PC for occasionally use, for the USB2 ports four are in use and the two at the front should stay active as well. So I am at least one port above the limit.
The patches are working for me but I am having crashes in those patched kexts after recovery from hibernation (new problem introduced with mojave). That's why I want to get rid of those patches.
Any suggestions?
Hello there,

If you just use USBInjectAll but not the patches, you could try using the "-uia_exclude_hs" command to remove the USB2 ports from the 15 leaving only USB3 (perhaps).

OR

The number of ports on your XHCI controller can be reduced by routing USB2.0 to EHCI with the FakePCIID_XHCIMux.kext. Take a look at @RehabMan's work here:

https://bitbucket.org/RehabMan/os-x-usb-inject-all/overview
"... Do not plan to use the patch long-term. It could be problematic. If you have more than 15 ports on XHC, you should use FakePCIID_XHCIMux to route the USB2 component of those USB3 ports to EHCI. It is easy to stay under the limit if up to 8-USB2 ports are routed off XHC.

:)
 
Last edited:
Honestly, everyone here should do this:
1) Add the port limit patches
2) install usbinjectall
3) use hackintool to discover and decide which ports you’re using, pick 15 and delete the rest with the “-“ icon.
4) export the usbports.kext and put it in edit/clover/kexts/other
5) remove usbinjectall
6) remove the port limit patches
7) live happily ever after

Those of you who have sleep and shutdown problems will possibly, if not likely have them solved.
 
Hot Tip: If you have USB3 ports and you know you're only going to use them for USB3, remove their corresponding USB2 ports. For instance, I've kept my front ports as USB3+USB2 for USB Keys and random stuff, but some rear ports that I permanently have a USB3 drive-bay connected to, I've removed the USB2 addresses off of them to stay under the 15 port limit.
 
I have been trying to straighten this out since Mohave debuted, and I am still stumped. In the attached screenshot you can see that I have 3 External drives attached via the USB ports on the back panel of my computer and while Disk Utility and System Report can see them, their volumes do not mount and neither do they appear in the i/o registry. I have the three kernel patches in place and the InjectAll kext in library/extensions. Any help you can give would be greatly appreciated.



Screen Shot 2019-04-11 at 9.27.46 PM.png
Screen Shot 2019-04-11 at 9.42.49 PM.png
Screen Shot 2019-04-11 at 9.49.27 PM.png
Screen Shot 2019-04-11 at 9.49.08 PM.png
Screen Shot 2019-04-11 at 10.12.28 PM.png
Screen Shot 2019-04-11 at 10.13.52 PM.png
 
Last edited:
Try booting with the flags
-uia_exclude_hs uia_include=HS14

Your printer will stop working and your keyboard will only work where it’s plugged in now (HS14) but I suspect you have too many USB ports. If that works you need to create a proper kext or SSDT to deactivate unused ports. Back up your config.plist before adding the boot flags.
 
Status
Not open for further replies.
Back
Top