Contribute
Register

[Guide] Creating a Custom SSDT for USBInjectAll.kext

I've read that the 8086,a2af controller is now natively supported by High Sierra, so it's no longer necessary to use xhci-200-series-injector.kext, is that correct?

If you install it when not needed, it will be ignored/have no effect.
 
Kexts rejected... - all those should be removed and installed correctly

How and where to install kexts:

Thank you for your suggestion. Now the kext log reports "Kext with invalid signatured", I suppose it's normal.

Unfortunately, I recently had a new kernel panic, which reports a similar log to the previous one.
Code:
Anonymous UUID:       786B1397-57CD-21A8-29A0-151776313FEC

Fri Feb  8 16:35:46 2019

*** Panic Report ***
panic(cpu 3 caller 0xffffff8001588f6f): Kernel trap at 0xffffff8001544263, type 14=page fault, registers:
CR0: 0x0000000080010033, CR2: 0xffffffffffffffa6, CR3: 0x0000000746bf8057, CR4: 0x00000000003627e0
RAX: 0x0000000000000000, RBX: 0x0000000000000000, RCX: 0x000000000000001d, RDX: 0xffffff80754902a0
RSP: 0xffffffa3b8e33db0, RBP: 0xffffffa3b8e33dc0, RSI: 0xffffff807255a5e0, RDI: 0xffffff80742c4510
R8:  0xffffff8001e25820, R9:  0xffffff8001c9df68, R10: 0xffffffa3b8e33d58, R11: 0xffffffa3b8e33db0
R12: 0xffffff80742c44a0, R13: 0xffffff8001e2a368, R14: 0xffffff807255a000, R15: 0x0000000000001100
RFL: 0x0000000000010286, RIP: 0xffffff8001544263, CS:  0x0000000000000008, SS:  0x0000000000000010
Fault CR2: 0xffffffffffffffa6, Error code: 0x0000000000000002, Fault CPU: 0x3, PL: 0, VF: 1

Backtrace (CPU 3), Frame : Return Address
0xffffffa3b8e33880 : 0xffffff800146e1c6
0xffffffa3b8e338d0 : 0xffffff8001596a74
0xffffffa3b8e33910 : 0xffffff8001588d44
0xffffffa3b8e33980 : 0xffffff80014201e0
0xffffffa3b8e339a0 : 0xffffff800146dc3c
0xffffffa3b8e33ad0 : 0xffffff800146d9fc
0xffffffa3b8e33b30 : 0xffffff8001588f6f
0xffffffa3b8e33ca0 : 0xffffff80014201e0
0xffffffa3b8e33cc0 : 0xffffff8001544263
0xffffffa3b8e33dc0 : 0xffffff80014736e0
0xffffffa3b8e33e10 : 0xffffff8001450a3d
0xffffffa3b8e33e60 : 0xffffff800146354b
0xffffffa3b8e33ef0 : 0xffffff8001572f1d
0xffffffa3b8e33fa0 : 0xffffff80014209e6

BSD process name corresponding to current thread: Cubase 9.5
Boot args: darkwake=8

Mac OS version:
17G5019

Kernel version:
Darwin Kernel Version 17.7.0: Thu Dec 20 21:47:19 PST 2018; root:xnu-4570.71.22~1/RELEASE_X86_64
Kernel UUID: 4A5298BF-709E-37DF-B7F0-4298065CC266
Kernel slide:     0x0000000001200000
Kernel text base: 0xffffff8001400000
__HIB  text base: 0xffffff8001300000
System model name: iMac18,3 (Mac-BE088AF8C5EB4FA2)

System uptime in nanoseconds: 21191508288872
last loaded kext at 19274116420750: com.apple.driver.usb.cdc.acm    5.0.0 (addr 0xffffff7f84edb000, size 57344)
last unloaded kext at 19356009794425: com.apple.driver.AppleUSBMergeNub    900.4.1 (addr 0xffffff7f84eb5000, size 12288)
loaded kexts:
...

Obviously after every kenel panic I do an NVRAM cleaning, so it's not the same.

Usb problem? Or is it a problem related to something else?
 

Attachments

  • debug_3085.zip
    2.3 MB · Views: 72
Thank you for your suggestion. Now the kext log reports "Kext with invalid signatured", I suppose it's normal.

Unfortunately, I recently had a new kernel panic, which reports a similar log to the previous one.
Code:
Anonymous UUID:       786B1397-57CD-21A8-29A0-151776313FEC

Fri Feb  8 16:35:46 2019

*** Panic Report ***
panic(cpu 3 caller 0xffffff8001588f6f): Kernel trap at 0xffffff8001544263, type 14=page fault, registers:
CR0: 0x0000000080010033, CR2: 0xffffffffffffffa6, CR3: 0x0000000746bf8057, CR4: 0x00000000003627e0
RAX: 0x0000000000000000, RBX: 0x0000000000000000, RCX: 0x000000000000001d, RDX: 0xffffff80754902a0
RSP: 0xffffffa3b8e33db0, RBP: 0xffffffa3b8e33dc0, RSI: 0xffffff807255a5e0, RDI: 0xffffff80742c4510
R8:  0xffffff8001e25820, R9:  0xffffff8001c9df68, R10: 0xffffffa3b8e33d58, R11: 0xffffffa3b8e33db0
R12: 0xffffff80742c44a0, R13: 0xffffff8001e2a368, R14: 0xffffff807255a000, R15: 0x0000000000001100
RFL: 0x0000000000010286, RIP: 0xffffff8001544263, CS:  0x0000000000000008, SS:  0x0000000000000010
Fault CR2: 0xffffffffffffffa6, Error code: 0x0000000000000002, Fault CPU: 0x3, PL: 0, VF: 1

Backtrace (CPU 3), Frame : Return Address
0xffffffa3b8e33880 : 0xffffff800146e1c6
0xffffffa3b8e338d0 : 0xffffff8001596a74
0xffffffa3b8e33910 : 0xffffff8001588d44
0xffffffa3b8e33980 : 0xffffff80014201e0
0xffffffa3b8e339a0 : 0xffffff800146dc3c
0xffffffa3b8e33ad0 : 0xffffff800146d9fc
0xffffffa3b8e33b30 : 0xffffff8001588f6f
0xffffffa3b8e33ca0 : 0xffffff80014201e0
0xffffffa3b8e33cc0 : 0xffffff8001544263
0xffffffa3b8e33dc0 : 0xffffff80014736e0
0xffffffa3b8e33e10 : 0xffffff8001450a3d
0xffffffa3b8e33e60 : 0xffffff800146354b
0xffffffa3b8e33ef0 : 0xffffff8001572f1d
0xffffffa3b8e33fa0 : 0xffffff80014209e6

BSD process name corresponding to current thread: Cubase 9.5
Boot args: darkwake=8

Mac OS version:
17G5019

Kernel version:
Darwin Kernel Version 17.7.0: Thu Dec 20 21:47:19 PST 2018; root:xnu-4570.71.22~1/RELEASE_X86_64
Kernel UUID: 4A5298BF-709E-37DF-B7F0-4298065CC266
Kernel slide:     0x0000000001200000
Kernel text base: 0xffffff8001400000
__HIB  text base: 0xffffff8001300000
System model name: iMac18,3 (Mac-BE088AF8C5EB4FA2)

System uptime in nanoseconds: 21191508288872
last loaded kext at 19274116420750: com.apple.driver.usb.cdc.acm    5.0.0 (addr 0xffffff7f84edb000, size 57344)
last unloaded kext at 19356009794425: com.apple.driver.AppleUSBMergeNub    900.4.1 (addr 0xffffff7f84eb5000, size 12288)
loaded kexts:
...

Obviously after every kenel panic I do an NVRAM cleaning, so it's not the same.

Usb problem? Or is it a problem related to something else?
config.plist InjectKexts should be set to Detect
 
7-series chipsets typically need FakePCIIID_XHCIMux.kext (+FakePCID.kext). Your ioreg indicates it is not being used.
Hi RehabMan, so I installed FakePCID.kext and FakePCIIID_XHCIMux.kext, but still the same issue.
Here is my new report.
 

Attachments

  • debug_5746.zip
    1.7 MB · Views: 69
Nice read and I've managed to get a correct patch!
Learned a lot, thank you.
 
RehabMan, recently I removed my custom USB port SSDT from the Clover ACPI/patched directory altogether for reason of troubleshooting, using only -uia_exclude to keep to 15 ports. The system (10.14.3) can evidently detect all of the wanted ports without any need for the SSDT. What's going on here?
 
Aloha Rehabman,

Installed Mojave from scratch. Most things just work.
But not USB. I am stuck at Port Discovery.
USB 3.0 devices are reported as USB 2.0 devices.
HS##, instead of SS##. Hmmmm….

Thought I followed the directions, but I must have made a mistake.

The gen_debug info is attached.
The IOReg Dump failed, so I am attaching it separately.

Any ideas?

Thank you for your help.
 

Attachments

  • debug_27183.zip
    1.3 MB · Views: 69
  • ioReg for iMac.zip
    877.7 KB · Views: 66
Aloha Rehabman,

Installed Mojave from scratch. Most things just work.
But not USB. I am stuck at Port Discovery.
USB 3.0 devices are reported as USB 2.0 devices.
HS##, instead of SS##. Hmmmm….

Thought I followed the directions, but I must have made a mistake.

The gen_debug info is attached.
The IOReg Dump failed, so I am attaching it separately.

Any ideas?

Thank you for your help.
config.plist:
InjectKexts should be set to Detect
 
Back
Top