Contribute
Register

The New Beginner's Guide to USB Port Configuration

Joined
Aug 1, 2013
Messages
16
Motherboard
Gigabyte Z97X-UD7 TH (1.0)
CPU
i7-4790K
Graphics
Gigabyte GeForce GTX770 2GB
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
I recently had a motherboard failure and switched from a GA-Z97X-UD3H-BK to a GA-Z97X-UD7-TH. I took the opportunity to change from Clover to OpenCore 0.6.8, created a new 15,1 system definition and upgraded to Big Sur. All the basics plus sleep, power, wifi, iMessage/iCloud all seem to be working -- now I'd just like to get my USB port map created.

So, here are the Gigabyte GA-Z97X-UD7-TH (1.0) USB ports:
  1. 4 x USB 3.0/2.0 ports (2 ports on the back panel, 2 ports available through the internal USB header)
  2. 6 x USB 2.0/1.1 ports available through the internal USB headers
Chipset + Renesas® uPD720210 USB 3.0 Hub:
  1. 4 x USB 3.0/2.0 ports on the back panel

I followed the amazing Dortania OpenCore install guide and installed the latest (0.7.7) USBInjectAll.kext and I've done the renames: XHC1 to SHCI, EHC1 to EH01 and EHC2 to EH02.

I'm having some odd behavior:
  1. When I insert a USB 2.0 thumb drive into all but two ports (the 2 USB3.0 ports on the rear, far right), they are not seen by the OS, Hackintool, USBMap.command, nothing.
  2. Four of the rear ports (left side, pretty sure they're the Renesas ports) all map to SS03.
Here's some info, which may be useful:

Screen Shot 2021-05-04 at 9.53.20 PM.png


Here are the ports in Hackintool (3.5.3):

Screen Shot 2021-05-04 at 9.52.51 PM.png


And IORegistryExplorer for EHC01 and EHC02:

Screen Shot 2021-05-04 at 9.52.06 PM.png


Here's the XHC layout:

Screen Shot 2021-05-04 at 10.07.35 PM.png



At this point, I'm a bit stuck as to how to proceed, given the unresponsive 2.0 port behavior and the multiple physical ports mapping to SS03.

How would you proceed from here?
 
Joined
Jan 30, 2019
Messages
19
Motherboard
Dell DW1701
CPU
i7 2670QM/HM67
Graphics
HD 3000+ HD 6470M
You have no USB3 ports in that machine - according to Hackintool. EHCI is USB2-only.

For lack of power to ports you need an ACPI patch such as SSDT-USBX.aml.

(There is a full guide here.)
I try usbx didnt work. Maybe its not for my configuration.
And then finnaly i found fix by changing my smbios. Thanks btw
 
Joined
Sep 13, 2010
Messages
40
Motherboard
Gigabyte Z390 Aorus Pro
CPU
i9-9900K
Graphics
Vega 64
Mac
  1. MacBook Pro
Mobile Phone
  1. iOS
Solved. Dear all, finally I need yours help. After some work and attempt I was not successful with the USB port map. I was try to USBMap and Hackintool but no success.
For example I use the USB pendrive to boot system and after entered the OS the USB device do not recognized by the OS.
I checked it the bios settings, the AppleID related apps working good and the system works fine except the USB trouble.
What could I forget?

After install USBInjectall 0.7.6 the situation is the same, some of ports don't detect the USB 2.0 pendrive and the USB3.0 and USB 3.1 ports don't recognize the USB 2.0 pen drives.

I used USBMap, Hackintool and ProperTree and finally the USB ports works fine.

usb-01.png
usb-solved.png
 
Last edited:
Joined
Jan 16, 2017
Messages
77
Motherboard
Gigabyte H370N Wifi
CPU
i3-8100
Graphics
UHD 630
Mac
  1. MacBook Pro
Mobile Phone
  1. iOS
@UtterDisbelief
Per your suggestion, I’ll post future questions in this New Guide thread. Since I used your older guide to map out my ports, I had used Multibeast for the Port Limit Removal Patch. This thread uses the link to the appropriate OSX support page to collect the required patches, which may then lead to other links for more patches. Hopefully, I’ll answer my own question. I assume I should include ONLY those patches that are relevant to the current version (10.14.6) of my OS, i.e. patches listed as 10.14.x or ones delineated to include my version 10.14.4, 10.14.5, 10.14.6? Also, could one use the PLRP’s that are included in Clover Config, will they work as well? Sorry if this is a lame question, have not used any patches prior too. Just want to eliminate any self-inflicted issues.

Thanking you in advance!
 

UtterDisbelief

Moderator
Joined
Feb 13, 2012
Messages
6,127
Motherboard
ASRock B560M itx/ac - OC 0.6.8
CPU
i3-10320
Graphics
GT710 - 1920x1080
Mac
  1. iMac
  2. Mac mini
Classic Mac
  1. eMac
  2. iBook
Mobile Phone
  1. iOS
@UtterDisbelief
Per your suggestion, I’ll post future questions in this New Guide thread. Since I used your older guide to map out my ports, I had used Multibeast for the Port Limit Removal Patch. This thread uses the link to the appropriate OSX support page to collect the required patches, which may then lead to other links for more patches. Hopefully, I’ll answer my own question. I assume I should include ONLY those patches that are relevant to the current version (10.14.6) of my OS, i.e. patches listed as 10.14.x or ones delineated to include my version 10.14.4, 10.14.5, 10.14.6? Also, could one use the PLRP’s that are included in Clover Config, will they work as well? Sorry if this is a lame question, have not used any patches prior too. Just want to eliminate any self-inflicted issues.

Thanking you in advance!

Not lame at all. :thumbup:

There is a new problem with the listed Mojave port-limit removal patches in that they only work up until the initial release of 10.4.6. Since then Apple has brought out further versions as Security Updates and there are no new patches that work with them installed as everyone seems to have moved on.

What most did was move to OpenCore and it's XhciPortLimit quirk instead. This actually has been added to the latest Clover releases I believe, as an alternative to patching.

There are now new problems with even this, but only for Big Sur 11.3+.

:)
 

trs96

Moderator
Joined
Jul 31, 2012
Messages
19,617
Motherboard
GA-Z97X-UD3H-BK
CPU
i5-4690K
Graphics
HD4600 / RX 570
Mac
  1. MacBook Pro
  2. Mac mini
Mobile Phone
  1. Android
There are now new problems with even this, but only for Big Sur 11.3+
All the more reason to get those USBPorts kexts made now so that we don't have to deal with more restrictions imposed by Apple. Who knows how locked down macOS 12 will be ?
 
Joined
Jan 16, 2017
Messages
77
Motherboard
Gigabyte H370N Wifi
CPU
i3-8100
Graphics
UHD 630
Mac
  1. MacBook Pro
Mobile Phone
  1. iOS
Thanks all!
Please, one final question. Assuming I’m current on my security updates, if using any 10.14.x PLRP, will it brick my system? I just need to update my current USBPorts.kext to add several ports. Will heed your advice though on migrating to OC.
 

Feartech

Moderator
Joined
Aug 3, 2013
Messages
21,899
Motherboard
Asus N752VX-OpenCore
CPU
i7-6700HQ / HM170
Graphics
HD 530 1920 x 1080
Mac
  1. iMac
Mobile Phone
  1. iOS
Thanks all!
Please, one final question. Assuming I’m current on my security updates, if using any 10.14.x PLRP, will it brick my system? I just need to update my current USBPorts.kext to add several ports. Will heed your advice though on migrating to OC.
won't brick it, the limit patch won't function
 

UtterDisbelief

Moderator
Joined
Feb 13, 2012
Messages
6,127
Motherboard
ASRock B560M itx/ac - OC 0.6.8
CPU
i3-10320
Graphics
GT710 - 1920x1080
Mac
  1. iMac
  2. Mac mini
Classic Mac
  1. eMac
  2. iBook
Mobile Phone
  1. iOS
Thanks all!
Please, one final question. Assuming I’m current on my security updates, if using any 10.14.x PLRP, will it brick my system? I just need to update my current USBPorts.kext to add several ports. Will heed your advice though on migrating to OC.

won't brick it, the limit patch won't function

Drat! Beat me to it ... Again!! :lol:

No. It won't brick your system. But why use one ....
 

lms

Joined
May 30, 2021
Messages
7
Motherboard
H97-HD3
CPU
i5 Haswell
Graphics
RX580
For series 7/8/9 motherboards, the method is a bit different and time has forgotten us who have these motherboards.....

I researched and found that for the 9 series of chipset (7/8/9 actually), I needed FakePCIID_XHCIMux.kext and FakePCIID.kext.




My process to get perfection (on the Gigabyte H97-HD3 which has 4 physical USB 3.0 and 2 physical USB 2.0 at the rear, 2 USB 3.0 and 2 USB 2.0 at the front (from an onboard header)), Haswell CPU running as Mac Pro 7,1, OpenCore 0.6.9.




1. Rename EHC1 to EH01; rename EHC2 to EH02, rename XHCI to XHC; rename XHC1 to XHC under ACPI->Patch


2. Initially untick XhciPortLimit


3. Remove USBInjectAll.kext. Put in FakePCIID_XHCIMux.kext and FakePCIID.kext.

.


4. Save & Reboot


.


5. Run corpnewt's USBMap script. This time all 6 SS ports show up numbered nicely 1-6 under XHC, with USB 2.0 detected on EHC. Plug in a USB 3.0 to each port to register.


6. This time USBMap is correct. Just generate the kext and no need editing.


7. Put the above USBMap.kext in the correct OC folder, re-tick XhciPortLimit and reboot.

USB 3.0 devices show up correctly under the XHC type.
USB 2.0 are handled by EHC1/2 and these are not displayed "live"by hackintool. They do show up in SystemReport and IORegistryExplorer.

Try this. Not applicable to motherboards newer than series 9 that do not have EHC anymore I think.

As RehabMan described it "The effect is to route any USB2 devices attached to the USB2 pins on the XHC ports to EHC1. In other words, handle USB2 devices with the USB2 drivers instead of the USB3 drivers (AppleUSBEHCI vs. AppleUSBXHCI)."when using FakePCIID_XHCIMux.kext


Screenshot 2021-05-31 at 12.19.59 AM.png
 
Last edited:
Top