Browse by type
Making USB mapping simple(r)
The USBToolBox kext is a kext intended to make common actions for USB mapping easier. It supports El Capitan and up, although only Catalina and up have been tested.
This does not patch the port limit.
USBToolBox supports configuration using boot arguments, properties, or in the map. You can set the properties on either the PCI device or the AppleUSBHostController instance.
Properties can be any type and only existence, not type, is checked, unless otherwise specified.
-utboff (property utb-off): Disable USBToolBox completely
-utbacpioff (property utb-acpi-off): Disable RHUB removal from ACPI plane (borked ACPI removal)
-utbappleoff (property utb-apple-off): Disable existing ports and port-count removal
-utbmapoff (property utb-map-off): Disable custom map (useful for testing)
utbwait=XXX (property utb-wait, type number): Custom delay for waitForMatchingService, in seconds. Integer between 1-180, inclusive.
Converting existing maps is fairly easy.
CFBundleIdentifier to com.dhinakg.USBToolBox.kextIOClass to USBToolBoxIOMatchCategory to USBToolBoxOSBundleLibraries to the root item. It should contain com.dhinakg.USBToolBox.kext, with value 1.0.0.You can get the latest release from the GitHub releases tab.
The zip contains 2 kexts: the main USBToolBox.kext, and UTBDefault.kext, a codeless kext used for attaching USBToolBox to all PCIe USB controllers. This is designed for use before you map, so that you can have all USB ports working (assuming no port limit) before you map. However, it is not needed and must be removed if you choose to map from the start (ie. from Windows, using the USBToolBox tool).
A basic fresh install flow would be as follows:
USBToolBox.kext and UTBDefault.kext to your EFI/OC/Kexts folder, and make sure to update your config.plist.UTBDefault.kext and add your newly created UTBMap.kext (or whatever your USB map is called) to EFI/OC/Kexts.@RehabMan for USBInjectAll, an inspiration for this project
@acidanthera for MacKernelSDK
My testing team (you know who you are) for testing