GithubHelp home page GithubHelp logo

tool's People

Contributors

dhinakg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tool's Issues

Tried on High Sierra 10.13.6 on my Ryzentosh to fix lack of USB 3.0 "personalities" with no luck

Describe the bug
I don't know if this is a bug or just a bad hardware setup on my part but I might as well share since this has been driving me crazy for awhile and I guess this tool for some reason didn't map my system completely. I had an issue on my ryzentosh that when I tried to USB map, USB 3.0 devices would not connect to a new port but would rather be identified in a 2.0 port. I have 2 AMD USB controllers each with 3.0 ports and one with two 2.0 ports. The controller with only 3.0 ports would only show 4 ports in IORegistry, and they would only be listed as USB 2.0. The other had some 3.0 ports listed but would never be populated with a device when plugging in 3.0 USB drives to the correct ports. I thought I might try this tool to fix it. I ran the tool and detected my USB ports and on Windows everything looked great (I dual boot) with the correct personalities showing up, although the mixed 2.0 and 3.0 controller seemed to be a bit messy with ports that I don't have physically. After selecting and correcting some of the port types I built the kext and proceeded to move it into my EFI/OC/kexts folder (after adding the USBToolBox.kext and UTBDefault.kext then performing a restart). I rebooted and, while my ports are nice and organized and named AND WORKING (which is awesome, great work with this tool), to my dismay the ports are all listed as HSxx and Hackintool (not sure how reliable this is) lists their speeds at 480 Mbps instead of the 5 Gbps I would have expected from my USB 3.1 ports. The interesting part is that in IORegistry the types on the ports are correct (3 for the dual personality USB 3.0 ports and 9 for the one Type-C port), but they still don't register as 3.0. I might be crazy and off so please let me know but it looks like my USB ports were not mapped correctly with MacOS not recognizing USB 3.0 devices for whatever reason.

The generated kext seems to looks great actually:
Screen Shot 2021-06-19 at 9 38 13 PM
The mixed controller

Screen Shot 2021-06-19 at 9 38 45 PM
USB 3.0 only controller with 4 ports (one is Type-C)

But they still don't appear in IORegistry:
Screen Shot 2021-06-19 at 9 44 27 PM

Some strange results with repeated ports from Hackintool:
Screen Shot 2021-06-19 at 9 42 25 PM

Let me know what you think, sorry if this isn't the right place to ask about this cause it seems like your tool was working very well. Thank you for the tool and for any help, in advance.

To Reproduce
Steps to reproduce the behavior:
Have my exact setup and follow the tool instructions... (Not reproducible I think?)

Debugging information
This is not really a bug as far as the tool working it worked great for the most part. If a debug log is necessary let me know I will get one.

Hardware:

  • Motherboard AsRock Fatal1ty AB350 Gaming-ITX/ac
  • OS: High Sierra 10.13.6
  • CPU: Ryzen 3600

Additional context
I did already install High Sierra and attempted my own USB Mapping and XHCI Unsupported.kext fiddling and RHUB_SSDT.aml but I did remove all of those kexts and amls and rebooted before incorporating USBToolBox.kext but now that I think about I forgot to remove RHUB before adding in USBToolBox.kext and UTBDefault.kext for the first time so maybe I messed something up there.

UTBMap.kext not being loaded?

I'm just leaving this here in case anyone else runs into this.
Not sure if it's something on my end, or there was something preventing this from properly being loaded.

I've been trying to load the generated UTBMap.kext for a couple of hours now and it didn't seem to work at all. Do note that I've generated the kext using Windows. Everything is up to date (including BIOS, drivers, etc.).

Kextutil was reporting the following:

Diagnostics for /Users/adrian/UTBMap.kext:
Warnings:
    Personality CFBundleIdentifier differs from containing kext's (not necessarily a mistake, but rarely done):
        XHC
    Personality CFBundleIdentifier names a kext that can't be found:
        'XHC' -> 'com.dhinakg.USBToolBox.kext'
    Kext has no executable or compatible version, so it should not declare any OSBundleLibraries.

Dependency Resolution Failures:
    No kexts found for these libraries:
        com.dhinakg.USBToolBox.kext

In the end, I stumbled upon this page: https://dortania.github.io/OpenCore-Post-Install/usb/manual/manual.html#special-notes

After following the guide there, I changed the following:

  • Remove OSBundleLibraries (this may be the thing causing the dependency resolution failure ?)
  • Use the IOProviderClass the guide recommended
  • Change a few other things to be closer to the sample plist and the recommended manual mapping; kept the IOProviderMergeProperties intact.

In the end, this helped load the kext and have the XHC Ports correlate with the IOProviderMergeProperties specified in the kext, and System Report shows the proper USB ports now.

I've attached the before (UTBMap.kext) and after (USBMap.kext) for reference.

usb kexts.zip

Version 0.0.7 error but version 0.0.6 runs fine

My system: Z390 Aorus Elite + Big Sur 11.3.1. I've tried 0.0.6 version of the tool and it runs fine but 0.0.7 version shows in Terminal at discovering ports:

Getting controllers...
Traceback (most recent call last):
File "macOS.py", line 174, in
File "base.py", line 50, in init
File "base.py", line 680, in monu
File "utils.py", line 204, in start
File "utils.py", line 188, in select
File "base.py", line 222, in discover_ports
File "macOS.py", line 125, in get_controllers
File "base.py", line 114, in merge_controllers
File "base.py", line 130, in merge_ports
File "base.py", line 156, in merge_devices
IndexError: list index out of range
[1499] Failed to execute script macOS

Thank you for your work. I have a USBMap fully functional made with your tool.

USBtool is'nt geberating kexts

I'm using latest version of this tool.
The program just closes and does not create any file. Windows 11 22H2.
Tried also test build from issues section.

usb.zip

usbtoolbox crashes

The .exe file would try to Discover controllers and crash. ( I also tried the .zip version and also with antivirus disabled)

To Reproduce
Steps to reproduce the behavior:

  1. Go to Windows.exe and run it (result is the same when running it as admin)
  2. Select "D"
  3. Wait..

debug.zip
pastebin https://pastebin.com/GtNu8US3
I can't seem to get it to upload .json, guess it doesn't support it?

Hardware:

  • Gigabyte Aorus G1 Gaming X470
  • Windows 10 20H2
  • Usbtool 0.9

Build Ports - TypeError: unsupported type: <class 'NoneType'>

I've got exactly the same problem as #31 (hence reusing the identical title). I tested version 0.1.1, 0.1.0 and 0.0.9, all with the same result.

Through trial and error I figured out that the error occurs when assigning type 0 (USB A 2.0) to any port. I changed those ports to type 3 (USB A 3.0) and now it works.

I guess there's a bug somewhere in the code (I didn't look for it) that somehow interprets 0 as None and then plistlib.py trips over it.

Crashes on Getting Controllers...

Tried latest, tried v0.1.0 as said in #27 always crashes with the below error

  #######################################################
 #                  Port Discovery                     #
#######################################################


Getting controllers...
Traceback (most recent call last):
  File "Windows.py", line 160, in <module>
  File "Windows.py", line 43, in __init__
  File "base.py", line 49, in __init__
  File "base.py", line 696, in monu
  File "utils.py", line 204, in start
  File "utils.py", line 188, in select
  File "base.py", line 221, in discover_ports
  File "Windows.py", line 122, in get_controllers
  File "Windows.py", line 46, in update_usbdump
  File "usbdump.py", line 215, in get_controllers
  File "json\__init__.py", line 346, in loads
  File "json\decoder.py", line 337, in decode
  File "json\decoder.py", line 355, in raw_decode
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
[11540] Failed to execute script 'Windows' due to unhandled exception!

intel i5 6500
python latest ver 3.11

`UsbDeviceProperties` is null

picture

Reported on Reddit. Need some debugging info to be able to track this down. If you're experiencing this issue, please comment below with the following:

Motherboard and CPU:
A dump from debug_dump.exe (available from the releases tab). You can get this by opening cmd, cding to Downloads or wherever you downloaded it, and running debug_dump.exe. Then copy and paste all the output into Notepad and upload it somewhere. Or you could pipe it to a file: add > debug.txt to the command, then upload debug.txt.

XHCI-unsupported.kext Intergration

How are you. I would like to make a suggestion regarding the integration of XHCI-unsupported.kext with USBToolbox. For me, this tool is very helpful. My suggestion is, USBToolbox is able to support XHCI-unsupported.kext automatically. I will give an example. This also helps in reducing kext used. For clarification, there are some device-ids that require this kext. Like me for example 8086, A3AF on board LGA1200. Hope this integration can help other users in the future. An example on the plist is as below:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>CFBundleDevelopmentRegion</key>
	<string>English</string>
	<key>CFBundleGetInfoString</key>
	<string>v1.0</string>
	<key>CFBundleIdentifier</key>
	<string>com.corpnewt.USBMap</string>
	<key>CFBundleInfoDictionaryVersion</key>
	<string>6.0</string>
	<key>CFBundleName</key>
	<string>USBMap</string>
	<key>CFBundlePackageType</key>
	<string>KEXT</string>
	<key>CFBundleShortVersionString</key>
	<string>1.0</string>
	<key>CFBundleSignature</key>
	<string>????</string>
	<key>CFBundleVersion</key>
	<string>1.0</string>
	<key>IOKitPersonalities</key>
	<dict>
		<key>IOClass-AppleASMediaUSBXHCI</key>
		<dict>
			<key>CFBundleIdentifier</key>
			<string>com.apple.driver.usb.AppleUSBXHCIPCI</string>
			<key>IOClass</key>
			<string>AppleASMediaUSBXHCI</string>
			<key>IOPCIClassMatch</key>
			<string>0x0c033000</string>
			<key>IOPCIPauseCompatible</key>
			<true/>
			<key>IOPCIPrimaryMatch</key>
			<string>0x00001b21&amp;0x0000ffff</string>
			<key>IOPCITunnelCompatible</key>
			<true/>
			<key>IOProbeScore</key>
			<integer>1000</integer>
			<key>IOProviderClass</key>
			<string>IOPCIDevice</string>
		</dict>
		<key>IOClass-AppleUSBXHCISPT </key>
		<dict>
			<key>CFBundleIdentifier</key>
			<string>com.apple.driver.usb.AppleUSBXHCIPCI</string>
			<key>IOClass</key>
			<string>AppleUSBXHCISPT</string>
			<key>IOPCIPauseCompatible</key>
			<true/>
			<key>IOPCIPrimaryMatch</key>
			<string>0xa3af8086</string>
			<key>IOPCITunnelCompatible</key>
			<true/>
			<key>IOProbeScore</key>
			<integer>1000</integer>
			<key>IOProviderClass</key>
			<string>IOPCIDevice</string>
		</dict>
		<key>iMacPro1,1-USB0</key>
		<dict>
			<key>CFBundleIdentifier</key>
			<string>com.apple.driver.AppleUSBHostMergeProperties</string>
			<key>IOClass</key>
			<string>AppleUSBHostMergeProperties</string>
			<key>IOParentMatch</key>
			<dict>
				<key>IOPropertyMatch</key>
				<dict>
					<key>pcidebug</key>
					<string>7:0:0</string>
				</dict>
			</dict>
			<key>IOProviderClass</key>
			<string>AppleUSBXHCIPCI</string>
			<key>IOProviderMergeProperties</key>
			<dict>
				<key>kUSBMuxEnabled</key>
				<true/>
				<key>port-count</key>
				<data>
				BAAAAA==
				</data>
				<key>ports</key>
				<dict>
					<key>HS01</key>
					<dict>
						<key>UsbConnector</key>
						<integer>3</integer>
						<key>port</key>
						<data>
						AwAAAA==
						</data>
					</dict>
					<key>HS02</key>
					<dict>
						<key>UsbConnector</key>
						<integer>3</integer>
						<key>port</key>
						<data>
						BAAAAA==
						</data>
					</dict>
					<key>SS01</key>
					<dict>
						<key>UsbConnector</key>
						<integer>3</integer>
						<key>port</key>
						<data>
						AQAAAA==
						</data>
					</dict>
					<key>SS02</key>
					<dict>
						<key>UsbConnector</key>
						<integer>3</integer>
						<key>port</key>
						<data>
						AgAAAA==
						</data>
					</dict>
				</dict>
			</dict>
			<key>model</key>
			<string>iMacPro1,1</string>
		</dict>
		<key>iMacPro1,1-USB1</key>
		<dict>
			<key>CFBundleIdentifier</key>
			<string>com.apple.driver.AppleUSBHostMergeProperties</string>
			<key>IOClass</key>
			<string>AppleUSBHostMergeProperties</string>
			<key>IOParentMatch</key>
			<dict>
				<key>IOPropertyMatch</key>
				<dict>
					<key>pcidebug</key>
					<string>0:20:0</string>
				</dict>
			</dict>
			<key>IOProviderClass</key>
			<string>AppleUSBXHCIPCI</string>
			<key>IOProviderMergeProperties</key>
			<dict>
				<key>kUSBMuxEnabled</key>
				<true/>
				<key>port-count</key>
				<data>
				GAAAAA==
				</data>
				<key>ports</key>
				<dict>
					<key>HS01</key>
					<dict>
						<key>UsbConnector</key>
						<integer>3</integer>
						<key>port</key>
						<data>
						AQAAAA==
						</data>
					</dict>
					<key>HS02</key>
					<dict>
						<key>UsbConnector</key>
						<integer>3</integer>
						<key>port</key>
						<data>
						AwAAAA==
						</data>
					</dict>
					<key>HS03</key>
					<dict>
						<key>UsbConnector</key>
						<integer>3</integer>
						<key>port</key>
						<data>
						BAAAAA==
						</data>
					</dict>
					<key>HS04</key>
					<dict>
						<key>UsbConnector</key>
						<integer>3</integer>
						<key>port</key>
						<data>
						BwAAAA==
						</data>
					</dict>
					<key>HS05</key>
					<dict>
						<key>UsbConnector</key>
						<integer>3</integer>
						<key>port</key>
						<data>
						CAAAAA==
						</data>
					</dict>
					<key>HS06</key>
					<dict>
						<key>UsbConnector</key>
						<integer>3</integer>
						<key>port</key>
						<data>
						CQAAAA==
						</data>
					</dict>
					<key>HS07</key>
					<dict>
						<key>UsbConnector</key>
						<integer>3</integer>
						<key>port</key>
						<data>
						CgAAAA==
						</data>
					</dict>
					<key>HS08</key>
					<dict>
						<key>UsbConnector</key>
						<integer>3</integer>
						<key>port</key>
						<data>
						CwAAAA==
						</data>
					</dict>
					<key>HS09</key>
					<dict>
						<key>UsbConnector</key>
						<integer>3</integer>
						<key>port</key>
						<data>
						DAAAAA==
						</data>
					</dict>
					<key>SS01</key>
					<dict>
						<key>UsbConnector</key>
						<integer>3</integer>
						<key>port</key>
						<data>
						EQAAAA==
						</data>
					</dict>
					<key>SS02</key>
					<dict>
						<key>UsbConnector</key>
						<integer>3</integer>
						<key>port</key>
						<data>
						EgAAAA==
						</data>
					</dict>
					<key>SS03</key>
					<dict>
						<key>UsbConnector</key>
						<integer>3</integer>
						<key>port</key>
						<data>
						FQAAAA==
						</data>
					</dict>
					<key>SS04</key>
					<dict>
						<key>UsbConnector</key>
						<integer>3</integer>
						<key>port</key>
						<data>
						FgAAAA==
						</data>
					</dict>
					<key>SS05</key>
					<dict>
						<key>UsbConnector</key>
						<integer>3</integer>
						<key>port</key>
						<data>
						FwAAAA==
						</data>
					</dict>
					<key>SS06</key>
					<dict>
						<key>UsbConnector</key>
						<integer>3</integer>
						<key>port</key>
						<data>
						GAAAAA==
						</data>
					</dict>
				</dict>
			</dict>
			<key>model</key>
			<string>iMacPro1,1</string>
		</dict>
	</dict>
	<key>OSBundleRequired</key>
	<string>Root</string>
</dict>
</plist>

With this intergration, i dont need XHCIUnsupport kext anymore. My kext is reduce.

Build Ports - TypeError: unsupported type: <class 'NoneType'>

Using v1.1, port detection works, settings type for selected ports, and choosing build 'K' result in error:

#######################################################

Building USBMap

#######################################################

Generating Info.plist...
Writing kext and Info.plist...
Traceback (most recent call last):
File "macOS.py", line 174, in
File "base.py", line 49, in init
File "base.py", line 679, in monu
File "utils.py", line 204, in start
File "utils.py", line 188, in select
File "base.py", line 362, in select_ports
File "base.py", line 623, in build_kext
File "plistlib.py", line 894, in dump
File "plistlib.py", line 325, in write
File "plistlib.py", line 348, in write_value
File "plistlib.py", line 389, in write_dict
File "plistlib.py", line 348, in write_value
File "plistlib.py", line 389, in write_dict
File "plistlib.py", line 348, in write_value
File "plistlib.py", line 389, in write_dict
File "plistlib.py", line 348, in write_value
File "plistlib.py", line 389, in write_dict
File "plistlib.py", line 348, in write_value
File "plistlib.py", line 389, in write_dict
File "plistlib.py", line 348, in write_value
File "plistlib.py", line 389, in write_dict
File "plistlib.py", line 360, in write_value
TypeError: unsupported type: <class 'NoneType'>
[1925] Failed to execute script macOS

waitForMatchingService failed or timed out

I try to boot faster my mackintosh hack I already added the line IOPCITunnelCompatible to my UTBMap file and I was wondering how to get those two waitForMatchingService failed or timed out warnings that I have to go away

Schermopname 10-02-2023 om 23 05 15 PM

this is my UTBMap.kext it's config.plist

Scherm­afbeelding 2023-02-10 om 23 31 04

TypeError: 'NoneType' object is not subscriptable

Describe the bug
Ran Windows.exe and this is what it ran into while trying to do Port Discovery:

Getting controllers...
Traceback (most recent call last):
  File "Windows.py", line 149, in <module>
  File "Windows.py", line 32, in __init__
  File "base.py", line 50, in __init__
  File "base.py", line 680, in monu
  File "utils.py", line 204, in start
  File "utils.py", line 188, in select
  File "base.py", line 222, in discover_ports
  File "Windows.py", line 111, in get_controllers
  File "Windows.py", line 35, in update_usbdump
  File "usbdump.py", line 214, in get_controllers
TypeError: 'NoneType' object is not subscriptable
[16964] Failed to execute script Windows

Debugging information
debug_dump_01.zip

Hardware:

  • Gigabyte Z490 UD Rev 1.0
  • Windows 10

Windows Discovery crashes

Hey Hey, I ve run that on my Windows 10 SSD, but it simply crashes after discovery, I did run the discovery and it shows me for a few second

###################################################

Port Discovery

#######################################################

After that I did try the debug version that's under release, this doesn't even show up.

Any idea?

About create type

HI . About create type USBToolBox kext or native Apple kexts (AppleUSBHostMergeProperties)
What's the difference between them, which one is better? thankyou

Windows PE crash with "pywintypes.com_error: (2147221020, 'Invalid syntax', None, None)"

Hi, I made a fresh WinPE USB drive and ran the 0.1.0 release, it produced the following output:

Traceback (most recent call last):
  File "Windows.py", line 7, in <module>
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "PyInstaller\loader\pyimod03_importers.py", line 495, in exec_module
  File "wmi.py", line 174, in <module>
  File "win32com\client\__init__.py", line 85, in GetObject
  File "win32com\client\__init__.py", line 102, in Moniker
pywintypes.com_error: (-2147221020, 'Invalid syntax', None, None)
[1920] Failed to execute script 'Windows' due to unhandled exception!

My motherboard is an ASRock Z87 Extreme9/ac (Haswell) with an i7 4770K. I've installed Big Sur on it, but it's a bit ropey without its ports mapped.

Please advise... And thanks for putting this tool together for us!

Not works On Windows 11 (release 21H2) and Laptop MSI Bravo B5DD

Testing with latest version avaible: 0.0.9

Describe the bug
Running Windows.exe on my laptop in a administrator cmd window results in:

#######################################################

USBToolBox 0.0.9

#######################################################

Saved Data: None

D. Discover Ports
S. Select Ports and Build Kext
C. Change Settings
Q. Quit

Select an option: D

#######################################################

Port Discovery

#######################################################

Getting controllers...
Traceback (most recent call last):
File "Windows.py", line 149, in
File "Windows.py", line 32, in init
File "base.py", line 49, in init
File "base.py", line 679, in monu
File "utils.py", line 204, in start
File "utils.py", line 188, in select
File "base.py", line 221, in discover_ports
File "Windows.py", line 111, in get_controllers
File "Windows.py", line 35, in update_usbdump
File "usbdump.py", line 228, in get_controllers
File "usbdump.py", line 145, in serialize_hub
TypeError: 'NoneType' object is not iterable
[1280] Failed to execute script Windows

C:\Data\Install\Platform\OS\Mac_OS\Tools\USB_ToolBox\RELEASES\0.0.9>

Debugging information attached

Hardware:

  • Motherboard /Laptop : MSI Bravo 15, Model B5DD (CPU Ryzen 5800H and GPU Radeon RX-5500M)
  • OS: Windows 11 Release 2H21

Additional context
Executed on cmd (user) and cmd with adminitrative permissions. with usb 3 attached in a port or,with none usb attached, same error.
Windows11_debug.zip

Stuck on forcing cs_runtime for entitlement

Hii I am using Dell Haswell and trying to install Macos12 But Every Time i inject USBtoolBox.kext is stuck in forcing cs_runtime for entitlement..
But if remove it then run setup to install it worked except my USB port have doesn't work..

USBdump.exe crashes

Please make sure you are testing with the latest version of USBToolBox, available from https://github.com/USBToolBox/tool/releases.

The issue tracker for the kext is located at https://github.com/USBToolBox/kext. However, if you're not sure where an issue should go, open it somewhere and it will be moved to the appropriate place.

Describe the bug
Everytime i try to discover the ports theres a windows message sying usbdump.exe crashed and then the tool closes

To Reproduce
Steps to reproduce the behavior:

  1. Discover
  2. click "Close the program"

Debugging information
https://pastebin.com/Xa0y59tK

Hardware:

  • MPG B550 Gaming Plus
  • OS: Windows 11
  • The lastest one.

Additional context
Add any other context about the problem here.

usbdump failed

Hi, I'm trying to map my ports on macOS using Windows version. I get this error:
image
The system is practically fresh, using B450 A Pro Max motherboard. Also tried running as admin - same problem. Could you please help me?

AsRock X99 WS-E10G/10G "KeyError: 'show_friendly_types'"

Latest release from https://github.com/USBToolBox/tool/releases.

Describe the bug
Run ./Windows.exe from Windows Terminal. Select 'D'. Output:

` #######################################################

Port Discovery

#######################################################

Intel(R) C610 series/X99 chipset USB Enhanced Host Controller #2 - 8D2D | USB 2.0 (EHCI) | 2 ports
Traceback (most recent call last):
File "Windows.py", line 160, in
File "Windows.py", line 43, in init
File "base.py", line 49, in init
File "base.py", line 696, in monu
File "utils.py", line 204, in start
File "utils.py", line 188, in select
File "base.py", line 232, in discover_ports
File "base.py", line 189, in print_controllers
File "base.py", line 170, in port_to_str
KeyError: 'show_friendly_types'
[17132] Failed to execute script 'Windows' due to unhandled exception!
C:\Users\tomsh\Downloads>`

Debugging information
If on Windows, please download debug_dump from https://github.com/USBToolBox/tool/releases. It will save a file with debugging information, please upload it to this bug report.

Hardware:

  • ASRock X99 WS-E10G
  • OS: Windows 10 Pro - Version 10.0.19043 Build 19043

DEBUG DUMP:
x99.zip

Doesn't go past Getting Controllers...

Describe the bug
Unable to get past the Discovery phase of USBToolBox

To Reproduce
Steps to reproduce the behavior:

  1. Open Windows Program
  2. Enter Port Discovery
  3. Hangs at Getting Controllers...

Screenshot 2023-03-04 233637

Debugging information
Unable to get debug_dump to work or create log file

Hardware:

  • Gigabyte/Aorus B550
  • OS: [e.g. iOS]
  • 0.1.1

Additional context
Add any other context about the problem here.

change usb-c port type

my port is not switched, how do i change it
edit: nvm got it, just woke up brain foggy
to change type T:16(port number):10(change to unswitched)

AMD System, mapped ports don't work.

Sorry, turns out I missed the USBToolBox.kext file. It seems to have been applied and working now

Describe the bug

PXL_20210522_041257887

Once I boot into the system, my keyboard and mouse are on (lights), but I'm unable to use either of them. It also seems like the USB 3 ports that I've mapped do not even power the devices. The system also seems to hang at the above section in the image, something it does not do without the kext.

To Reproduce
Steps to reproduce the behavior:

  1. Follow the Windows mapping steps
  2. Open Windows.exe, plug in devices and let it fill out the list
  3. (I set my NZXT smart device connected through a USB header as type internal)
  4. Choose to disable unmapped ports.
  5. Add the kext, update config.plist, and reboot.

Debugging information

Kext and debug attached.
UTBMap.kext.zip

debug_dump.zip

(Note that I didn't map every single port in this map because I want to see what happens to ports that I don't map and choose ignore.)

Hardware:

  • ASRock 970M Pro3
  • OS: MacOS 11.3 Latest Big Sur
  • CPU: AMD FX 6200

Please let me know if there's any more information I can provide. Thanks :)

Inconvenience when creating port map

Create my port map from windows.
As you can see, I have a HUB (EHC1) and 2 ports (XHC)

IMG_1914

the problem is that when I put the kext Generated by Windows it gave me that error and I ran out of USB.

IMG_1915

observing the kext a little..
I saw that I didn't have the right model so I had to modify it to make it work...
Still I can't get my ports to Redirect to the internal HUB.

Captura de Pantalla 2022-04-08 a la(s) 2 55 32 p m

No native Apple kexts (AppleUSBHostMergeProperties) option?

Hello,
The readme states: If building a map that uses the USBToolBox kext, make sure to grab the [latest release](https://github.com/USBToolBox/kext/releases) of the kext too.

However I can't see an option to build the kext using AppleUSBHostMergeProperties, not USBToolBox.
Is there a hidden option? Do I need to edit the .plist file manually?
I used the 0.1.1 in Windows 10
Best regards

Sorry for the dumb qwstion

but I can not find the windows exe anywhere can you please give me a link to where it is ?
thanks so much, I do not know why but I can not find it for the life of me

Window closes itself when running discovery for ports (TypeError: NoneType object is not subscriptable)

When I try to run the application, it closes itself without doing anything.

Here is what it produces when ran via CMD/Powershell:

Getting controllers...
Traceback (most recent call last):
File "Windows.py", line 160, in
File "Windows.py", line 43, in init
File "base.py", line 49, in init
File "base.py", line 696, in monu
File "utils.py", line 204, in start
File "utils.py", line 188, in select
File "base.py", line 221, in discover_ports
File "Windows.py", line 122, in get_controllers
File "Windows.py", line 46, in update_usbdump
File "usbdump.py", line 217, in get_controllers
TypeError: 'NoneType' object is not subscriptable
[7684] Failed to execute script 'Windows' due to unhandled exception!

debug.txt
powershell

Hardware:

  • Motherboard ASUS TUF B550 GAMING PLUS
  • OS: Windows 10
  • Version: 21H2 (19044.1889)

Can't discovery on Windows 20H2

Hello,

Trying to use this tool on my PC Windows 20H2. USBTool 0.0.8

I select option D (discovery). Few second later, the tool closes itself. It crashes using cmd.

Getting controllers... Traceback (most recent call last): File "Windows.py", line 149, in <module> File "Windows.py", line 32, in __init__ File "base.py", line 50, in __init__ File "base.py", line 680, in monu File "utils.py", line 204, in start File "utils.py", line 188, in select File "base.py", line 222, in discover_ports File "Windows.py", line 111, in get_controllers File "Windows.py", line 35, in update_usbdump File "usbdump.py", line 221, in get_controllers File "usbdump.py", line 185, in serialize_hub File "usbdump.py", line 185, in serialize_hub File "usbdump.py", line 182, in serialize_hub KeyError: 'DeviceId' [4604] Failed to execute script Windows

Any solutions, please

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.