Jump to content

OpenCore General Discussion


dgsga
8,805 posts in this topic

Recommended Posts

This post may be important to anyone who is using _PTS -> XPTS, _WAK -> XWAK or any similar ACPI patching in Open Core...

Be careful with patching examples like this

 

For anyone who's interested in my previous post, I think I figured out why Open Core finds the _PTS pattern that does not appear in MaciASL.  My hack's DSDT table (see aml attached to previous post) defines

External (_SB_.TPM_.PTS_, MethodObj)

which I did not think should match my defined Find Hex sequence <5F505453> (Ascii _PTS).  However, when inspecting my DSDT.aml with hexfiend, the External declaration appears as Hex <5F53425F 54504D5F 5054535F> (Ascii _SB_TPM_PTS_).  Because the '.' characters are not included in the External declaration in DSDT.aml, this External declaration of _SB_.TPM_.PTS_ appears to Open Core as a pattern match for _PTS.

 

I'd be interested in observations / opinions from others.

 

EDIT: If I am correct, I believe that my original _PTS->XPTS ACPI patch (with a 4-byte Find sequence <5F505453>) is incorrectly changing the declaration of 

External (_SB_.TPM_.PTS_, MethodObj) to 

External (_SB_.TPMX.PTS_, MethodObj).

 

EDIT2: If I am observing this correctly, I believe that you may have unintended consequences when performing Open Core binary Find/Replace ACPI patches that do not carefully define the Find Hex sequence and that do not restrict one or more of the following in the Open Core ACPI Patch rule:  Base, Count, OemTableId, TableSignature.  When possible, I'd recommend restricting Open Core ACPI Patches by defining Count AND either OemTableId or TableSignature.  Inspect the results of ACPI Patches by using a utility like MaciASL's "File > New from ACPI".

 

EDIT3: There was no need for me to speculate.  I inspected the patched DSDT with MaciASL's "File > New from ACPI" and with hexfiend and both confirm that my old 4-byte _PTS->XPTS patch was changing the declaration of External (_SB_.TPM_.PTS_, MethodObj).

MaciASL

Spoiler

Screenshot2024-07-20at3_46_10PM.png.be86d1a804238d150bee8f3b49563143.png

hexfiend

Spoiler

Screenshot2024-07-20at3_41_04PM.png.61c7636fa6c2704ba6a6cc87843b612c.png

 

My old _PTS -> XPTS ACPI Patch (with 4-byte Find/Replace sequence) is wrong (for my hack's ACPI).

Spoiler

Screenshot2024-07-20at3_53_01PM.png.2153bf3f20139ab85bb313b8d4554c37.png

 

Edited by Slice
Red color is only for Moderators
  • Like 3
Link to comment
Share on other sites

  • 3 weeks later...

Tested Open Core 1.0.1 on my HackBookPro6,2 booting Big Sur 11.7.10, Monterey 12.7.6, Ventura 13.6.8, Sonoma 14.6 and Sequoia Beta 5.  All good including LogoutHook and LegacyBoot.  Well done, Devs!

  • Like 4
Link to comment
Share on other sites

Anyone have an EFI file with similar hardware like mine? DDR5 32GB 6000 bus RAM B760M AORUS ELITE X AX motherboard Gigabyte 560X 4GB graphics card
Please give me one. I'm going to try installing a Mac.

THank..

 

Link to comment
Share on other sites

2 hours ago, naiclub said:

У кого-нибудь есть файл EFI с похожим оборудованием, как у меня? DDR5 32 ГБ 6000 шина RAM B760M AORUS ELITE X AX материнская плата Gigabyte 560X 4 ГБ видеокарта
Пожалуйста, дайте мне один. Я собираюсь попробовать установить Mac.

Благодарить..

 

https://github.com/search?q=B760M AORUS&type=repositories

  • Like 5
Link to comment
Share on other sites

8 hours ago, naiclub said:

Anyone have an EFI file with similar hardware like mine? DDR5 32GB 6000 bus RAM B760M AORUS ELITE X AX motherboard Gigabyte 560X 4GB graphics card
Please give me one. I'm going to try installing a Mac.

THank..

 

Check this also. Might need to do some minor changes but it's rock solid. 

EFI

  • Like 1
Link to comment
Share on other sites

1 hour ago, naiclub said:

How can I change the correct CPU name?

Surely if you enter the Processor Type as zero in the config.plist, the CPU name will automatically be displayed.

(Like the attached example).

Spoiler

Screenshot2024-08-08at16_49_48.png.863eae1d50a63f4641fcb3ed16829564.png

 

  • Like 3
Link to comment
Share on other sites

3 hours ago, naiclub said:

How can I change the correct CPU name?

 

If other suggestions don't work, try RestrictEvents.kext with revpatch=cpuname / revcpuname=value.

Edited by deeveedee
  • Like 3
Link to comment
Share on other sites

2 hours ago, eSaF said:

แน่นอนว่าถ้าคุณป้อนประเภทโปรเซสเซอร์เป็นศูนย์ในไฟล์ config.plist ชื่อ CPU จะแสดงโดยอัตโนมัติ

(เช่นเดียวกับตัวอย่างที่แนบมา)

  เปิดเผยเนื้อหาที่ซ่อนอยู่

Screenshot2024-08-08at16_49_48.png.863eae1d50a63f4641fcb3ed16829564.png

 

I tried it already, but no luck at all.

56 minutes ago, deeveedee said:

 

หากข้อเสนอแนะอื่นใช้ไม่ได้ ให้ลองใช้RestrictEvents.kext  พร้อมด้วย revpatch=cpuname / revcpuname=value

I'll try it out right now.

Link to comment
Share on other sites

Try use Intel Hyper Trend enable in your bios, and verify if your bios is updated. 

 

Need check framebuffers inject with Opecore and check ProvideCurrentCpuInfo is enabled in Kernel > Quirks > ProvideCurrentCpuInfo.

 

 

 

 

 

 

  • Like 1
Link to comment
Share on other sites

6 hours ago, naiclub said:

How can I change the correct CPU name?

 

I think I'm the first to run macOS on the new IBM Quantum CPU 🤣

 

About This Hack

Spoiler

Screenshot2024-08-08at5_00_13PM.png.037728935e77fe39c8fa22e57642b044.png

 

OC config.plist: revcpuname

Spoiler

Screenshot2024-08-08at5_02_07PM.png.d65b38ff3430c3a7bc587ca00a2f61a9.png

 

  • Like 1
  • Haha 4
Link to comment
Share on other sites

9 hours ago, deeveedee said:

 

I think I'm the first to run macOS on the new IBM Quantum CPU 🤣

 

About This Hack

  Reveal hidden contents

Screenshot2024-08-08at5_00_13PM.png.037728935e77fe39c8fa22e57642b044.png

 

OC config.plist: revcpuname

  Reveal hidden contents

Screenshot2024-08-08at5_02_07PM.png.d65b38ff3430c3a7bc587ca00a2f61a9.png

 

hello grandma I did that and it didn't work. I got this weird image.

ภาพถ่ายหน้าจอ 2567-08-09 เวลา 04.24.59.png

  • Sad 2
Link to comment
Share on other sites

@naiclub Please post your previous and current config.plist (post both versions).  I suspect that you have incorrectly typed the comma-delimited string for revpatch.

  • Like 1
Link to comment
Share on other sites

2 hours ago, deeveedee said:

@naiclub Please post your previous and current config.plist (post both versions).  I suspect that you have incorrectly typed the comma-delimited string for revpatch.

Hi Grandma, I have removed the SSD now. When I reinstall it, I will post it for you to see.

  • Haha 4
Link to comment
Share on other sites

@naiclub In order to fully diagnose your issue, I would need both your current config.plist (the config.plist that causes the Memory Misconfigured message) and your previous config.plist (which did not have the Memory Misconfigured message), but I'll try to diagnose with what you provided.

 

You are using SMBIOS MacPro7,1.  According to the RestrictEvents.kext documentation here, you may want to add revblock=pci and revpatch=pci.  

 

Also, you are redundantly specifying RestrictEvents args in "NVRAM > Add > 4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102" and "NVRAM > Add > 7C436110-AB2A-4BBB-A880-FE41995C9F82 > boot-args."  Remove the redundant/unnecessary boot-args:

Spoiler

Screenshot2024-08-13at9_12_25AM.thumb.png.7cbe72a68cbdb740d03f29921cb69177.png

 

Attached is a revised config.plist that should give you some ideas.

config.plist.zip

  • Like 1
Link to comment
Share on other sites

44 minutes ago, deeveedee said:

@naiclub In order to fully diagnose your issue, I would need both your current config.plist (the config.plist that causes the Memory Misconfigured message) and your previous config.plist (which did not have the Memory Misconfigured message), but I'll try to diagnose with what you provided.

 

You are using SMBIOS MacPro7,1.  According to the RestrictEvents.kext documentation here, you may want to add revblock=pci and revpatch=pci.  

 

Also, you are redundantly specifying RestrictEvents args in "NVRAM > Add > 4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102" and "NVRAM > Add > 7C436110-AB2A-4BBB-A880-FE41995C9F82 > boot-args."  Remove the redundant/unnecessary boot-args:

  Reveal hidden contents

Screenshot2024-08-13at9_12_25AM.thumb.png.7cbe72a68cbdb740d03f29921cb69177.png

 

Attached is a revised config.plist that should give you some ideas.

config.plist.zip 5.85 kB · 2 downloads

It didn't go away. I took yours and put them in. It didn't fix anything.

Spoiler

2567-08-1320_55_03.thumb.png.df10685305fcd45ab37700ef5f5bce5c.png

 

Link to comment
Share on other sites

@naiclub It is impossible to diagnose any of your issues without the info I requested.  ALWAYS post your EFI (at least your config.plist) when you report problems and ask for help.  You're still on my favorite grandchild list, but you're testing my patience. :lol:

 

EDIT: Let's start over again by re-reading this post.  Please provide both config.plists (not just one).

Edited by deeveedee
  • Like 1
  • Haha 1
Link to comment
Share on other sites

15 ชั่วโมงที่แล้ว deeveedee กล่าวว่า:

@naiclub เป็นไปไม่ได้ที่จะวินิจฉัยปัญหาของคุณโดยไม่มีข้อมูลที่ฉันขอไว้ โพสต์ EFI ของคุณเสมอ (อย่างน้อยก็ config.plist) เมื่อคุณรายงานปัญหาและขอความช่วยเหลือ คุณยังคงอยู่ในรายชื่อหลานคนโปรดของฉัน แต่คุณกำลังทดสอบความอดทนของฉัน:ฮ่าๆ:

 

แก้ไข: มาเริ่มใหม่อีกครั้งด้วยการอ่านโพสต์นี้ อีกครั้ง โปรดจัดเตรียมไฟล์ config.plists ทั้งสองไฟล์ (ไม่ใช่แค่ไฟล์เดียว)

ยังไงก็ขอบคุณคุณยาย
ตามนี้ค่ะ

 

Edited by naiclub
Link to comment
Share on other sites

@naiclub Still not what I requested.  One thing I missed before is that you redundantly specify revcpu in "NVRAM > Add > 4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102" and "NVRAM > Add > 7C436110-AB2A-4BBB-A880-FE41995C9F82 > boot-args."  Remove the instance of revcpu=1 in "NVRAM > Add > 4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102" (I've only tested with revcpu=1 in boot-args.

 

EDIT: Also, add revblock to "NVRAM > Delete > 4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102"

 

EDiT2: One more thing - after you removed revcpu=1 from "NVRAM > Add > 4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102," remove revcpu from "NVRAM > Delete > 4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102" - see attached config.plist.  Add revpatch to "NVRAM > Delete > 4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102"

 

If you make changes to any "NVRAM > Add" properties that are not in "NVRAM > Delete," you MUST Reset NVRAM before each test.

config.plist.zip

Edited by deeveedee
  • Like 1
Link to comment
Share on other sites

59 minutes ago, deeveedee said:

@naiclub Still not what I requested.  One thing I missed before is that you redundantly specify revcpu in "NVRAM > Add > 4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102" and "NVRAM > Add > 7C436110-AB2A-4BBB-A880-FE41995C9F82 > boot-args."  Remove the instance of revcpu=1 in "NVRAM > Add > 4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102" (I've only tested with revcpu=1 in boot-args.

 

EDIT: Also, add revblock to "NVRAM > Delete > 4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102"

 

EDiT2: One more thing - after you removed revcpu=1 from "NVRAM > Add > 4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102," remove revcpu from "NVRAM > Delete > 4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102" - see attached config.plist.  Add revpatch to "NVRAM > Delete > 4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102"

 

If you make changes to any "NVRAM > Add" properties that are not in "NVRAM > Delete," you MUST Reset NVRAM before each test.

config.plist.zip 6.13 kB · 2 downloads

I've resigned myself to fate, Grandma. I'll remove the SSD and keep it for now. 😅

Link to comment
Share on other sites

  • 2 weeks later...

Hi guys.

Have a problem with booting my rig on OC 10.0.1.

Developers has in this release disabled "XcpmExtraMsrs MSR_MISC_PWR_MGMT patch on macOS 12+ due to non-existence"

This patch is mandatory on my rig for booting. (Skylake Xenon W) The patch is still in the config file under kernel --> quirk and normally I have this quirk enabled but in this new version it dosen't work. I get the message "failed to patch writes to MSR_MISC_PWR_MGMT"

Any help is appreciated.

Edited by obus
Link to comment
Share on other sites

×
×
  • Create New...