Python script for mapping USB ports in macOS and creating a custom injector kext.
- No dependency on USBInjectAll
- Can map XHCI (chipset, third party, and AMD), EHCI, OHCI, and UHCI ports
- Can map USB 2 HUBs (requires the HUB's parent port uses type 255)
- Matches based on class name, not port or controller name
- Allows setting nicknames to the last-seen populated ports in discovery
- Aggregates connected devices via session id instead of the broken port addressing
- Can use best-guess approaches to generate ACPI to rename controllers or reset RHUB devices as needed
Run the following one line at a time in Terminal:
git clone https://github.com/corpnewt/USBMap
cd USBMap
chmod +x USBMap.command
Then run with either ./USBMap.command
or by double-clicking USBMap.command
You can get the latest zip of this repo here. Then run by double-clicking USBMap.command