USBToolBox / tool

the USBToolBox tool
MIT License
936 stars 62 forks source link

XHCI-unsupported.kext Intergration #36

Open iamyounix opened 2 years ago

iamyounix commented 2 years ago

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.

fatihdemirbal commented 1 year ago

You mean LGA1200 right? and Did you add the script "end" or "begining" of the UTBMap.kext?

iamyounix commented 1 year ago

Yes.

Kext

fatihdemirbal commented 1 year ago

thanks for help. i made it.