Jump to content
Zenith432

GenericUSBXHCI USB 3.0 driver for OS X with source

920 posts in this topic

Recommended Posts

Hi,

 

sorry for my ignorance: I had genericusb running on a genuine mac pro. Now, since I installed 10.10.3 today it does no longer work. I tried to put that apple usb kext into /System/Library/Extensions but got an incorrect installation message.

Well, is there a separate patch tool to apply the changes to the file - it seems that clover does not do that. Also, I sort of suspect that he patches llnked here deal with functionality inside the code but not with version mismatches.

Share this post


Link to post
Share on other sites
Advertisement

Hi,

 

thanks pere, the tool looks great for the job.

I have a problem using it: I see the + sign adding empty lines after some patches that were already present, but I can neither type nor paste into these fields

Share this post


Link to post
Share on other sites

Please, lets keep on topic in this thread, come to the the Toshiba thread, i will explain the app usage there.

 

Thanks.

Share this post


Link to post
Share on other sites

Is there any solution to the delay on reboot or shutdown with this kext installed?

There is 30 second difference with and without this kext.

Share this post


Link to post
Share on other sites

You use this kext with the right boot arguments?

Let's see.

 

Some kernel flags

- "-gux_nosleep" forces Sleep to always use the shudown/reset method.

- "-gux_nomsi" forces use of pin interrupt instead of msi.

- For Intel Series 7 chipset only (Panther Point.)

"-gux_defer_usb2" causes the xHC to defer the management of USB2 ports and their devices to one of the EHC controllers on the PCH (south-bridge). This option can usually also be configured in the BIOS for Intel Series 7 chipsets.

"-gux_no_idle" disables some feature for idle-mode on Intel's chip. I couldn't test this, so I added an option to disable it.

 

- I don't think, that "-gux_nosleep" is for me, because I don't have any problem with sleep.

- "-gux_nomsi" is not either, because I don't have any usb device on PCI express >2.2 bus.

- The rest won't do it for me, as I don't have Intel chipset.

 

Any idea or any other boot flags?

Share this post


Link to post
Share on other sites

Hi,


I am using the latest build of Clover with 10.9.5 on an Asus X99 Deluxe board. I've installed GenericUSBXHCI.kext 1.2.7 because I was told it was necessary for Fusion to load my Windows virtual machine. Without it, Windows would never finish booting - something about a very high number of interrupts, I believe.


However, with that kext installed, my USB audio interface (a Scarlett 2i2 which uses Coreaudio) loses audio output. iTunes or any audio application will still be 'playing,' but the audio will simply cut out. To fix it I have to unplug the audio interface and plug it back in again, at which point the issue will occur again, seemingly random. I've looked through the Console output but there's nothing that would point to the issue.


If I remove the kext, I have full USB3.0 speeds, but then of course I can't launch my virtual machine. Any help? I have some USB options in the BIOS, but I'm not sure if any of them would be helpful.


post-1360292-0-76280500-1432141809_thumb.jpg

Share this post


Link to post
Share on other sites

I have a asm1042 usb3.0 motherboard, with GenericUsbXhci the usb3.0 port work great and with -gux_nosleep the sleep work good.

 

I have only a problem: when i wake osx the usb3.0 port no longer work.... i need to physically change the port! Reboot or unplug/plug not help, only method for restore the usb3.0 is swap the port (i have two usb ports). Suggestions?

Share this post


Link to post
Share on other sites

I have fully worked Yosemite 10.10.3 system installed on hardware from signature. But there is one annoying nuance.

My system wakes up immediately after going to sleep. I like to find out why.

I used syslog |grep -i "Wake reason" in Terminal to find out why

Terminal said:

Jun 19 04:20:22 xxx-iMac kernel[0] <Notice>: Wake reason: PXSX PXSX

As I understood after Googling PXSX is USB 3.0. I'm using GenericUSBXHCI.kext to get work my ASMedia1042 USB3.0 Controller. As I know this is the only kext that make ASM1042 work, but cause my system wake up immediately from sleep. 
Please help me to fix that!

Share this post


Link to post
Share on other sites

Try remove this methods on your DSDT:

Device (PXSX)            {
                Name (_ADR, Zero)  // _ADR: Address
                Name (_PRW, Package (0x02)  // _PRW: Power Resources for Wake
                {
                    0x09, 
                    0x03
                })

Share this post


Link to post
Share on other sites

 

Try remove this methods on your DSDT:

Device (PXSX)            {
                Name (_ADR, Zero)  // _ADR: Address
                Name (_PRW, Package (0x02)  // _PRW: Power Resources for Wake
                {
                    0x09, 
                    0x03
                })

I have 17 references to PXSX in my DSDT that looks like https://www.dropbox.com/s/e5dcpxxax20qddg/Screenshot%202015-06-19%2006.28.26.png?dl=0

 

Tried to remove selected blocks everywhere https://www.dropbox.com/s/4dvviz7ybs09dgg/Screenshot%202015-06-19%2006.52.32.png?dl=0

but no success, system wakes up immediately after going to sleep.

 

Now Terminal says: kernel[0] <Notice>: Wake reason: pci1b21,1042 pci1b21,1042

https://www.dropbox.com/s/hgf339ur4mih05b/Screenshot%202015-06-19%2007.10.05.png?dl=0

 


 

what exactly I need to remove?

 

Here is my DSDT: https://www.dropbox.com/s/nv7x2l967ymi9cs/DSDT-3.aml?dl=0

& xhcdump: https://www.dropbox.com/s/4ad7zpyevxq6vzx/xhcdump.txt?dl=0

Share this post


Link to post
Share on other sites

I have 17 references to PXSX in my DSDT that looks like https://www.dropbox.com/s/e5dcpxxax20qddg/Screenshot%202015-06-19%2006.28.26.png?dl=0

 

Tried to remove selected blocks everywhere https://www.dropbox.com/s/4dvviz7ybs09dgg/Screenshot%202015-06-19%2006.52.32.png?dl=0

but no success, system wakes up immediately after going to sleep.

 

Now Terminal says: kernel[0] <Notice>: Wake reason: pci1b21,1042 pci1b21,1042

https://www.dropbox.com/s/hgf339ur4mih05b/Screenshot%202015-06-19%2007.10.05.png?dl=0

 


 

what exactly I need to remove?

 

Here is my DSDT: https://www.dropbox.com/s/nv7x2l967ymi9cs/DSDT-3.aml?dl=0

& xhcdump: https://www.dropbox.com/s/4ad7zpyevxq6vzx/xhcdump.txt?dl=0

 

Simply add -gux_nosleep in the kernel flag not help you?

Share this post


Link to post
Share on other sites

Simply add -gux_nosleep in the kernel flag not help you?

 

Yes, it helps but after waking up system says that Disk that was attached to USB 3.0 "Not Ejected Properly"

I worry about damaging the data on my external drives.

Share this post


Link to post
Share on other sites

Yes, it helps but after waking up system says that Disk that was attached to USB 3.0 "Not Ejected Properly"

I worry about damaging the data on my external drives.

I have the same problem, the only solution is eject before sleep.

 

Your usb device continue to work after the sleep? I need to change port....

Share this post


Link to post
Share on other sites

Want to mention this Generic driver (from sourceforge, not patched) works with my SYBA SD-PEX50055 on my old hackintosh D975XBX running 10.10.  A 2TB iTank was mounted.  Unaccountably, my flash drives are not seen, not sure why USB2 not working on the SYBA but the USB2 ports on motherboard still work.

 

When I first booted, the pair of sata6 devices on the SYBA where shown, but the pair of USB3 did not show up.  I tried the Etron mac drivers for this board, but they didnt work on 10.10.  This generic usb works fine and sleep seems to working fine so far.

 

There are 40 pages in the thread and I didnt read thru all of them but perhaps there is a way for the generic to work with USB2 flash, it would be useful to me.

 

HTH someone

Share this post


Link to post
Share on other sites

Try without gux_nosleep

 

Without gux_nosleep osx autowake after the sleep.... and another options not help  :( The problem is the same.

 

Is very strange... I power on the pc, at osx desktop i power-on my usb3 device... but not it appears on the desk. I unplug the usb cable from the port 1 and reinsert at the same port... and not work! If I plug the usb cable at the port 2... now work! If I sleep osx, when i wake it my usb disappers! Plug/unplug not work, if I plug the cable at port 1 all ok  :wacko:

 

Is not hardware problem, with windows work without a problems.

Share this post


Link to post
Share on other sites

Thx. I had used those patches in the past till Zenith released his Generic USB3 kext which was much more elegant in usage than patching. But as everyone is finding out, that kext does not work with 10.10.

 

The patch you posted above does not work as it has bugs (missing </dict> and missing "Find"string).

 

I fixed those and and cleaned up and now works on the Acer notebook (which also has the nec 720200 chip).

I am on 10.10.3.

 

Attached is a section of my working "Kext-to-patch" for the USB3.0.

 

No issues with CPU performance or power management.

 

If the disk is attached to the usb3 port during sleep, then there's an error on wake (usual "You removed a usb device without first detaching") but reattaches it on wake and all looks OK.

 

Speed is good too (just like the Generic kext that used to work).

 

Only question is whether these patches work on the next update release ?

 

UPDATE:

Attached file updated to include binary patch for Mavericks AND Yosemite (as I dual boot). Having patches for both do no harm. If you only boot one OS then take out the patches for the OS you do not boot.

Hi There,

I'm very new to this. Can you direct me on how I can apply your patch in Yosemite (or point me to a link with instructions)? I downloaded Clover but couldn't figure out how to use it, the Wiki was not helpful to me (total newb). I've already installed the latest 10.10.2 version of AppleUSBXHCI.kext using Kext Utility. Thanks a million!

 

I have a Renesas D720202 Chip.

What do I do here in Clover? Do I check or uncheck "InfoPlistPatch" column? and do I have to save this somewhere? HELP! :S

 

 

post-1282361-0-47692500-1435636082_thumb.png

Share this post


Link to post
Share on other sites

I add my gratitude and thanks to Zenith. This year I decided to revive my old Mac Pro 2.1 Dual Quad 3 Ghz and now have a HD 5870 ( also a MSI HD 5770 ) ( both with EFI DVI-VGA ) running on 10.9.5 flawlessly. I even found a used FireWIRE 400 card as my Apple FireWire mysteriously died.

 

Today here in Japan I bought a locally made AREA USB 3.0 card for ¥1,800, threw in Zenith's kext and ! Viola ! I now also have USB 3.0 up and running. This old MP still has a few more good years left in her.

 

I add Zenith to the honours list which includes Netkas and Tiamo. Thanks a million guys.

 

All I need to get tomorrow is a USB 3.0 HD dock and a genuine USB 3.0 cable. Total cost for all of these upgrades will be around US$ 150.

 

Next purchase will be a 4,1 MP with all the above goodies shoved in. Then I'll need to put my seatbelt on prior to bootup.

 

Cheers.

Share this post


Link to post
Share on other sites

Without gux_nosleep osx autowake after the sleep.... and another options not help  :( The problem is the same.

 

Is very strange... I power on the pc, at osx desktop i power-on my usb3 device... but not it appears on the desk. I unplug the usb cable from the port 1 and reinsert at the same port... and not work! If I plug the usb cable at the port 2... now work! If I sleep osx, when i wake it my usb disappers! Plug/unplug not work, if I plug the cable at port 1 all ok  :wacko:

 

Is not hardware problem, with windows work without a problems.

 

You can try use DSDT path for USB3/2.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By shiecldk
      Warning: This driver is made for none-Intel chipset USB3.0 controllers.
       
      This AppleUSBXHCI.kext is based on Zenith432's patch.
      Original Topic
       
      Please install this driver to /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns.
      Alternatively, you can use Clover's KextsToPatch with the following Binary patch.
       
      Binary patch description (Hex & Assembly Codes):
       
       
      Chipset Compatible List: (Working/Semi-working)
      Please feel free give some feedbacks, if your chipset is not on this list, or if you think there is something wrong about the list.
      NEC/Renesas:
      D720200
      D720200a
      D720201
      D720202
      D720210
      Etron:
      EJ168
      EJ168a
      EJ188
      EF198
      Fresco Logic:
      FL1000
      FL1009
      FL1100
      VIA:
      VL800
      VL801
      VL805
      VL806
      Texas Instruments:
      TUSB7320
      TUSB7340
      ASMedia:
      ASM1042
       
      If this driver doesn't work for you, restore the original AppleUSBXHCI.kext and check out Zenith432's GenericUSBXHCI.kext.
    • By Angelo_
      Since when I updated to 10.13.6 (and possibly .5 since i don't use usbs that often) my usb 3.0 drives don't work on usb 3.0 ports or hubs and work only if inserted slowly and get recognized as usb 2.0s in that case (480mb/s in sysinfo) and if i try to put my hackintosh to sleep the screen turns black for a second and then it takes me to the login screen instead of going to sleep, this usb issue happened to me on 10.13.2/3 too, is there a way to fix it ? Thank you
       
      CLOVER not working usb 3.0s+ sleep.zip
    • By cwestpha
      Looks like after the 10.12.6 update something reset in my USB subsystem and now I am no longer able to reliably use almost half of my USB ports. This is across both USB 2.0 and 3.x ports. It looks like the ports re-organized themselves and I am hitting limits again though I am not sure why (granted I have 4 USB hubs attached to my computer in addition to the internal ones). I guess I havent been keeping up on grooming my edits and patches since .3 so it was bound to happen. [i really hope the USB subsystem is better in 10.13]
       
      Any assistance would be appreciated. I have attached my ACPI dumps as patched by Clover, the original unpatched dumps, my current config.plist, my patched ssdt.aml, and an IOREG USB dump.
      Asrock Z170 Ext 6+ 6700K @ 4.4.zip
    • By misterphoton
      Thanks to the website for being a resource and making hacktintosh a valuable resource to the little guy.
       
      I have a HP Elitebook 8560p with a Radeon HD 6470m video card / Hackintosh that I was able to get Mavericks onto with everything working but Sierra has problems with the USB 3.0, as well the Radeon Card working with GPU acceleration.
       
      I have installed Sierra and I cannot get the GPU to work with OPEN CL, resolution or the USB 3.0 to be recognized, unlike the Mavericks partition.
       
      As far as the Radeon goes, It is in VGA mode with no GPU acceleration, but it sees it in the system profiler but not correctly with the V RAM. I for the life of me cannot remember how I resolved these issues in Mavericks, as I was foolish enough not to take notes or make a build sheet.
       
      Can you point me in the right direction on these 2 issues? I can provide my contact information as well if this is OK to?
       
      Hardware is: (Bolder text being an immediate priority for assistance if anyone can)
       
      i7 quad core 16gb ram (OK) 2 USB 2 ports working 2 USB 3.0 port not working Radeon HD 6470m with 1024 v RAM, that is in VGA mode with no GPU acceleration motherboard:  Intel MX67QM (not sure if this is a 6, 7, 8 or 9 series chipset) The chipset is listed as MX67QM BIOS: AMI 64 (updated) NO Intel HD graphics enabled on the motherboard HDMI not tested, but says the audio is working via HDMI Intel 82579LM Gigabit LAN not tested Intel 82574 PCIe LAN not tested (not seen, but listed in motherboard specs) Intel Centrino Ultimate N6300 AGN (says for network adapter, but I  Realtek ALC 887 working by Voodoo 2,8,8 Card Reader: Not recognized No dual Intel HD graphics (not seen by system profiler) and HP stated the card is either removed or disabled (perhaps by BIOS)  
       
      Thanks for your time, Nick Teti, Mister Photon Media. [url=&quot;http://www.insanelymac.com/forum/topic/279450-why-insanelymac-does-not-support-tonymacx86/&quot;]#####[/url] worked in the past for USB 3, but I do not remember how I got the GPU issue fixed. I can be contacted through the forum or by my profile if this is not breaking the rules?
    • By insanelymacdonald
      CPU | Intel core i7 6700 3.4Ghz
      Mobo | Gigabyte H170-D3hp
      Ram | Corsair Vengeance 16GB (2x8GB) 2133Mhz
      GPU | Galax GTX970 4GB
      SSD | Samsung 850 Evo 500GB
      PSU | Thermaltake 600w
      OS | 10.11.6

      I initially thought this issue was a blown port and while it still could be hardware I've noticed something very odd.

      Two days ago I was using a USB 3.0 portable drive doing some colour grading in Da Vinci resolve. Quite suddenly, the mouse stopped working and then a couple of seconds later the system reset itself. I have no idea what happened but when the system rebooted a message popped up and for a tense few seconds I was worried the drive was ruined. The message said something like 'drive connected to mac but does not have power' or something along those lines but specifically indicating that I should plug the device in to a port that has power.

      This was the same port the drive was plugged in to when the reset happened and so I unplugged it and moved it to the port above and it worked. I was curious about the issue today and didn't have any critical work to do so I had a test with another bus powered drive that also previously worked fine. This one also had not encountered any dodginess like the sudden system reset either. I plugged it in to the port that I knew had caused issue and received the same message. I plugged it in to the port immediately adjacent and also received the same message. The thing is the drive is spinning so it *is* receiving power and the fact that it's giving me that message suggested to me that is registering on at least some level with OSx.

      Anyone know what I should do?
×