corpnewt / USBMap

Python script for mapping USB ports in macOS and creating a custom injector kext.
MIT License
1.03k stars 88 forks source link

Question about using the tool, readme doesn't specify #30

Closed PencilNotPen closed 3 years ago

PencilNotPen commented 3 years ago

Does this tool require USBInjectAll.kext to use it? Does it require XHCIPortLimit enabled in config.plist to use it? Or should the system be completely vanilla before running the tool?

Thanks

PencilNotPen commented 3 years ago

Does this tool require USBInjectAll.kext to use it? Does it require XHCIPortLimit enabled in config.plist to use it? Or should the system be completely vanilla before running the tool?

Thanks

I think I've managed to work it out more or less, although the port limit patch and kext produce some strange effects on my system. All ports are now identified.

A quick follow up: once all ports have been identified and marked, do I set HSxx to Port Type 0 for USB 2, or Type 3 for USB 3? I have matching sets for e.g. SS03/HS03, SS04/HS04 etc. I understand I need to include both SS03 and HS03 in my map to work with both USB 2 and USB 3 devices, but should I make both SS03 and HS03 as Connector Type 3, or mark SS03 as Type 3 and HS03 as Type 0?

I hope that makes sense, thanks for your help!

corpnewt commented 3 years ago

Hey there - under the Features heading of the ReadMe you can see the following:

image

Whether or not you use XhciPortLimit is more dependent on what OS you're running as that quirk is unreliable on macOS 11.3 and newer.

Regarding the types to set - those should reflect the type of the physical port; so the HSxx personality of a type-A USB 3 port would still have its type set to 3.

Hopefully that answers your questions,

-CorpNewt