Jump to content

Patched AppleUSBXHCI from OS 10.8.2


Zenith432
 Share

146 posts in this topic

Recommended Posts

Hello and thanks for this kexts, I have a question.

 

I have a n5110 with 10.8.4, and with the last update kexts work ok, but if I have a usb plugged in usb3 port, i got kernel panic on boot, but if I unplug the usb, boot ok. 

 

 

Sorry for my bad english.

 

Can anyone help me???

 

Thanks a lot!

Link to comment
Share on other sites

  • 1 month later...

Updated to 10.8.5:

 

"Intel & Fresco Logic USB3.0 controllers check" code had been changed after 10.8.5. So I changed the patch to this one:

0000000000010192 jne 0x101ce
75 3a
--->
0000000000010192 jmp 0x101ce
EB 3a

But there are more than one "753a", so we have to replace "753a488b05ed9e0000" with "eb3a488b05ed9e0000" instead.

Other patches are still same as previous Mountain Lion's versions which you can see in this post.

10.8.5_Patched AppleUSBXHCI.kext.zip

 

PS. After updating to 10.8.5, some USB3.0 device errors disappeared in Console app.

Link to comment
Share on other sites

Updated to 10.8.5:

 

"Intel & Fresco Logic USB3.0 controllers check" code had been changed after 10.8.5. So I changed the patch to this one:

0000000000010192 jne 0x101ce
75 3a
--->
0000000000010192 jmp 0x101ce
EB 3a

But there are more than one "753a", so we have to replace "753a488b05ed9e0000" with "eb3a488b05ed9e0000" instead.

Other patches are still same as previous Mountain Lion's versions which you can see in this post.

attachicon.gif10.8.5_Patched AppleUSBXHCI.kext.zip

 

PS. After updating to 10.8.5, some USB3.0 device errors disappeared in Console app.

Wow. You rock the world!

  • Like 1
Link to comment
Share on other sites

It's just perfect, thx shiecldk

 

Clover patch for 10.8.5 :

 

 

<key>KextsToPatch</key>
		<array>
			<dict>
				<key>Comment</key>
				<string>Enable USB3</string>
				<key>Find</key>
				<data>
				dSZIi7voAQAA
				</data>
				<key>Name</key>
				<string>AppleUSBXHCI</string>
				<key>Replace</key>
				<data>
				6yZIi7voAQAA
				</data>
			</dict>
			<dict>
				<key>Comment</key>
				<string>Enable USB3</string>
				<key>Find</key>
				<data>
				dTpIiwXtngAA
				</data>
				<key>Name</key>
				<string>AppleUSBXHCI</string>
				<key>Replace</key>
				<data>
				6zpIiwXtngAA
				</data>
			</dict>
			<dict>
				<key>Comment</key>
				<string>Enable USB3</string>
				<key>Find</key>
				<data>
				Zj0AAQ==
				</data>
				<key>Name</key>
				<string>AppleUSBXHCI</string>
				<key>Replace</key>
				<data>
				Zj0AAA==
				</data>
			</dict>
			<dict>
				<key>Comment</key>
				<string>Enable USB3</string>
				<key>Find</key>
				<data>
				gUkIAABAAA==
				</data>
				<key>Name</key>
				<string>AppleUSBXHCI</string>
				<key>Replace</key>
				<data>
				gUkIAAAAAA==
				</data>
			</dict>
			<dict>
				<key>Comment</key>
				<string>Enable USB3</string>
				<key>Find</key>
				<data>
				QcdEJAgAAEAA
				</data>
				<key>Name</key>
				<string>AppleUSBXHCI</string>
				<key>Replace</key>
				<data>
				QcdEJAgAAAAA
				</data>
			</dict>
			<dict>
				<key>Comment</key>
				<string>Enable USB3</string>
				<key>Find</key>
				<data>
				QcdGCAAAQAA=
				</data>
				<key>Name</key>
				<string>AppleUSBXHCI</string>
				<key>Replace</key>
				<data>
				QcdGCAAAAAA=
				</data>
			</dict>
			<dict>
				<key>Comment</key>
				<string>Enable USB3</string>
				<key>Find</key>
				<data>
				xoDIAAAAAQ==
				</data>
				<key>Name</key>
				<string>AppleUSBXHCI</string>
				<key>Replace</key>
				<data>
				xoDIAAAAAA==
				</data>
			</dict>
			<dict>
				<key>Comment</key>
				<string>Enable USB3</string>
				<key>Find</key>
				<data>
				dSZIi7voAQAA
				</data>
				<key>Name</key>
				<string>AppleUSBXHCI</string>
				<key>Replace</key>
				<data>
				6yZIi7voAQAA
				</data>
			</dict>
		</array>

 

 

 

  • Like 1
Link to comment
Share on other sites

  • 3 weeks later...

Update to 10.9 GM:

 

Disable Intel & Fresco Logic USB3.0 controllers check:

0000000000010342 jne 0x1037e
75 3A 75 3A 48 8B 05 3D 9D 00 00
-->
0000000000010342 jmp 0x1037e
EB 3A 48 8B 05 3D 9D 00 00

This one is actually 75 3A--->EB 3A, but there are more than one 75 3A in the binary.

 

Disable XHCI 1.0 check:

0000000000010429 cmpw $0x100, %ax
66 3D 00 01
-->
0000000000010429 cmpw $0x000, %ax
66 3D 00 00

Patch MSI or pin interrupts:

000000000001249d orl $0x400000, 0x8(%rcx)
81 49 08 00 00 40 00
-->
000000000001249d orl $0x000000, 0x8(%rcx)
81 49 08 00 00 00 00

00000000000135fc movl $0x400000, 0x8(%r15)
41 C7 47 08 00 00 40 00
-->
00000000000135fc movl $0x000000, 0x8(%r15)
41 C7 47 08 00 00 00 00

0000000000013822 movl $0x400000, 0x8(%r15)
41 C7 47 08 00 00 40 00
-->
0000000000013822 movl $0x000000, 0x8(%r15)
41 C7 47 08 00 00 00 00

Disable the sleep code leaving the controller in non-working state after wake:

0000000000005b0e movb $0x1, 0xc8(%rax)
C6 80 C8 00 00 00 01
-->
0000000000005b0e movb $0x0, 0xc8(%rax)
C6 80 C8 00 00 00 00

Enable PCI power management if there is no such code in DSDT:

0000000000005b76 jne 0x5bc5
75 4D 48 8B BB E8 01 00 00
-->
0000000000005b76 jmp 0x5bc5
EB 4D 48 8B BB E8 01 00 00

This one is actually 75 4D--->EB 4D, but we can't be sure if next OSX update would bring more than one 75 4D in the binary.

 

 

Patched Kext can be download right here

Link to comment
Share on other sites

 

Hello, Zenith I tested AppleUSBXHCI and it works kext USB 3.0 and 2.0 mouse works but do not flash driver 2.0 and hard disk 2.0.
any solution?

 

Try to inject this DSDT into your USB 3.0 device.

See the reply #6 by Lionel Luthor in this Taiwanese blog:

http://benjenq.pixnet.net/blog/post/32216159-%E9%BB%91%E8%98%8B%E6%9E%9C%E5%8D%87%E7%B4%9A-10.8.4

Link to comment
Share on other sites

  • 2 weeks later...

Perfect again, thx shiecldk 
 
Clover patch for 10.9 :

 

<key>KextsToPatch</key>
		<array>
			<dict>
				<key>Comment</key>
				<string>Enable USB3</string>
				<key>Find</key>
				<data>
				dTpIiwU9nQAA
				</data>
				<key>Name</key>
				<string>AppleUSBXHCI</string>
				<key>Replace</key>
				<data>
				6zpIiwU9nQAA
				</data>
			</dict>
			<dict>
				<key>Comment</key>
				<string>Enable USB3</string>
				<key>Find</key>
				<data>
				Zj0AAQ==
				</data>
				<key>Name</key>
				<string>AppleUSBXHCI</string>
				<key>Replace</key>
				<data>
				Zj0AAA==
				</data>
			</dict>
			<dict>
				<key>Comment</key>
				<string>Enable USB3</string>
				<key>Find</key>
				<data>
				gUkIAABAAA==
				</data>
				<key>Name</key>
				<string>AppleUSBXHCI</string>
				<key>Replace</key>
				<data>
				gUkIAAAAAA==
				</data>
			</dict>
			<dict>
				<key>Comment</key>
				<string>Enable USB3</string>
				<key>Find</key>
				<data>
				QcdHCAAAQAA=
				</data>
				<key>Name</key>
				<string>AppleUSBXHCI</string>
				<key>Replace</key>
				<data>
				QcdHCAAAAAA=
				</data>
			</dict>
			<dict>
				<key>Comment</key>
				<string>Enable USB3</string>
				<key>Find</key>
				<data>
				QcdHCAAAQAA=
				</data>
				<key>Name</key>
				<string>AppleUSBXHCI</string>
				<key>Replace</key>
				<data>
				QcdHCAAAAAA=
				</data>
			</dict>
			<dict>
				<key>Comment</key>
				<string>Enable USB3</string>
				<key>Find</key>
				<data>
				xoDIAAAAAQ==
				</data>
				<key>Name</key>
				<string>AppleUSBXHCI</string>
				<key>Replace</key>
				<data>
				xoDIAAAAAA==
				</data>
			</dict>
			<dict>
				<key>Comment</key>
				<string>Enable USB3</string>
				<key>Find</key>
				<data>
				dU1Ii7voAQAA
				</data>
				<key>Name</key>
				<string>AppleUSBXHCI</string>
				<key>Replace</key>
				<data>
				601Ii7voAQAA
				</data>
			</dict>
		</array>

 

 

 

edit : no change for 10.9.1

  • Like 2
Link to comment
Share on other sites

  • 2 months later...

Are you injecting CPU plugin-type 1 in an SSDT or your DSDT?  That can cause a stuck multiplier of x8.0.

 

I have CPU-plugin type 1 in SSDT.
Screen Shot 2014-01-02 at 12.57.00.png
 
but do not know if I have the DSDT.
 
please see my DSDT
 
so I have to delete plugin type 1?
Link to comment
Share on other sites

finally managed to make it work states and turbo, and USB 3.

 

what I did:

deleted "plugin-type 1" in an SSDT. and put DropOem> False in config.plist

 

I will create a tutorial of my fight!

 

thanks @maleorderbride

Link to comment
Share on other sites

  • 3 weeks later...
  • 4 weeks later...

As usual, thx shiecldk ;)

 

Clover patch for 10.9.2 :

 

 

 

 

<key>KextsToPatch</key>
		<array>
			<dict>
				<key>Comment</key>
				<string>Enable USB3</string>
				<key>Find</key>
				<data>
				dTpIiwWLoAAA
				</data>
				<key>Name</key>
				<string>AppleUSBXHCI</string>
				<key>Replace</key>
				<data>
				6zpIiwWLoAAA
				</data>
			</dict>
			<dict>
				<key>Comment</key>
				<string>Enable USB3</string>
				<key>Find</key>
				<data>
				Zj0AAQ==
				</data>
				<key>Name</key>
				<string>AppleUSBXHCI</string>
				<key>Replace</key>
				<data>
				Zj0AAA==
				</data>
			</dict>
			<dict>
				<key>Comment</key>
				<string>Enable USB3</string>
				<key>Find</key>
				<data>
				gUkIAABAAA==
				</data>
				<key>Name</key>
				<string>AppleUSBXHCI</string>
				<key>Replace</key>
				<data>
				gUkIAAAAAA==
				</data>
			</dict>
			<dict>
				<key>Comment</key>
				<string>Enable USB3</string>
				<key>Find</key>
				<data>
				QcdHCAAAQAA=
				</data>
				<key>Name</key>
				<string>AppleUSBXHCI</string>
				<key>Replace</key>
				<data>
				QcdHCAAAAAA=
				</data>
			</dict>
			<dict>
				<key>Comment</key>
				<string>Enable USB3</string>
				<key>Find</key>
				<data>
				xoDIAAAAAQ==
				</data>
				<key>Name</key>
				<string>AppleUSBXHCI</string>
				<key>Replace</key>
				<data>
				xoDIAAAAAA==
				</data>
			</dict>
			<dict>
				<key>Comment</key>
				<string>Enable USB3</string>
				<key>Find</key>
				<data>
				dU1Ii7voAQAA
				</data>
				<key>Name</key>
				<string>AppleUSBXHCI</string>
				<key>Replace</key>
				<data>
				601Ii7voAQAA
				</data>
			</dict>
		</array>
 

 

  • Like 2
Link to comment
Share on other sites

  • 2 weeks later...

As usual, thx shiecldk ;)

 

Clover patch for 10.9.2 :

 

 

Looks like this patch doesn't work in the latest 10.9.3 beta 13D17.

 

 

EDIT: fixed it myself in a minute and it works but I'm not sure it's 100% correct.

<dict>
	<key>Comment</key>
	<string>Disable Intel & Fresco USB3.0 controllers</string>
	<key>Find</key>
	<data>
	dTpIiwW7oAAA
	</data>
	<key>Name</key>
	<string>AppleUSBXHCI</string>
	<key>Replace</key>
	<data>
	6zpIiwW7oAAA
	</data>
</dict>
<dict>
	<key>Comment</key>
	<string>Disable XHCI 1.0</string>
	<key>Find</key>
	<data>
	Zj0AAQ==
	</data>
	<key>Name</key>
	<string>AppleUSBXHCI</string>
	<key>Replace</key>
	<data>
	Zj0AAA==
	</data>
</dict>
<dict>
	<key>Comment</key>
	<string>Patch MSI or pin interrupts</string>
	<key>Find</key>
	<data>
	gUkIAABAAA==
	</data>
	<key>Name</key>
	<string>AppleUSBXHCI</string>
	<key>Replace</key>
	<data>
	gUkIAAAAAA==
	</data>
</dict>
<dict>
	<key>Comment</key>
	<string>Patch MSI or pin interrupts 2</string>
	<key>Find</key>
	<data>
	QcdHCAAAQAAx
	</data>
	<key>Name</key>
	<string>AppleUSBXHCI</string>
	<key>Replace</key>
	<data>
	QcdHCAAAAAAx
	</data>
</dict>
<dict>
	<key>Comment</key>
	<string>Disable sleep code</string>
	<key>Find</key>
	<data>
	xoDIAAAAAQ==
	</data>
	<key>Name</key>
	<string>AppleUSBXHCI</string>
	<key>Replace</key>
	<data>
	xoDIAAAAAA==
	</data>
</dict>
<dict>
	<key>Comment</key>
	<string>Enable PCI power management</string>
	<key>Find</key>
	<data>
	dU1Ii7voAQAA
	</data>
	<key>Name</key>
	<string>AppleUSBXHCI</string>
	<key>Replace</key>
	<data>
	601Ii7voAQAA
	</data>
</dict>
Link to comment
Share on other sites

  • 2 months later...
 Share

×
×
  • Create New...