Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OcAppleKernelLib: Integrate USB restriction patches #471

Merged
merged 2 commits into from Jun 12, 2023

Conversation

PMheart
Copy link
Member

@PMheart PMheart commented Jun 11, 2023

@PMheart PMheart force-pushed the pmheart-xhcipatch-20230612 branch from 35ff5be to 109f87e Compare June 11, 2023 23:36
@iamyounix
Copy link

iamyounix commented Jun 12, 2023

OC 0.9.2 debug + manual XHCIPortlimit = YES + USBMap.kext (Full Port):

PCI Info:

USBMap.kext (Full Port) integrated with XHCI-unsupported:

My config

@PMheart
Copy link
Member Author

PMheart commented Jun 12, 2023

This is not the binary from this PR: OC: Current version is DBG-092-2023-05-08; instead you should get version 0.9.3.

Please download it at https://github.com/acidanthera/OpenCorePkg/suites/13524776243/artifacts/743594432, and then test and report again. Please also disable the manual patch OC: Prelinked patcher result 0 for com.apple.iokit.IOUSBHostFamily (BigSur-Monterey) - Success.

Theoretically, my patch should work as I observed from our TextKextInject tool:

OCAK: com.apple.iokit.IOUSBHostFamily got KXLD 0 0
OCAK: 64-bit RemoveUsbLimitIoP1 part 1 replace count - 1
OCAK: [OK] Patch success port com.apple.iokit.IOUSBHostFamily part 1
OCAK: 64-bit RemoveUsbLimitIoP1 part 2 replace count - 1
OCAK: [OK] Patch success port com.apple.iokit.IOUSBHostFamily part 2
[OK] Success KernelQuirkXhciPortLimit1

@iamyounix
Copy link

iamyounix commented Jun 12, 2023

Sorry, wrong build

done. using v0.9.3 debug without usbmap + XHCIPortLimit = Yes

opencore-2023-06-12-131330.txt

14:291 00:008 OCAK: KC TEXT is 65536 bytes with 64096 Mach-O headers need 824
14:348 00:056 OCAK: Patching invalid size 92000 with 10A9000 for com.apple.iokit.IOUSBHostFamily
14:356 00:008 OCAK: 64-bit RemoveUsbLimitIoP1 part 1 replace count - 1
14:365 00:008 OCAK: [OK] Patch success port com.apple.iokit.IOUSBHostFamily part 1
14:373 00:008 OCAK: 64-bit RemoveUsbLimitIoP1 part 2 replace count - 1
14:382 00:008 OCAK: [OK] Patch success port com.apple.iokit.IOUSBHostFamily part 2
14:395 00:013 OCAK: Patching invalid size 4F000 with EF9000 for com.apple.driver.usb.AppleUSBXHCI
14:403 00:008 OCAK: 64-bit RemoveUsbLimitV2 replace count - 1
14:412 00:008 OCAK: [OK] Patch success com.apple.driver.usb.AppleUSBXHCI
14:425 00:012 OCAK: Patching invalid size 2A000 with EA0000 for com.apple.driver.usb.AppleUSBXHCIPCI
14:433 00:008 OCAK: [OK] Skipping legacy port patch AppleUSBXHCIPCI on 210600
14:442 00:008 OCAK: 64-bit AppleIoMapper replace count - 1
14:450 00:008 OCAK: [OK] Patch success com.apple.iokit.IOPCIFamily AppleIoMapper
14:459 00:008 OCAK: [OK] Skipping AppleIoMapperMapping patch on 210600

seems fine

Screenshot 2023-06-12 at 9 17 03 PM

Screenshot 2023-06-12 at 9 22 45 PM

@PMheart PMheart merged commit d52fc46 into master Jun 12, 2023
22 checks passed
@PMheart PMheart deleted the pmheart-xhcipatch-20230612 branch June 12, 2023 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants