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

AMD some ports are missing (compared to ioreg) #14

Closed hrytskivr closed 3 years ago

hrytskivr commented 3 years ago

So I have XHC1 renamed to SHCI controller, which has 10 ports PRT1-10. IOReg app shows all 10 but USBMap show only the first one, what could be the issue? Screenshot 2020-10-17 at 18 15 54 Screenshot 2020-10-17 at 18 16 02

corpnewt commented 3 years ago

Can you run the following in the terminal and send the resulting ioreg.txt on the Desktop to me: ioreg -lw0 > ~/Desktop/ioreg.txt

-CorpNewt

hrytskivr commented 3 years ago

ioreg.txt

hrytskivr commented 3 years ago

@corpnewt ^^

corpnewt commented 3 years ago

Sorry about the late reply to this - I took a look through the ioreg and it seems that at least one device has a newline (\n) in its name, which broke the prior path-walking code. This should be fixed now as of this commit.

-CorpNewt

corpnewt commented 3 years ago

Just for the sake of being complete - here are some screenshots leveraging your ioreg.txt as the source:

image

image

The problem device was the OBINS AnnePro2. In the ioreg.txt, it's listed as the following (with AnnePro2 on the following line):

    | |   |   |   | +-o OBINS
AnnePro2@61100000  <class IOUSBHostDevice, id 0x10000062b, registered, matched, active, busy 0 (124 ms), retain 49>

-CorpNewt

hrytskivr commented 3 years ago

@corpnewt Nice one, thx!