Contribute
Register

[Guide] Creating a Custom SSDT for USBInjectAll.kext

i have changed HS01 and HS02 to USB 3.0
plz have a look on my PR files

Assuming you have two USB3 ports, one USB2-only port, and the two internal devices (camera, bluetooth), this configuration looks ok.
 
"Problem Reporting" files are incomplete.
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.

Note: No need for uia_exclude with properly coded SSDT-UIAC.aml.

Removed the uia_exclude argument and attached all files. Also if you find anything else wrong in the files please let me know, I'm having some mouse lag issues and thought you may have the solution to those problems. Thanks in advance @RehabMan, really appreciate what you do in this community.
 

Attachments

  • debug_9386.zip
    2.5 MB · Views: 88
I am losing Bluetooth after sleep.
attached -pre is debug info after boot.
attached -after-sleep is debug info after waking from sleep. BT works for a little and then stops.
I have no idea where to look and would appreciate any pointers you can get from my debug info.

thanks in advance

This machine is a Dell Latitude 7390 i5-8250u with DW-1830
 

Attachments

  • debug_10741-pre.zip
    5.4 MB · Views: 91
  • debug_7301-after-sleep.zip
    5.4 MB · Views: 85
I created my .dsl file, and everything is working fine as a DSL file (or at least I think it does). When I compile it, only a part of the ports appear in IORegistry, any ideas? Attached is my .dsl and .aml file. My boot arguements are: -alcbeta shikigva=60 -lilubetaall uia_exclude=HS11;HS12;SS03;SS04;SS05;SS06;SS07;SS08;SS09;SS10;USR1;USR2 -wegbeta

Removed the uia_exclude argument and attached all files.

Port address zero is invalid.
From your SSDT-UIAC.aml:
Code:
                    "HS08",
                    Package (0x04)
                    {
                        "UsbConnector",
                        Zero,
                        "port",
                        Buffer (0x04)
                        {
                             0x00, 0x00, 0x00, 0x00                        
                        }
                    },

                    "HS09",
                    Package (0x04)
                    {
                        "UsbConnector",
                        Zero,
                        "port",
                        Buffer (0x04)
                        {
                             0x00, 0x00, 0x00, 0x00                        
                        }
                    },

                    "HS10",
                    Package (0x04)
                    {
                        "UsbConnector",
                        Zero,
                        "port",
                        Buffer (0x04)
                        {
                             0x00, 0x00, 0x00, 0x00                        
                        }
                    },

                    "HS13",
                    Package (0x04)
                    {
                        "UsbConnector",
                        Zero,
                        "port",
                        Buffer (0x04)
                        {
                             0x00, 0x00, 0x00, 0x00                        
                        }
                    },

                    "SS01",
                    Package (0x04)
                    {
                        "UsbConnector",
                        0x03,
                        "port",
                        Buffer (0x04)
                        {
                             0x0B, 0x00, 0x00, 0x00                        
                        }
                    },

The port addresses in SSDT-UIAC-ALL.dsl are correct. Do not change them.
 
I am losing Bluetooth after sleep.
attached -pre is debug info after boot.
attached -after-sleep is debug info after waking from sleep. BT works for a little and then stops.
I have no idea where to look and would appreciate any pointers you can get from my debug info.

thanks in advance

This machine is a Dell Latitude 7390 i5-8250u with DW-1830

You're injecting 18 ports.
Port limit is 15. You *must* stay within it.
Read post #1.
 
removed ports and now have only 12.
still no go.
Here are my debug files -pre sleep and after-sleep.

What am I doing wrong?
 

Attachments

  • debug_11027-pre.zip
    5.9 MB · Views: 87
  • debug_25122-after-sleep.zip
    5.2 MB · Views: 86
removed ports and now have only 12.
still no go.
Here are my debug files -pre sleep and after-sleep.

What am I doing wrong?

config.plist/SystemParameters/InjectKexts should be "Detect", (you have =true).
USBInjectAll.kext and any other "kext you need" should be installed to /L/E.

Your ACPI configuration looks to be very wrong (your hotpatch looks overdone, patchmatic output does not disassemble cleanly due to duplicate symbols).
See guides:
https://www.tonymacx86.com/threads/guide-booting-the-os-x-installer-on-laptops-with-clover.148093/
https://www.tonymacx86.com/threads/guide-patching-laptop-dsdt-ssdts.152573/

And your USB configuration is still not correct. For example, you have ports with nothing connected but marked "internal" (UsbConnector=255). If nothing is connected, it cannot be internal (ports connected to internal devices are by definition always connected).

USR1/USR2 are almost never used, yet you have them active and marked as USB3 (UsbConnector=3). Any unused port should be eliminated.

You have 3 SSxx ports marked UsbConnector=3, but 5 HSxx ports marked UsbConnector=3. There should be a 1:1 correspondence between SSxx UsbConnector=3 and HSxx UsbConnector=3. Go back and read post #1 again.
 
Last edited:
Hi RehabMan, I have moved to this thread from here. I'm not sure exactly where my USB config is messed up at. Any guidance would be appreciated.
 

Attachments

  • config.plist
    6.7 KB · Views: 164
  • IOreg.ioreg
    10.4 MB · Views: 97
  • patched.zip
    1.9 KB · Views: 74
Hi RehabMan, I have moved to this thread from here. I'm not sure exactly where my USB config is messed up at. Any guidance would be appreciated.

Is the hub at HS03/SSP3 internal or external?
If it is external, your UsbConnector values there are correct. If it is internal, they are wrong (would be 255).

You forgot to inject legacy power properties (config.plist/Devices/USB/Inject=true).

You forgot to configure EHCI (requires configuration for EH01/EH02/HUB1/HUB2, may require FakePCIID_XHCIMux.kext,... or better yet, disable it and use xHCI only).

Assuming you have 6 external USB3 ports (eg. HS03/SSP3 is an external hub you plugged in), 2 USB2-only ports (HS10/HS13), then the rest (config for XHC) looks ok.

Other notes:
- AppleLPC not loaded (required)
- CPU PM not implemented
- IGPU PM not implemented
 
config.plist/SystemParameters/InjectKexts should be "Detect", (you have =true).
USBInjectAll.kext and any other "kext you need" should be installed to /L/E.

Your ACPI configuration looks to be very wrong (your hotpatch looks overdone, patchmatic output does not disassemble cleanly due to duplicate symbols).
See guides:
https://www.tonymacx86.com/threads/guide-booting-the-os-x-installer-on-laptops-with-clover.148093/
https://www.tonymacx86.com/threads/guide-patching-laptop-dsdt-ssdts.152573/

And your USB configuration is still not correct. For example, you have ports with nothing connected but marked "internal" (UsbConnector=255). If nothing is connected, it cannot be internal (ports connected to internal devices are by definition always connected).

USR1/USR2 are almost never used, yet you have them active and marked as USB3 (UsbConnector=3). Any unused port should be eliminated.

You have 3 SSxx ports marked UsbConnector=3, but 5 HSxx ports marked UsbConnector=3. There should be a 1:1 correspondence between SSxx UsbConnector=3 and HSxx UsbConnector=3. Go back and read post #1 again.
Do I need -uia_ignore_rmcf in clover-boot?
Do I need XHCI injector kext?
 
Back
Top