Jief_Machak Posted September 25, 2021 Share Posted September 25, 2021 Just now, Slice said: And old one can be renamed to -v11? Yes. But if you have v11 and v12 and try an old version, both will be tried to be loaded. Link to comment Share on other sites More sharing options...
Slice Posted September 25, 2021 Share Posted September 25, 2021 4 minutes ago, Matgen84 said: @Jief_Machak Please, don't forget to reimplement the @Slice commit about Update to Monterey Beta 7. Have a nice day. Done. 10 minutes ago, Jief_Machak said: @Slice Thing to have a look : in CommonPatches.c, importing KernelCPUIDPatch() if needed (maybe there is a kernel cpuid patch mechanism we can use instead ?). I will study this moment 2 Link to comment Share on other sites More sharing options...
Matgen84 Posted September 25, 2021 Share Posted September 25, 2021 2 hours ago, MifJpnAlphaPlus said: I'm sorry to have rushed you into such an important idea. I want to cooperate fully! I'll ansered your lead and hold off on the build for now. I made the following log from the Clover, BLT, and OpenRuntime-v12.efi I received. 2021-09-25_08-45_CloverX64-2021-09-23-22-55-36-8f3b2f0-jief.efi.log.zip 21.18 kB · 4 downloads Cannot boot.😞 I will open everything. EFI.2109251753.zip I know it is hard for you to use your precious time, but please help me. Thank you very much. Hi. As @Jief_Machak says: have a look to FixOwnerShip in your config.plist ! For my Z390 config, I've the same trouble. All works fine when @Jief_Machak set FixOwnerShip to false. 1 Link to comment Share on other sites More sharing options...
Slice Posted September 25, 2021 Share Posted September 25, 2021 1 minute ago, Jief_Machak said: Yes. But if you have v11 and v12 and try an old version, both will be tried to be loaded. Because old Clover has no the method to not load other version... 3 hours ago, Sherlocks said: hi jief, can you consider emulated nvram support? old clover support emulated nvram feature. but now latest clover is not supporting it. Sent from my SM-N960N using Tapatalk Why do you think it absents? Link to comment Share on other sites More sharing options...
Jief_Machak Posted September 25, 2021 Share Posted September 25, 2021 3 minutes ago, Slice said: Because old Clover has no the method to not load other version... Yes, exactly. So it'll be more handy when we'll have v13. 4 minutes ago, Slice said: Why do you think it absents? No real idea what that is. Isn't this an external efi to put in drivers, and not something internal to Clover ? Link to comment Share on other sites More sharing options...
SavageAUS Posted September 25, 2021 Share Posted September 25, 2021 Will the next “release” version include of these recent changes? Will there be any changes to config.plist?Sent from my iPhone using Tapatalk Link to comment Share on other sites More sharing options...
Matgen84 Posted September 25, 2021 Share Posted September 25, 2021 (edited) Hi @Slice How to use 'Implement ExtendedFeatures' for Monterey in config-sample.plist ! Just uncommented the key, right 🙂 For my Z390, I use SMBIOS Imac19,1. My FirmwareFeatures, FirmwareFeaturesMask values aren't the same as in the config-sample. I admit that I don't understand a thing. Edited September 25, 2021 by Matgen84 Link to comment Share on other sites More sharing options...
Slice Posted September 25, 2021 Share Posted September 25, 2021 14 minutes ago, Matgen84 said: Hi @Slice How to use 'Implement ExtendedFeatures' for Monterey in config-sample.plist ! Just uncommented the key, right 🙂 Right. For me default value is good. 2 Link to comment Share on other sites More sharing options...
Slice Posted September 25, 2021 Share Posted September 25, 2021 1 hour ago, Jief_Machak said: No real idea what that is. Isn't this an external efi to put in drivers, and not something internal to Clover ? For legacy BIOS there is a driver MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe/ which is included into boot6 and boot7 providing emulated NVRAM into RAM. So variables will be keeping in memory until reboot. In the case of shutdown or reboot the Clover provided shutdown script which save variables from emulated NVRAM into the file nvram.plist. Next start Clover will read the file nvram.plist and place its content into new RAM which will be assigned to emulated NVRAM again. For UEFI BIOS there are always hardware NVRAM but some years ago it was unaccessible from Clover so why Dmazar wrote new driver EmuVariableUefi.efi which also create emulated NVRAM into RAM but taking into account there is UEFI BIOS. vit9696 invented a method to force native NVRAM in new drivers AptioMemoryFix and OpenRuntime. Since that EmuVariableUefi.efi is no more used by anybody although remains in sources. So @Sherlocks what is your question? Link to comment Share on other sites More sharing options...
Sherlocks Posted September 25, 2021 Share Posted September 25, 2021 (edited) 8 minutes ago, Slice said: For legacy BIOS there is a driver MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe/ which is included into boot6 and boot7 providing emulated NVRAM into RAM. So variables will be keeping in memory until reboot. In the case of shutdown or reboot the Clover provided shutdown script which save variables from emulated NVRAM into the file nvram.plist. Next start Clover will read the file nvram.plist and place its content into new RAM which will be assigned to emulated NVRAM again. For UEFI BIOS there are always hardware NVRAM but some years ago it was unaccessible from Clover so why Dmazar wrote new driver EmuVariableUefi.efi which also create emulated NVRAM into RAM but taking into account there is UEFI BIOS. vit9696 invented a method to force native NVRAM in new drivers AptioMemoryFix and OpenRuntime. Since that EmuVariableUefi.efi is no more used by anybody although remains in sources. So @Sherlocks what is your question? About a month or so ago, I reported on this issue. Before clover was mixed with open core, it worked fine. Edited September 25, 2021 by Sherlocks Link to comment Share on other sites More sharing options...
Slice Posted September 25, 2021 Share Posted September 25, 2021 2 hours ago, Jief_Machak said: @Slice Thing to have a look : in CommonPatches.c, importing KernelCPUIDPatch() if needed (maybe there is a kernel cpuid patch mechanism we can use instead ?). Where is PatchKernelCpuId() implementation? 12 minutes ago, Sherlocks said: About a month or so ago, I reported on this issue. Before clover was mixed with open core, it worked fine. If you have EmuVariableUefi.efi then exclude it and test. OpenRuntime should make native NVRAM working. Link to comment Share on other sites More sharing options...
Slice Posted September 25, 2021 Share Posted September 25, 2021 1 hour ago, Slice said: Where is PatchKernelCpuId() implementation? OK here, I found xcode project should be reimplemented. Link to comment Share on other sites More sharing options...
Jief_Machak Posted September 25, 2021 Share Posted September 25, 2021 1 hour ago, Slice said: I found xcode project should be reimplemented What is 'xcode project' Link to comment Share on other sites More sharing options...
Slice Posted September 25, 2021 Share Posted September 25, 2021 41 minutes ago, Jief_Machak said: What is 'xcode project' I use Xcode as an IDE to find symbols in the whole project. But not for compilation. Hmm, text editor size of 30Gb.... Link to comment Share on other sites More sharing options...
Slice Posted September 26, 2021 Share Posted September 26, 2021 You don't need to check AutoGenerated.c. The key feature is bit 35 in (Extended)FirmwareFeatures and in the mask. Thanks to vit9696 for the discovery. I should note that old FirmwareFeatures is 32bit only. We have to set the bit in the ExtendedFirmwareFeatures. Now Clover has the default values for some models. Other users may set it in config.plist. 2 Link to comment Share on other sites More sharing options...
Jief_Machak Posted September 26, 2021 Share Posted September 26, 2021 12 hours ago, Slice said: I use Xcode as an IDE to find symbols in the whole project. Yeah, I never understood why you don't use the CloverX64 project I made. So much quicker. Compiled the whole Clover (I mean Clover itself, the rEFIt_UEFI folder) and 10 seconds. 12 hours ago, Slice said: Hmm, text editor size of 30Gb... ? Can I help in any way ? Link to comment Share on other sites More sharing options...
SavageAUS Posted September 26, 2021 Share Posted September 26, 2021 You don't need to check AutoGenerated.c. The key feature is bit 35 in (Extended)FirmwareFeatures and in the mask. Thanks to vit9696 for the discovery. I should note that old FirmwareFeatures is 32bit only. We have to set the bit in the ExtendedFirmwareFeatures. Now Clover has the default values for some models. Other users may set it in config.plist.Which models are they? Will all these new changes be included in the next clover release? Any changes to config.plist? Will there be documentation?Sent from my iPhone using Tapatalk 1 Link to comment Share on other sites More sharing options...
yapan4 Posted September 26, 2021 Share Posted September 26, 2021 (edited) New config.plist sample from commit 6a6c66a4a: config-sample.plist Edited September 26, 2021 by yapan4 2 Link to comment Share on other sites More sharing options...
Slice Posted September 26, 2021 Share Posted September 26, 2021 10 hours ago, Jief_Machak said: Yeah, I never understood why you don't use the CloverX64 project I made. So much quicker. Compiled the whole Clover (I mean Clover itself, the rEFIt_UEFI folder) and 10 seconds. ? Can I help in any way ? You can help me if tell an textEditor which can search a keyword through all files in chosen files set. For example I want to find all occurrence of word "FirmwareFeatures". Xcode can, but it weights 31Gb. I didn't use the project CloverX64 because it doesn't contain all interesting sources. And compilation only DEBUG-XCODE8? I want RELEASE_GCC53. If I change one file then the compilation by hebuild.sh is 10 seconds. Link to comment Share on other sites More sharing options...
Jief_Machak Posted September 26, 2021 Share Posted September 26, 2021 2 hours ago, Slice said: hebuild.sh is 10 seconds If you modify only one file, xcode compilation is half a second. It's a big time saver after having written a big piece of code, to catch all syntax errors. Just saying... 2 hours ago, Slice said: CloverX64 because it doesn't contain all interesting sources Source reference can be added, no problem. 2 hours ago, Slice said: I want RELEASE_GCC53 Yes, it's not meant to replace build scripts. Once it compiles, I switch to GCC, with ebuild.sh, as it works better in gdb. Also : I can see that hebuild.sh and ebuild.sh are almost the same. One difference, for example, is that they don't use the same mtoc binary. Shouldn't we update and keep only one ? Redundancy is always dangerous... 2 hours ago, Slice said: I want to find all occurrence of word "FirmwareFeatures" grep ? Annoying because it's command line, but easy to use. I think Visual Studio Code do it too. Link to comment Share on other sites More sharing options...
Guest 5T33Z0 Posted September 26, 2021 Share Posted September 26, 2021 @yapan4 So 0x3E7 is the new CsrActiveConfig for Big Sur/Monterey? For beeing a "new" sample, I think it has an awful lot of obsolete options, patches, features and quirks for old OSes and CPUs enabled… Link to comment Share on other sites More sharing options...
yapan4 Posted September 26, 2021 Share Posted September 26, 2021 2 minutes ago, 5T33Z0 said: @yapan4 So 0x3E7 is the new CsrActiveConfig for Big Sur/Monterey? For beeing a "new" sample, I think it has an awful lot of obsolete options, patches, features and quirks for old OSes and CPUs enabled… It's not final version, for comparison and test only! Link to comment Share on other sites More sharing options...
chris1111 Posted September 27, 2021 Share Posted September 27, 2021 Your Sample Config.plist https://github.com/CloverHackyColor/CloverBootloader/commit/f0a20247e9edc34f9eb55a3d9e14bbda858734f5 is not good for CloverConfigValidator 1 Link to comment Share on other sites More sharing options...
SavageAUS Posted September 27, 2021 Share Posted September 27, 2021 Your Sample Config.plist https://github.com/CloverHackyColor/CloverBootloader/commit/f0a20247e9edc34f9eb55a3d9e14bbda858734f5 is not good for CloverConfigValidator Has the CCPV been updated with new changes?Sent from my iPhone using Tapatalk Link to comment Share on other sites More sharing options...
joevt Posted September 27, 2021 Share Posted September 27, 2021 6 hours ago, Jief_Machak said: If you modify only one file, xcode compilation is half a second. It's a big time saver after having written a big piece of code, to catch all syntax errors. Just saying... Source reference can be added, no problem. Yes, it's not meant to replace build scripts. Once it compiles, I switch to GCC, with ebuild.sh, as it works better in gdb. Also : I can see that hebuild.sh and ebuild.sh are almost the same. One difference, for example, is that they don't use the same mtoc binary. Shouldn't we update and keep only one ? Redundancy is always dangerous... grep ? Annoying because it's command line, but easy to use. I think Visual Studio Code do it too. I use BBEdit.app. It can do regular expression searches. It has worksheets so you could also use grep while inside BBEdit.app. I use the worksheets for git and building as well. It's like Terminal.app but you can select commands and press enter to execute them and edit the output. Worksheets are an idea from the MPW days. MPW was cool because you could execute scripts to modify all the menus and add menu commands. It had commands to manipulate text windows, the current selection, etc. For example, MPW didn't have text block selection capabilities but you could make scripts/menu commands to add that functionality. For EFI projects, I like using -save-temps in the compiler commands. Then I can search the .i files to find the include file where a struct or function is defined. They can be used to find compile problems (it shows what the preprocessor produces). It's one way to find the include file for an EFI protocol for example. Link to comment Share on other sites More sharing options...
Recommended Posts