Jump to content

[HOW TO] USB ports map for macOS with USBToolBox


miliuco
 Share

7 posts in this topic

Recommended Posts

How to generate USB port map on Windows for use on macOS, which has a limit of 15 ports per USB controller, using @dhinakg 's USBToolBox. This is currently the easiest method of generating the USB port map for macOS with the only downside being that you need a Windows system on the same machine.

 

I have not found instructions about it in IM, if they are available somewhere please tell me so I don't duplicate the post.

 

Download the tool

 

On the GitHub site you have the tool for Windows (tool >> Releases >> Windows.zip). For now it is all you need.

 

Create the ports map

 

In the unzipped folder, run Windows.exe. A command window opens in which the entire process takes place.

 

Spoiler

toolbox1.png.b43d6701601b9cfd51abba17618a17ee.png

 

Letter C to access the settings

 

Here I only enable 2 options: Show Friendly Types (facilitates the reading of the detected ports) and Add Comments to Map (allows adding identifying comments to each port such as "rear blue USB3").

 

Spoiler

toolbox2.thumb.png.d0ad9e2416739fe2460d1e73e1ab0edf.png

 

Letter D to show all the ports detected by the tool

 

Almost all the motherboards that we have in the Hackintosh have more than 15 ports, which is the maximum limit tolerated by macOS. In my case, there are 26 ports. If I use macOS as-is, without port mapping, some will be enabled and some won't, some will probably run at the wrong speed and sleep will almost certainly not work well. For this reason, it is necessary to generate the map, to define the 15 ports that we are going to have active in macOS and that will be the only ones that we can use.
Notice that the ports that have any device connected are in green and the rest are in white.

 

In this phase you need a type 2 USB device and a type 3 USB device. I have used a USB3 external disk and 2 cables to connect it to the PC, one of which is USB2 and the other is USB3. You can also use 2 USB memories, one USB2 and one USB3.

  • Start with the USB2 device and at the end you repeat with the USB3 (or vice versa)
  • Connect it in each of the ports, whether USB2 or USB3, until you check that it appears in the list of ports
  • When you remove the device, it also disappears from the list but is saved for the next step
  • When finished with both devices, letter B to return to the previous menu.

Letter S to choose the ports and build the kext

  • In the list, each port you plugged a device into has the device associated with it. In addition to those who already had one connected (those in green)
  • Here you can give a name to the ports that you are going to choose, for this you write c:x:name where x is the number of the port and name is the name that you want to give it (it can be several words)
  • It is time to make the selection. The most comfortable is to use N to deselect all ports and then write the numerical list of those chosen in the way 1,2,3,4,5 without exceeding 15 ports.
  • At the end, the list shows which are the 15 ports chosen and the comment that we have written in each of them.
Spoiler

toolbox3.thumb.png.11b17991f13dcfe1bf062c8ad6b9eaec.png

 

Letter K to generate UTBMap.kext

 

This is the kext that macOS will use. It does not work by itself but must be accompanied by USBToolBox.kext downloaded from the same GitHub site. Both together in the OpenCore or Clover Kexts folder. In the config.plist file, USBToolBox.kext has to be before UTBMap.kext.

 

Spoiler

toolbox4.png.dafc2f71c3848a295bfde73539a502b3.png

 

An additional advantage that this method has over USBMap.kext from corpnewt or USBPorts.kext from Hackintool is that it does not depend on the SMBIOS model, in these you have to modify the Info.plist file of the kext when changing Mac models.

 

Edited by miliuco
  • Like 12
  • Thanks 3
Link to comment
Share on other sites

On 2/1/2023 at 11:30 PM, miliuco said:

How to generate USB port map on Windows for use on macOS, which has a limit of 15 ports per USB controller, using @dhinakg 's USBToolBox. This is currently the easiest method of generating the USB port map for macOS with the only downside being that you need a Windows system on the same machine.

 

I have not found instructions about it in IM, if they are available somewhere please tell me so I don't duplicate the post.

 

Download the tool

 

On the GitHub site you have the tool for Windows (tool >> Releases >> Windows.zip). For now it is all you need.

 

Create the ports map

 

In the unzipped folder, run Windows.exe. A command window opens in which the entire process takes place.

 

  Reveal hidden contents

toolbox1.png.b43d6701601b9cfd51abba17618a17ee.png

 

Letter C to access the settings

 

Here I only enable 2 options: Show Friendly Types (facilitates the reading of the detected ports) and Add Comments to Map (allows adding identifying comments to each port such as "rear blue USB3").

 

  Reveal hidden contents

toolbox2.thumb.png.d0ad9e2416739fe2460d1e73e1ab0edf.png

 

Letter D to show all the ports detected by the tool

 

Almost all the motherboards that we have in the Hackintosh have more than 15 ports, which is the maximum limit tolerated by macOS. In my case, there are 26 ports. If I use macOS as-is, without port mapping, some will be enabled and some won't, some will probably run at the wrong speed and sleep will almost certainly not work well. For this reason, it is necessary to generate the map, to define the 15 ports that we are going to have active in macOS and that will be the only ones that we can use.
Notice that the ports that have any device connected are in green and the rest are in white.

 

In this phase you need a type 2 USB device and a type 3 USB device. I have used a USB3 external disk and 2 cables to connect it to the PC, one of which is USB2 and the other is USB3. You can also use 2 USB memories, one USB2 and one USB3.

  • Start with the USB2 device and at the end you repeat with the USB3 (or vice versa)
  • Connect it in each of the ports, whether USB2 or USB3, until you check that it appears in the list of ports
  • When you remove the device, it also disappears from the list but is saved for the next step
  • When finished with both devices, letter B to return to the previous menu.

Letter S to choose the ports and build the kext

  • In the list, each port you plugged a device into has the device associated with it. In addition to those who already had one connected (those in green)
  • Here you can give a name to the ports that you are going to choose, for this you write c:x:name where x is the number of the port and name is the name that you want to give it (it can be several words)
  • It is time to make the selection. The most comfortable is to use N to deselect all ports and then write the numerical list of those chosen in the way 1,2,3,4,5 without exceeding 15 ports.
  • At the end, the list shows which are the 15 ports chosen and the comment that we have written in each of them.
  Reveal hidden contents

toolbox3.thumb.png.11b17991f13dcfe1bf062c8ad6b9eaec.png

 

Letter K to generate UTBMap.kext

 

This is the kext that macOS will use. It does not work by itself but must be accompanied by USBToolBox.kext downloaded from the same GitHub site. Both together in the OpenCore or Clover Kexts folder. In the config.plist file, USBToolBox.kext has to be before UTBMap.kext.

 

  Reveal hidden contents

toolbox4.png.dafc2f71c3848a295bfde73539a502b3.png

 

An additional advantage that this method has over USBMap.kext from corpnewt or USBPorts.kext from Hackintool is that it does not depend on the SMBIOS model, in these you have to modify the Info.plist file of the kext when changing Mac models.

 

All released ArtiFacts files were expired.

Can anyone provide windows.exe or zip file for me ?

Link to comment
Share on other sites

 Share

×
×
  • Create New...