Contribute
Register

[Guide] Creating a Custom SSDT for USBInjectAll.kext

Thank you @RehabMan Attached is the debug file generated by gen_degub script. As mentioned before, my custom SSDT For USB seems to be getting omitted. I tried to restart but no luck as the boot arguments were doing nothing, all ports were appearing. I then re-created my config.plist from scratch, and still same thing. Thank you again for your help!
No ioreg in the attached debug zip. Please check your files carefully before upload.
 
No ioreg in the attached debug zip. Please check your files carefully before upload.
My mistake.. Thought I saw an error on that step, wasn't sure what happened. Attached is full debug files including ioreg dump. Also noted a kernel panic reboot just earlier as I was trying to open up IOReg.. Adding report here if needed.. Thanks again!

Anonymous UUID: 693709B6-6743-3685-4A68-995F8D9061E6

Tue Dec 11 21:50:23 2018

*** Panic Report ***
panic(cpu 6 caller 0xffffff800f2da1ed): Kernel trap at 0xffffff7f917059cd, type 13=general protection, registers:
CR0: 0x0000000080010033, CR2: 0x00007fff4a136a30, CR3: 0x000000038c5d20ca, CR4: 0x00000000003626e0
RAX: 0x00ffffff00ffffff, RBX: 0xffffff804dc90800, RCX: 0x00000000024f0000, RDX: 0x00000000034f0000
RSP: 0xffffff92429939f0, RBP: 0xffffff9242993a10, RSI: 0xffffff804dc90800, RDI: 0xffffff80464f6600
R8: 0x0000000000000000, R9: 0x0000000000000010, R10: 0xffffff800fa9c9e0, R11: 0x0000000000000000
R12: 0xffffff804b79c840, R13: 0xffffff804da82b40, R14: 0xffffff80464f6600, R15: 0xffffff80464f66a0
RFL: 0x0000000000010206, RIP: 0xffffff7f917059cd, CS: 0x0000000000000008, SS: 0x0000000000000010
Fault CR2: 0x00007fff4a136a30, Error code: 0x0000000000000000, Fault CPU: 0x6, PL: 0, VF: 0

Backtrace (CPU 6), Frame : Return Address
0xffffff800ef4f150 : 0xffffff800f1aeafd
0xffffff800ef4f1a0 : 0xffffff800f2e85a3
0xffffff800ef4f1e0 : 0xffffff800f2d9fca
0xffffff800ef4f250 : 0xffffff7f8fb4e01c
0xffffff800ef4f2f0 : 0xffffff800f15bca0
0xffffff800ef4f310 : 0xffffff800f1ae517
0xffffff800ef4f430 : 0xffffff800f1ae363
0xffffff800ef4f4a0 : 0xffffff800f2da1ed
0xffffff800ef4f610 : 0xffffff7f8fb4e01c
0xffffff800ef4f6b0 : 0xffffff800f15bca0
0xffffff800ef4f6d0 : 0xffffff7f917059cd
0xffffff9242993a10 : 0xffffff7f916ffca5
0xffffff9242993a30 : 0xffffff7f91705e68
0xffffff9242993a60 : 0xffffff7f917082c8
0xffffff9242993aa0 : 0xffffff7f9170725d
0xffffff9242993ae0 : 0xffffff800f885498
0xffffff9242993b30 : 0xffffff800f88e91f
0xffffff9242993c70 : 0xffffff800f294bb4
0xffffff9242993d80 : 0xffffff800f1b42bd
0xffffff9242993dd0 : 0xffffff800f18ebe5
0xffffff9242993e50 : 0xffffff800f1a359e
0xffffff9242993ef0 : 0xffffff800f2c170b
0xffffff9242993fa0 : 0xffffff800f15c486
Kernel Extensions in backtrace:
as.vit9696.VirtualSMC(1.0.2)[C96B9901-FCF8-3EE5-A86B-F2177F8BDEC1]@0xffffff7f8fb3f000->0xffffff7f8fb5ffff
dependency: com.apple.iokit.IOACPIFamily(1.4)[99A8A054-9F64-3FB8-BB1D-5973F8AB04A1]@0xffffff7f8fb14000
dependency: as.vit9696.Lilu(1.2.8)[11348164-7C07-3D65-8BE4-76A07358DCCB]@0xffffff7f8fb1d000
com.apple.iokit.IOSurface(255.1)[CAF77C5D-98FF-33D0-B31C-FC327D7AD4F6]@0xffffff7f916fc000->0xffffff7f9171dfff

BSD process name corresponding to current thread: com.apple.WebKit
Boot args: -uia_ignore_rmcf -uia_exclude_ss exclude=USR1,USR2

Mac OS version:
18C54

Kernel version:
Darwin Kernel Version 18.2.0: Mon Nov 12 20:24:46 PST 2018; root:xnu-4903.231.4~2/RELEASE_X86_64
Kernel UUID: 56B30885-F9BA-30E8-AD1C-5D59EC243BA9
Kernel slide: 0x000000000ee00000
Kernel text base: 0xffffff800f000000
__HIB text base: 0xffffff800ef00000
System model name: iMac17,1 (Mac-B809C3757DA9BB8D)

System uptime in nanoseconds: 43940232615
last loaded kext at 30388727651: com.apple.driver.AppleBluetoothHIDKeyboard 208 (addr 0xffffff7f92d52000, size 16384)
loaded kexts:
ru.usrsse2.SMCLightSensor 1
com.intel.driver.EnergyDriver 3.5.5
com.insanelymac.IntelMausiEthernet 2.4.0
as.vit9696.SMCProcessor 1.0.2
as.vit9696.VirtualSMC 1.0.2
as.vit9696.AppleALC 1.3.4
as.vit9696.WhateverGreen 1.2.4
as.vit9696.Lilu 1.2.8
com.apple.driver.AppleBluetoothMultitouch 96
com.apple.fileutil 18.306.12
com.apple.filesystems.autofs 3.0
com.apple.kext.AMDFramebuffer 2.0.4
com.apple.driver.AppleUpstreamUserClient 3.6.5
com.apple.driver.AppleMCCSControl 1.5.6
com.apple.driver.AGPM 110.23.46
com.apple.driver.X86PlatformShim 1.0.0
com.apple.driver.ApplePlatformEnabler 2.7.0d0
com.apple.driver.AppleHDAHardwareConfigDriver 282.10
com.apple.driver.AppleHDA 282.10
com.apple.kext.AMDRadeonX4000 2.0.4
com.apple.driver.AppleGraphicsDevicePolicy 3.28.4
com.apple.AGDCPluginDisplayMetrics 3.28.4
com.apple.driver.AppleHV 1
com.apple.iokit.IOUserEthernet 1.0.1
com.apple.iokit.IOBluetoothSerialManager 6.0.9f2
com.apple.driver.pmtelemetry 1
com.apple.Dont_Steal_Mac_OS_X 7.0.0
com.apple.driver.AppleIntelSKLGraphics 12.0.4
com.apple.driver.AppleIntelPCHPMC 2.0.1
com.apple.driver.ACPI_SMC_PlatformPlugin 1.0.0
com.apple.kext.AMD9500Controller 2.0.4
com.apple.driver.eficheck 1
com.apple.driver.AppleGFXHDA 100.1.40
com.apple.driver.AppleIntelSlowAdaptiveClocking 4.0.0
com.apple.driver.AppleIntelSKLGraphicsFramebuffer 12.0.4
com.apple.driver.AudioAUUC 1.70
com.apple.driver.AppleOSXWatchdog 1
com.apple.driver.AppleFIVRDriver 4.1.0
com.apple.driver.AppleRAID 5.1.0
com.apple.private.KextAudit 1.0
com.apple.iokit.IOBluetoothUSBDFU 6.0.9f2
com.apple.driver.AppleFileSystemDriver 3.0.1
com.apple.driver.AppleVirtIO 2.1.2
com.apple.filesystems.hfs.kext 407.200.4
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1
com.apple.BootCache 40
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0
com.apple.AppleSystemPolicy 1.0
com.apple.filesystems.apfs 945.230.6
com.apple.driver.AirPort.BrcmNIC 1400.1.1
com.apple.driver.AppleAHCIPort 329.200.2
com.apple.driver.AppleRTC 2.0
com.apple.driver.AppleACPIButtons 6.1
com.apple.driver.AppleHPET 1.8
com.apple.driver.AppleSMBIOS 2.1
com.apple.driver.AppleAPIC 1.7
com.apple.nke.applicationfirewall 190
com.apple.security.TMSafetyNet 8
com.apple.driver.AppleBluetoothHIDKeyboard 208
com.apple.driver.AppleHIDKeyboard 208
com.apple.driver.IOBluetoothHIDDriver 6.0.9f2
com.apple.driver.AppleMultitouchDriver 2410.5
com.apple.driver.AppleInputDeviceSupport 2410.2
com.apple.kext.triggers 1.0
com.apple.driver.AppleSMBusController 1.0.18d1
com.apple.iokit.IOSMBusFamily 1.1
com.apple.driver.DspFuncLib 282.10
com.apple.kext.OSvKernDSPLib 527
com.apple.kext.AMDRadeonX4000HWLibs 1.0
com.apple.kext.AMDRadeonX4000HWServices 2.0.4
com.apple.driver.AppleGraphicsControl 3.28.4
com.apple.iokit.IOAVBFamily 710.1
com.apple.plugin.IOgPTPPlugin 700.7
com.apple.iokit.IOEthernetAVBController 1.1.0
com.apple.driver.AppleSSE 1.0
com.apple.AppleGPUWrangler 3.28.4
com.apple.driver.IOPlatformPluginLegacy 1.0.0
com.apple.driver.AppleHDAController 282.10
com.apple.iokit.IOHDAFamily 282.10
com.apple.iokit.IONDRVSupport 530
com.apple.iokit.IOSlowAdaptiveClockingFamily 1.0.0
com.apple.iokit.IOAcceleratorFamily2 404.2.2
com.apple.iokit.IOSurface 255.1
com.apple.driver.AppleSMBusPCI 1.0.14d1
com.apple.driver.X86PlatformPlugin 1.0.0
com.apple.driver.IOPlatformPluginFamily 6.0.0d8
com.apple.kext.AMDSupport 2.0.4
com.apple.AppleGraphicsDeviceControl 3.28.4
com.apple.iokit.IOGraphicsFamily 530.14
com.apple.iokit.IOAHCIBlockStorage 301.200.2
com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport 6.0.9f2
com.apple.iokit.IOBluetoothHostControllerUSBTransport 6.0.9f2
com.apple.iokit.IOBluetoothHostControllerTransport 6.0.9f2
com.apple.iokit.IOBluetoothFamily 6.0.9f2
com.apple.driver.usb.AppleUSBHub 1.2
com.apple.driver.AppleUSBAudio 315.6
com.apple.driver.usb.IOUSBHostHIDDevice 1.2
com.apple.iokit.IOAudioFamily 206.5
com.apple.vecLib.kext 1.2.0
com.apple.driver.AppleUSBHostMergeProperties 1.2
com.apple.driver.usb.cdc 5.0.0
com.apple.driver.usb.networking 5.0.0
com.apple.driver.usb.AppleUSBHostCompositeDevice 1.2
com.apple.iokit.IOSerialFamily 11
com.apple.filesystems.hfs.encodings.kext 1
com.apple.driver.usb.AppleUSBHostPacketFilter 1.0
com.apple.iokit.IOUSBFamily 900.4.2
com.apple.driver.AppleXsanScheme 3
com.apple.iokit.IONVMeFamily 2.1.0
com.apple.iokit.IO80211Family 1200.12.2
com.apple.driver.mDNSOffloadUserClient 1.0.1b8
com.apple.driver.corecapture 1.0.4
com.apple.driver.AppleEFINVRAM 2.1
com.apple.driver.AppleIntelLpssGspi 3.0.60
com.apple.driver.AppleIntelLpssI2C 3.0.60
com.apple.iokit.IOAHCIFamily 288
com.apple.driver.usb.AppleUSBXHCIPCI 1.2
com.apple.driver.usb.AppleUSBXHCI 1.2
com.apple.driver.AppleEFIRuntime 2.1
com.apple.iokit.IOHIDFamily 2.0.0
com.apple.security.quarantine 3
com.apple.security.sandbox 300.0
com.apple.kext.AppleMatch 1.0.0d1
com.apple.driver.DiskImages 493.0.0
com.apple.driver.AppleFDEKeyStore 28.30
com.apple.driver.AppleEffaceableStorage 1.0
com.apple.driver.AppleKeyStore 2
com.apple.driver.AppleUSBTDM 456.230.1
com.apple.driver.AppleMobileFileIntegrity 1.0.5
com.apple.kext.CoreTrust 1
com.apple.iokit.IOUSBMassStorageDriver 145.200.2
com.apple.iokit.IOSCSIBlockCommandsDevice 408.200.1
com.apple.iokit.IOSCSIArchitectureModelFamily 408.200.1
com.apple.iokit.IOStorageFamily 2.1
com.apple.driver.AppleCredentialManager 1.0
com.apple.driver.KernelRelayHost 1
com.apple.iokit.IOUSBHostFamily 1.2
com.apple.driver.usb.AppleUSBCommon 1.0
com.apple.driver.AppleBusPowerController 1.0
com.apple.driver.AppleSEPManager 1.0.1
com.apple.driver.IOSlaveProcessor 1
com.apple.iokit.IOReportFamily 47
com.apple.iokit.IOTimeSyncFamily 700.7
com.apple.iokit.IONetworkingFamily 3.4
com.apple.driver.AppleACPIPlatform 6.1
com.apple.driver.AppleSMC 3.1.9
com.apple.iokit.IOPCIFamily 2.9
com.apple.iokit.IOACPIFamily 1.4
com.apple.kec.pthread 1
com.apple.kec.Libm 1
com.apple.kec.corecrypto 1.0

EOF
Model: iMac17,1, BootROM 161.0.0.0.0, 4 processors, Intel Core i7, 4.01 GHz, 16 GB, SMC 2.33f10
Graphics: Intel HD Graphics 530, Intel HD Graphics 530, Built-In
Graphics: AMD Radeon RX 580, AMD Radeon RX 580, PCIe
Memory Module: BANK 0/DIMM1, 8 GB, DDR4, 2473 MHz, Crucial Technology, BLS8G4D240FSB.16FARG
Memory Module: BANK 1/DIMM1, 8 GB, DDR4, 2473 MHz, Crucial Technology, BLS8G4D240FSB.16FARG
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x112), Broadcom BCM43xx 1.0 (7.77.61.1 AirPortDriverBrcmNIC-1305.2)
Bluetooth: Version 6.0.9f2, 3 services, 27 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en1
Network Service: Ethernet, Ethernet, en0
Serial ATA Device: WDC WD10EZEX-00BN5A0, 1 TB
Serial ATA Device: ST31000520AS, 1 TB
USB Device: USB 3.0 Bus
USB Device: BRCM20702 Hub
USB Device: Bluetooth USB Host Controller
USB Device: HD Pro Webcam C920
USB Device: USB 3.1 Bus
Thunderbolt Bus:
 

Attachments

  • debug_5283.zip
    3.1 MB · Views: 58
My mistake.. Thought I saw an error on that step, wasn't sure what happened. Attached is full debug files including ioreg dump. Also noted a kernel panic reboot just earlier as I was trying to open up IOReg.. Adding report here if needed.. Thanks again!

You have an obvious problem with the way you installed USBInjectAll.kext.
Look at your kextcache output:
Code:
Kext rejected due to improper filesystem permissions: <OSKext 0x7ffe981221b0 [0x7fff8ccc08f0]> { URL = "USBInjectAll.kext/ -- file:///Library/Extensions/", ID = "com.rehabman.driver.USBInjectAll" }
USBInjectAll.kext does not authenticate; omitting.

Refer to the FAQ for correct kext install procedures:
https://www.tonymacx86.com/threads/faq-read-first-laptop-frequent-questions.164990/

Your KP in VirtualSMC.kext is off-topic here.
 
Thank you @RehabMan
Attached is the debug file generated by gen_degub script.
I also followed your guide for proper USB power injection. I hope...
My problems are two.
First at apple logo boot screen, half the way the screen flashes black for few seconds and then boots normally.
Not big deal, just annoying!
Second, sometimes USB ports are working randomly. Especially those at front of the case.

No need to say how thankful I am
 

Attachments

  • debug_16460.zip
    3 MB · Views: 61
First at apple logo boot screen, half the way the screen flashes black for few seconds and then boots normally.
Not big deal, just annoying!

Off-topic.

Second, sometimes USB ports are working randomly. Especially those at front of the case.

The guide does not recommend XHCI-200-series-injector.kext.
As per post #1, use XHCI-unsupported.kext.
 
Hi everyone,
Today I made my own SSDT and I have a few issues so far.

Intel i9-9900k
Asus Prime z-390-a
Kraken X62 AIO Cooler
Dell U2413 (4xUSB3.0, 1xUSB3.0 Card Reader)
Dell U2417H (x4USB3.0)
Mojave 10.14.2

First of all here is my notes from IORegistry Explorer:

HS01@14100000 - USB3.1 Gen2 (back panel) Middle Right green port - U2417H (4 ports)

HS02@14200000 - USB3.1 Gen2 (back panel) Middle Left green port - U2413 (4 ports)

HS06@14300000 - USB2.0 (2 ports) front panel ——————————————> USB2.0 internal header

HS07@14400000 - USB3.1 Gen1 (2 ports) front panel (only 1/2 discoverable) —> USB3.1 internal header

HS09@14500000 -

HS10@14600000 -

HS13@14700000 - USB2.0 (back panel) Upper Right port (mouse) ---> USB2.0 port 1/2 (BACKPLATE)

HS14@14800000 - USB2.0 (back panel) Upper Left port (keyboard) ---> USB2.0 port 2/2 (BACKPLATE)

SS01@14900000 - USB3.1 Gen2 (back panel) Middle Right green port - U2417H (4 ports)

SS02@14a00000 - USB3.1 Gen2 (back panel) Middle Left green port - U2413 (4 ports + Card reader)

SS03@14b00000 - USB3.1 Gen2 (back panel) Upper Right green port

SS04@14c00000 -

SS07@14d00000 - USB3.1 Gen1 (2 ports) front panel (only 1/2 discoverable) —> USB3.1 internal header

SS09@14e00000 - USB3.1 Gen1 (back panel) Bottom Right blue port

SS10@14f00000 - USB3.1 Gen1 (back panel) Bottom Left blue port




Undiscoverable Ports


1x USB2.0 internal header which is connected with NZXT Kraken X62 AIO Cooler was showing before at System Report->Hardware->USB as “NZXT Device”. Now its not showing at all.

1x USB2.0 internal header which isn’t connected

1x USB3.1 Gen1 (type C) internal header which isn’t connected

1x USB3.1 Gen2 (type C) backplate (missing device to test it)

1/2 USB3.1 Gen1 front panel is not discoverable (it was working before)


Summary
SS04@14c00000 must be USB3.1 Gen2 (backplate) or USB3.1 Gen1 (internal). Cannot test as I don’t have type-c usb device neither my tower support it at front panel.
My 2 Dell monitors which have a total of 8 USB3.0 ports and 1 card reader sometimes after boot the ports are working at usb2 speeds. If I disconnect and reconnect the monitor cable to my usb3.1 ports at backplate Im able to see all ports at usb3.0 speeds. Is there any fix about this?
Also only 1/2 USB3.1 ports at front panel is working. Im attaching both usb2 and usb3 flash drives but its not working. Ofc I can boot from this port while in post and before i login to macos.
 

Attachments

  • SSDT-UIAC.aml
    696 bytes · Views: 72
  • USB.png
    USB.png
    388.3 KB · Views: 66
  • ioreg.png
    ioreg.png
    301.8 KB · Views: 64
Hi everyone,
Today I made my own SSDT and I have a few issues so far.

Intel i9-9900k
Asus Prime z-390-a
Kraken X62 AIO Cooler
Dell U2413 (4xUSB3.0, 1xUSB3.0 Card Reader)
Dell U2417H (x4USB3.0)
Mojave 10.14.2

First of all here is my notes from IORegistry Explorer:

HS01@14100000 - USB3.1 Gen2 (back panel) Middle Right green port - U2417H (4 ports)

HS02@14200000 - USB3.1 Gen2 (back panel) Middle Left green port - U2413 (4 ports)

HS06@14300000 - USB2.0 (2 ports) front panel ——————————————> USB2.0 internal header

HS07@14400000 - USB3.1 Gen1 (2 ports) front panel (only 1/2 discoverable) —> USB3.1 internal header

HS09@14500000 -

HS10@14600000 -

HS13@14700000 - USB2.0 (back panel) Upper Right port (mouse) ---> USB2.0 port 1/2 (BACKPLATE)

HS14@14800000 - USB2.0 (back panel) Upper Left port (keyboard) ---> USB2.0 port 2/2 (BACKPLATE)

SS01@14900000 - USB3.1 Gen2 (back panel) Middle Right green port - U2417H (4 ports)

SS02@14a00000 - USB3.1 Gen2 (back panel) Middle Left green port - U2413 (4 ports + Card reader)

SS03@14b00000 - USB3.1 Gen2 (back panel) Upper Right green port

SS04@14c00000 -

SS07@14d00000 - USB3.1 Gen1 (2 ports) front panel (only 1/2 discoverable) —> USB3.1 internal header

SS09@14e00000 - USB3.1 Gen1 (back panel) Bottom Right blue port

SS10@14f00000 - USB3.1 Gen1 (back panel) Bottom Left blue port




Undiscoverable Ports


1x USB2.0 internal header which is connected with NZXT Kraken X62 AIO Cooler was showing before at System Report->Hardware->USB as “NZXT Device”. Now its not showing at all.

1x USB2.0 internal header which isn’t connected

1x USB3.1 Gen1 (type C) internal header which isn’t connected

1x USB3.1 Gen2 (type C) backplate (missing device to test it)

1/2 USB3.1 Gen1 front panel is not discoverable (it was working before)


Summary
SS04@14c00000 must be USB3.1 Gen2 (backplate) or USB3.1 Gen1 (internal). Cannot test as I don’t have type-c usb device neither my tower support it at front panel.
My 2 Dell monitors which have a total of 8 USB3.0 ports and 1 card reader sometimes after boot the ports are working at usb2 speeds. If I disconnect and reconnect the monitor cable to my usb3.1 ports at backplate Im able to see all ports at usb3.0 speeds. Is there any fix about this?
Also only 1/2 USB3.1 ports at front panel is working. Im attaching both usb2 and usb3 flash drives but its not working. Ofc I can boot from this port while in post and before i login to macos.
No "Problem Reporting" files attached.
Read FAQ, "Problem Reporting" again. Carefully. Attach all requested files/output.
https://www.tonymacx86.com/threads/faq-read-first-laptop-frequent-questions.164990/
Use the gen_debug.sh tool mentioned in the FAQ, that way it is less likely you'll omit something.
 
Hi !

First if all, thanks a lot for this guide ! I'm not an expert and managed to have a ssdt alomst working. I still have SS09 and SS 06 not mounting USB3 devices. They are mounting USB2 devices without problems. I'm running 10.14.1.

I attached the requested debug files (I mean I hops I did it properly !). I don't have windows installed on the Hack so I can't give you CPU-z logs.

Any help would be great
 

Attachments

  • rehab.zip
    7.8 MB · Views: 77
Hi !

First if all, thanks a lot for this guide ! I'm not an expert and managed to have a ssdt alomst working. I still have SS09 and SS 06 not mounting USB3 devices. They are mounting USB2 devices without problems. I'm running 10.14.1.

I attached the requested debug files (I mean I hops I did it properly !). I don't have windows installed on the Hack so I can't give you CPU-z logs.

Any help would be great
No ioreg in the attached debug zip. Please check your files carefully before upload.
 
My mistake...
 

Attachments

  • iMac de jean-martin2.ioreg.zip
    1.1 MB · Views: 61
Back
Top