Jump to content

GenericUSBXHCI USB 3.0 driver for OS X with source

xHC USB 3.0

  • Please log in to reply
579 replies to this topic

#341
daniesy

daniesy

    InsanelyMac Protégé

  • Members
  • PipPip
  • 52 posts
  • Gender:Male
  • Location:Romania

Zenith432 we could use my computer if you want, over VPN, when we're both online and we both have free time.



#342
Zenith432

Zenith432

    InsanelyMac Sage

  • Developers
  • 416 posts
  • Gender:Male

FYI, I've uploaded 1.2.6d6 to the Snapshots area - it properly disables streams and forces streams endpoints to operate as normal bulk endpoints.  So if you have a non-working superspeed drive with streams - give this build a try with kernel flag '-gux_nostreams'.



#343
jamiethemorris

jamiethemorris

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 479 posts
  • Gender:Male
  • Location:San Rafael, CA

I'm still having freezes on login whenever I have a USB 3.0 drive plugged in, but I'm not sure it's the same problem as others are having. I can plug a thumb drive into my 3.0 ports without any issues. How do I know if my drive has streams endpoints? I installed 1.2.6d6 and put -gux_nostreams in the kernel flags but I still get a freeze on login. I'm using the built-in Etron EJ168 ports on my Z68XP-UD3 motherboard (UEFI bios), running 10.8.5.



#344
loKEY

loKEY

    InsanelyMac Protégé

  • Members
  • Pip
  • 20 posts

thanks for the heads up zenith.  yeah my other intel usb 3 ports on the back of the board work fine with your kext.  port 3 and 4 are are on a header to front of my case.  i guess the header cable must damaged or the connector on the board itself.  i never would have figured it out without you pointing out the errors as usb 2 and usb receivers work fine on the header.  thanks zenith.  good lookin out.



#345
b0rnav

b0rnav

    InsanelyMac Protégé

  • Members
  • Pip
  • 12 posts

Ive still got issues one a Z77 board with 1.2.6d8 and 10.9 as well (no issues in 10.8.5 or earlier). My issues are kind of really strange with 10.9. USB3 recognized and detects mass storage (seagate drive). However, while the disk is browsable and all files are listed in finder, attempting to open any files written to the disk causes IO errors and corruption messages form OSX. Basically you can browse files but cannot read them properly.

 

Booting into 10.8.5 and everything works. No corruption warnings and everything functions as before.

 

  • Z77 (Gene V) - i5 2500k
  • Installed in S/L/E
  • Made sure kext is in the exception plist with proper version
  • Also tried using the temporary flag "-gux_nosleep" without avail

Just posting this as a heads up so it can be cross referenced with issues experienced by others.

 

Borna.



#346
JorgeMax

JorgeMax

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 261 posts
  • Gender:Male
  • Location:Brasil-Piauí-Teresina
I could not make it work in Mavericks GM! Added the version of "GenericUSBXHCI Version 1.2.6" on kext "AppleKextExcludeList" and org.chameleon.boot.plist "the flags:"-gux_defer_usb2-gux_no_idle "My chipset is a B75.
Form to run the USB 3.0 ports on the Mavericks is different ML 10.8.x?


#347
Zenith432

Zenith432

    InsanelyMac Sage

  • Developers
  • 416 posts
  • Gender:Male

Attached is Info.plist for AppleKextExcludeList.kext on 10.9GM.

After copying the file you should run 'sudo kextcache -system-c; sudo kextcache -system-p'.

 

There should be a space between kernel flags '-gux_defer_usb2 -gux_no_idle'.  Also, these flags are only useful if you have Intel Series 7 xhci.

I could not make it work in Mavericks GM!

Attached Files



#348
Maniac10

Maniac10

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,070 posts
  • Gender:Not Telling

There's no need to add it to the excluded list, it will only warn you once that the extension is not signed and load it anyway. It's working perfectly on my Mavericks GM installation.

 

The exclusion list won't stop an extension from loading, at least not for now.



#349
JorgeMax

JorgeMax

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 261 posts
  • Gender:Male
  • Location:Brasil-Piauí-Teresina

I see that you put in the line: "net.osx86.kexts.GenericUSBXHCI" number 1111.0 and I put the kext version 1.2.6. Looks like it was edited in my second image:

 

Attached File  Captura de Tela 2013-10-08 s 15.28.50.png   404.97KB   4 downloads

The mine is not right?



#350
nikk

nikk

    InsanelyMac Protégé

  • Members
  • Pip
  • 31 posts

Hi Zenith432, thanks for a great driver and your hard work! I have great success with your driver and Renesas uPD720202 ExpressCard32.

It works fine (even in UAS mode) with ASMedia 1051E enclosure, and I have 350 Mb/s read speeds under OS X 10.8.

 

One big issue with the driver is it always crashes my laptop if it wake from sleep with card inserted.

If I soft-eject it before sleep with statusbar icon, all is fine. If I just unmount the drive but not the card, I always have a crash on wake.

If I disconnect the drive, but not the card with soft-eject, there is no panic. Notebook wakes fine without issue.

Tried -gux_nosleep kernel flag without success. Crash dump and xhcidump output in attachment. If you need more info from xhcidump just let me know.

 

I also updated ExpressCard with latest firmware for Renesas uPD720202 to 2.0.2.0 version under Windows. It didn't help.

 

The same behaviour under OS X 10.9 GM. I have kernel panic there too in this situation.

 

Made ticket on SF. Is there anything I can do to resolve this issue?

Attached Files



#351
Micky1979

Micky1979

    I realized that I am lucky

  • Moderators
  • 1,732 posts
  • Gender:Male
  • Location:Italy

Attached is Info.plist for AppleKextExcludeList.kext on 10.9GM.

After copying the file you should run 'sudo kextcache -system-c; sudo kextcache -system-p'.

 

There should be a space between kernel flags '-gux_defer_usb2 -gux_no_idle'.  Also, these flags are only useful if you have Intel Series 7 xhci.

Hi Zenith432,

 

the script attached (GenericXHCI_Update_ExcludeList.sh), automatically find the GenericUSBXHCI.kext installed, read its CFBundleShortVersionString version, then clean the AppleKextExcludeList.kext/Contents/info.plist (delete  the net.osx86.kexts.GenericUSBXHCI entry), then rewrite it with the corresponding value.

The script also repairs permissions for GenericUSBXHCI.kext and AppleExcludelist.kext, then touch S/L/E.

 

*Editing/adding the script case statement:

case "${GXHCI_VER}" in
    1.2.6)
        NewValue="1111.0"
    ;;
    1.2.5)
        NewValue="1.2.5d5"
    ;;
    *)
        echo "*** Currently you can update AppleKextExcludeList.kext only for GenericUSBXHCI.kext v 1.2-5/1.2.6"
        echo "    Sorry, other case statement need to be set in this script!"
        echo "------------------------------------------------------------------------ >"
        exit
    ;;
esac

we can update AppleKextExcludeList.kext  with all version made of GenericUSBXHCI.kext.

 

Hope this helps, and I'm going to put it in Pandora.app, to up to date always the exclude list :)

 

Micky

Attached Files



#352
Onixs

Onixs

    Since 2007

  • Members
  • PipPipPipPipPipPipPip
  • 736 posts
  • Gender:Male

just edit AppleKextExcludeList.kext and put GenericXHCI strings as 999 version. with this, you no longer have to worry editing AppleKextExcludeList again when GenericXHCI version goes up.



#353
Zenith432

Zenith432

    InsanelyMac Sage

  • Developers
  • 416 posts
  • Gender:Male

nikk: Download and try 1.2.7d2 with a fix for this KP.  It happens when waking from unpowered sleep with a superspeed drive supporting streams.  Some loose end from the stream fixes in 1.2.6.

 

jorgeMax: Run 'kextstat | grep Gen' when the system is up to check if GenericUSBXHCI 1.2.6 is loaded and running.

 

Micky1979: Thanks!

 

Edit: I've integrated a fix for the KP mentioned by nikk into 1.2.6, and uploaded a new 1.2.6 with this fix.  So anyone suffering from this KP (happens during wake from sleep with streams drive) should replace 1.2.6.


Edited by Zenith432, 09 October 2013 - 10:06 AM.


#354
JorgeMax

JorgeMax

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 261 posts
  • Gender:Male
  • Location:Brasil-Piauí-Teresina

With the run command in the terminal:

Attached File  Captura de Tela 2013-10-09 s 07.54.31.png   26.29KB   3 downloads

 

How is my org.chameleon.boot.plist configured:

Attached File  Captura de Tela 2013-10-09 s 07.57.56.png   41.51KB   2 downloads

 

And here's report system:

Attached File  Captura de Tela 2013-10-09 s 07.55.35.png   45.89KB   2 downloads

 

 


With System Info:

Attached File  Captura de Tela 2013-10-09 s 08.22.01.png   460.58KB   4 downloads



#355
Micky1979

Micky1979

    I realized that I am lucky

  • Moderators
  • 1,732 posts
  • Gender:Male
  • Location:Italy

Micky1979: Thanks!

 

No, thank you for your work!

 

However I will insert in Pandora, even the kernel flag for use with GenericUSBXHCI!
 
Micky


#356
joe75

joe75

    Renegade

  • Retired
  • 2,125 posts
  • Gender:Male
  • Location:Rochester, NY

do you guys really need to add anything to the kext excluded list? I have not needed to add anything there and all my non-apple kexts work.

 

edit: i also notice that GM doesn't have a cached plist of excluded kexts in kext.caches startup folder for me like the db builds had.



#357
Zenith432

Zenith432

    InsanelyMac Sage

  • Developers
  • 416 posts
  • Gender:Male

JorgeMax: What exactly is not working?  Upload output of 'xhcdump running'.

   PS: If using '-gux_defer_usb2', then any USB 2.0 device would appear under the EHCI tree.  You should see only superspeed xhci devices under "Barramento Superspeed USB 3.0", assuming such device is connected.

 

joe75: If you mean loadedkextmt.plist, then I do have one under GM.



#358
Micky1979

Micky1979

    I realized that I am lucky

  • Moderators
  • 1,732 posts
  • Gender:Male
  • Location:Italy

do you guys really need to add anything to the kext excluded list? I have not needed to add anything there and all my non-apple kexts work.

 

edit: i also notice that GM doesn't have a cached plist of excluded kexts in kext.caches startup folder for me like the db builds had.

Most likely it is a problem of kernelcache, unsigned kext are actually register in the /....com.apple.kext.caches/Startup plist files (in GM also), definitely new versions need to be updated in those files.
AppleExcludelist.kext, contains references to extensions that will be loaded even if they have signed or not.
Kextcache can be removed, and rebuilt....the AppleKextExcludelist.kext, maybe he needs a hand (??)....obviously if the two things are connected (....I would say yes).
I have not played much with kexts lately and I've never had excluded kexts, but it seems that some people have these problems.
 
GenericUSBXHCI.kext is having new update versions, maybe it does not happen with other "hackintosh" extensions in the same System ..
Can be?
 
Micky


#359
JorgeMax

JorgeMax

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 261 posts
  • Gender:Male
  • Location:Brasil-Piauí-Teresina

JorgeMax: What exactly is not working?  Upload output of 'xhcdump running'.

   PS: If using '-gux_defer_usb2', then any USB 2.0 device would appear under the EHCI tree.  You should see only superspeed xhci devices under "Barramento Superspeed USB 3.0", assuming such device is connected.

 

joe75: If you mean loadedkextmt.plist, then I do have one under GM.

Friend the only USB device when I can test is version 2.0, 3.0 with one USB 3.0 external HDD from my brother. But I can only test it on my doors at night when he gets the service. Only I'm finding it strange the USB 2.0 ports are not recognized by USB 3.0 when I'm using the Mavericks ML 10.8.5 and now it is recognized.



#360
Zenith432

Zenith432

    InsanelyMac Sage

  • Developers
  • 416 posts
  • Gender:Male

When booting with '-gux_defer_usb2' USB 2.0 devices are never going to be recognized by the USB 3.0 controller.  They'll show up on the USB 2.0 controller.

Remove this kernel flag, reboot, and see what happens then.

The reason this flag is recommended, is because on some MBs with Intel series 7, when USB 2.0 ports are routed to xhci, they cause instant-wakeup-on-sleep.  It's a hardware bug, but not all MBs suffer from this.  So try taking it out and see.

Friend the only USB device when I can test is version 2.0, 3.0 with one USB 3.0 external HDD from my brother. But I can only test it on my doors at night when he gets the service. Only I'm finding it strange the USB 2.0 ports are not recognized by USB 3.0 when I'm using the Mavericks ML 10.8.5 and now it is recognized.







Also tagged with one or more of these keywords: xHC, USB 3.0


3 user(s) are reading this topic

2 members, 1 guests, 0 anonymous users


© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy