Contribute
Register

A Beginner's Guide to Creating a Custom USB SSDT

Joined
Mar 30, 2018
Messages
11
Motherboard
Asus Maximus VII Hero
CPU
i7-4790K
Graphics
HD 4600
Hi there.

Well done on the work so far! (Feedback on the port addresses for Z97 SS ports was very useful :) )

1) Looking at the template - it's looking a lot better EXCEPT you have the wrong "port-count" value.

It should be "port-count", Buffer() { 15, 0, 0, 0 }, because that is the highest port address you are configuring.

2) You know you have configured more than 15-ports. This is okay, in theory, but you either need to use the "-uia_exclude" command-line to disable that extra one during boot OR you can just remove it. Your choice.

When you do this you then need to re-check that "port-count" figure. If you don't remove SS06 it should still stay the same :thumbup:

3) Good to see the XHCI controller there now. The EHCI is prominent because the motherboard is a slightly older one.

:)
Hi,

Now ports are working but only the HS version are being injected for USB 3 as well. Inserting a USB3 pen drive to USB3 port does not happen anything.

404396
 

Attachments

UtterDisbelief

Moderator
Joined
Feb 13, 2012
Messages
2,189
Motherboard
Gigabyte Z370M D3H
CPU
i3-8350K
Graphics
RX 560
Mac
iMac, Mac mini
Classic Mac
eMac, iBook
Mobile Phone
iOS
Hi,

Now ports are working but only the HS version are being injected for USB 3 as well. Inserting a USB3 pen drive to USB3 port does not happen anything.

View attachment 404396
Okay, my bad.

I should have written "0x15" not just 15 for the port-count entry.

:)
 
Joined
May 22, 2011
Messages
273
Motherboard
Gigabyte Z370 AORUS Gaming 5
CPU
Intel Core i7-8700
Graphics
Gigabyte RX 580 Gaming 8GB
Mac
MacBook Pro
from here:

If a USB-C uses the same SSxx in both orientations, then it has an internal switch (UsbConnector=9).
If a USB-C uses a different SSxx in each orientation, then it has no switch (UsbConnector=10).

Mine has switch. is same in either orientation so for me 9
Then why are you using UsbConnector 3 from your Z390M Success Thread ?

Code:
                    "SS02", Package() // USB3.1 type-C port located on the back, port <12 00 00 00>
                    {
                        "UsbConnector", 3,
                        "port", Buffer() { 0x12, 0, 0, 0 },
                    },
 
Joined
Aug 17, 2011
Messages
300
Motherboard
GA-Z170MX-Gaming 5
CPU
i5 7400
Graphics
HD630
Classic Mac
Classic, LC, Power Mac
Mobile Phone
iOS
I am still struggling to get my usb3 ports working. When last we talked, I had created my SSDT from the template and had eliminated all but 4 ports on the back panel. Two of which are the usb3 ports on SS05 and SS06. Still they don't seem to work with their corresponding usb2 ports at HS05 and HS06 and when I plug a usb3 drive into the backpanel ports I find that my computer can see the drives but will not mount them (so when I look at them with disk utility they appear greyed out.) And I say again that when I boot from bios into Linux the ports work with usb3 devices but not with usb2 drives. I conclude from that that there is something wrong with the way I have the mac os configured, but I don't know what that might be. If the ports work under Linux there must be a way to get them to work with the mac os.
 
Joined
Aug 17, 2011
Messages
300
Motherboard
GA-Z170MX-Gaming 5
CPU
i5 7400
Graphics
HD630
Classic Mac
Classic, LC, Power Mac
Mobile Phone
iOS
Since my last post, I have done a clean install of Mojave 10.14.4 on a new SSD in the hope that I could eliminate some unseen errors or corrupted files. Everything is still the same except that the USB ports now don't even mount drive devices, instead only showing the drives with gray icons. Previously they would mount the drive but not any volumes.
 

Attachments

UtterDisbelief

Moderator
Joined
Feb 13, 2012
Messages
2,189
Motherboard
Gigabyte Z370M D3H
CPU
i3-8350K
Graphics
RX 560
Mac
iMac, Mac mini
Classic Mac
eMac, iBook
Mobile Phone
iOS
Since my last post, I have done a clean install of Mojave 10.14.4 on a new SSD in the hope that I could eliminate some unseen errors or corrupted files. Everything is still the same except that the USB ports now don't even mount drive devices, instead only showing the drives with gray icons. Previously they would mount the drive but not any volumes.
Are you still running this on the Z170MX Gaming 5 motherboard? I can't see mention in Gigabyte's spec of an ASMedia USB controller, but you clearly have one in the mix there.

Also I can't understand why you have a separate USB 2.0 hub or any ports other than maybe 3.1 Gen 1, hanging off the RP tree. This sounds like it might have been caused by the kexts I mentioned in post #179 (#172). You never came back to me on that suggestion...
 
Joined
Aug 17, 2011
Messages
300
Motherboard
GA-Z170MX-Gaming 5
CPU
i5 7400
Graphics
HD630
Classic Mac
Classic, LC, Power Mac
Mobile Phone
iOS
I don't have any of those kexts on the new drive with the clean install. And I've actually gone backwards a little bit. Before the clean install, the drives would mount but the volumes would not. Now the drives won't mount and they they only appear as gray icons in disk utility. The ports work as USB3 under Linux, but even there usb2 does not function. I would happily do without USB 2 on those ports, if I could only get a working USB 3 port so I could hook up my time machine back up. If they work under Linux, there must be a way. Yes also to your question I am on the same Z170MX gaming 5 motherboard.
 
Last edited:
Top