Subscribe to our RSS news feed
AAPL 275.62 (0.56)

Generic USB2.0 (EHCI) Driver, Based on 256.4.2
****
  • Group: Members
  • Posts: 182
  • Joined: 2-September 06
  • Member No.: 54,047
/****************************** INFO BAR ************************************

Edit: Last Modified: 24/12/08, Link to Slice's post added + signing off on this driver


*** Thanks to SLICE there is now an updated version of the USBEHCI driver, which also includes sleep support. Please go here for details: Slice's Post ***

PS: I am signing off on this driver. It was an enjoyable exercise. Thanks to everybody who contributed to its development. Anybody needing drivers for Kernel's 8.4.1 (10.4.6), 8.8.1 (10.4.8), 8.9.1 (10.4.9), 9.0.0 (10.5), 9.1.0 (10.5.1) pls. see below links.

LEOPARD READ FIRST: The 10.5.0/10.5.1 version is now ready. All kexts come as is without any warranty. Try them at your own risk. On my current MB, the EHCI ownership error does not happen - so I could not fully test, but nevertheless the version is working and should be OK. It should have compiled with 32/64 bit support.

Files
----------------------------------
1. Darwin 9.0.0/9.1.0 - Attached File  PCGenUSBEHCI_303.4.5.kext.zip ( 121.04K ) Number of downloads: 13587
- Any support queries must include the output of 'kextstat' and 'dmesg | grep -i USB'. After the test phase, I will release full sources etc.

SOURCE - PCGen-303.4.5-src (1.3MB, MD5 (PCGen-303.4.5.zip) = 69c29c39850e50c5d27e774ed076d399)



TIGER READ FIRST: The 10.4.9/8.9.1 version is now ready and includes full source. All kexts come as is without any warranty. Try them at your own risk. On my current MB, the EHCI ownership error does not happen - so I could not fully test, but nevertheless the 10.4.9/8.9.1 version is working should be OK. Best.

Files
----------------------------------
1. Darwin 8.9.1 - PCGenUSBEHCI-2.7.0.zip
MD5 (PCGenUSBEHCI-2.7.0.zip) = f28159b35fe4bf5dcc755fad10917c8d
2. Darwin 8.8.1 - PCGenUSBEHCI-261.4.2a.zip
MD5 (PCGenUSBEHCI-2.6.1a.zip) = 6fb66c0c36e37a01e751f321d54e8957
3. Darwin 8.4.1 - PCGenUSBEHCI-256.4.2a.zip
MD5 (PCGenUSBEHCI-2.5.6a.zip) = 364f268a209709fc8dcf451ac61ddc31


Compatibility Guidelines, 22/12/06
----------------------------------
** Version <...>a fixes buggy SMI-bit13 handling ** (Thanks to mac fly for suggesting the solution)

** In practical terms, this extends support to machines that tried the reset but failed to do so. E.g., HP Pavillion 8000t NOW WORKS.

** See thread: for details.

1. For Darwin 8.9.1: USB 270.4.1 & 10.4.9 - use PCGenUSBEHCI-270.4.1 .
2. For Darwin 8.8.1: USB 261.4.2 & 10.4.8 - use PCGenUSBEHCI-261.4.2a .
2. For Darwin 8.4.1: USB 2.4.6 & 10.4.6; USB 256.4.2 & 10.4.7; USB 256.4.2 & 10.4.8 - use PCGenUSBEHCI-256.4.2a .
3. Thanks for all the reports! It seems to be working fine on DFI Lanparty now.

Not Working
with ATI SB200 chipset (cause -couldn't replicate this on an ECS board, likely only a laptop issue).

******************************************************************************/

DISCUSSION THREAD STARTS BELOW:

Hi all,

I have finally overcome teething problems and can now compile the Darwin, Open Source 256.4.2 IOUSBFamily kext AND get a usable kext.

However, I have been focusing on writing a version of AppleUSBEHCI.kext that will address the following problem(s):

(1) ON REBOOT/RESET one gets:
CODE
USBF:   20.136  EHCI controller unable to take control from BIOS


The problem appears to originate from a pci-quirk, which has to do with managing OS/BIOS ownership of the EHCI controller, and is not implemented in the Apple code. Not all systems may exhibit this error. Again, we are lucky to have the benefit of Linux - an excellent open source implementation - for a viable approach to dealing with this problem.

Briefly, while Apple implements
CODE
#define EHCI_USBLEGSUP_BIOS    (1 << 16)    /* BIOS semaphore */
#define EHCI_USBLEGSUP_OS    (1 << 24)    /* OS semaphore */
, they do not IMPLEMENT
CODE
#define EHCI_USBLEGCTLSTS    4        /* legacy control/status */
#define EHCI_USBLEGCTLSTS_SOOE    (1 << 13)    /* SMI on ownership change */
, which is actually a critical part of the management state machine (consequently on restart/reset BIOS reclaims but OS does not let go - so when you restart - no one gets it in the end). Well, in an unquirky world it would be taken care of by the BIOS, but hey! You know how it goes...


Oh yes, and the legacy part... Turning off legacy support in your BIOS may or may not make a difference. SO the best solution is porting these few lines + a few more over.


I shall keep you posted. Working title is: GenPCUSBEHCI.kext .


Best,

This post has been edited by orByte: Dec 24 2008, 10:20 AM
PM Profile Card
Go to the top of the page
+ Quote Post

Posts in this topic
- orByte   Generic USB2.0 (EHCI) Driver   Sep 25 2006, 04:06 PM
- - orByte   I am pleased to announce that this issue is now re...   Sep 26 2006, 07:57 AM
- - Black Knight   This is excellent news! This problem has been ...   Sep 27 2006, 02:42 PM
|- - hp8327   QUOTE (Black Knight @ Sep 27 2006, 09:39 ...   Sep 29 2006, 06:14 PM
- - orByte   Cheers guys, here it is: Edit From now on link i...   Sep 30 2006, 09:01 PM
|- - hp8327   QUOTE (orByte @ Sep 30 2006, 03:58 PM) Ch...   Sep 30 2006, 09:23 PM
|- - orByte   Hi Black Knight, thanks for pointing out the error...   Oct 4 2006, 12:52 PM
||- - Black Knight   QUOTE (orByte @ Oct 4 2006, 08:49 AM) Hi ...   Oct 4 2006, 01:02 PM
|- - pincopanco   [quote name='orByte' date='Sep 30 2006...   Oct 16 2006, 12:19 AM
- - Black Knight   Ok, so this worked great for me... after I hosed m...   Oct 3 2006, 07:17 PM
|- - hp8327   QUOTE (Black Knight @ Oct 3 2006, 02:14 P...   Oct 3 2006, 07:21 PM
- - Black Knight   No problem. I hope it does work for you since it w...   Oct 3 2006, 09:00 PM
- - SaxMachine   He works but without "debug kit"... I ha...   Oct 4 2006, 10:17 AM
- - SaxMachine   QUOTE (orByte @ Oct 4 2006, 02:49 PM) I a...   Oct 4 2006, 12:59 PM
- - hp8327   Alright. I had sub'd to this thread, and all t...   Oct 4 2006, 01:15 PM
- - orByte   I have now uploaded the corrected instructions. He...   Oct 4 2006, 07:41 PM
- - Black Knight   Btw, I would suggest editing your instructions in ...   Oct 4 2006, 07:52 PM
|- - orByte   QUOTE (Black Knight @ Oct 4 2006, 08:49 P...   Oct 4 2006, 09:24 PM
- - hp8327   Yeah, I linked to this thread from the osx86 wiki ...   Oct 4 2006, 08:17 PM
- - SaxMachine   Your driver work fine but my problem is AppeUSBOHC...   Oct 4 2006, 08:40 PM
- - SaxMachine   I have try all kext of 10.4.1 and 10.4.3...Don...   Oct 4 2006, 11:23 PM
- - mka101   Hmm tried your method and it didn't work. Aft...   Oct 5 2006, 03:48 AM
|- - orByte   QUOTE (mka101 @ Oct 5 2006, 04:45 AM) Hmm...   Oct 5 2006, 07:45 PM
- - mka101   hmm yeah i still only get USBF: 16.991 EHCI contr...   Oct 7 2006, 05:01 PM
|- - orByte   QUOTE (mka101 @ Oct 7 2006, 05:58 PM) hmm...   Oct 7 2006, 10:30 PM
- - mka101   alright no worries. For now i don't mind disa...   Oct 10 2006, 06:25 AM
- - kjur   Hi all! I was working on 10.5.2 version for a ...   Oct 16 2006, 07:35 AM
- - kjur   Hi All Ok, last night I'he tried safe mode ( ...   Oct 17 2006, 07:53 AM
- - itmandan   why did you remove the file. any chance you can re...   Oct 17 2006, 11:12 AM
|- - orByte   QUOTE (itmandan @ Oct 17 2006, 12:09 PM) ...   Oct 17 2006, 12:35 PM
- - itmandan   You had a chance to repost the file.? , anyone els...   Oct 17 2006, 06:23 PM
|- - orByte   QUOTE (itmandan @ Oct 17 2006, 07:20 PM) ...   Oct 17 2006, 09:23 PM
- - itmandan   Thank you very much. will try asap   Oct 18 2006, 11:14 AM
- - itmandan   Still unable to take ownership from bios..   Oct 18 2006, 11:34 AM
|- - orByte   QUOTE (itmandan @ Oct 18 2006, 12:31 PM) ...   Oct 18 2006, 12:12 PM
|- - meattattat   QUOTE (orByte @ Oct 18 2006, 08:09 PM) Bu...   Oct 18 2006, 03:04 PM
- - itmandan   Legacy Mode on this bios is done by Disabling USB...   Oct 19 2006, 09:45 PM
|- - meattattat   QUOTE (itmandan @ Oct 20 2006, 05:42 AM) ...   Oct 20 2006, 06:33 AM
|- - orByte   QUOTE (itmandan @ Oct 19 2006, 10:42 PM) ...   Oct 20 2006, 07:03 PM
- - deathr   Hi! I have such a same problem. While booting ...   Nov 6 2006, 09:08 AM
|- - orByte   QUOTE (deathr @ Nov 6 2006, 10:08 AM) Hi...   Nov 7 2006, 04:14 PM
|- - orByte   QUOTE (deathr @ Nov 6 2006, 10:08 AM) Hi...   Nov 9 2006, 10:19 PM
- - deathr   Thank you for your reply! Since last week in m...   Nov 8 2006, 04:53 PM
- - deathr   Made these two files using 10.4.7 Official Apple u...   Nov 10 2006, 09:49 AM
- - Andrei   I also have problems with USB 1.1 devices in 10.4....   Nov 10 2006, 11:39 PM
- - deathr   orByte, is it possible to fix my OHCI?   Nov 13 2006, 06:01 PM
|- - orByte   QUOTE (deathr @ Nov 13 2006, 07:01 PM) or...   Nov 14 2006, 01:59 PM
- - deathr   I think i should try a USB hub from Apple Store. I...   Nov 14 2006, 06:08 PM
|- - orByte   QUOTE (deathr @ Nov 14 2006, 06:08 PM) I ...   Nov 14 2006, 10:21 PM
- - deathr   Tested the USB 2.0 hub with it's own power sup...   Nov 15 2006, 04:08 PM
|- - orByte   QUOTE (deathr @ Nov 15 2006, 04:08 PM) Te...   Nov 23 2006, 01:21 PM
- - Meatwagon   Ok this is what i have, http://h10025.www1.hp.com...   Nov 19 2006, 11:51 PM
- - Meatwagon   ps there was no UBS fix with any of these, so i co...   Nov 20 2006, 07:21 AM
- - deathr   Maybe you have to change "Legacy USB Support...   Nov 20 2006, 04:08 PM
|- - Meatwagon   QUOTE (deathr @ Nov 20 2006, 04:08 PM) Ma...   Nov 20 2006, 08:15 PM
- - blackchungo   Hi orByte, Im trying your driver with jas 4.6, 4.7...   Nov 23 2006, 02:54 PM
|- - orByte   QUOTE (blackchungo @ Nov 23 2006, 02:54 P...   Nov 24 2006, 02:01 PM
- - orByte   10.4.8 testing Hi all, I now have a working 10.4....   Nov 26 2006, 09:52 PM
- - blackchungo   Thanks for your replay. I tryed what you said in ...   Nov 28 2006, 12:25 PM
|- - orByte   QUOTE (blackchungo @ Nov 28 2006, 12:25 P...   Nov 29 2006, 01:28 PM
|- - mac fly   Hi ! When the system tries to load your kext, ...   Nov 29 2006, 02:25 PM
|- - orByte   QUOTE (mac fly @ Nov 29 2006, 02:25 PM) H...   Nov 29 2006, 06:07 PM
|- - mac fly   Hi OrByte Thanks for your quick answer, and for do...   Nov 29 2006, 08:07 PM
- - blackchungo   QUOTE (orByte @ Nov 29 2006, 02:28 PM) I ...   Dec 3 2006, 07:24 PM
- - orByte   GOOD NEWS! A happy holiday season to all...   Dec 9 2006, 06:14 PM
|- - mspr   QUOTE (orByte @ Dec 9 2006, 07:14 PM) GO...   Dec 9 2006, 11:06 PM
|- - orByte   QUOTE (mspr @ Dec 9 2006, 11:06 PM) Hello...   Dec 10 2006, 10:48 AM
|- - mspr   QUOTE (orByte @ Dec 10 2006, 11:48 AM) Hi...   Dec 10 2006, 05:51 PM
|- - orByte   QUOTE (mspr @ Dec 10 2006, 05:51 PM) Hell...   Dec 10 2006, 10:09 PM
|- - mspr   QUOTE (orByte @ Dec 10 2006, 11:09 PM) Hi...   Dec 10 2006, 11:18 PM
- - mcdull   Thanks.. orByte, I can finally use my OSX box with...   Dec 9 2006, 07:19 PM
- - semon   thanks a lot ! I finally have USB working on m...   Dec 10 2006, 12:39 AM
- - mestam   Orbyte.. I have kernel 8.4.1 and applied patches ...   Dec 10 2006, 11:37 AM
- - joelones   OrByte, Great work btw. Followed your instruction...   Dec 10 2006, 07:07 PM
|- - orByte   QUOTE (joelones @ Dec 10 2006, 07:07 PM) ...   Dec 10 2006, 10:19 PM
|- - joelones   QUOTE (orByte @ Dec 10 2006, 10:19 PM) Hi...   Dec 10 2006, 11:53 PM
|- - orByte   QUOTE (joelones @ Dec 10 2006, 11:53 PM) ...   Dec 11 2006, 06:08 PM
|- - mac fly   QUOTE (orByte @ Dec 11 2006, 07:08 PM) Hm...   Dec 12 2006, 12:09 PM
|- - orByte   QUOTE (mac fly @ Dec 12 2006, 12:09 PM) W...   Dec 12 2006, 02:04 PM
- - mac fly   Hi orByte ! Thank you for working on this, but...   Dec 11 2006, 12:52 PM
|- - orByte   QUOTE (mac fly @ Dec 11 2006, 12:52 PM) H...   Dec 11 2006, 05:45 PM
- - joelones   QUOTE (orByte @ Dec 11 2006, 06:08 PM) Hm...   Dec 11 2006, 11:32 PM
- - joelones   Orbyte, I just replaced AppleSMBIOS with paulicat...   Dec 16 2006, 08:31 PM
|- - orByte   QUOTE (joelones @ Dec 16 2006, 08:31 PM) ...   Dec 19 2006, 06:42 PM
|- - ntsmkfob   QUOTE (orByte @ Dec 19 2006, 06:42 PM) Hi...   Dec 20 2006, 11:59 AM
||- - orByte   QUOTE (ntsmkfob @ Dec 20 2006, 11:59 AM) ...   Dec 21 2006, 02:38 PM
|- - joelones   QUOTE (orByte @ Dec 19 2006, 06:42 PM) Hi...   Dec 21 2006, 12:51 AM
|- - Gdfath3r   QUOTE (joelones @ Dec 20 2006, 07:51 PM) ...   Dec 21 2006, 06:35 AM
|- - orByte   QUOTE (joelones @ Dec 21 2006, 12:51 AM) ...   Dec 21 2006, 02:40 PM
- - orByte   NEW VERSION RELEASE NOTE I am pleased to announ...   Dec 20 2006, 08:07 PM
- - jpincheira   dude, this didn't work on 10.4.8 on my intel d...   Dec 20 2006, 08:31 PM
|- - orByte   QUOTE (jpincheira @ Dec 20 2006, 08:31 PM...   Dec 20 2006, 08:33 PM
|- - jpincheira   QUOTE (orByte @ Dec 20 2006, 03:33 PM) Wh...   Dec 21 2006, 05:19 AM
|- - orByte   QUOTE (jpincheira @ Dec 21 2006, 05:19 AM...   Dec 21 2006, 02:47 PM
- - AppleIIGuy   Well the usb now is highspeed for me on my system:   Dec 21 2006, 04:15 AM
- - mestam   QUOTE (mestam @ Dec 10 2006, 12:37 PM) Or...   Dec 21 2006, 12:11 PM
|- - orByte   QUOTE (mestam @ Dec 21 2006, 12:11 PM) .....   Dec 21 2006, 02:44 PM
- - jpincheira   I did this: 200-126-113-116:~ jp$ sudo kextl...   Dec 21 2006, 02:08 PM
- - jpincheira   Now It works! I don't know how, because I ...   Dec 21 2006, 02:14 PM
- - orByte   Also, many many thanks to the community for your f...   Dec 21 2006, 02:50 PM
5 Pages V   1 2 3 > » 

Reply to this topic Start new topic

2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 

RSS Lo-Fi Version Time is now: 31st July 2010 - 01:57 PM