Jump to content

Generic USB2.0 (EHCI) Driver


orByte
 Share

474 posts in this topic

Recommended Posts

Ok this is what i have, http://h10025.www1.hp.com/ewfrf/wc/documen...8758&dlc=en

 

i have installed 2 versions of 10.4.6 jas and MAC_OS_X_10_4_8_Intel_Only_Jas_re_seed_(SSE3_Only_NO_AMD)-++Demonoid.com++

 

ok ive isntalled jas 9x and never has my usb worked, sse3 only 3x no usb, ive have tried the apple usb family without the log, no dice on both everytime.. ive tried to use your method i copied and pasted every command, reboot no dice.. usb2 and 1 nothing ,

 

i always have that error,

USBF: 16.991 EHCI controller unable to take control from BIOS

USBF: 16.991 AppleUSBEHCI[0x2c56000]: unable to obtain ownership: 0xe00002be

USBF: 16.991 AppleUSBEHCI[0x2c56000]::UIMInitialize - Error occurred (0xe00002be)

USBF: 16.993 AppleUSBEHCI[0x2c56000]: UIMFinalize 0 0 0x2c98700

USBF: 16.993 AppleUSBEHCI: unable to initialize UIM

 

(ok i copied this from a previous post the #s may be different but the actions are the same..

 

What the hell do i have to do to get USB to work? im running vista on my other partiotion so i dont have macdrive on it. so i can open logs or antyhing, and since usb doenst work, i can save anything to external.. how am i suppoed to post my boot logs??? HELPPPPPPP

 

 

 

thanks a million, jamie

Link to comment
Share on other sites

Maybe you have to change "Legacy USB Support" option in BIOS...

thats another thing i dont have many options in my bios, pretty much just boot, date time, hd check, there is one thing that says something about sata and when you highlight it is says something about legacy but nothing about USB.. I did just update my bios.. this is really bugging me.. soo annoying i just want my mouse and hd to work!

Link to comment
Share on other sites

Tested the USB 2.0 hub with it's own power supply. It worked!!! orByte, Andrei thank you all very much!!! Tomorrow i'll buy this hub. The last thing is to make work UDMA properly and everything will be fine! Thanks! :)

 

:D Glad to hear that!

 

 

thats another thing i dont have many options in my bios, pretty much just boot, date time, hd check, there is one thing that says something about sata and when you highlight it is says something about legacy but nothing about USB.. I did just update my bios.. this is really bugging me.. soo annoying i just want my mouse and hd to work!

 

Hi the Generic driver will NOT work with 10.4.8. Try Jas 10.4.6 + PCGenUSB from a cold start - with a laptop, this means taking out the battery, unplugging, then after >10 seconds starting up. Do you have USB 1.1 working with the cold start? If possible post your own logs. If you have a dos partition available, you could save them there as text files.

 

:( On other news, I have started up on the 10.4.8 version but it is yet too early for a prognosis.

 

Best.

Link to comment
Share on other sites

Hi orByte, Im trying your driver with jas 4.6, 4.7, 4.8. And I get this lines at boot (I got this already before trying your generic driver).

 

23 05:43:09 localhost kernel[0]: USBF: 69.187 AppleUSBEHCI[0x2618800]::UIMInitialize - unable to get device memory

Nov 23 05:43:09 localhost kernel[0]: USBF: 69.190 AppleUSBEHCI[0x2618800]::UIMInitialize - Error occurred (0xe00002be)

Nov 23 05:43:09 localhost kernel[0]: USBF: 69.194 AppleUSBEHCI: unable to initialize UIM

 

(very similar to the lines from meatwagon above)

 

Im using a Toshiba A60. The Dev ID must be 1002,4345 for the USB 2.0 port and 1002,4347/4348 ports for the USB 1. There's no many USB settings posibilities from my computer's BIOS.

Do you think there's a walkaround for this?

BTW the USB 1 ports are working and shown in the system profile window (working with the OHIC driver)

 

Tanks for your good work.

 

EDIT: I'll try what you posted just above. If I use the 10.4.6, showld I install the 4.7 USB driver update?

Link to comment
Share on other sites

...

23 05:43:09 localhost kernel[0]: USBF: 69.187 AppleUSBEHCI[0x2618800]::UIMInitialize - unable to get device memory

Nov 23 05:43:09 localhost kernel[0]: USBF: 69.190 AppleUSBEHCI[0x2618800]::UIMInitialize - Error occurred (0xe00002be)

Nov 23 05:43:09 localhost kernel[0]: USBF: 69.194 AppleUSBEHCI: unable to initialize UIM

...

EDIT: I'll try what you posted just above. If I use the 10.4.6, showld I install the 4.7 USB driver update?

 

Generally speaking,

UIMInitialize - unable to get device memory

is bad news. Is this under 10.4.8? To use PCGen under 10.4.6 proceed as follows:

 

1. install JaS 10.4.6 as usual, e.g. from disk, or if you have a back up disk image handy then via

sudo asr restore --source <back-up-disk-image.dmg> --target <dest-drive> [--erase]

1a. If you do not have a backup image, you might want to make one from a clean working 10.4.6 installation. From the disk utility do File>New Image>From Disk (roughly speaking), and then make sure to do 'Scan For Restore'.

 

2. Now you do something like

cp -R /System/Library/Extensions/AppleUSBFamily/Contents/Plugins/AppleUSBEHCI.kext	 <to-back-up-dest>
rm -R /System/Library/Extensions/AppleUSBFamily/Contents/Plugins/AppleUSBEHCI.kext 

then cp -R <PCGEN.kext>	  /System/Library/Extensions

 

Pls. double check paths as I m presently typing this from memory. In short, you do NOT install the 10.4.7 USB Family but only replace AppleUSBEHCI in the current USB Family.

 

Make sure to re-set permissions too.

 

Best

Link to comment
Share on other sites

10.4.8 testing

 

Hi all, I now have a working 10.4.8 using TubGirl's v2 (AMD) setup. As installed, I can run AppleUSBFamily 256.4 (without AppleUSBEHCI) instead with PCGenUSBEHCI just fine.

 

However, this setup DOES NOT use any 10.4.8 kexts. I have had some inquiries on building a 10.4.8 driver from users who have been having difficulty with 256.4 & PCGen under 10.4.8. Could some people in this category please post

kextstat, and uname -psrv, and cat /System/Library/CoreServices/SystemVersion.plist

output. You could be on intel or AMD. But esp. intel would be very useful. This will help me to match up the kexts as closely as possible before I build a 10.4.8 driver, and will likely increase the chance of building a 10.4.8 PCGenUSBEHCI module that will run on as wide a base as possible. As AMD installations are widely version hybridised compared to intel boxes, that info would be of great help.

 

 

Many thanks in advance!!

Best

Link to comment
Share on other sites

Thanks for your replay.

I tryed what you said in the post #57 but I couldnt get it to work. I still get the same lines at boot, no matter the OS version I use...

I guess it might be a limitation from within the BIOS....

Thanks again anyway.

Link to comment
Share on other sites

Thanks for your replay.

I tryed what you said in the post #57 but I couldnt get it to work. I still get the same lines at boot, no matter the OS version I use...

I guess it might be a limitation from within the BIOS....

Thanks again anyway.

 

I just realized that this is an ATI chipset - most likely the source of the problems - could be a register implementation issue. It turns out that support for the SB 200 was late in coming even under Linux (late 2005) I shall have a look at the Linux side to see if a simple patch implementation would be possible.

 

Best

:huh:

Link to comment
Share on other sites

Hi !

When the system tries to load your kext, I get this:

 

Nov 29 14:13:23 localhost kernel[0]: kld(): Undefined symbols:

Nov 29 14:13:23 localhost kernel[0]: __ZN24IOBufferMemoryDescriptor17getVirtualSegmentEmPm

Nov 29 14:13:23 localhost kernel[0]: kld_load_from_memory() failed for module com.orByte.driver.PCGenUSBEHCI

Nov 29 14:13:23 localhost kernel[0]: ^[[33mFailed to load extension com.orByte.driver.PCGenUSBEHCI.

Nov 29 14:13:23 localhost kernel[0]: ^[[0mCouldn't alloc class "AppleUSBEHCI"

 

I obiously did something wrong, but what ?

 

I am running the following system:

dv8000t with core duo

Jas 10.4.7 combo-upgraded to 10.4.8, with paulicat's AppleSMBIOS and special IOATAFamily. Removed IOPCCardFamily because it crashed upon loading. Kernel is semthex Beta8.

Link to comment
Share on other sites

Hi !

When the system tries to load your kext, I get this:

 

Nov 29 14:13:23 localhost kernel[0]: kld(): Undefined symbols:

Nov 29 14:13:23 localhost kernel[0]: __ZN24IOBufferMemoryDescriptor17getVirtualSegmentEmPm

Nov 29 14:13:23 localhost kernel[0]: kld_load_from_memory() failed for module com.orByte.driver.PCGenUSBEHCI

Nov 29 14:13:23 localhost kernel[0]: ^[[33mFailed to load extension com.orByte.driver.PCGenUSBEHCI.

Nov 29 14:13:23 localhost kernel[0]: ^[[0mCouldn't alloc class "AppleUSBEHCI"

 

I obiously did something wrong, but what ?

 

I am running the following system:

dv8000t with core duo

Jas 10.4.7 combo-upgraded to 10.4.8, with paulicat's AppleSMBIOS and special IOATAFamily. Removed IOPCCardFamily because it crashed upon loading. Kernel is semthex Beta8.

 

 

Hi,

 

This problem originates because the kext was compiled against the 8.4.1 kernel and compatible libraries. A lot of people have been upgrading to the semthex 10.4.8, and I will configure a semthex 10.4.8 system and recompile there. That should make the kext available for systems running the semthex kernel! If you have a moment though, could you plz post or send me

kextstat, and uname -psrv, and cat /System/Library/CoreServices/SystemVersion.plist

 

Many thanks in advance.

Best

Link to comment
Share on other sites

I just realized that this is an ATI chipset - most likely the source of the problems - could be a register implementation issue. It turns out that support for the SB 200 was late in coming even under Linux (late 2005) I shall have a look at the Linux side to see if a simple patch implementation would be possible.

 

Best

:P

 

 

 

Hi.

I just run a new version of SiSoft Sandra and it identified my chipset as R200 AGP bridge (id CAB3) & RS200 PCI bridge (id 7010)...

Thanks man. You're doing great job here.

 

cheers

Link to comment
Share on other sites

:pirate2: GOOD NEWS! :pirate2:

 

A happy holiday season to all! And, in anticipation of the holidays, the Darwin Kernel 8.8.1 version of PCGenUSBEHCI has now been released. The download link is at the ** INFO BAR ** on the top of the 1st page of this thread. Click here .

 

The README.1st file is below. Enjoy!

Best

 

---------------------------------------------------

 

PCGenUSBEHCI v. 2.6.1, 8/12/06

---------------------------------------------------------

 

RELEASED UNDER APSL 2.0.

READ THE ENCLOSED LICENSE. BY USING THIS SOFTWARE, YOU ARE AGREEING TO THE TERMS OF APSL 2.0. IF YOU DO NOT AGREE WITH THOSE TERMS THEN DO NOT USE THIS SOFWARE.

 

 

- Modified By: orByte

- Scope: PCGenUSBEHCI.kext replaces AppleUSBEHCI.kext

- Requires: x86 based platform, Darwin 10.4.8, Intel IOUSBFamily.kext version 261.4.2

 

which is obtainable from developer.apple.com in binary form, or from the Darwin Source tree in source form.

 

THIS VERSION ONLY FOR KERNEL 8.8.1

 

 

New! CREDITS

---------------------------------------------------------

 

- Thanks to Black Knight for noting a fatal flaw in the original install instructions. (Fixed)

- Thanks to McDull and mac fly for providing sample system configuration data.

 

 

 

NOTES

---------------------------------------------------------

 

* Fixes on x86 based systems: 'EHCI controller unable to take control from BIOS' on restart/reset of system.

 

 

KNOWN ISSUES

---------------------------------------------------------

 

* Reported not to work with ATI SB200 USB Chipset. (Under Investigation)

 

* If you reboot while you have a USB2.0 disk attached which has a corrupt MBR, the system might hang.

Likely to occur when rebooting from Hiren's Boot CD after MBR operations.

Resolution: Disconnect the USB2.0 drive and try again.

 

 

UNRESOLVED ISSUES

---------------------------------------------------------

 

* D3Cold/Hot Power Management, Severity: Low; Priority: Low

* USB EHCI Clock Registration, Severity: Low; Priority: Low

Link to comment
Share on other sites

:DGOOD NEWS! :dance_24:

 

A happy holiday season to all! And, in anticipation of the holidays, the Darwin Kernel 8.8.1 version of PCGenUSBEHCI has now been released. The download link is at the ** INFO BAR ** on the top of the 1st page of this thread. Click here .

Hello,

the link for PCGenUSBEHCI-261.4.2.zip in the first page doesn't work.

Could you give us a new link for it ?

Thank you

Link to comment
Share on other sites

Hello,

the link for PCGenUSBEHCI-261.4.2.zip in the first page doesn't work.

Could you give us a new link for it ?

Thank you

 

Hi,

 

I tested the link and it seems to be working fine. You may need to type in a verification code at the top right, and then wait for a while before the download. If you are continuing to have difficulties, pls. post the exact error message. If all else fails, you can also try downloading through public proxy such as these. But it should not be needed.

 

Edit: Come to think of it... there is another possibility as well: If there is high download volume, then there could be a delay/throttling going on from the provider side, as I am using the 'free' variety of the service. :-)

 

Best

Link to comment
Share on other sites

Orbyte..

 

I have kernel 8.4.1 and applied patches in order adviced.. IOUSB from Apple.. 246.4.0.. which didn't work..and then PCGen .. and also didn't work.. I get:

 

USBF: 189.898 Attempting to get EHCI Controller from BIOS

USBF: 189.898 EHCI - Ownership conflict - attempting to resolve ...

USBF: 189.898 EHCI - Try resetting OS Ownership to 0

USBF: 190.149 EHCI controller unable to take control from BIOS

USBF: 190.149 AppleUSBEHCI[0x21da800]: unable to obtain ownership: 0xe00002be

USBF: 190.149 AppleUSBEHCI[0x21da800]::UIMInitialize - Error occurred (0xe00002be)

USBF: 190.151 AppleUSBEHCI: unable to initialize UIM

 

I have no options in bios to disable or enable.. this is a HP Pavilion dv8323ea.. and I will try a bios update soon.. (Iwill have to backup everything first!).. but i wanted to ask you.. could it be that we need to add the vendor ID or device ID somewhere in the PCGenUSBEHCI Info.plist ? For instance, if i look at dxdiag got in windows XP I see something like:

 

-----------

USB Devices

-----------

+ Hub principale USB

| Vendor/Product ID: 0x8086, 0x27C8

| Matching Device ID: usb\root_hub

| Service: usbhub

| Driver: usbhub.sys, 8/3/2004 23:08:44, 57600 bytes

| Driver: usbd.sys, 8/19/2004 12:00:00, 4736 bytes

 

or something like this:

 

Name: Intel® 82801G (ICH7 Family) USB2 Enhanced Host Controller - 27CC

Device ID: PCI\VEN_8086&DEV_27CC&SUBSYS_30A5103C&REV_01\3&B1BFB68&0&EF

Driver: C:\WINDOWS\system32\drivers\usbehci.sys, 5.01.2600.2180 (English), 8/3/2004 23:08:38, 26624 bytes

Driver: C:\WINDOWS\system32\drivers\usbport.sys, 5.01.2600.2180 (English), 8/3/2004 23:08:44, 142976 bytes

Driver: C:\WINDOWS\system32\usbui.dll, 5.01.2600.2180 (Italian), 8/19/2004 15:39:30, 76800 bytes

Driver: C:\WINDOWS\system32\drivers\usbhub.sys, 5.01.2600.2180 (English), 8/3/2004 23:08:44, 57600 bytes

Driver: C:\WINDOWS\system32\hccoin.dll, 5.01.2600.2180 (English), 8/19/2004 12:00:00, 7168 bytes

 

 

I solved the ethernet and sound card not being recognised by adding those kind of hexadecimal IDs to the appropriate kext files.. could it be the same here? I just can't identify in PCGen kext the right strings to deal with these kind of values..

Mestam

Link to comment
Share on other sites

Hi,

 

I tested the link and it seems to be working fine. You may need to type in a verification code at the top right, and then wait for a while before the download. If you are continuing to have difficulties, pls. post the exact error message. If all else fails, you can also try downloading through public proxy such as these. But it should not be needed.

 

Edit: Come to think of it... there is another possibility as well: If there is high download volume, then there could be a delay/throttling going on from the provider side, as I am using the 'free' variety of the service. :-)

 

Best

Hello,

I tried again but I received always the same error: "all the slots for your country are full. Please try later or install the Megaupload toolbar"...

I searched in Google and I found a lot of discussion about this problem... it seems that Megaupload in some countries doesn't work without their toolbar (I tried later and later but every time I received the same message).

Could you upload the file on a different website ?

Thank you

Bye

Link to comment
Share on other sites

OrByte,

 

Great work btw. Followed your instructions, it's not working.

I have a DFI LANPARTY UT. OHCI works but not high speed.

 

uname -a

Darwin joe-lones-computer.local 8.8.1 Darwin Kernel Version 8.8.1: Mon Nov 27 18:58:11 AZOT 2006; semthex:/nebukadnezar/BUILD/obj/RELEASE_I386 i386 i386

 

kextstat | grep -i usb

 34	8 0x3beb4000 0x1a000	0x19000	com.apple.iokit.IOUSBFamily (2.6.1) <6 5 4 3>
  35	0 0x3bf07000 0xc000	 0xb000	 com.apple.driver.AppleUSBOHCI (2.6.0) <34 16 5 4 3>
  36	0 0x3c2b4000 0x12000	0x11000	com.orByte.driver.PCGenUSBEHCI (2.6.1) <34 16 5 4 3>
  49	0 0x44a76000 0x9000	 0x8000	 com.apple.driver.AppleUSBHub (2.6.0) <34 11>
  50	0 0x44c89000 0x3000	 0x2000	 com.apple.driver.AppleUSBComposite (2.6.1) <34 11>
  64	0 0x450cc000 0x9000	 0x8000	 com.apple.iokit.IOUSBUserClient (2.6.0) <34 11>
  65	0 0x450d5000 0x4000	 0x3000	 com.parallels.kext.ConnectUSB (2.5.0) <34 11 6 5 4 3>
  79	0 0x5722a000 0x5000	 0x4000	 com.apple.iokit.IOUSBHIDDriver (2.6.0) <34 20 11>

 

dmesg | grep -i usb

USBF:   37.239  AppleUSBEHCI[0x44df000]::UIMInitialize - Error occurred (0xe00002be)
USBF:   37.242  AppleUSBEHCI: unable to initialize UIM
USBF:   41.943  AppleUSBOHCI[0x43df000]::start OHCI controller will be unloaded across sleep
USB0: family specific matching fails
USB2: family specific matching fails
USB0: family specific matching fails
USB2: family specific matching fails

Did notice this is the system.log

cat /var/log/system.log | grep -i ehci

Dec 10 11:30:52 joe-lones-computer kernel[0]: Class "AppleEHCIedMemoryBlock" is duplicate

 

maybe i did something wrong, removed AppleUSBEHCI.kext.

any suggestions, thanks

Link to comment
Share on other sites

Hello,

I tried again but I received always the same error: "all the slots for your country are full. Please try later or install the Megaupload toolbar"...

I searched in Google and I found a lot of discussion about this problem... it seems that Megaupload in some countries doesn't work without their toolbar (I tried later and later but every time I received the same message).

Could you upload the file on a different website ?

Thank you

Bye

 

Hi mspr,

 

Apparently megaupload is not that great... I have now moved the files to sendspace and updated the links. Sorry for the inconvenience. Eventually I ll have a permanent location for all my files but it is still in design stages. Any more problems, let me know.

 

Best.

Link to comment
Share on other sites

OrByte,

 

Great work btw. Followed your instructions, it's not working.

I have a DFI LANPARTY UT. OHCI works but not high speed.

 

kextstat | grep -i usb

   65	0 0x450d5000 0x4000	 0x3000	 com.parallels.kext.ConnectUSB (2.5.0) <34 11 6 5 4 3>

 

dmesg | grep -i usb

USB0: family specific matching fails
USB2: family specific matching fails
USB0: family specific matching fails
USB2: family specific matching fails

Did notice this is the system.log

cat /var/log/system.log | grep -i ehci

Dec 10 11:30:52 joe-lones-computer kernel[0]: Class "AppleEHCIedMemoryBlock" is duplicate

 

maybe i did something wrong, removed AppleUSBEHCI.kext.

any suggestions, thanks

 

Hi joelones,

 

I am suspecting a conflict between PCGen and the Parallels USB module. It looks like you are getting two EHCI (hi speed USB) devices competing for the same driver slot (nib or nub... or hub). It could be a problem with the DFI-LANPARTY as well - what's the chipset?. See what happens when you disable the parallels USB module and then 'touch /System/Library/Extensions' and reboot. If that does not do it pls. send me a copy of:

ioreg -w0 -bl

 

Best

Link to comment
Share on other sites

Hi mspr,

 

Apparently megaupload is not that great... I have now moved the files to sendspace and updated the links. Sorry for the inconvenience. Eventually I ll have a permanent location for all my files but it is still in design stages. Any more problems, let me know.

 

Best.

Thank you very much...

It works fine...

As soon as possible I will try to install it

Link to comment
Share on other sites

 Share

×
×
  • Create New...