Jump to content
InsanelyMac Forum
Zenith432

GenericUSBXHCI USB 3.0 driver for OS X with source

Recommended Posts

Advertisement

Using the version from post #564 my computer would reboot 5 minutes after waking from sleep.

 

I'm going to try poke's RehabMan's version now.

Share this post


Link to post
Share on other sites

What change poke ?

I wrote some hacky macros to make it work on all versions 10.7.5 -> 10.10.

Using the version from post #564 my computer would reboot 5 minutes after waking from sleep.

 

I'm going to try poke's version now.

RehabMan's version...

GenericUSBXHCI for OS X from 10.8 -> 10.10:

https://bitbucket.org/RehabMan/os-x-generic-usb3/downloads

I have no idea if Zenith432 is done making changes for Yosemite (probably not). I suspect the reason this is still a 'd' version is that it is still under development. I wish I understood USB3 as well as he does to be able to fix various things, but the fact is I don't (I'd have to spend much time reading the XHC spec, etc).

 

But I understand C++ really well, so it is easy for me to see how to make conditional code for multiple OS X version targets in a single binary.

Share this post


Link to post
Share on other sites

Zenith432 does not have much time to spend on this - neither to review the code changes from 1.2.7 to 1.2.8dXXX (about a year old) - nor to reveng latest AppleUSBXHCI for changes - which is why development is stuck.  It would be nice to have two-three developers who are experts in xhci to take over. :)

I don't mind continuing to reveng AppleUSBXHCI for updates, but having to then also forward-eng the code in GenericUSBXHCI, and adapt it to all possible xhci quirks in the wild is too much.

Enough said.

 

I have no idea if Zenith432 is done making changes for Yosemite (probably not). I suspect the reason this is still a 'd' version is that it is still under development.

Share this post


Link to post
Share on other sites

Zenith432 does not have much time to spend on this - neither to review the code changes from 1.2.7 to 1.2.8dXXX (about a year old) - nor to reveng latest AppleUSBXHCI for changes - which is why development is stuck.  It would be nice to have two-three developers who are experts in xhci to take over. :)

I don't mind continuing to reveng AppleUSBXHCI for updates, but having to then also forward-eng the code in GenericUSBXHCI, and adapt it to all possible xhci quirks in the wild is too much.

Enough said.

Thanks for responding Zenith. Definitely me and others appreciate what you do and it is nice to know your status with respect to GenericUSBXHCI.kext.

 

What is your recommendation for USB3 at this point? Are you using AppleUSBXHCI.kext with patches? Or are you using a build (from sources with changes) of AppleUSBXHCI.kext. I know Apple published the code at one point and there was a custom build with some fixes, but I thought that Apple stopped publishing the code (as if they suddenly decided it shouldn't have been released under the APSL)

 

I'd rather use the native Apple kext in the first place, if it can be done. I'll be working on that a bit for my own hacks, I think...

Share this post


Link to post
Share on other sites

I still use GenericUSBXHCI, because I have Renesas and VMware xhci, the binary mods needed for AppleUSBXHCI are complex to maintain, and GenericUSBXHCI still works for the devices I have.

The version I uploaded for Yosemite contains a minor fix (compared to previous OSes) to a binary incompatibility introduced in _v3ExpansionData in the headers.  I haven't examined AppleUSBXHCI v705 (from Yosemite) in detail, so there may be other things that need to be updated.  Since my set up works as is - I'm not in any rush to review that.

AppleUSBXHCI was closed-source up until OS 10.8.2.  After I published GenericUSBXHCI, Apple published the sources for AppleUSBXHCI in OS 10.8.3 and 10.8.4.  Then this thread was published.  After that Apple disappeared the sources for all IOUSBFamily, although it's partly published for OS 10.8.5 (missing files.)

Other than updating for latest changes in Yosemite, the additional code to make GenericUSBXHCI work on other xhci chips needs to be maintained and possibly expanded for more hardware.

Share this post


Link to post
Share on other sites

I uploaded a build of 1.2.7 that works on OS 10.10 Public Beta 2 (14A329r).

 

Confirmed and working on my Asrock Z77 Fatal1ty Professional-M on Yosemite from App Store.

 

Before install; only the Intel-series USB 3.0 worked.

After install; ALL USB ports work, so I have Intel AND ASM1042 working!

 

Thank you!

Share this post


Link to post
Share on other sites

I wrote some hacky macros to make it work on all versions 10.7.5 -> 10.10.

 

RehabMan's version...

 

I am trying the RehabMan's version. 

USB HDD recognised OK but running BlackMagic disk performance test shows only 38MB/s on Yosemite whereas on Mavricks it's 89MB/s.

That is, the USB3 ports seem to be like USB2.

Anyone measured the performance of their drive on USB3 with this kext ?

Share this post


Link to post
Share on other sites

Tried RehabMan's build, no luck.  Nothing worked.  I was having good luck with 1.2.7 until 10.10.  Now I'm seeing ports not recognizing my printer being plugged in after sleep.  I'd be happy to help out a bit with debugging if needed.

Share this post


Link to post
Share on other sites

I've been trying to figure out whether there is a 100% working solution for Macbook Pro 2011 and earlier (with Yosemite installed) users to add USB 3.0 port connection into their computers using a hidden ExpressCard and achieve transfer speed more than 100Mb/s. These are the only three tutorials that I have found:

 

http://www.dawning.ca/2014/dear-diary-usb-3-0-on-my-macbook/ - Yosemite used, very low speed achieved

http://petesentme.com/tutorials/how-to-add-usb3-to-macbook-pro - not Yosemite, speed achieved is not known

http://www.spaceman.ca/blog/?p=288 - not Yosemite, speed achieved is not known

 

I hope members of this forum can give me an advise on that.

Share this post


Link to post
Share on other sites

I've been trying to figure out whether there is a 100% working solution for Macbook Pro 2011 and earlier (with Yosemite installed) users to add USB 3.0 port connection into their computers using a hidden ExpressCard and achieve transfer speed more than 100Mb/s. These are the only three tutorials that I have found:

 

http://www.dawning.ca/2014/dear-diary-usb-3-0-on-my-macbook/ - Yosemite used, very low speed achieved

http://petesentme.com/tutorials/how-to-add-usb3-to-macbook-pro - not Yosemite, speed achieved is not known

http://www.spaceman.ca/blog/?p=288 - not Yosemite, speed achieved is not known

 

I hope members of this forum can give me an advise on that.

I have à MBP 2011 also and tought also to make it USB 3 compatible.

What I found is that for a 100 % working solution and OOB you have to buy an Expresscard 34 with Fresco 1100 chip like these :

http://www.amazon.com/Express-Adapter-Profile-Laptop-Notebook/dp/B00KOL3FIO/ref=sr_1_5?s=electronics&ie=UTF8&qid=1415110106&sr=1-5&keywords=usb3+expresscard+34+fresco+1100

http://www.amazon.com/ExpressCard-Express-Adapter-Converter-5-0Gbps/dp/B008XUFJIM/ref=sr_1_1?s=electronics&ie=UTF8&qid=1415110180&sr=1-1&keywords=usb3+expresscard+34+fresco+1100

Share this post


Link to post
Share on other sites

Just a heads up for those using this kext on Yosemite:

 

If upon restart/shutdown your machine seems to go into a kind of standby mode (display turns off, disk activity stops, etc.) and hangs there for ~20-30 seconds before finally powering down, then disabling GenericUSBXHCI.kext might fix that.

 

Everything else I could think of (DSDT tweaking and so on) failed to address problem. Syslogs gave no insight as all logging ceases after the SHUTDOWN_TIME message. But issue was definitely unique to Yosemite (doesn't occur in Mavericks nor Windows). Finally on a random whim I removed aforesaid kext and the machine powered down normally.

 

Was using latest v1.2.7 tweaked for 10.10. Hardware specs are in signature (USB controller is Intel). Fortunately, for whatever reasons my USB ports (both 3.0 & 2.0) operate perfectly fine OOTB in Yosemite, so GenericUSBXHCI.kext is no longer necessary in my case.

Share this post


Link to post
Share on other sites

I have a sort of a minor but strange problem with this. The USB 3.0 ports don't work the first time after boot. If I remove the device and plug it in again then it gets detected and everything works fine after that. This behaviour repeats after the system wakes up from sleep. Although at times I plug in a flash drive and it gets detected as a USB 2.0 device. If I boot with the device plugged in, it works fine though.

 

 

I'm on Yosemite. I tried both - v1.2.7 and RehabMan's fork. I have a old MSI P67 motherboard which uses a NEC/Renesas uPD720200F1 chip.

I tried the -gux_nosleep flag but it didn't help. Also tried gux_log=2 but I couldn't find any relevant log messages. I also updated the firmware for uPD720200 but that didn't help either.

Share this post


Link to post
Share on other sites

I got this message in console, i have Nec/renesas laptop usb 3.0 

 

12/11/14 14:22:54,000 kernel[0]: USBF:    1.461    GenericUSBXHCI::CreateRootHubDevice  Bus 14 already taken

 

Usb 3.0 works with device plugged before boot in os. Weird problem. 

 

If i eject the device it doesn't recognize anymore any devices.

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 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="http://www.insanelymac.com/forum/topic/279450-why-insanelymac-does-not-support-tonymacx86/"]#####[/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?
    • By mediocre
      Ciao a tutti ragazzi, ho aggiornato da Mavericks a Sierra, tutto ok, le uniche 2 cose che non sono riuscito ancora ad installare sono le porte usb 3.0 e la scheda ethernet realtek 8169sc che funzionava con Mavericks, la scheda ethernet è aggiuntiva Pci perchè quella della motherboard si è bruciata ho fatto alcune prove ma non ci sono riuscito qualcuno può aiutarmi per favore? Grazie mille
      Questa sotto è la mia configurazione:
      i5 2400 - Motherboard P8H61 Asus, 12Gb Ram DDR3, SSD Evo 850
    • By rhew90
      Hello, There is a solution to my problem? do not work as USB 3.0 ports 3.1. Also not working the sound card and for this I thought I Buy the Asus Xonar x3 to Solve
×