Contribute
Register

X299 Big Sur Support

Joined
Mar 18, 2017
Messages
1,008
Motherboard
ASUS ROG Rampage VI Extreme
CPU
i9-7940X
Graphics
2 X VEGA 56
Mac
  1. iMac
  2. Mac mini
Mobile Phone
  1. iOS

@Loloflatsix

I totally appreciate what you are trying to teach me with the previous posts, but I'm having some issues with some basic parts of it.

1. Where do I get the ASMedia.kext & USB.kext?
2. I'm reading on the Dortania website on how to make one, but it's hard to wrap my head around.
3. I can see both controllers in IOREG but what's odd is that the ASMedia controller used to show 4 ports, but now they are ghosts, and I can't see any (I'll post a pict when I get home from work) I may unplug all USB and try that too.
4. Mapping manually is nearly impossible since nothing shows where I plug it in, although the volume mounts in the Finder.
5. We haven't even touch on the part where I plug in USB-C to the Thunderbolt ports.

I have no problem editing the file in post 1,377, it's just a lot of typing.

Thank You very much,
Jason

The best is to start with one of the kexts linked here : #396

You can attach your IOReg then I 'll see where are your devices.

The ASMedia usb ports are coupled 2 by 2

On your back IO you have :

Chipset+Intel® ThunderboltTM 3 Controller:

d : 2 x USB Type-CTM ports on the back panel, with USB 3.1 Gen 2 support

Chipset+Realtek® USB 3.1 Gen 1 Hub:

- 2 x 2 USB 3.1 Gen 1 ports on the back panel

f : USB 3.1 Gen 1 Port : 2 +1

g : USB 3.1 Gen 1 Port (White) : 1

Capture d’écran 2021-01-26 à 16.09.05.png
 
Last edited:
Joined
Jan 29, 2011
Messages
74
Motherboard
Asus WS X299 Sage 10G
CPU
i9-7980XE
Graphics
RX 580
Mac
  1. Mac mini
Mobile Phone
  1. iOS
Does the X299 Dark have onboard Wifi? You could also use the BCM94360NG without a m.2 adapter
https://www.amazon.com/dp/B083YXS7VF/?tag=tonymacx86com-20
The X399 Dark does have onboard wifi but I chose not to use it with the Apple BCM94360CS2AX which I have. Instead, I use a Fenvi PCIe WiFi / Bluetooth module which is a cleaner install and Bluetooth is recognised as native Apple so airdrop works great. I did have problems in the past with an Z390 Dark with onboard M.2 wifi as I didn't have the antenna's connected properly (maybe they worked loose during install) ...which was a pain because the board had to come out to remove the housing to get to the M.2 wifi port.

The card you linked, yes, I am familiar with those (bought two of them) and the problem with them (generally perhaps not the one Amazon sell) is that the male U.FL ports on the card are very soft and bend very easily. The ports on the Apple cards don't.
 
Last edited:
Joined
Jan 29, 2011
Messages
74
Motherboard
Asus WS X299 Sage 10G
CPU
i9-7980XE
Graphics
RX 580
Mac
  1. Mac mini
Mobile Phone
  1. iOS

@Loloflatsix

I totally appreciate what you are trying to teach me with the previous posts, but I'm having some issues with some basic parts of it.

1. Where do I get the ASMedia.kext & USB.kext?
2. I'm reading on the Dortania website on how to make one, but it's hard to wrap my head around.
3. I can see both controllers in IOREG but what's odd is that the ASMedia controller used to show 4 ports, but now they are ghosts, and I can't see any (I'll post a pict when I get home from work) I may unplug all USB and try that too.
4. Mapping manually is nearly impossible since nothing shows where I plug it in, although the volume mounts in the Finder.
5. We haven't even touch on the part where I plug in USB-C to the Thunderbolt ports.

I have no problem editing the file in post 1,377, it's just a lot of typing.

Thank You very much,
Jason
Sorry to jump in and maybe I've missed something but looking at the EFI you uploaded the other day I see that you don't have USBInjectAll.kext installed. My understanding is that this is a base requirement before you start port mapping.
 
Joined
Feb 26, 2011
Messages
89
Motherboard
MSI X299 PRO
CPU
i9 10940X
Graphics
RX 560
Mac
  1. MacBook
  2. MacBook Pro
Mobile Phone
  1. iOS
@Jasoncole98

There's a lot of good guides out there already so I won't repeat in full - but a couple of tips I can share, you can learn from my earlier mistakes... :)

I've just finished re-mapping my ports after a tear down and rebuild to tidy up my cables. I used some different internal headers and on my previous EFI's I shared I didn't have all of the personalities for my USB-C ports correct so they didn't always work if you unplugged a device and happened to plug it back in the other way round. Felt like a good time to go through a re-map.

Im not saying this the only or perfect way to do it but it worked for me so thought it worth sharing.

I needed these things to finish mapping correctly:
  • Working SSDT-USB-reset to properly map PXSX devices to XHC2/XHC3 (ASMedia controllers for my front and rear USB-C ports) Or follow @Loloflatsix guides above - but you need these controllers to show up as unique names in the CorpNewt's USBMap tool, when you run it it will tell you if something needs renaming and even offers create the SSDT for you based on devices it finds
  • USBInjectAll.kext in my EFI folder and updated in config.plist
  • XhciPortLimit True - under kernel quirks in config.plist
  • USBMap command line tool
  • Once finished I only need SSDT-USB-reset and my custom USBmap.kext created with Corpnewts USBMap tool, that's it - but I am doing the more tried and tested living with the 15 port per controller limit.
If your SSDT created in step 1 has worked it should look something like this:

Screenshot 2021-01-26 at 21.05.51.png

The Corpnewt docs and Dortania guide are great but there where a few things that I didn't understand like the number of ACPI ports I was seeing under each controller or whether I needed to set type 9 or 10 for my USB-C ports. Heres what I found...

If you are doing it with the USBmap tool you can also see whether the USB-C ports are ACPI type 9 or 10 based on the number of port personalities (ACPI port addresses) shown and the number of actual physical ports.
There should be:
  • 1 HS port per physical USB2 port
  • 1 HS and 1 SS port per physical USB3 port
  • 1 HS and 1 SS per USB-C Type 9 port
  • 2 HS and 2 SS per USB-C Type 10 port
I think I saw earlier in the thread someone mention that ASMedia controllers are 2x2 (type 9) ports but I've found on my MSI X299 that one of the ASMedia contollers is a type 9 and the other is a type 10. In the USB map tool when you flip the USB-C device over if it changes address its a type 10

Like this below, notice that although my XHC2 is a single USB-C it is a type 10 and has 4x personalities, XHC3 is a single USB-C but type 9 and has only 2x personalities, and I mention this here because it totally threw me at first, I thought something was broken but it is due to MSI using two different controllers on the same board:

Screenshot 2021-01-26 at 21.06.53.png


This should create a USBmap.kext with an info.plist that looks something like this, I'm just showing the ASMedia XHC2/3 here not the straightforward XHCI intel section:

Screenshot 2021-01-26 at 20.49.18.png

(Edit: Typo on the image above - the yellow box should be labelled XHC3 USB 3.2 Gen2x2 AS Media 3242)


And these correspond to my motherboards ports like so, RED ports would take me over 15 ACPI ports per controller due to needing the internal headers to control my AIO, so I chose not to use these:

MSI X299 Pro USB Map Back Panel.png


MSI X299 Pro USB Map Motherboard.png


Ive attached my SSDT-USB-reset and USBMap.kext - they obviously won't work for your board but thought they might help if you want to have a dig around and compare yours.

Don't forget when you're done you don't need USBInjectAll.kext anymore and XhciPortLimit quirk can be set back to false.

Good luck - hope that helps, its worth taking the time to do. :)
 

Attachments

  • SSDT-USB-Reset-MSIX299PRO.aml
    330 bytes · Views: 5
  • USBMapMSIX299PRO.kext.zip
    2.2 KB · Views: 6
Last edited:
Joined
Dec 23, 2020
Messages
13
Motherboard
Gigabyte X299 Designare EX
CPU
i9-10940X
Graphics
RX 580
Mac
  1. MacBook Pro
  2. Mac Pro
Mobile Phone
  1. iOS
@jaspercat5 I didn't have it in the EFI when I uploaded it, but put it back in last night, thanks for the catch. I'm am also using the Fenvi card, in the m.2 slot, but macos/ioreg sees it on usb, which is odd...

@rustEswan Yeah I found that tool recently, but when I tried to test it (just like hackintool) every time I plug something in, it never shows up, and I'll grab some screen shots and circle what I have plugged in where, later after I get home from work.

It's just super frustrating when I plug something I can't identify it...

More to come, I'll read up more, and appreciate the help!
 
Joined
Mar 18, 2017
Messages
1,008
Motherboard
ASUS ROG Rampage VI Extreme
CPU
i9-7940X
Graphics
2 X VEGA 56
Mac
  1. iMac
  2. Mac mini
Mobile Phone
  1. iOS
I checked the numbers :

- SSDT-EC-USBX :
{
"kUSBSleepPowerSupply",
0x13EC, = 5100 Decimale
"kUSBSleepPortCurrentLimit",
0x0834, = 2100 Decimale
"kUSBWakePowerSupply",
0x13EC, = 5100 Decimale
"kUSBWakePortCurrentLimit",
0x0834 = 2100 Decimale
})

- USB.kext :

Capture d’écran 2020-09-20 à 00.11.58.png

So they match, as expected

With this for all USB devices : XHC2, XHC3, XHC4, XHC5 (GC Titan Ridge) and XHCI.

That means that we could do without SSDT-EC-USBX and have SSDT-EC instead

I attach for Asus X299 Prime Deluxe MacPro 7,1 SMBIOS :

- Big Sur X299PrimeDUSBMacPro.kext ( ASMedia.kext no more required )
- Catalina X299PrimeDUSBMacPro.kext
- SSDT-EC
- SSDT-XHC
- SSDT-XHCi
- SSDT-TB3HP-TTR (for chip no flashed)
 

Attachments

  • Asus X299 Prime Deluxe USBkext.zip
    22 KB · Views: 14
Last edited:
Joined
Feb 26, 2011
Messages
89
Motherboard
MSI X299 PRO
CPU
i9 10940X
Graphics
RX 560
Mac
  1. MacBook
  2. MacBook Pro
Mobile Phone
  1. iOS
@rustEswan Yeah I found that tool recently, but when I tried to test it (just like hackintool) every time I plug something in, it never shows up, and I'll grab some screen shots and circle what I have plugged in where, later after I get home from work.

It's just super frustrating when I plug something I can't identify it...

More to come, I'll read up more, and appreciate the help!
No worries - I think first thing is to make sure your PXSX controllers are mapped to XHCx something. Every time I tried to map and it wasn’t showing me anything it was due to that. You’ll need to get that sorted first, then add USBInjextAll and XhciPortLimit then try running USBmap and see if it works

when you run USBmap what does the first screen look like? Compared to my first screenshot?
 
Joined
Dec 23, 2020
Messages
13
Motherboard
Gigabyte X299 Designare EX
CPU
i9-10940X
Graphics
RX 580
Mac
  1. MacBook Pro
  2. Mac Pro
Mobile Phone
  1. iOS
Ok, so I have some more clues... If I let IORegistryExplorer "marinate" it seems to find more things and other things it's grumpy about mainly in the graphics area...

So I've been reading this article here:

And have concluded this is what I'm struggling to do... Looks like the m.2 Fenvi needs to be redirected? I have no idea why there is a USB3 hub squished in there as well.

The zip file is the IOREG dump

Here is USBmap:
USBmap.png

Here is the motherboard installs:
Designare_x299_mainboard.png


and...
Designare_x299_rear.png
 

Attachments

  • Jason’s iMac Pro.zip
    4.5 MB · Views: 11
Joined
Feb 26, 2011
Messages
89
Motherboard
MSI X299 PRO
CPU
i9 10940X
Graphics
RX 560
Mac
  1. MacBook
  2. MacBook Pro
Mobile Phone
  1. iOS
Currently what USBMap is showing is what I’d expect based on the gigabyte spec. The board has 3 controllers (for thunderbolt/USB) - Intel X299 Chipset, ASmedia 3142 (based on 4x ACPI addresses showing under PXSX) and lastly a thunderbolt controller.

As we thought - first we need to deal with PXSX renamed to XHC2, then we can create the USBMap.

Once that is done you can tackle the two thunderbolt/USB-C ports later. I haven’t got thunderbolt so I can’t advise exact steps for that. But focus on doing things in that order.

what does the very first USBMap screen look like, before you select any options? It should offer an option to rename the PXSX controller? That will create the SSDT then you can add to your EFI with USBinjectAll and XhciPortLimit true, update your config.plist for those additions and you should be good to get started.
 
Joined
Mar 18, 2017
Messages
1,008
Motherboard
ASUS ROG Rampage VI Extreme
CPU
i9-7940X
Graphics
2 X VEGA 56
Mac
  1. iMac
  2. Mac mini
Mobile Phone
  1. iOS
Ok, so I have some more clues... If I let IORegistryExplorer "marinate" it seems to find more things and other things it's grumpy about mainly in the graphics area...

So I've been reading this article here:

And have concluded this is what I'm struggling to do... Looks like the m.2 Fenvi needs to be redirected? I have no idea why there is a USB3 hub squished in there as well.

The zip file is the IOREG dump

Here is USBmap:View attachment 506396
Here is the motherboard installs:
View attachment 506397

and...
View attachment 506398

Unfortunately your USB devices do not appear on your IOReg.
I think they are on RP05 or R17 but nothing except IOPP: but the ASMedia .kext should fill them in ..annoying.
 
Top