Help - Search - Members - Calendar
Full Version: Generic USB2.0 (EHCI) Driver
InsanelyMac Forum > OSx86 Project > Hardware and Drivers > Other Peripheral Devices
Pages: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
greatchinu
yoyoyo
hey guys
thanks anyways i finally solved it thanks so much for all the replies

i did not use any terminal commands
just did this-

dwnlded the PCGenUSBEHCI.kext for 9.1.0
deleted AppleUSBEHCI.kext from /s/l/e/IOUSBFamily.kext/Contents/Plugins
copied PCGenUSBEHCI.kext to /s/l/e/IOUSBFamily.kext/Contents/Plugins
repaired permissions
reboot
and voila it worked

and now i'm really sleepy
cya
Junkuhn
Hi I'm fairly new to this so bare with me please smile.gif

My USB is working, and it mounts my devices, but it's only running at USB 1.1 speed (12mb/sec)

I see alot of pages here, and alot of different versions of OS X (Tiger, Leopard etc) and I'm abit confused about wether or not this will work on my system.

Is there some who who knows and is able to post a nice walkthough?

My system is:

XPC Shuttle SD39P2 (all intel parts, don't know if this is relevant)
Leopard 10.5.2
Darwin 9.2.2 kernel
patsphone2
Hey guys, I'm having USB drive issues as well. My HP USB printer works fine, not at all slow, as well as the USB transceiver for my wireless keyboard/mouse. They both show up on the high-speed USB bus, but USB drives...flash and hard drives are not auto-detected. If I boot with them connected Leopard 10.5.2 will see them, but they transfer at absurdly slow speeds...close to 1.5 megabytes per second. I have used the updater posted in this thread. I have also made sure that my kernel version matches my system.kext version using the USB FIX 1.3.mpkg. None of this has done anything to fix my USB issues. I'm running on an Intel D5400XS(Skulltrail) board, with Kalyway's 10.5.2 DVD. Any help is greatly appreciated.
mitch_de
QUOTE (greatchinu @ May 19 2008, 12:24 AM) *
yoyoyo
hey guys
thanks anyways i finally solved it thanks so much for all the replies

i did not use any terminal commands
just did this-

dwnlded the PCGenUSBEHCI.kext for 9.1.0
deleted AppleUSBEHCI.kext from /s/l/e/IOUSBFamily.kext/Contents/Plugins
copied PCGenUSBEHCI.kext to /s/l/e/IOUSBFamily.kext/Contents/Plugins
repaired permissions
reboot
and voila it worked

and now i'm really sleepy
cya


repair permissons will NOT WORK for PCGenUSBEHCI.kext !!!!
because OS X didnt now about PCGenUSBEHCI.kext rights - so rights stay wrong and plugin didnt load
own:groop must be root:wheel for all content of PCGenUSBEHCI.kext
Ollie Levy
Anyone know how to get this working with Kalyway 10.5.3?

Thanks in advance,
Ollie
Slice
I corrected sources USB Leo 10.5.2 by orByte's method. But I have no Leo to compile and test.
Do it!
macgirl
10.5.3 sources are available...
BugsB
yeah well, a 10.5.3 work & compile would be great - PCGen 10.5 was still working here with Leo .2 but stopped working with 10.5.3 .. sad.gif

Is anybody else feasible of compiling apart from orByte? orByte apparently is missing the time.

Thanks,
Bugs
Slice
QUOTE (macgirl @ Jun 13 2008, 09:22 PM) *
10.5.3 sources are available...

Where?
cyclonefr
I think macgirl meant http://developer.apple.com/hardwaredrivers...d/usbdebug.html which is surely NOT the sources for 10.5.3.
BugsB
here you can see which 10.5.3 sources have been published .. sad.gif

edit: has EHCI changed at all in 10.5.3? I have not checked in the non-combo update. Slice, is this your source for the 10.5.2 USB?
macgirl
Sorry for the mislead, I confused the IOUSB Log with the sources sad.gif
Slice
QUOTE (BugsBunny @ Jun 14 2008, 01:24 AM) *
here you can see which 10.5.3 sources have been published .. sad.gif

edit: has EHCI changed at all in 10.5.3? I have not checked in the non-combo update. Slice, is this your source for the 10.5.2 USB?

Yes, I use 308.4.0 sources and I think they are latest.

QUOTE (macgirl @ Jun 14 2008, 01:54 AM) *
Sorry for the mislead, I confused the IOUSB Log with the sources sad.gif

Not all targets can be compiled. But EHCI, OHCI, UHCI - yes!
macgirl
yay thumbsup_anim.gif
Slice
QUOTE (macgirl @ Jun 17 2008, 03:26 AM) *
yay thumbsup_anim.gif

Sorry?
macgirl
QUOTE (Slice @ Jun 17 2008, 02:17 AM) *
Sorry?

What?
ole2
QUOTE (orByte @ Sep 25 2006, 06:06 PM) *
SOURCE - PCGen-303.4.5-src (1.3MB, MD5 (PCGen-303.4.5.zip) = 69c29c39850e50c5d27e774ed076d399)


your patch diff.txt from the source ZIP is not applicable, could you use option "diff -u" instead, in order to make it recognizable by patch tool?
thanks
Siegfried
QUOTE (ole2 @ Jun 17 2008, 01:50 PM) *
your patch diff.txt from the source ZIP is not applicable, could you use option "diff -u" instead, in order to make it recognizable by patch tool?
thanks

Yes, please always post unified diffs, personally I use "diff -Naur".
ole2
QUOTE (Siegfried @ Jun 18 2008, 10:46 AM) *
Yes, please always post unified diffs, personally I use "diff -Naur".

confirm, -Naur is what FSF recommend to be "standard-de-facto", so please follow
waiting for new source pack
thanks
macgirl
10.5.3 sources are available, thi time is for real sad.gif

http://www.opensource.apple.com/darwinsource/10.5.3/reported on Reader News:

http://forum.insanelymac.com/index.php?showtopic=111444
Slice
Yes, it is really new sources. Thanks!
shaufan
Thanks man, full work PCGenUSBEHCI_303.4.5.kext in leopard kaliway 10.5.2 ;D
great! smile.gif
GNU_Raziel
Any update about 10.5.3 and this driver ? I cannot use mu Wifi dongle because it's USB 2.0 only...

I hope you will find a way soon smile.gif
Slice
jerry.gif
What is the problem?
Take it, correct by sample (diff file), compile, test and enjoy!
demonfox13x
unfortunately its not that easy for noobs like me =). can someone compile and post please rolleyes.gif
atiom
anyone who got this compiled for 10.5.3 is kind enough to share it?

Thank you wink.gif
BugsB
why does Slice slice us? Slice please be nice .. wink.gif
BugsB
anyway, for those experiencing hotplug probs, look over here .. wink.gif
Slice
QUOTE (BugsBunny @ Jul 2 2008, 11:22 PM) *
why does Slice slice us? Slice please be nice .. wink.gif

I HAVE NO LEO TO COMPILE AND TEST!
In Tiger all works.
Is there anybody have XCode 3.0 under Leo 10.5.3?

Try v308 made by Dmdimon
EDITED:
It is new version of USBEHCI made by orByte's method but with Apple sources from Leo 10.5.2
BugsB
ah thanks for clarifying, I kinda thought you were a tiger-lily .. tomato.gif
atiom
QUOTE (BugsBunny @ Jul 4 2008, 11:31 AM) *
ah thanks for clarifying, I kinda thought you were a tiger-lily .. tomato.gif


bugs is the usb fix for 10.5.2 working for you in 10.5.4?
BugsB
hm cannot figure how what you quoted from me has any relation to your question .. - neither do I know what exactly you mean by "fix" ..

I did as explained a thousand times in this thread:

- using stock apple IOUSBFamily.kext (Leo current: 3.0.8)
- inside of it deleted Apple's AppleUSBEHCI.kext
- inserted orByte's PCGenUSBEHCI.kext (chwn/ chmod ..)
- touched XT folder
--> happy, USB 2.0 incl. booting from USB

When testing kernels via boot.plist without matching system.keyt hotplug does (CAN) not work (as also has been mentioned many times here), therefore my previous link to the hotplug fixer.

So summarized: yes, having followed the rules and lil tricks when needed, PCGenUSBEHCI.kext still seems 2 b working 100% here.

However I would not mind testing a compile of the most current sources since obviously Apple tweaked "something". Maybe higher transfer speed? Dunno ..

How 'bout u?
mitch_de
QUOTE (BugsBunny @ Jul 5 2008, 12:30 AM) *
hm cannot figure how what you quoted from me has any relation to your question .. - neither do I know what exactly you mean by "fix" ..

I did as explained a thousand times in this thread:

- using stock apple IOUSBFamily.kext (Leo current: 3.0.8)
- inside of it deleted Apple's AppleUSBEHCI.kext
- inserted orByte's PCGenUSBEHCI.kext (chwn/ chmod ..)
- touched XT folder
--> happy, USB 2.0 incl. booting from USB

When testing kernels via boot.plist without matching system.keyt hotplug does (CAN) not work (as also has been mentioned many times here), therefore my previous link to the hotplug fixer.

So summarized: yes, having followed the rules and lil tricks when needed, PCGenUSBEHCI.kext still seems 2 b working 100% here.

However I would not mind testing a compile of the most current sources since obviously Apple tweaked "something". Maybe higher transfer speed? Dunno ..

How 'bout u?


Thanks bugsBunny for explaining the things again !

What are the most problems / reasons why users must/want to use this USB parts ?
1- " ON REBOOT/RESET one gets: CODE USBF: 20.136 EHCI controller unable to take control from BIOS"
Does USB work (only message in system.log) or will not work / make much trouble ?
Other problems , like timing, USB HUB Problems, ... can get fixed ?

My USB is running well (i think wink.gif ) , but some friends will switch to OSX86 soon, thats the reason why i asks,
at which problems i should give them hint to use that "tuned" kexts.
BugsB
kexts? PCGenUSBEHCI.kext is only one kext.

One needs to check in Sys profiler if one has USB 2.0, or not, with or without PCGenUSBEHCI.kext ..

Also it does not do harm to do a lil time & speed test (copy a larger file from and to an USB Volume in Mac OS and in Win or Linux with guaranteed USB 2.0 support and compare.
Slice
QUOTE (BugsBunny @ Jul 5 2008, 12:09 PM) *
kexts? PCGenUSBEHCI.kext is only one kext.

And what?
You ask me for a new version? It is at my post 429. No any attempt to check.
It is a new version of PCGenUSBEHCI.kext but with old name AppleUSBEHCI.kext.
Or you simply don't need it?
BugsB
QUOTE (Slice @ Jul 5 2008, 11:22 PM) *
And what?
You ask me for a new version? It is at my post 429. No any attempt to check.
It is a new version of PCGenUSBEHCI.kext but with old name AppleUSBEHCI.kext.
Or you simply don't need it?
biggrin.gif so you compiled the sources in Tiger with XCode Tiger I guess? Nice, that should work, there is some people that compile kexts in Tiger for Leo, seems to work sometimes.

Oh yes, I will test them, thanks smile.gif
Slice
QUOTE (BugsBunny @ Jul 6 2008, 01:34 AM) *
biggrin.gif so you compiled the sources in Tiger with XCode Tiger I guess? Nice, that should work, there is some people that compile kexts in Tiger for Leo, seems to work sometimes.

Oh yes, I will test them, thanks smile.gif

No, it is not my compilation. Other man with Leo do it.
anthony_c
OK,

I am using iATKOS leopard without any updates, and my USB does not work at all.

I don't have time to read this entire thread, but can somebody tell me and/or provide a link to a kext or patch to get my usb working? I installed the iousbfamily.kext from a wiki I read to get it working with no success, and legacy has been disabled in my BIOS. The machine itself is a Gateway MT6705, Intel Pentium dual-core with unpatched/upgraded iATKOS leopard.

Can somebody please help?
BugsB
@ chief Slice: you can tell other man from white man that other man did great job (for which white man kinda loves other man)

@ anthony_c: you find IOUSBFamily 3.0.8/ Mac OS 10.5.2 (containing the plugins compiled by ARMAGEDDON Slice posted here) attached.
3.0.8 is the latest for Mac OS 10.5.2/3/4.

As always, install with kext helper or ~pcwiz' Mac OSx86 Tools Utility.
anthony_c
QUOTE (BugsBunny @ Jul 5 2008, 08:17 PM) *
@ chief Slice: you can tell other man from white man that other man did great job (for which white man kinda loves other man)

@ anthony_c: you find IOUSBFamily 3.0.8 from 10.5.2 recompiled (based on what slice posted) attached. 3.0.8 is the latest for Mac OS 10.5.2/3/4. Install it with kext helper or ~pcwiz' Mac OSx86 Tools Utility.


Thank you, I'll give it a try and let you know after a reboot!
BugsB
I think it sucks to disable legacy. My USB works with legacy switched on.
anthony_c
So, I installed with kexthelper, rebooted and here's what I got:

2 flash drives I plugged in worked 100%, as opposed to before the driver,
my belkin USB wireless NIC (model FD07050) did not, although the official mac utility for it from belkin was running.

Do I need a generic USB wifi driver or something? otherwise, I have a PCMCIA nic (linksys, gonna rely on generic airport drivers for it) I would like to install in it's place, with the appropriate drivers you provide me links to in the case the belkin just refuses to work.

I am doing all of this to get a wireless nic to my leopard install. My internal Realtek(real trash if you ask me) is way too proprietary for leopard let alone ubuntu to recognize, so I am not even going to try. I eagerly await the day I can get network connectivity from my leopard partition, and I appreciate the help so far. wink.gif
Slice
QUOTE (BugsBunny @ Jul 6 2008, 04:17 AM) *
@ chief Slice: you can tell other man from white man that other man did great job (for which white man kinda loves other man)

I did. http://www.applelife.ru/Reshenie_problem_s..._0/1015/80.html

QUOTE (BugsBunny @ Jul 6 2008, 04:27 AM) *
I think it sucks to disable legacy. My USB works with legacy switched on.

I don't know what is the trick. The orByte's method is a creating legacy support.

QUOTE (anthony_c @ Jul 6 2008, 04:43 AM) *
So, I installed with kexthelper, rebooted and here's what I got:

2 flash drives I plugged in worked 100%, as opposed to before the driver,

The best news I saw before.
QUOTE
my belkin USB wireless NIC (model FD07050) did not, although the official mac utility for it from belkin was running.

Are you sure that belkin's driver has Intel flavour? If PowerPC only - sorry!
BugsB
QUOTE (Slice @ Jul 6 2008, 08:27 AM) *
pre-modded IOUSBFamily.kext based on 3.0.8 sources from 10.5.2 (corrected by Slice based on orByte method, compiled by Dmdimon 06-19-08
Slice
QUOTE (BugsBunny @ Jul 6 2008, 01:26 PM) *
!! DON'T use ACPIFamily.kext 1.0.3 ("ACPI-fix" in distros) with Toshiba P-10x --> random kernel panics @ boot!!

Sorry for offtopic. What is the problem?
(my compilation)
Fladnar
QUOTE (BugsBunny @ Jul 6 2008, 02:17 AM) *
@ chief Slice: you can tell other man from white man that other man did great job (for which white man kinda loves other man)

@ anthony_c: you find IOUSBFamily 3.0.8/ Mac OS 10.5.2 (containing the plugins compiled by ARMAGEDDON Slice posted here) attached.
3.0.8 is the latest for Mac OS 10.5.2/3/4.

As always, install with kext helper or ~pcwiz' Mac OSx86 Tools Utility.



Working USB at last on HP 5245ea, 10.5.4!!
:-)))))
Thanks!
Slice
QUOTE (Slice @ Jul 4 2008, 02:18 PM) *
Try v308 made by Dmdimon

It is new version of USBEHCI made by orByte's method but with Apple sources from Leo 10.5.2



QUOTE (BugsBunny @ Jul 6 2008, 04:17 AM) *
@ anthony_c: you find IOUSBFamily 3.0.8/ Mac OS 10.5.2 (containing the plugins compiled by ARMAGEDDON Slice posted here) attached.
3.0.8 is the latest for Mac OS 10.5.2/3/4.

As always, install with kext helper or ~pcwiz' Mac OSx86 Tools Utility.

You are wrong. It is not compiled by ARMAGEDDON. He is topic starter.
Idea by orByte.
Sources correction by me.
Compilation by Dmdimon.
Thanks for all.
Espionage724
Sorry if someone already mentioned this but:

1. Can I use it with 10.5.4
2. Is this absolutely necessary? Like will I get USB1.0/1.1 speeds only without this?

EDIT: I tried it just to try it and it works fine.
Slice
Differences between sources 308 and 314
New
CODE
    if (!_uimInitialized)
    {
        // set the reset bit, but only if we are not currently initialized

About PCCard
CODE
    if (_controllerAvailable && !_wakingFromHibernation && !_pcCardEjected && (GetRootHubStatus((IOUSBHubStatus *)&tempStatus) == kIOReturnSuccess))

About link and unlink
CODE
        
        // 3-4-08 rdar://5779996
        // it is possible that the unlink above has zerod out _AsyncHead, and the link code won't automatically set it back
        // so do that the same way we always do, at least until we solve rdar://5779967
        // this code is copied from a different place
        if (_AsyncHead)
        {

        // 5664375 - only need to do the following if the Async list is enabled in the CMD register
        if (CMD & kEHCICMDAsyncEnable)

About Power state
CODE
AppleUSBHub::setPowerState ( unsigned long powerStateOrdinal, IOService* whatDevice )
{
    // 5654850 - this used to be done in powerStateWillChangeTo. however, that was too early, so we moved it to HubPowerChange, which is the call
    // which gets made from the superclass when a setPowerState comes in.
    // however, the superclass implementation will short-circuit that call if we are being terminated, so now we do it just before
    // the superclass::setPowerState. this makes it work much better when a hub in low power mode gets disconnected

About deadcheck
CODE
    if ( thread_call_enter(_hubDeadCheckThread) == TRUE )
    {
        USBLog(3, "AppleUSBHub[%p]::CallCheckForDeadHub _hubDeadCheckThread already queued", this);
        DecrementOutstandingIO();
    }

About busy device
QUOTE
// before issuing a Synchronous terminate, we need to make sure that the device is not busy
while (cachedPortDevice->getBusyState() && retries--)
{
// wait up to 10 seconds for the device to get un-busy
USBLog(2, "AppleUSBHubPort[%p]::RemoveDevice - device(%p)[%s] busy - waiting 100ms (retries remaining: %d)", this, cachedPortDevice, cachedPortDevice->getName(), (int)retries);
IOSleep(100);
}
if (cachedPortDevice->getBusyState())
{
USBError(1, "AppleUSBHubPort: Port %d of Hub at %p about to terminate a busy device (%s) after waiting 10 seconds", _portNum, (void*)_hub->_locationID, cachedPortDevice->getName());
}

And so on.

It means latest kext is not final solution. The latest sources 314 are better.
They are not intended only for 10.5.3. They are simply more correct sources.
Slice
I make new version and open my own thread
USB 2.0 for Leopard
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.