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

Help with mapping! #25

Closed jpransxdev closed 3 years ago

jpransxdev commented 3 years ago

Hi! The guide has confused me a bit.

So I have two internal devices, webcam & intel bluetooth. Two type-c thunderbolt 3 ports on the right and a usb 3 port.

hs01 and ss01 on xhc14 is the same physical port (usb 3), ss01 on xhc0 and hs02 on xhc14 is the same physical port (type c with tb3) ss02 on xhc0 and hs03 on xhc14 is the same physical port (type c with tb3)

Which of the three mappings is correct?

1st mapping

    ----- XHC@14 Controller -----
[#] 1. HS01 | AppleUSB20XHCIPort | 01000000 | 14100000 | Type 0
    USB 3.1 HS L
[#] 2. HS02 | AppleUSB20XHCIPort | 02000000 | 14200000 | Type 8
    Type-C HS TR
[#] 3. HS03 | AppleUSB20XHCIPort | 03000000 | 14300000 | Type 8
    Type-C HS BR
[#] 4. HS05 | AppleUSB20XHCIPort | 05000000 | 14400000 | Type 255
    - HP Wide Vision FHD Camera
[#] 5. HS10 | AppleUSB20XHCIPort | 0a000000 | 14500000 | Type 255
    - BroadcomBluetoothHostControllerUSBTransport
[#] 6. SS01 | AppleUSB30XHCIPort | 0d000000 | 14600000 | Type 3
    USB 3.1 SS L
    ----- XHC@0 Controller -----
[#] 7. SS01 | AppleUSB30XHCIPort | 03000000 | 00100000 | Type 9
    Type-C SS TR
    - P9227 Slim
[#] 8. SS02 | AppleUSB30XHCIPort | 04000000 | 00200000 | Type 9
    Type-C SS BR

Populated:
XHC: 6, XHC: 2

2nd mapping

    ----- XHC@14 Controller -----
[#] 1. HS01 | AppleUSB20XHCIPort | 01000000 | 14100000 | Type 3
    USB 3.1 HS L
[#] 2. HS02 | AppleUSB20XHCIPort | 02000000 | 14200000 | Type 9
    Type-C HS TR
[#] 3. HS03 | AppleUSB20XHCIPort | 03000000 | 14300000 | Type 9
    Type-C HS BR
[#] 4. HS05 | AppleUSB20XHCIPort | 05000000 | 14400000 | Type 255
    - HP Wide Vision FHD Camera
[#] 5. HS10 | AppleUSB20XHCIPort | 0a000000 | 14500000 | Type 255
    - BroadcomBluetoothHostControllerUSBTransport
[#] 6. SS01 | AppleUSB30XHCIPort | 0d000000 | 14600000 | Type 3
    USB 3.1 SS L
    ----- XHC@0 Controller -----
[#] 7. SS01 | AppleUSB30XHCIPort | 03000000 | 00100000 | Type 9
    Type-C SS TR
    - P9227 Slim
[#] 8. SS02 | AppleUSB30XHCIPort | 04000000 | 00200000 | Type 9
    Type-C SS BR

Populated:
XHC: 6, XHC: 2

3rd mapping

    ----- XHC@14 Controller -----
[#] 1. HS01 | AppleUSB20XHCIPort | 01000000 | 14100000 | Type 3
    USB 3.1 HS L
[#] 2. HS02 | AppleUSB20XHCIPort | 02000000 | 14200000 | Type 3
    Type-C HS TR
[#] 3. HS03 | AppleUSB20XHCIPort | 03000000 | 14300000 | Type 3
    Type-C HS BR
[#] 4. HS05 | AppleUSB20XHCIPort | 05000000 | 14400000 | Type 255
    - HP Wide Vision FHD Camera
[#] 5. HS10 | AppleUSB20XHCIPort | 0a000000 | 14500000 | Type 255
    - BroadcomBluetoothHostControllerUSBTransport
[#] 6. SS01 | AppleUSB30XHCIPort | 0d000000 | 14600000 | Type 3
    USB 3.1 SS L
    ----- XHC@0 Controller -----
[#] 7. SS01 | AppleUSB30XHCIPort | 03000000 | 00100000 | Type 9
    Type-C SS TR
    - P9227 Slim
[#] 8. SS02 | AppleUSB30XHCIPort | 04000000 | 00200000 | Type 9
    Type-C SS BR

Populated:
XHC: 6, XHC: 2
jpransxdev commented 3 years ago

The 3rd mapping is correct... I figured it out by brute force, checking system report every reboot. My 10Gbps external SSD wasn't reporting 10 gig speeds on the first two mappings. These guides really need more clarification & examples!

corpnewt commented 3 years ago

Glad to hear you got it figured out - at some point, when I actually have some free time, I'd like to flesh out the ReadMe on this repo - but it's a ton of info to cover, and I haven't had the time or drive of late.

-CorpNewt