Skip to content
This repository has been archived by the owner on Oct 4, 2022. It is now read-only.

Convert static patched (DSDT patched) to hotpatch (SSDT patched) #12

Open
4 of 6 tasks
baobaoit opened this issue Dec 26, 2020 · 28 comments
Open
4 of 6 tasks

Convert static patched (DSDT patched) to hotpatch (SSDT patched) #12

baobaoit opened this issue Dec 26, 2020 · 28 comments
Assignees
Labels
enhancement New feature or request

Comments

@baobaoit
Copy link
Owner

baobaoit commented Dec 26, 2020

Common patches

  • SSDT-_WAK2
  • SSDT-SMBUS
  • SSDT-78USB
  • SSDT-SKLLPC

VoodooI2C patches

  • SSDT-I2CCONTR
  • SSDT-ELAN1K

AsusSMC patches [later]

@baobaoit baobaoit self-assigned this Dec 26, 2020
@baobaoit baobaoit added the enhancement New feature or request label Dec 26, 2020
@victorwitkamp
Copy link

victorwitkamp commented Dec 28, 2020

Made a battery hotpatch using rehabman's guide (https://www.tonymacx86.com/threads/guide-using-clover-to-hotpatch-acpi.200137/) which could replace the "[bat] ASUS G75VW" DSDT patch and does the following for GL552VW:

  • Multibyte to single byte
  • Add methods RE1B, RECB, WE1B, WECB to EC0
  • Add method B1B2
  • Add XCOR field to replace values in ECOR
  • Add XMBX field to replace values in SMBX
  • Add XMB2 field to replace values in SMB2

SSDT-BAT.dsl.txt

Hope that it is of any use.

@baobaoit
Copy link
Owner Author

Hi @victorwitkamp,

About battery patch "[bat] ASUS G752VW", it already handled by VirtualSMC and SMCBatteryManager.

Currently, I'm stuck at the I2C controller patching. I'm not figuring out how to make it as hot patching. I will re-work when I have free time, or I can find any documents that helpful.

Thank you and appreciate your work.

@victorwitkamp
Copy link

victorwitkamp commented Dec 29, 2020

Hi @victorwitkamp,

About battery patch "[bat] ASUS G752VW", it already handled by VirtualSMC and SMCBatteryManager.

Currently, I'm stuck at the I2C controller patching. I'm not figuring out how to make it as hot patching. I will re-work when I have free time, or I can find any documents that helpful.

Thank you and appreciate your work.

I've read on the VoodooI2C Gitter that battery patch is required for VoodooI2C to work. And when I tried to get VoodooI2C working in OpenCore using DSDT patching it indeed started working after applying the battery fix. So I'm kind of confused now wether it is required or not.

Anyway, I've done some work for the I2C controller. If I'm correct USTP should enable the I2C controller, but I did not get it working completely yet using hotpatching (which could be caused by the battery patch)

SSDT-ETPD.dsl.txt

I still need to do the USTP to XSTP rename, but here is the ETPD _CRS TO XCRS:

    <dict>
        <key>Comment</key>
        <string>GPIO pinning - _CRS to XCRS in ETPD in DSDT</string>
        <key>Count</key>
        <integer>1</integer>
        <key>Enabled</key>
        <true/>
        <key>Find</key>
        <data>FBFfQ1JTAA==</data>
        <key>Limit</key>
        <integer>0</integer>
        <key>Mask</key>
        <data></data>
        <key>OemTableId</key>
        <data></data>
        <key>Replace</key>
        <data>FBFYQ1JTAA==</data>
        <key>ReplaceMask</key>
        <data></data>
        <key>Skip</key>
        <integer>0</integer>
        <key>TableLength</key>
        <integer>0</integer>
        <key>TableSignature</key>
        <data>RFNEVA==</data>
    </dict>

@baobaoit
Copy link
Owner Author

baobaoit commented Jan 2, 2021

Hi @victorwitkamp,

I had tried your SSDT files, my case is:

  • Using 2 SSDTs that provided
  • I added 2 ACPI patches: Rename USTP to XSTP and your patch

Booting up fine. But the trackpad is not working.

I know the hot patching for trackpad on SkyLake chipset is very hard and I appreciate your research.

If there is anything new, let me know, I will test it on weekend.

Thank you.

@victorwitkamp
Copy link

Hi @victorwitkamp,

I had tried your SSDT files, my case is:

  • Using 2 SSDTs that provided
  • I added 2 ACPI patches: Rename USTP to XSTP and your patch

Booting up fine. But the trackpad is not working.

I know the hot patching for trackpad on SkyLake chipset is very hard and I appreciate your research.

If there is anything new, let me know, I will test it on weekend.

Thank you.

Can you tell me what you were seeing in the logging?
Any specific messages from VoodooI2C? Perhaps "Unknown Synopsys component type: 0xffffffff"

@baobaoit
Copy link
Owner Author

baobaoit commented Jan 3, 2021

Hi @victorwitkamp,

I didn't see any messages.

Thank you.

@fsdevriver
Copy link

Is there any update about hotpaching I2C?

@baobaoit
Copy link
Owner Author

baobaoit commented Mar 5, 2021

Is there any update about hotpaching I2C?

Temporarily is no, there is no technical or document about this. For the Skylake chip, you need to do static patch.

@fsdevriver
Copy link

Is there any update about hotpaching I2C?

Temporarily is no, there is no technical or document about this. For the Skylake chip, you need to do static patch.

Does that mean add patched DSDT in ACPI?

@baobaoit
Copy link
Owner Author

baobaoit commented Mar 7, 2021

Is there any update about hotpaching I2C?

Temporarily is no, there is no technical or document about this. For the Skylake chip, you need to do static patch.

Does that mean add patched DSDT in ACPI?

Yes, to have a full functionality, you need to patch DSDT and place it in ACPI.

@fsdevriver
Copy link

I tried for several months but failed. Brother could you please help me to patching DSDT? Just skylake patching part. Here is my dump ACPI folder
https://drive.google.com/file/d/1SjWYapMc3-E86hUVuQ0k4ODZNAlmamql/view?usp=sharing

@baobaoit
Copy link
Owner Author

I tried for several months but failed. Brother could you please help me to patching DSDT? Just skylake patching part. Here is my dump ACPI folder
https://drive.google.com/file/d/1SjWYapMc3-E86hUVuQ0k4ODZNAlmamql/view?usp=sharing

Sorry, I'm busy now. I didn't know so much about this. I just research my model. You can find some help on the Olarila forum.

@valerieapps
Copy link

hello, I want to use this to install Catalina on my gl552vw. can you tell me what's currently not working? thank you very much

@baobaoit
Copy link
Owner Author

baobaoit commented Sep 1, 2021

hello, I want to use this to install Catalina on my gl552vw. can you tell me what's currently not working? thank you very much

The card reader + NVIDIA card are not working.
HDMI not tested.
Jack 3.5mm not tested.

Please update to the latest OC and kexts version to have a better experiment.

@valerieapps
Copy link

hello, I want to use this to install Catalina on my gl552vw. can you tell me what's currently not working? thank you very much

The card reader + NVIDIA card are not working.
HDMI not tested.
Jack 3.5mm not tested.

Please update to the latest OC and kexts version to have a better experiment.

hello, just reporting back. i finally got around to install catalina. i used this OC exactly as it is and didn't update anything, it worked amazing from the first try. the only thing that didn't work was usb 3 ports but i noticed usbinjectall,kext was disabled by default so i enabled it and they all woked perfectly, managed to get my intel wifi to work too. thank you very much for making this repo 😁👍

@victorwitkamp
Copy link

Took a while, but still wanted to let you know...
I got my trackpad working on my GL552VW using hotpatching! Only polling mode currently, but getting somewhere.
https://github.com/victorwitkamp/GL552VW-OpenCore

@valerieapps
Copy link

Took a while, but still wanted to let you know... I got my trackpad working on my GL552VW using hotpatching! Only polling mode currently, but getting somewhere. https://github.com/victorwitkamp/GL552VW-OpenCore

Hi bro, are you using catalina? im currently on catalina and want to upgrade to big sur directly from app store, can i do it without changing anything in this repo? thanks

@victorwitkamp
Copy link

Took a while, but still wanted to let you know... I got my trackpad working on my GL552VW using hotpatching! Only polling mode currently, but getting somewhere. https://github.com/victorwitkamp/GL552VW-OpenCore

Hi bro, are you using catalina? im currently on catalina and want to upgrade to big sur directly from app store, can i do it without changing anything in this repo? thanks
Screenshot 2022-01-23 at 10 00 52

@victorwitkamp
Copy link

(I did not test upgrading, Did a fresh Monterey install)

@valerieapps
Copy link

(I did not test upgrading, Did a fresh Monterey install)

thats awesome dude, can you please chare your OC folder? i'd appreciate it very much

@victorwitkamp
Copy link

That's the same link: https://github.com/victorwitkamp/GL552VW-OpenCore

@valerieapps
Copy link

that's awesome thanks a lot. really got me out of a pinch. i needed to use a more recent version of xcode urgently

@victorwitkamp
Copy link

@valerieapps
Copy link

is it possible to replace my current OC folder (catalina) with yours and then attempt to update to monterey from system update? would it work?

@victorwitkamp
Copy link

I can't guarantee anything, but definitely worth trying. As long as you make a backup of your current OC folder.

@valerieapps
Copy link

valerieapps commented Mar 17, 2022

Hi victor, so i finally decided to do a clean install of monterey, i created the usb and copied your OC folder exactly like it is, i can boot into open core but i choose "install macOS Monterey" i get stuck in this screen immediately. any idea why this is happening? thanks a lotv
unnamed
EDIT: I fixed it by disabling CFG Lock. i didn't know that was required. Everything working fine including wifi with heliport. sorry to bother you and thanks again for the great repo 😍

@victorwitkamp
Copy link

Hi victor, so i finally decided to do a clean install of monterey, i created the usb and copied your OC folder exactly like it is, i can boot into open core but i choose "install macOS Monterey" i get stuck in this screen immediately. any idea why this is happening? thanks a lotv unnamed EDIT: I fixed it by disabled CFG Lock. i didn't know that was required. Everything working fine including wifi with heliport. sorry to bother you and thanks again for the great repo 😍

Congrats!!!! And any time!! Did you have an option for CFG lock in the BIOS? Or managed to unlock it a different way?
I didn't have a CFG Lock option in my BIOS, which is why I'm curious.

@valerieapps
Copy link

i simply used the "CFGLock" option in the opencore boot menu that you made. I didnt have it in my BIOS.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants