Help - Search - Members - Calendar
Full Version: USB 2.0 for Leopard 10.5.7
InsanelyMac Forum > OSx86 Project > Hardware and Drivers > Other Peripheral Devices
Pages: 1, 2, 3, 4, 5, 6, 7, 8
Slice
First of all thank to orByte for the method to correct USBEHCI driver
http://forum.insanelymac.com/index.php?showtopic=28559
He is disappeared making only version 303 that is not enough.
I open new topic because I can't update orByte's topic with new version.

Previous my correction USB308 works!
Now sources 315.4.1 is available at Apple's site and I can easy rewrite it by orByte's method.
This is corrected sources and my compilation. All targets can be compiled except IOUSBFamily and IOUSBLib. Use stock similar.

EDITED 03.08.08
My kexts are not tested yet so be ready to return to version 308.

EDITED 21.11.08
I corrected EHCI and UHCI plugins for sleep support
Instructions how to install
QUOTE
Download attachements to desktop
Double click to unzip
Enter terminal
sudo -s
cp -r -v ~/Desktop/IOUSBFamily.kext /S*/L*/E*/
chown -R root:wheel
/S*/L*/E*/IOUSB*
rm -v /S*/L*/E*.mke*
diskutil repairpermissions /
reboot

That's all!

EDITED 19-09-2008
Apple publish 10.5.5 sources. IOUSBFamily is the same but IOUSBMassStorageClass is updated!
There is my compilation with small corrections.

EDITED 19-12-2008
New compilation from 10.5.6 sources. I change version to 3.2.8 to differ from Apple's kexts.
What new? I add support for Intel ICH4-5, 9 (ICH10 added by Apple), NForce (MCP79 by Apple, MCP78 and other by me), SIS7001.
Some internal mistakes corrected.
All files tested in 10.5.5 so it compatible with old systems (Leopard only!).
You also may try my IOPCIFamily.kext v254 to improve interrupts handling.
Click to view attachment
Click to view attachment
Click to view attachment
Click to view attachment


EDITED 18-05-2009
New compilation from 10.5.7 sources. Now version is 3.4.4. This version include all previous fixes, new DeviceIDs and forced sleep capabilities even if it is not really supported (as discussed with Hafnium).


EDITED 28-05-2009
Add support for ICH10R DeviceID=3a6x

EDITED 26-05-2009
If you see error at startup
QUOTE
AppleUSBEHCI[0x3849800]: unable to get filterInterruptEventSource

then it is not USB problem. It is a problem with interrupts in whole system.
If USB sometimes works, sometimes no then it is the same problem.
To solve it, download my new IOPCIFamily v2.6.1 (from my signature). It may correct such problems!

EDITED 01-06-2009
Add support for NForce DeviceID=36d
Compile new USBProbe
Click to view attachment
Click to view attachment
Click to view attachment

EDITED 15-08-2009
Version for 10.5.8 is here

Important
sudo rm -r -v /System/Library/Extensions/PCGenUSB*
sudo rm -r -v /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/PCGenUSB*
BugsB
thanks a lot, I will try them tonight and report back smile.gif
Slice
There is compilation from DMDIMON. (now he is dmdimoff)
There is a difference
dmdimoff
hi )
I recovered my 2-nd pass so i'm here
macoff
Thank Slice, works perfect in my Asus P5B with 10.5.4

MacOff
mhacleth
Hi Slice,
I tried your 315 but it's a no go for me.

Here's the error log:
CODE
2AppleUSBUHCI is not compatible with its superclass, 17IOUSBControllerV3 superclass changed?
Failed to load extension com.apple.driver.AppleUSBUHCI.
Couldn't alloc class "AppleUSBUHCI"AGP: not supported e238


The 308 loads fine. However, even though it could detect my USB devices (Kingston thumdrive / Memorex external HDD) in the System profiler, it doesn't mount or show up in the Desktop.


Here's what I did:
1. I unzipped your 315 file
2. I chown/chmod the files to 0:0 755
3. I deleted similar files found in /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/
4. I copied the files over to that directory
5. Deleted the following:
    /System/Library/Extensions.kextcache
    /System/Library/Extensions.mkext
    /System/Library/Caches/com.apple.kernelcaches
6. I rebooted
7. Entered -f -v as boot options

My Rig:
Kalyway 10.5.2
AMD 64 X2 4200
Asus M2V mobo
VIA8237A chipset
Slice
1. show your dmesg or system.log
2. what compilation did you try: my or dmdimoff?
3. did you replace IOUSBFamily.kext provided by dmdimoff?
4. did you try set in BIOS legacy USB support?
mhacleth
QUOTE (Slice @ Jul 24 2008, 06:49 AM) *
1. show your dmesg or system.log

It's up there in my post. That's what it shows when I used your 315 sources.

QUOTE
2. what compilation did you try: my or dmdimoff?

I used your USB315.kexts.zip

QUOTE
3. did you replace IOUSBFamily.kext provided by dmdimoff?

No. Am I supposed to do that? I'm using the default IOUSBFamily.kext from the Kalyway install disk. I just replaced the files in the PlugIns directory with the ones you have provided.

QUOTE
4. did you try set in BIOS legacy USB support?

Yes.

I think I will try number 3 above and see what happens. Thanks! angel.png
dmdimoff
I recommend use _or_ full slice compiled kexts _or_ my.
Just becoase I used xcode 3.1 against leo 1.5.4 libraries and slice cross-compiled under Tiger for leo.

PS. I cleaned some small glitches and give sources back to him.
mhacleth
QUOTE (dmdimoff @ Jul 24 2008, 09:42 PM) *
I recommend use _or_ full slice compiled kexts _or_ my.
Just becoase I used xcode 3.1 against leo 1.5.4 libraries and slice cross-compiled under Tiger for leo.

PS. I cleaned some small glitches and give sources back to him.


Okay.
  1. I deleted the IOUSBFamily.kext from my /System/Library/Extensions/
  2. I unzipped the file you provided. I copied the IOUSBFamily.kext from there into /System/Library/Extensions/
  3. I fixed permissions. Deleted caches.
  4. Reboot with -f -v as boot options

My devices were not detected. Here's the dmesg:
CODE
     michael-janapins-mac-pro:~ michaeljanapin$ sudo dmesg | grep -i USB
     Password:
     USBF:    0.658    Attempting to get EHCI Controller from BIOS
     USBF:    0.661    USBLEGCTLSTS value c0002000
     USBF:    0.665    EHCI - Ownership conflict - attempting soft reset ...
     USBF:    0.669    EHCI - toggle OS Ownership to 0
     USBF:    0.924    Found USBLEGSUP_ID - value 0x1000001 - writing OSOwned
     USBF:    0.928    acquireOSOwnership done - value 0x1000001


And from System Profiler:
CODE
     USB High-Speed Bus:
    
       Host Controller Location:    Expansion Slot
       Host Controller Driver:    AppleUSBEHCI
       PCI Device ID:    0x3104
       PCI Revision ID:    0x0086
       PCI Vendor ID:    0x1106
       Bus Number:    0x90
Slice
Looks like OK!
sg
i'm curious since i haven't seen anything, but what does this driver provide over the apple supplied ones in 10.5.4? whats different.
dgan
Hi! I'm going to test your drivers dmdimoff

I have a question about bios config... Do I have to set BIOS legacy USB support as enabled or disabled?

Do I need to set another configs on BIOS about USB?

Currently I have a strange problem. My pendrive is detected but all the time the os x alerts me with this message: "The disk you inserted was not readable by this computer". Os X recognizes pc formatted pendrives so that's the reasson I think the problem are the extensions.

Anyway, I'm going to test with this drivers and post the results when I have something.

Thanks!
dmdimoff
2 dgan - try legacy both ways. and honestly i don't believe that you have driver problems. Try format your pen drive from macos, see what'll happen

2 sg on some boards with quirky BIOSes macos can't get control over USB with vanilla drivers.
mhacleth
QUOTE (Slice @ Jul 25 2008, 07:55 AM) *
Looks like OK!


Not really. unsure.gif
I could not use my USB keyboard. (It's not detected)
Also, if I plug my devices (thumbdrive/external hard drive), they don't get detected at all.

So I restored my IOUSBFamily.kext from the Kalyway install disc and just used the Generic EHCI driver from orByte.
I have read somewhere that in order for my usb devices to be detected properly, I have to stick in it before booting/power on. It worked. I am now able to hotplug my usb devices.

I hoped that your driver would have done it, but thanks anyways. wink.gif

@dmdimoff

I noticed that in the zipped file you provided, there are tons of kext files in them.
Among them is "IOUSBFamily.kext"

Now my question is, do I copy all of these kext files into /System/Library/Extensions or just IOUSBFamily.kext?

I'm quite confused because I thought the kext files in your zipped file should be copied to /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/
dgan
Thanks dmdimoff, you're right! I was able to found another pendrive and it works perfect, even formatted as a windows (fat16) pendrive. So the problem is not the formatting, is my pendrive!

Still, should you recommend me to update my drivers with yours?
dmdimoff
2 mhacleth - there are 2 ways - you can copy all exept IOUSBFamily, logger kext and prober app to /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/
or take a look inside original IOUSBFamily and add additional plugin kexts from there into my IOUSBFamily - they are unmodified

2 dgan - if it works, don't touch it
mhacleth
@dmdimoff
I'll do that on Monday (Philippine Time). Thanks for all your hardwork! biggrin.gif
mhacleth
@dmdimoff

No go...

The kexts load successfully. My devices appears in the System Profiler.

BUT, they are not mounted. :-(

My USB keyboard is also not detected. sad.gif
dmdimoff
can you mount devices from disk utility? what filesystem on them? have you ever mounted them successfully under macos?
do you using simple keyboard or some model with usb hub/media control in it?
can you see keyboard in system profiler?
what happens when you unplug and than plug them in?

basically if you can correctly see device in system profiler its ok with drivers
mhacleth
Hi dmdimoff,

Yes, I think if System profiler sees them, they should be mounted, too. But that's what makes me wonder. They don't.

I can mount those devices no problem in my macbook, running leopard, too.

I can also mount those devices using the Generic USB EHCI driver from orbyte. So, this is a complete mystery to me.

My keyboard is just a simple A4Tech USB keyboard. It's not even detected at all even at System Profiler. So I revert to my PS/2 just to fix things up. Again, this keyboard works under the same driver above.

Anyways, thanks for all your help. It is very much appreciated.
Monofrio
hello,

I have been reading for some time now and have not been able to fix my USB issues. I would really like to get these things fixed before the year is over, LOL, would be nice!

So I have matching system kext so from the get go this is not the problem.

No legacy option is bios either.

I did finnally notice that if I plug my iphone and my usb mouse prior to booting it will mount but as soon as I unplug them they are no longer recognized if plugged back in.

Can you write up some guide on how to install these files because I am really lost once I have the files downloaded.

Thanks a bunch.
dmdimoff
ok after some testing it looks like you need only this:
Click to view attachment
to
get rid of "EHCI controller unable to take control from BIOS" error
make all USB ports running
and in some cases get restart/shutdown working

tnx cvad for cleaning situation
SlickNick_za
I experience the exact same thing, on both my laptop and my PC. I have tried all the kexts presented here and it is still a no go.

It is very strange, because when I boot up without any USB thumb drives or hard drives, it won't mount them in Leopard, though when I enter System Profiler I can see them there, and my USB Thumb Drive shows up with the make and model. Though when I boot up with my USB hard drive plugged in (the one which I use for Time Machine) and powered up, then I can plug in any USB storage device.

Though, USB keyboards aren't recognised, even after doing the wizard. My phone which I use to connect to the internet is not seen as connected, though Leopard saw it once, and I connected to the internet once, this was after leaving my phone plugged in for a while, and I was doing some installation, I think I was installing a kext, nothing to do with USB though, when it recognised it.

I would love to get this sorted out. It is the only problem I am having, other than that my PC is 100% compatible with Leopard.

My laptop is a Gigabyte W551N and my PC runs a GA-945GM-S2 motherboard.

- Edit

I'm running Leopard 10.5.4 from the iATKOS_v4 release.
HaloZero
I have the same problem as mhacleth above.

Running 10.5.2 on a Dell Dimension E510, drive appears in system profile, doesn't mount. All drives, USB keyboard/mouse work though fine. Just gotta reinstlal PCGen everytime to get it to work and mount, very strange.
Slice
QUOTE (HaloZero @ Aug 5 2008, 09:27 AM) *
I have the same problem as mhacleth above.

Running 10.5.2 on a Dell Dimension E510, drive appears in system profile, doesn't mount. All drives, USB keyboard/mouse work though fine. Just gotta reinstlal PCGen everytime to get it to work and mount, very strange.

Such strange behaviour may be related to IOPCIFamily.kext. Try new one.
Monofrio
QUOTE (dmdimoff @ Jul 31 2008, 03:29 AM) *
ok after some testing it looks like you need only this:
Click to view attachment
to
get rid of "EHCI controller unable to take control from BIOS" error
make all USB ports running
and in some cases get restart/shutdown working

tnx cvad for cleaning situation



Finally a true fix! This kext worked perfectly all USB's recognized and mount anything plugged in. Thank you very much, it has been a bumpy ride but now its smooth sailing from here.

Only thing I need now is to know what wireless card to buy so I can geet wireless working. Any suggestions would be great.

Also if some has a sleep fix for iatkos 2.0.

Thanks again!
justvisiting
Slice, et al,

Have you tried filing a bug report or sofware enhancement request?

I wonder what anyone's experience with this has been...
skinrock
So one should just have to copy the IOUSB ktext into their Extensions folder and it will work? What is the proper way to copy this folder, because the last time I tried, it said it wasn't installed right. I believe it had to do with permission issues.
Slice
QUOTE (justvisiting @ Aug 5 2008, 08:54 PM) *
Slice, et al,

Have you tried filing a bug report or sofware enhancement request?

I wonder what anyone's experience with this has been...

You means to inform Apple about the bug we corrected?
I think this is a difference between Mac and Hack so Apple doesn't need the enhancement.

QUOTE (skinrock @ Aug 6 2008, 07:43 AM) *
So one should just have to copy the IOUSB ktext into their Extensions folder and it will work? What is the proper way to copy this folder, because the last time I tried, it said it wasn't installed right. I believe it had to do with permission issues.

Yes, this is ordinary permission issue.
I write usually instructions to topic.
skinrock
Right, well I got it to work this morning. At least...work in the sense that I copied the new one over and my keyboard and mouse still works. My iPhone still doesn't show up, or start charging or anything.
kamikaze
Just to let you know, this driver fixes an issue I had where a 2GB USB flash drive was showing as a 1GB.

Thank you!
Advali
hi all!

i need some help here...

i installed the kext from this file USB3.15.4.1.zip from the previous page and now my usb devices can't be detected in system profiler... what should i do?

im using 10.5.1 amd
dmdimoff
use this http://forum.insanelymac.com/index.php?act...st&id=31945
Advali
ok thanks, now i have a new problem

3 kext files are not loading... so ihave to do this everytime

kextload -b com.apple.driver.AppleUSBComposite;
kextload -b com.apple.iokit.IOUSBHIDDriver;
kextload -b com.apple.iokit.IOUSBMassStorageClass

i already tried lingon and set it to startup automatically, but its not working...

i created a shell script to run after logging own

is there anyway to automatically load it at startup?

thanks in advance
Zheka009
Hi !

Wouldn't you help me with my problems. I have Asus F3Tc Notebook and my USB controllers are:

USB1 Controller: nVidia nForce 430 (MCP51) - OHCI USB 1.1
USB2 Controller: nVidia nForce 430 (MCP51) - EHCI USB 2.0

MotherBoard: Asus F3000T Series Notebook
Motherboard chipset: nVidia GeForce Go 6100, AMD Hammer

I have only my USB mouse working. Other devices (Flash Drives, iPhone) are not shown even in System profiler.
I tried all of your packages but still no luck.
yeager
I also need some help with this. I have a Dell D600 which I installed 10.5.2 from the Kalyway DVD and then upgraded to 10.5.3 because I want to do iPhone app development. Ever since installing i've had two issues. One is that connecting either my Sandisk 4GB pen drive to the USB port crashes the machine, as does my Freecom 60GB external hard disk. Sometimes if I have these attached before I power on, I can access them! I've tried switching the USB Legacy support in the BIOS and it only seems to disable the ability to boot and detect devices when it's switched on.

I tried the instructions in your first post, downloaded and copied the 315 files to the Extensions folder and rebooted. Everytime I connect anything via USB the system crashes.

My system.log shows.
CODE
yeagers-mac-pro:PlugIns yeager$ sudo dmesg | grep -i USB
Password:
USBF: 0.900 Attempting to get EHCI Controller from BIOS
USBF: 0.900 USBLEGCTLSTS value c0000000
USBF: 0.900 EHCI - Ownership conflict - attempting soft reset ...
USBF: 0.900 EHCI - toggle OS Ownership to 0
USBF: 1.423 Found USBLEGSUP_ID - value 0x1000001 - writing OSOwned
USBF: 1.423 acquireOSOwnership done - value 0x1000001
Debug driver registered: AppleUSBUHCI
Debug driver registered: AppleUSBUHCI
Debug driver registered: AppleUSBUHCI

System Profiler has 3 USB Bus devices
CODE

Host Controller Location: Expansion Slot
Host Controller Driver: AppleUSBUHCI
PCI Device ID: 0x24c2
PCI Revision ID: 0x0001
PCI Vendor ID: 0x8086
Bus Number: 0x1d

and one USB High-Speed Bus
CODE

Host Controller Location: Expansion Slot
Host Controller Driver: AppleUSBEHCI
PCI Device ID: 0x24cd
PCI Revision ID: 0x0001
PCI Vendor ID: 0x8086
Bus Number: 0xfd


Any ideas on why the system crashes as soon as a USB device is attached or how I might be able to debug this further?

I actually just added a USB mouse and that is recognized in the System Profiler as being connected, yet the mouse doesn't actually work sad.gif I tried two mice that I know do work, and the same results... however, the system didn't crash like it does when I attach a USB storage device. Doing to try switching over the legacy USB options...

Rebooted with the USB Legacy support disabled. Now the mouse worked (because I had it connected at boot time) and plugging in my USB Key doesn't crash the machine, but it doesn't get mounted either. Looking at the System Profiler and it shows a "U3 Cruzer Micro" as being connected...

Amazing... rebooted and now it all works, detects two USB keys as well as my external drive. What on earth that was all about I do not know!
yeager
Final comment on this... If my USB mouse and USB thumb drive are connected at boot time, then I can remove the thumb drive and connect the external IDE drive. Yet if nothing is connected at boot time, the system crashes when I connect either the mouse or USB storage devices...

So it's not perfect, I can live with making sure these things are connected during boot, but something is definitely not working correctly. I'm will to provide access/diagnostics if you want to continue troubleshooting.
fcollingwood
QUOTE (HaloZero @ Aug 5 2008, 05:27 PM) *
I have the same problem as mhacleth above.

Running 10.5.2 on a Dell Dimension E510, drive appears in system profile, doesn't mount. All drives, USB keyboard/mouse work though fine. Just gotta reinstlal PCGen everytime to get it to work and mount, very strange.


This is usually a mismatch between the kernel version and the system kext version. Also, you probably don't need PCGen.

Read this thread, there is also a link to a package that can help fix your problem: http://forum.insanelymac.com/index.php?showtopic=95789
Signal64
I installed the dmdimoff version on a 10.5.4 install done from a retail dvd (via boot-132).
With certain USB 2.0 hard disk enclosures pluged in, when you shutdown the machine would lock up.

This package solved it. smile.gif

Is the plugins directory from dmdimoff's IOUSBFamily all that is needed?
Haziz
hi guys, i've done the instructions in the first post. in the system preferences, i can see both ipod and printer (hp psc 1310), but leopard doesn't mount them. think i don't overwrite the IOUSBFamily.kext, but i'm new in the osx86 (since yesterday) and don't know how to do it.

anyone with some patience to help me? not mount my ipod sucks and i don't wanna go back to Win... i'm loving the leopard.

p.s. if helps, my leopard version is 10.5.4 iATKOS 4i with everything working.


my pc:
intel desktop perl d865
p4 prescott 2,4ghz
mouse and key PS2
geforce fx5200
realtek 8139
Haziz
solved with usb fix 1.3
now enjoying 100%

thanks.
aNeGaTiVe10
hey guys every time i put in "rm -v /S*/L*/E*.ke*" in terminal it says no such file found something like that when i plug in my ipod seems to work but any other mass storage device doesn't. it picks up my ipod with a 1.1 usb bus any help?
Kramark
QUOTE (Haziz @ Sep 1 2008, 08:35 AM) *
solved with usb fix 1.3
now enjoying 100%

thanks.

hi mate how did you solved using this?? what kernel are you using 9.2.0?? because i'm using a kernel 9.4.0 but i didn't try this one..
RTMG
QUOTE
Download IOUSBFamily.kext.zip to desktop
Double click to unzip
Enter terminal
sudo -s
mkdir ~/Desktop/Off
mv -v /S*/L*/E*/IOUSBF* ~/Desktop/Off
cp -r -v ~/Desktop/IOUSBF* /S*/L*/E*/
rm -v /S*/L*/E*.ke*
rm -v /S*/L*/E*.mke*
diskutil repairpermissions /
reboot


Does OSx86Tools do this if u use it to install ? Or say Kexthelper ?

I`m thinking it does, but not 100%. All we`re doing here is copying the files and repairing permissions aren`t we ?

(just asking)
tomehb
I tried this with 10.5.4, and got a kernel panic on reboot.. sad.gif
pm2
Hi all,

could anyone explain me how to install the IOUSBFamily.kext that I downloaded?

I'm using 10.5.3 on VMWARE WS 6.5, and I have the usb devices under System Profile, but nothing mounts.

Thanks for helping

PM
pm2
QUOTE (pm2 @ Sep 9 2008, 01:57 PM) *
Hi all,

could anyone explain me how to install the IOUSBFamily.kext that I downloaded?

I'm using 10.5.3 on VMWARE WS 6.5, and I have the usb devices under System Profile, but nothing mounts.

Thanks for helping

PM


I found in the System/Library/Extensions the two following dir:
IOUSBFamily.kext and the IOUSBFamily.kext.orig (I use the Jas 1.5.3).

I backuped the IOUSBFamily.kext

I did sudo rm -rf /System/Library/Extensions/IOUSBFamily.kext
I then replaced it with the one found in this forum (place on the desktop):
mv /Users/pm/desktop /System/Library/Extensions/

I rebooted after some reboots (5/6) I did come back in the OS. But I had a pop-up saying that the Extension was not installed properly.

I did then come back with the backuped kext. (at that time, even if I had the pop up, the USB mouse was working)

and then I rebooted.

Now, I still have the pop up, and the mouse is not working any more. so it make it impossible doing something in the OS.

Can somebody help me to come back to a working version? I guess I will need to do something in shell mode when booting?

Really thanks if somebody can help me. I cannot do nothing more with my OSX.

PM
pm2
QUOTE (pm2 @ Sep 9 2008, 03:37 PM) *
I found in the System/Library/Extensions the two following dir:
IOUSBFamily.kext and the IOUSBFamily.kext.orig (I use the Jas 1.5.3).

I backuped the IOUSBFamily.kext

I did sudo rm -rf /System/Library/Extensions/IOUSBFamily.kext
I then replaced it with the one found in this forum (place on the desktop):
mv /Users/pm/desktop /System/Library/Extensions/

I rebooted after some reboots (5/6) I did come back in the OS. But I had a pop-up saying that the Extension was not installed properly.

I did then come back with the backuped kext. (at that time, even if I had the pop up, the USB mouse was working)

and then I rebooted.

Now, I still have the pop up, and the mouse is not working any more. so it make it impossible doing something in the OS.

Can somebody help me to come back to a working version? I guess I will need to do something in shell mode when booting?

Really thanks if somebody can help me. I cannot do nothing more with my OSX.

PM


I'm Now able to boot (using -f -v).

It seems that the USB pb is due to vmware.

any idea from anyone of you?
derekreid
Fantastic work, USB now works like a charm.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.