Contribute
Register

The New Beginner's Guide to USB Port Configuration

Hi guys,
First of all sorry for my bad English...;)

I have some problems with my hack. currently I have Ventura up and running with OpenCore 0.8.6. I use an efi folder that downloaded from github. the motherboard was the same as mine and the smbios was MacPro 7,1. with that efi all the usb ports work.

the first problem is that with this efi, even though the usb ports work, I have random reboot after waking up form sleep. I think maybe the usbports kext have some issue.

But my main problem is, I want to change the smbios from MacPro 7,1 to iMac 20,1. when I change that all usb ports stop working. I think I need to do port mapping again for iMac 20,1. is it true?

I assumed that I have to do the port mapping again, I put the UsbInjectAll in the kext folder and check the XhciPortLimit, save and reboot, after rebooting I don't know why but all of the usb ports stop working and I cant continue even login to the mac...
can anyone help me? :)
 
Last edited:
I think I need to do port mapping again for iMac 20,1. is it true?

Hi there.

Kind of ... It depends on how the USB port mapping has been done in the EFI you are using. We would need tol know that before we could explain what to do.

The second problem is that, I assumed, I have to do the port mapping again, I put the UsbInjectAll in the kext folder and check the XhciPortLimit, save and reboot, after rebooting I don't know why but all of the usb ports stop working and I cant continue even login to the mac...
can anyone help me? :)

The XhciPortLimit quirk will not work. It stopped working at Big Sur 11.3. USBInjectAll might work but it depends on which version you are using.

Perhaps ZIP and upload your EFI for us to check - but first blank your serial-numbers for privacy. :thumbup:
 
Hi guys,
First of all sorry for my bad English...;)

I have some problems with my hack. currently I have Ventura up and running with OpenCore 0.8.6. I use an efi folder that downloaded from github. the motherboard was the same as mine and the smbios was MacPro 7,1. with that efi all the usb ports work.

the first problem is that with this efi, even though the usb ports work, I have random reboot after waking up form sleep. I think maybe the usbports kext have some issue.

But my main problem is, I want to change the smbios from MacPro 7,1 to iMac 20,1. when I change that all usb ports stop working. I think I need to do port mapping again for iMac 20,1. is it true?

I assumed that I have to do the port mapping again, I put the UsbInjectAll in the kext folder and check the XhciPortLimit, save and reboot, after rebooting I don't know why but all of the usb ports stop working and I cant continue even login to the mac...
can anyone help me? :)
For the purposes of speed in fixing your problem, leave it at 7,1 and then use Hackintool to see ports as they are configured from your USB port kext. Take a screenprint of the Hackintool's USB screen and post back. Copy your USB port kext out of your EFI and attach it to the post. Send the link of the Github that you used to download EFI so we CAN SEE HOW MANY THINGS ARE WRONG WITH THE GITHUB EFI THAT YOU USED. If this is the link you used: B560M AORUS Pro AX this EFI is a disaster, and it is not for your board it is for an Aorus Pro AX and you have an Aorus Pro and they are not the same board. (Not withstanding the numerous errors in the EFI in the link I have posted here) His Kext folder alone gave me a 10 min laugh....)
 
Hi there.

Kind of ... It depends on how the USB port mapping has been done in the EFI you are using. We would need tol know that before we could explain what to do.



The XhciPortLimit quirk will not work. It stopped working at Big Sur 11.3. USBInjectAll might work but it depends on which version you are using.

Perhaps ZIP and upload your EFI for us to check - but first blank your serial-numbers for privacy. :thumbup:

Hi again,
Thanks for your response,

Unfortunately because I just downloaded and used it, I don't know how the port mapping has been done exactly and that's my mistake.

About the USBInjectAll I use 0.7.2, 0.7.3 and 0.7.5 with and without XhciPortLimit. none of them work...

The github link in the comment above is the EFI that I use for my hack :thumbup:
 
Last edited:
These answers are really for someone who is totally familiar with setting up an EFI for an 11th gen processor following the OpenCore guide:

The ACPI for your processor should only have:SSDT-PLUG.aml ; SSDT-EC-USBX.aml ;SSDT-AWAC.aml and SSDT-RHUB. no .dsl files and ssdt-uiac.aml is not necessary. These should be generated using SSDT time.

The driver folder should have only: Audiodxe.efi , HFSplus.efi and OpenRuntime.efi and ResetNvramEntry.efi all others should be removed.

The kext folder should only contain: Lilu.kext; VirtualSMC.kext; WhateverGreen.kext; AppleAlc.kext; SMCProcessor.kext; SMCSuperIO.kext; NVMeFix.kext;
The following is optional:RestrictEvents.kext and XHCI-unsupported.kext
You need only patches for Intel 2.5GBE Lan in the Device Properties section of your config.plist.
The Github EFi's config.plist is missing this patch.

New serials should be generated for PlatformInfo as EFI from GitHub has generated serials.

The Boot Argument section under Nvram does not need :shikigva=128
However: agdpmod=pikera should be added.

All editing of Config.plist should be done with Propertree and OC snapshot should be used with changes.

Most of this is probably beyond your abilities so it would be better if someone from this forum modifies and edits the Github Efi for you or creates one from scratch. The USB mapping could be ok using the USBPort kext from the GitHub EFI if the ports in it are the ones you want to keep to be under the 15 port limit. Currently, the creator is using HS04, HS07, HS08, HS09 HS10, AND HS11. SS01,SS03,SS05 AND SS06. BUT THE KEXT IS FOR A MACPRO 7,1. He is using only 10 out of the 15 allowed. This tells me he does not know what he is doing.

Thank you so much for you guid :thumbup:

My friend, I am not the guy who is not familiar with setting up an EFI. I've used hack for about 5 or 6 years. after I switched my board, with the previous EFI cant install ventura. I tried several times to create an EFI for my new config but no success. so I decided to use someone else EFI.

Luckily I've done many of your recommendations before. my main problem that I suspected to usb mapping is usb ports stop working after changing the smbios and random reboot after waking off from sleep.

So should I create an EFI from scratch or try to do port mapping again with this EFI?
 
If you change the SMBIOS being used by your system from say iMac20,2 to MacPro7,1 you need to make sure your USBPorts.kext is also amended/set correctly to reflect the SMBIOS change.

Usually the model name is required in two locations in the USBPorts.kext/Contents/Info.plist. Otherwise your USB ports won't work.

Not sure if the same is required when using USBMap.kext.
 
Not sure if the same is required when using USBMap.kext.
USBMap kext is the same, I would not change SMBIOS. At the risk of opening a can of worms, here is a link to a BASE EFI setup for Rocket Lake. The creator notes compatible SMBIOS to be used for Rocket Lake is MacPro7,1 or iMac1,1 in any case USBport,kext must be amended as Edhawk as noted. The Base EFI has had the config.plist amended for Rocket Lake but it is incomplete, as each board has to have unique information/kexts/drivers based on the Opencore guide although the guide ends at Comet Lake, as that was the last supported Intel processor on real macs. It requires Python, GenSMBIOS, and Propertree to finalize: Base EFI for Rocket Lake
I realize you are getting a memory error/warning but downgrading the SMBIOS will not cure that problem. Dual channel memory requires installation in the proper slots on the motherboard and many times the Motherboard manual(s) are unclear as to proper locations for 2 sticks of ram to be installed to run in dual channel in a 4 ram slot board.
 
USBMap kext is the same, I would not change SMBIOS. At the risk of opening a can of worms, here is a link to a BASE EFI setup for Rocket Lake. The creator notes compatible SMBIOS to be used for Rocket Lake is MacPro7,1 or iMac1,1 in any case USBport,kext must be amended as Edhawk as noted. The Base EFI has had the config.plist amended for Rocket Lake but it is incomplete, as each board has to have unique information/kexts/drivers based on the Opencore guide although the guide ends at Comet Lake, as that was the last supported Intel processor on real macs. It requires Python, GenSMBIOS, and Propertree to finalize: Base EFI for Rocket Lake
I realize you are getting a memory error/warning but downgrading the SMBIOS will not cure that problem. Dual channel memory requires installation in the proper slots on the motherboard and many times the Motherboard manual(s) are unclear as to proper locations for 2 sticks of ram to be installed to run in dual channel in a 4 ram slot board.
Dear dasboot5,

Thanks again for your help. with using the above link you posted, I created an EFI and modified it with the documentation in the page. I put just required items in ACPI, kext and Driver folder, use the usbports kext from previous EFI and set the smbios to MacPro 7,1. it seems there is no problem except one.

Still I have random reboot on waking up from sleep. I have aRGB fans in my case. I realized that when I put the mac to sleep if the fans rgbs and power led on the case turn off then it wakes up without reboot. but sometimes the fans rgbs and power led don't turn off, in that case it reboots after waking up.

Do you have any idea about this?
 
Last edited:
Dear dasboot5,

Thanks again for your help. with using the above link you posted, I created an EFI and modified it with the documentation in the page. I put just required items in ACPI, kext and Driver folder, use the usbports kext from previous EFI and set the smbios to MacPro 7,1. it seems there is no problem except one.

Still I have random reboot on waking up from sleep. I have aRGB fans in my case. I realized that when I put the mac to sleep if the fans rgbs and power led on the case turn off then it wakes up without reboot. but sometimes the fans rgbs and power led don't turn off, in that case it reboots after waking up.

Do you have any idea about this?
Post and attach the new EFI and have Edhawk take a look at it for errors first.
 
Some motherboard LED connectors have a USB side to them, which needs to be included in the USBPorts.kext, USBMap.kext or UTBMap.kext, whichever you have created.

Otherwise you can end up with Sleep/Wake issues.
 
Back
Top