Jump to content
30960 posts in this topic

Recommended Posts

11 hours ago, D-an-W said:

Having trouble building here too...


              Clover r5134 (SHA: 5731ed0a8)
  TOOLCHAIN: GCC53 (override example: './buildme XCODE8')
-----------------------------------------------------------
 1) build Clover
 2) build Clover with HFSPlus
 3) make pkg
 4) make app
 5) make app (with Clover)
 6) make iso
 7) build all
 8) test build (no autogen, no boot files)
 9) status
10) update Clover
11) show diff
12) open CloverV2/EFI/CLOVER directory
13) update Clover (reset changes)
14) clean BaseTools
15) Utilities
16) quit

Please enter your choice: 7
/Users/dan/src/CloverBootloader/rEFIt_UEFI/Platform/CloverVersion.cpp:9:10: fatal error: '../../Version.h' file not found
#include "../../Version.h"
         ^~~~~~~~~~~~~~~~~
1 error generated.
note: Using new build system
note: Planning build
note: Constructing build description
** BUILD FAILED **

 

Strange that I take a fresh copy from github on an empty place and the compilation was successful. How do you do to encounter such error?

14 hours ago, Slice said:

This is not strictly double compilation.

We should split compilation of Efildr (boot file) and CloverX64.efi itself.

This double compilations makes two different files boot6 and boot7 while CloverX64 will be the same.

boot7 is produced when we compile with option -mc.

Could we just add -mc to te remaining compilation command ?

For my information : why the creation of the package worked when I commented out the compilation line with -mc

13 hours ago, chris1111 said:

Ok simple Utility to sanity check config.plist Clover Config Validator View Full Video 15 seconds :hysterical: :lol:

Credit Clover team and @Jief_Machak

 

 

 

You made this ? It’s exactly what I thought to do next with the validator : a mac app, not console.

Do you call the validator exécutable file, or have integrate the source code and call the validation method ?

Wanna integrate this into the Clover tree ?

  • Like 1
  • Thanks 1
  • Haha 1

Hello everyone, I would like to kindly ask your expert support on this Clover issue, please. It has nothing to do with compilation but the passage from pre-Quirks to Quirks version. Your help is greatly appreciated.

 

I have received my Lenovo S145 laptop (Whiskey Lake, Core i5-8265U) from service, that boots Catalina just fine with Clover r5123-1 without Quirks. All SSDTs and kexts updated to latest version, works still fine. The only necessary magic file that does this is AptioMemoryFix.efi

 

When I switch to recent Clover r513x and adding the Quirks section, for the love of me, I cannot get past mach_boot screen (the page where it says MacOS not yet loaded etc.) and get a Kernel Panic ALL THE TIME :(

 

Without changing kexts and SSDTs that I triple-validated, I followed a couple of trustworthy guides (e.g. https://dortania.github.io/OpenCore-Install-Guide/config-laptop.plist/coffee-lake.html ) but without results. Tried playing with Quirks, still the same, kernel panic with some mention of CR2 (I am not too good reading panics).

 

@Slice and @Jief_Machak is there a way to find the equivalent Quirks of what magic AptioMemoryFix.efi used to do?

 

I played with EnableWriteUnprotectorRebuildAppleMemoryMap and SyncRuntimePermissions but to no avail. Without DevirtualiseMmio (i.e. if FALSE) the boot does not begin :( (stuck in that matrix-style preboot screen). Thanks in advance... (posting my config with SNs removed just in case)

 

config-konsti-new-kp.plist

Edited by MacKonsti
47 minutes ago, MacKonsti said:

Hello everyone, I would like to kindly ask your expert support on this Clover issue, please. It has nothing to do with compilation but the passage from pre-Quirks to Quirks version. Your help is greatly appreciated.

 

I have received my Lenovo S145 laptop (Whiskey Lake, Core i5-8265U) from service, that boots Catalina just fine with Clover r5123-1 without Quirks. All SSDTs and kexts updated to latest version, works still fine. The only necessary magic file that does this is AptioMemoryFix.efi

 

When I switch to recent Clover r513x and adding the Quirks section, for the love of me, I cannot get past mach_boot screen (the page where it says MacOS not yet loaded etc.) and get a Kernel Panic ALL THE TIME :(

 

Without changing kexts and SSDTs that I triple-validated, I followed a couple of trustworthy guides (e.g. https://dortania.github.io/OpenCore-Install-Guide/config-laptop.plist/coffee-lake.html ) but without results. Tried playing with Quirks, still the same, kernel panic with some mention of CR2 (I am not too good reading panics).

 

@Slice and @Jief_Machak is there a way to find the equivalent Quirks of what magic AptioMemoryFix.efi used to do?

 

I played with EnableWriteUnprotectorRebuildAppleMemoryMap and SyncRuntimePermissions but to no avail. Without DevirtualiseMmio (i.e. if FALSE) the boot does not begin :( (stuck in that matrix-style preboot screen). Thanks in advance... (posting my config with SNs removed just in case)

 

config-konsti-new-kp.plist 12.31 kB · 1 download

Heard that I changed AptioMemoryFix.efi to OpenRuntime.efi instead?

 

How to fix it, friends please answer.

 

ภาพถ่ายหน้าจอ 2564-05-14 เวลา 17.39.28.png

Edited by naiclub
  • Like 1
53 minutes ago, MacKonsti said:

Hello everyone, I would like to kindly ask your expert support on this Clover issue, please. It has nothing to do with compilation but the passage from pre-Quirks to Quirks version. Your help is greatly appreciated.

 

I have received my Lenovo S145 laptop (Whiskey Lake, Core i5-8265U) from service, that boots Catalina just fine with Clover r5123-1 without Quirks. All SSDTs and kexts updated to latest version, works still fine. The only necessary magic file that does this is AptioMemoryFix.efi

 

When I switch to recent Clover r513x and adding the Quirks section, for the love of me, I cannot get past mach_boot screen (the page where it says MacOS not yet loaded etc.) and get a Kernel Panic ALL THE TIME :(

 

Without changing kexts and SSDTs that I triple-validated, I followed a couple of trustworthy guides (e.g. https://dortania.github.io/OpenCore-Install-Guide/config-laptop.plist/coffee-lake.html ) but without results. Tried playing with Quirks, still the same, kernel panic with some mention of CR2 (I am not too good reading panics).

 

@Slice and @Jief_Machak is there a way to find the equivalent Quirks of what magic AptioMemoryFix.efi used to do?

 

I played with EnableWriteUnprotectorRebuildAppleMemoryMap and SyncRuntimePermissions but to no avail. Without DevirtualiseMmio (i.e. if FALSE) the boot does not begin :( (stuck in that matrix-style preboot screen). Thanks in advance... (posting my config with SNs removed just in case)

 

config-konsti-new-kp.plist 12.31 kB · 1 download


Hi @MacKonsti

You can follow the guide in this thread to convert your config.plist to new Clover.
 

 

As @naiclub said your can use https://github.com/chris1111/Clover-Config-Validator to verify : this tool is for Clover r5134

  • Like 2
4 minutes ago, Matgen84 said:


Hi @MacKonsti

You can follow the guide in this thread to convert your config.plist to new Clover.
 

 

As @naiclub said your can use https://github.com/chris1111/Clover-Config-Validator to verify : this tool is for Clover r5134

Thank you friends, but I want to fix it to keep it clean. No warning to the eyes What should I do?

Hi @naiclub and @Matgen84 apologies, forgot to mention that @Jief_Machak's Validator tool of course passes the config without errors, the issue is the actual settings/Quirks that replaced AptioMemoryFix...

 

I will follow your guide @Matgen84 but I did try a few values for the specific platform. I am trying to simulate what AptioMemoryFix.efi did before Quirks.

 

Again, the boot doesn't even start -- we're not talking about KP in the middle of booting... the booster doesn't start. I will report back. Thanks.

 

UPDATE:

 

@Matgen84 I did follow that guide. I am knowledgeable with Clover (pre-Quirks) though; the guide says for platform Quirks to "Head over to the OpenCore Install Guide and pick the guide for your CPU Family and Platform." which I did. Also later it says "If you get Kernel Panics: head over to the OpenCore Troubleshooting Guide and have a look at the "OpenCore Boot issues" and "Kernelspace Issues" sections" which I did too but this is not working.... that is why I post here. I cannot go past the mach_boot stage. Any other ideas? Seems the Coffee Lake platform Quirks don't work on this @##$^ laptop.

 

Edited by MacKonsti
  • Sad 1
3 hours ago, Jief_Machak said:

You made this ? It’s exactly what I thought to do next with the validator : a mac app, not console.

Do you call the validator exécutable file, or have integrate the source code and call the validation method ?

Wanna integrate this into the Clover tree ?

Yes I made it,

No the Validator is in the Resources

its call by the script, see file script

Of course you can add to the repos you only have to change the Validator after updating them

 

EDIT ***

And also I have create a makefile for your validator, much more faster then the command (More silently)

Simply cd CloverConfigPlistValidator them make

makefile.zip

 

946634141_Capturedcranle2021-05-1407_57_51.png.88a87d83fbfbad0055510a864c17c7ca.png

 

 

 

 

Edited by chris1111
  • Like 3
2 hours ago, MacKonsti said:

Hi @naiclub and @Matgen84 apologies, forgot to mention that @Jief_Machak's Validator tool of course passes the config without errors, the issue is the actual settings/Quirks that replaced AptioMemoryFix...

 

I will follow your guide @Matgen84 but I did try a few values for the specific platform. I am trying to simulate what AptioMemoryFix.efi did before Quirks.

 

Again, the boot doesn't even start -- we're not talking about KP in the middle of booting... the booster doesn't start. I will report back. Thanks.

 

UPDATE:

 

@Matgen84 I did follow that guide. I am knowledgeable with Clover (pre-Quirks) though; the guide says for platform Quirks to "Head over to the OpenCore Install Guide and pick the guide for your CPU Family and Platform." which I did. Also later it says "If you get Kernel Panics: head over to the OpenCore Troubleshooting Guide and have a look at the "OpenCore Boot issues" and "Kernelspace Issues" sections" which I did too but this is not working.... that is why I post here. I cannot go past the mach_boot stage. Any other ideas? Seems the Coffee Lake platform Quirks don't work on this @##$^ laptop.

 

 

Hi @MacKonsti

 

Openruntime.efi is absolute required (remove all memory fix driver) :)
I check your config.plist: I've got a Coffeelake-R so the quirks for OpenRuntime are the same. Except my mobo is CFG unlock:

 

Try to put AppleIntelCPUPM to true (instead of false), necessary for Unlock BIOS. EDIT: I mistaken because I have two hacks: an IvyBridge and an CofeeLake-R config :cry:

Can you boot in verbose mode and post a screenshot; and a debug.log some users can help you.

Edited by Matgen84
  • Like 1
2 hours ago, naiclub said:

Thank you friends, but I want to fix it to keep it clean. No warning to the eyes What should I do?

 

You should read

to you to fix your warnings, then edit your config.plist accordingly.

for example:

Kernel Quirks other.png

Some of your warnings are self explanatory,some quirks are misplaced if you look at the image simply correct them with an editor.

Anyway they are ignored now so, if your system boots most of them are unuseful.

Edited by Xanny
  • Like 1
1 hour ago, kushwavez said:

@MacKonsti Use OpenRuntime.efi instead of AptioMemory, use Quirks from config-sample.plist, do not modify it. 

Mate, I owe you a beer. Even if this seems trivial as advice (i.e. redo it from scratch LOL) setting the values to the sample config Quirks BOOTED finally. And without hiccups! THANK YOU.

 

@Matgen84 Thank you for the advice; I do have a r5133 booting solution already on my NUC8 so the EFI drivers is not an issue, everything is as expected. It is a matter to follow (or not, as you see) the platform advice from Dortania or other guide for Quirks... With the default config.sample values that @kushwavez advised, some are indeed opposite to what Dortania suggests for Coffee/Whiskey Lake! I don't get it...

 

Moreover @Matgen84 are you sure AppleIntelCPUPM has to do with MSR CFG Lock? I remember it was KernelPm tag, no? @Slice? I boot fine with AppleIntelCPUPM=False and KernelPm=True (no unlock MSR in BIOS available for me).

 

@Slice please 2 things: are we supposed to have on the Clover boot UI the Quirk option to change PowerTimeoutKernelPanic ? I did not see it on r5133. Also, I did not see the option to change in the Quirk menu DisableIoMapper either, is it not useful to show these two? Just asking.

 

Also, please, any comment on these comparative settings? Left are Clover sample defaults (that boot) and right the Dortania guide for the Coffee/Whiskey Lake platform Quirks values.

MmioWhitelist:           empty/disabled array
AvoidRuntimeDefrag:      true
DevirtualiseMmio:        false
DisableSingleUser:       false
DisableVariableWrite:    false
DiscardHibernateMap:     false
EnableSafeModeSlide:     true
EnableWriteUnprotector:  true boots / false in Dortania Guide for Coffee platform
ForceExitBootServices:   false
ProtectMemoryRegions:    false
ProtectSecureBoot:       false
ProtectUefiServices:     false
ProvideCustomSlide:      false boots / true in Dortania Guide for Coffee platform
RebuildAppleMemoryMap:   false boots / true in Dortania Guide for Coffee platform
SetupVirtualMap:         true
SignalAppleOS:           false
SyncRuntimePermissions:  true
DummyPowerManagement:    false
AppleXcpmExtraMsrs:      false
AppleXcpmForceBoost:     false
DisableIoMapper:         true
DisableLinkeditJettison: true
ExternalDiskIcons:       false
IncreasePciBarSize:      false
PowerTimeoutKernelPanic: false boots / true in Dortania Guide for Coffee platform
ThirdPartyDrives:        false
XhciPortLimit:           false
FuzzyMatch:              true
KernelCache:             auto

Any Quirk values that I should change/test for safer booting that you advise? Thank you...

Edited by MacKonsti

@MacKonsti Great. 

I have the default Quirks settings as in sample-config.plist on 5 hacks I used, everything's working as expected.

The only thing I modified is XhciPortLimit=true for my USB ports, and DisableIoMapper=false along with deleting ACPI/DropTables=DMAR and BGRT as there's no need to Drop them, for a working Virtual Machine.

 

In my opinion if everything is fine then there's no need to worry about it. Clover is very good at fixing/applying things automatically, unlike OC where you need to configure every single thing manually.

Edited by kushwavez
  • Thanks 1
12 minutes ago, MacKonsti said:

Mate, I owe you a beer. Even if this seems trivial as advice (i.e. redo it from scratch LOL) setting the values to the sample config Quirks BOOTED finally. And without hiccups! THANK YOU.

 

@Matgen84 Thank you for the advice; I do have a r5133 booting solution already on my NUC8 so the EFI drivers is not an issue, everything is as expected. It is a matter to follow (or not, as you see) the platform advice from Dortania or other guide for Quirks... With the default config.sample values that @kushwavez advised, some are indeed opposite to what Dortania suggests for Coffee/Whiskey Lake! I don't get it...

 

Moreover @Matgen84 are you sure AppleIntelCPUPM has to do with MSR CFG Lock? I remember it was KernelPm tag, no? @Slice? I boot fine with AppleIntelCPUPM=False and KernelPm=True (no unlock MSR in BIOS available for me).

 

@Slice please 2 things: are we supposed to have on the Clover boot UI the Quirk option to change PowerTimeoutKernelPanic ? I did not see it on r5133. Also, I did not see the option to change in the Quirk menu DevirtualiseMimo either, is it not useful to show these two? Just asking.

 

Also, please, any comment on these comparative settings? Left are Clover sample defaults (that boot) and right the Dortania guide for the Coffee/Whiskey Lake platform Quirks values.


MmioWhitelist:           empty/disabled array
AvoidRuntimeDefrag:      true
DevirtualiseMmio:        false
DisableSingleUser:       false
DisableVariableWrite:    false
DiscardHibernateMap:     false
EnableSafeModeSlide:     true
EnableWriteUnprotector:  true boots / false in Dortania Guide for Coffee platform
ForceExitBootServices:   false
ProtectMemoryRegions:    false
ProtectSecureBoot:       false
ProtectUefiServices:     false
ProvideCustomSlide:      false boots / true in Dortania Guide for Coffee platform
RebuildAppleMemoryMap:   false boots / true in Dortania Guide for Coffee platform
SetupVirtualMap:         true
SignalAppleOS:           false
SyncRuntimePermissions:  true
DummyPowerManagement:    false
AppleXcpmExtraMsrs:      false
AppleXcpmForceBoost:     false
DisableIoMapper:         true
DisableLinkeditJettison: true
ExternalDiskIcons:       false
IncreasePciBarSize:      false
PowerTimeoutKernelPanic: false boots / true in Dortania Guide for Coffee platform
ThirdPartyDrives:        false
XhciPortLimit:           false
FuzzyMatch:              true
KernelCache:             auto

Any Quirk values that I should change/test for safer booting that you advise? Thank you...

1.

Quote

Moreover @Matgen84 are you sure AppleIntelCPUPM has to do with MSR CFG Lock? I remember it was KernelPm tag, no? @Slice?

Both deal with MSR CFG Lock, but AppleIntelCPUPM for CPU up to IvyBridge while KernelPM for Ivy in xcpm mode and all modern cpus.

2.

Quote

@Slice please 2 things: are we supposed to have on the Clover boot UI the Quirk option to change PowerTimeoutKernelPanic ?

As far as I remember we have no such option. We have an option to not reboot on panic.

3.

Quote

Clover sample defaults (that boot) and right the Dortania guide

Whatever Dortania may say.

 

  • Like 2
  • Thanks 1
8 minutes ago, kushwavez said:

@MacKonsti Great. 

I have the default Quirks settings as in sample-config.plist on 5 hacks I used, everything's working as expected.

The only thing I modified is XhciPortLimit=true for my USB ports, and DisableIoMapper=false also with deleting ACPI/DropTables=DMAR and BGRT as there's no need to Drop them, for a working Virtual Machine.

 

In my opinion if everything is fine then there's no need to worry about it. Clover is very good at fixing/applying things automatically, unlike OC where you need to configure every single thing manually.

I have to note that XhciPortLimit has some troubles in system 11.3 and up.

DMAR is really no more need to be dropped since... Mojave? It is safe to drop it.

BGRT is useless table. No trouble no bounty.

4 hours ago, Jief_Machak said:

Could we just add -mc to te remaining compilation command ?

For my information : why the creation of the package worked when I commented out the compilation line with -mc

There are two different compilation with different results. But I am not ready to answer you. I shall explore the issue. 

  • Like 3
17 minutes ago, Slice said:

1. Both deal with MSR CFG Lock, but AppleIntelCPUPM for CPU up to IvyBridge while KernelPM for Ivy in xcpm mode and all modern cpus.

2. As far as I remember we have no such option. We have an option to not reboot on panic.

Спасибо @Slice but please note, PowerTimeoutKernelPanic does exist in the sample config and the validator also does not complain :)

Also DisableIoMapper is not present in the Quirks menu (boot GUI) that one is rather useful to also be able to change, no?

  • Sad 1
9 hours ago, Slice said:

Strange that I take a fresh copy from github on an empty place and the compilation was successful. How do you do to encounter such error?

 

Hi Slice,

 

With the /src folder removed, I just run the Clover command which downloads fresh from Github. I then choose option 7 and that happens.

  • Confused 1

  

21 hours ago, chris1111 said:

Ok simple Utility to sanity check config.plist Clover Config Validator View Full Video 15 seconds :hysterical: :lol:

Credit Clover team and @Jief_Machak

 

 

lol i did the same as alternative but ofc, it uses the already installed ccpv in /usr/local/bin

 

Quote

Hi Slice,

 

With the /src folder removed, I just run the Clover command which downloads fresh from Github. I then choose option 7 and that happens.

my guess

it is just because of that

 

Edited by LAbyOne
  • Like 1
27 minutes ago, D-an-W said:

 

Not sure what you mean, sorry.

 

If I choose option 1 first (Build Clover) I can then choose option 7 (Build All) and it works, I used to be able to just pick option 7.

can you test this and tell me what gives?

buildme.7z

just to be sure do a chmod a-x to it before using.

  • Thanks 2
15 minutes ago, LAbyOne said:

can you test this and tell me what gives?

buildme.7z 4.08 kB · 1 download

just to be sure do a chmod a-x to it before using.

 

This is what I get...

 

-----------------------------------------------------------
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
              Clover r (SHA: not a git repo)
  TOOLCHAIN: GCC53 (override example: './buildme XCODE8')
-----------------------------------------------------------
 1) build Clover
 2) build Clover with HFSPlus
 3) make pkg
 4) make app
 5) make app (with Clover)
 6) make iso
 7) build all
 8) test build (no autogen, no boot files)
 9) status
10) update Clover
11) show diff
12) open CloverV2/EFI/CLOVER directory
13) update Clover (reset changes)
14) clean BaseTools
15) Utilities
16) quit

Please enter your choice: 

 

5 hours ago, MacKonsti said:

Спасибо @Slice but please note, PowerTimeoutKernelPanic does exist in the sample config and the validator also does not complain :)

Also DisableIoMapper is not present in the Quirks menu (boot GUI) that one is rather useful to also be able to change, no?

These quirks exists due to embedded OpenCore and I have no connection with them.

  • Like 2
×
×
  • Create New...