USB Mapping on Windows
USB Mapping with USBToolbox on Windows
This guide will explain how to do USB mapping on Windows with the excellent USBToolBox. If you have Windows already installed on the same system, you can use USBToolbox which is a new terminal based tool that improves upon USBMap in various ways. It has the technically most advanced solution to USB mapping and it in active development. One advantage of doing this on Windows is the ability to see all ports at once and to map all ports in one go. You can quickly have a ready made port map even before installing macOS.
It also solves some technical issues, such as removing the need for controller renames in ACPI patches and in its default mode does not require the Model Identifier (for example
iMac20,1) to be specified. This ensures better maintainability. If you do not have Windows installed, you can also utilize USBToolBox on Windows PE by running the free Hiren's BootCD PE on a USB drive.
Boot into Windows on the computer you want to hackintosh. Windows 10 or 11 (64-bit) are recommended.
USBToolBox/dist/Windows.exeand you will see the following terminal command window:
USBToolBox Main Menu
"B"will get you back to the main menu. Then press
"D"to discover ports:
Plug in a USB device into each port. Wait for the listing to show your USB device before unplugging it and plugging it into another port.
Plug in a USB 2 device and a USB 3 device into each USB 3 port. (Theoretically you only need to plug in one USB 3 device into the USB 3 ports, because companion detection should be working on Windows, but I still had to use both types of devices.)
Plug in a USB-C device twice in each applicable port by reversing the direction of the plug.
Once mapping is done, go to the Select Ports screen, by pressing
"S"in the main menu.
Select your ports and adjust port types as necessary. The most common types for USB mapping are:
USB 2 Type A: 0
USB 3 Type A: 3
USB-C Type C with switch: 9
USB-C Type C without switch: 10
Choose the port numbers which are applicable to you. In this guide I will illustrate the steps by using the port numbers as shown above.
To toggle the ports
offthat are unused or that you do not want to use, type the port numbers separated by commas
- such as:
- Since I can only use 15 ports I had to drop some. In this example I deactivated the companion USB 2 port of the USB 3.1 port, as well as the USB 2 companion of the USB-C port (number 1 and 2).
- Note: Activation and de-activation of ports as well as the definition of physical port types is by default connected to the companion. For example, if you deactivate the USB 2 companion of a USB 3 port both will be deactivated. This may not always be what you want, like in my example, where I just want to deactivate the USB 2 functionality of two USB 3 ports. To decouple these ports you can go into settings to disable Bind Companions first.
"C"(and "Enter") to open and adjust settings.
"C"so that you can define related port mappings independently of each other:
As soon as you explicitly define the ports, the "guessed" label will disappear.
- For defining the physical USB 2 ports type:
- For defining the physical USB 3 ports type:
Defining the USB 3 ports
- For defining the physical USB C ports (here with switch) type:
- For defining the internal port type (without outside user access):
Since the functional USB 2 companion ports (which are hosted on physical USB 3 ports) need to be described by their physical connector type, they should be set as USB 3 in the USB mapping.
I also recommend to add comments, for the purpose of long term maintainability. You may need to switch back and forth between the Select Ports screen and the Port Discovery screen after you have been able to determine the physical location of each displayed port.
You should name each port with a clear location Name. For this purpose type in a name such as:
C:22:Up-Left-USB3(As seen from the direction you are looking at them when the case is upright). - If you wish to see the port location names (saved in the comments of the generated file) when you check your ports in macOS, you can use the Hackintool > USB tab and observe where your devices get plugged in.
"K"to build the kext in the
UTBMap.kextwill also require the companion USBToolBox.kext to be downloaded and added to your OpenCore EFI. The advantage of utilizing the USBToolBox.kext is among others, that it does not require the Model Identifier to be specified in the USB map. Read the USBToolBox documentation for details.
Kexts added as shown in OCAuxiliaryTools
Note: XhciPortLimit - Enable was previously used to patch the XCHI port limit to a higher value than the 15 port maximum. Make sure to check that
XhciPortLimitin Kernel > Quirks is disabled! After configuring a proper USB map, it is not needed any more, and since Big Sur 11.3 the
XhciPortLimitQuirk is not used at all, because it has been causing boot loops for some people.
Except where otherwise noted, content on this site is licensed under the Creative Commons — Attribution-NonCommercial 4.0 International — CC BY-NC 4.0 license. Attribution by link to chriswayg · GitHub.