PG7 Posted March 23, 2021 Share Posted March 23, 2021 16 hours ago, Jief_Machak said: J'ai supprimé la première option de chargement. N'importe qui avec un démarrage non-osx, veuillez tester. hello to everyone and the whole team tested here and working 100% boot on windows 10 Spoiler 4 1 Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1043/#findComment-2753690 Share on other sites More sharing options...
matxpa Posted March 23, 2021 Share Posted March 23, 2021 21 hours ago, Jief_Machak said: I've committed now. This commit is a refactoring, as usual. Which means, report the least behaviour change, please, but DON'T modify your config to workaround. The specific point I'd like to be tested, is custom entries and sub entries. If you have some of them configured, please test that it goes as usual. Thanks. @Jief_Machak On a Laptop Asus X75VB IvyBridge (with MBP11,3 SMBIOS) I5-3340M, HD4000 Starting Clover revision: 5131 (master, commit 829fd040d) on American Megatrends EFI Build id: 20210322154001-829fd04-dirty Build with: [Args: -D NO_GRUB_DRIVERS_EMBEDDED -D LESS_DEBUG -t XCODE8 | -D NO_GRUB_DRIVERS_EMBEDDED -D LESS_DEBUG --conf=/Users/xxxxx/CloverBootloader/Conf -D USE_LOW_EBDA -a X64 -b RELEASE -t XCODE8 -n 5 | OS: 11.2.3] BOOT OK with r5131 (829fd040d) on the next 5 CustomEntries (without SubEntries) in info.plist GUI section On Internal SSD 2,5" Crucial MX100 500 Gb Big Sur 11.2.3 (20D91) : Preboot item 1 in info.plist GUI/Custom/Entries Big Sur 11.2.3 (20D91) : Recovery item 2 in info.plist GUI/Custom/Entries On External SSD mSata EVO 860 250 Gb Big Sur beta4 11.3 (20E5210c) : Preboot item 3 in info.plist GUI/Custom/Entries Big Sur beta4 11.3 (20E5210c) : Recovery item 4 in info.plist GUI/Custom/Entries On Internal HDD 2,5" WD Black 500 Gb Sata III 7200 Win10 x64 20h2 item 5 in info.plist GUI/Custom/Entries Thanks Best regards 2 1 Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1043/#findComment-2753693 Share on other sites More sharing options...
maclinuxG4 Posted March 23, 2021 Share Posted March 23, 2021 12 hours ago, Jief_Machak said: I you tried my efi, it's a debug version = slower. Yes Boot->Debug will make it slower, especially on some USB stick, but DEBUG version are non-optimized and the code is also inherently slower. i recompil all each time Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1043/#findComment-2753706 Share on other sites More sharing options...
Jief_Machak Posted March 24, 2021 Share Posted March 24, 2021 11 hours ago, maclinuxG4 said: i recompil all each time Ok, in that case, send a debug.log from a boot with previous version and a log with slow new version. Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1043/#findComment-2753735 Share on other sites More sharing options...
Slice Posted March 24, 2021 Share Posted March 24, 2021 Or switch off debug and make preboot.log by F2. The difference is preboot.log will not slow down the process. Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1043/#findComment-2753736 Share on other sites More sharing options...
Jief_Machak Posted March 24, 2021 Share Posted March 24, 2021 Yes, possible too. But do the same way on the previous version and the slow version. Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1043/#findComment-2753737 Share on other sites More sharing options...
Slice Posted March 24, 2021 Share Posted March 24, 2021 1 hour ago, Jief_Machak said: Yes, possible too. But do the same way on the previous version and the slow version. Sure, debug.log in previous version is fast because it is not saved every line. It was useless because same as preboot.log. Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1043/#findComment-2753740 Share on other sites More sharing options...
Jief_Machak Posted March 24, 2021 Share Posted March 24, 2021 6 minutes ago, Slice said: Sure, debug.log in previous version is fast because it is not saved every line I think you are a bit stubborn here. Debug WAS saved at every line. I've told many time to look at the end of the new "SaveMessageToDebugLogFile()", there is "closeDebugLog()". You were convinced that the log was not generated on panic but in fact it was not generated at ALL because of no configuration in Clover.dsc for release version. Proof is : you wasted time to re-import old functions and they did the same for release version : no log. So the problem you had with release version was NOT because of the new log function. Period. Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1043/#findComment-2753741 Share on other sites More sharing options...
Slice Posted March 24, 2021 Share Posted March 24, 2021 The fact is debug.log now saved and second fact that in this case clover works much slowly. I see timings. Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1043/#findComment-2753749 Share on other sites More sharing options...
Jief_Machak Posted March 24, 2021 Share Posted March 24, 2021 34 minutes ago, Slice said: The fact is debug.log now saved and second fact that in this case clover works much slowly. I see timings. That's true. What wasn't true is the reason why and when it wasn't saved. That is not true : 3 hours ago, Slice said: Sure, debug.log in previous version is fast because it is not saved every line The diagnosis was wrong. when) Right = never generated for release even for successful boot. Wrong = because of a panic. why) Right = because it was configured in Clover.dsc. Wrong = because log file closed at every line. These are just the facts too. Gdb can be used to prove it. In fact, that's how I got the right diagnosis. Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1043/#findComment-2753752 Share on other sites More sharing options...
Slice Posted March 24, 2021 Share Posted March 24, 2021 @Jief_Machak See new bug https://www.applelife.ru/threads/clover.42089/page-1360#post-931895 introduced by commit 829fd040dc I will try to reproduce. Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1043/#findComment-2753762 Share on other sites More sharing options...
Jief_Machak Posted March 24, 2021 Share Posted March 24, 2021 Hum, surprising. I thought I didn't touch TextOnly boolean settings... Any config.plist and debug.log ? Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1043/#findComment-2753763 Share on other sites More sharing options...
Slice Posted March 24, 2021 Share Posted March 24, 2021 Yes, Press F1 Standard config.plist debug.log is attached 2021-3-24_16-34_CLOVERX64.EFI.log 1 Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1043/#findComment-2753764 Share on other sites More sharing options...
kushwavez Posted March 24, 2021 Share Posted March 24, 2021 (edited) oh yes I did see the same too, but thought it is normal for testing purposes so I didn't mention it. (that mouse scaling tho @Slice.. ) Edited March 24, 2021 by kushwavez Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1043/#findComment-2753765 Share on other sites More sharing options...
Slice Posted March 24, 2021 Share Posted March 24, 2021 It is not normal. We have graphical menu for Help, About and Options. They should not be text mode. Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1043/#findComment-2753766 Share on other sites More sharing options...
kushwavez Posted March 24, 2021 Share Posted March 24, 2021 yes now I know. I should've reported this as soon as I saw Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1043/#findComment-2753769 Share on other sites More sharing options...
Slice Posted March 24, 2021 Share Posted March 24, 2021 Those menus are intended to be drawn by GraphicsMenuStyle. And where is it? if (AllowGraphicsMode) { // Style = &REFIT_MENU_SCREEN::GraphicsMenuStyle; if (ThemeX.VerticalLayout) { m_MainStyle = &REFIT_MAINMENU_SCREEN::MainMenuVerticalStyle; } else { m_MainStyle = &REFIT_MAINMENU_SCREEN::MainMenuStyle; } }else{ m_MainStyle = &REFIT_MAINMENU_SCREEN::TextMenuStyle; } Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1043/#findComment-2753771 Share on other sites More sharing options...
matxpa Posted March 24, 2021 Share Posted March 24, 2021 On 3/22/2021 at 1:42 PM, Jief_Machak said: I've committed now. This commit is a refactoring, as usual. Which means, report the least behaviour change, please, but DON'T modify your config to workaround. The specific point I'd like to be tested, is custom entries and sub entries. If you have some of them configured, please test that it goes as usual. Thanks. Hi Jief I try to test "sub entries" with Clover r5131 (commit ff4c90b : Finish refactoring of custom entries settings) just wana start "Big Sur Preboot" in verbose mode with a sub entry in custom entry to test "sub entry" but Big Sur boots without verbose mode on std output. regards config.plist Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1043/#findComment-2753776 Share on other sites More sharing options...
Slice Posted March 24, 2021 Share Posted March 24, 2021 One more 2021-3-24_19-0_CLOVERX64.EFI.log.zip Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1043/#findComment-2753778 Share on other sites More sharing options...
matxpa Posted March 24, 2021 Share Posted March 24, 2021 49 minutes ago, matxpa said: Hi Jief I try to test "sub entries" with Clover r5131 (commit ff4c90b : Finish refactoring of custom entries settings) just wana start "Big Sur Preboot" in verbose mode with a sub entry in custom entry to test "sub entry" but Big Sur boots without verbose mode on std output. regards config.plist 14.97 kB · 2 downloads SubEntry-boot-log.txt Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1043/#findComment-2753782 Share on other sites More sharing options...
Jief_Machak Posted March 24, 2021 Share Posted March 24, 2021 On 3/9/2020 at 3:48 PM, Jief_Machak said: I've committed a Qemu folder, in which you can easily start under control of gdb to catch where the panic message come from. It'll considerably speed up the bug resolution. To use : - regenerate your basetools to recompile GenFW - install qemu with brew (super easy) - install gdb with brew (super easy too, but wait...) - codesign gdb. That's a bit annoying. Well there is plenty of guide over the internet and it doesn't take long. The thing is : if you got this error with a very good self explanatory message, you may have to create in your login keychain instead os System and move it after. I was able once to create in System, some time ago, but not anymore. This should work : https://gist.github.com/hlissner/898b7dfc0a3b63824a70e15cd0180154 If it doesn't work first time, it's not because of custom parameter of the certificate. No need to waste your time with that. The field you need to change are specify in the guide. It's really a problem of having your keychain unlock to create the certificate. If you got a panic message, compile with GCC53 toolchain, DEBUG version, then start Qemu/gdb_launch (not need in a the folder). When you got your panic agin, gdb should give you a prompt "(gdb) ". Just type bt, return and send us the backtrace. It looks like this and it's super helpful : (gdb) bt #0 panic () at /JiefLand/5.Devel/Clover/workspace_Clover-master/Clover--CloverHackyColor--master/rEFIt_UEFI/cpp_util/panic.cpp:18 #1 0x000000007ddb8448 in REFIT_MENU_SCREEN::RunGenericMenu (this=0x7deddfe0 <MainMenu>, StyleFunc=&virtual REFIT_MENU_SCREEN::MainMenuStyle(unsigned long long, wchar_t const*), DefaultEntryIndex=0x7fcef9b0, ChosenEntry=0x7fcef9c0) at /JiefLand/5.Devel/Clover/workspace_Clover-master/Clover--CloverHackyColor--master/rEFIt_UEFI/refit/menu.cpp:2770 #2 0x000000007ddc3426 in REFIT_MENU_SCREEN::RunMainMenu (this=0x7deddfe0 <MainMenu>, DefaultSelection=-1, ChosenEntry=0x7fcefac8) at /JiefLand/5.Devel/Clover/workspace_Clover-master/Clover--CloverHackyColor--master/rEFIt_UEFI/refit/menu.cpp:5682 #3 0x000000007dda8972 in RefitMain (ImageHandle=0x7ec38918, SystemTable=0x7f745f18) at /JiefLand/5.Devel/Clover/workspace_Clover-master/Clover--CloverHackyColor--master/rEFIt_UEFI/refit/main.cpp:2641 #4 0x000000007dda2360 in ProcessModuleEntryPointList (ImageHandle=0x7ec38918, SystemTable=0x7f745f18) at /JiefLand/5.Devel/Clover/workspace_Clover-master/Clover--CloverHackyColor--master/Build/Clover/DEBUG_GCC53/X64/rEFIt_UEFI/refit/DEBUG/AutoGen.c:497 #5 0x000000007dda2297 in _ModuleEntryPoint (ImageHandle=0x7ec38918, SystemTable=0x7f745f18) at /JiefLand/5.Devel/Clover/workspace_Clover-master/Clover--CloverHackyColor--master/MdePkg/Library/UefiApplicationEntryPoint/ApplicationEntryPoint.c:59 (gdb) Sometime, in the backtrace, you get a lot of line before (means below) RefitMain. No need for that. Hope you'll try. I'll assist. That a post I made to explain how to get the backtrace on a panic. Very easy once you've installed gdb. For example, I added a panic line 729: Compile a DEBUG_GCC53 version, launch ./Qemu/gdb_launch and you get : Breakpoint 2, panic_ (Python Exception <type 'exceptions.NameError'> Installation error: gdb.execute_unwinders function is missing: format=0x7ddb1938 "sdfsdf", va=0x7fcef488 "\377\377\377\377\377\377\377\377", <incomplete sequence \372\316\177>) at /JiefLand/5.Devel/Clover/Clover-projects/Clover--CloverHackyColor--master.2/rEFIt_UEFI/Platform/Posix/abort.cpp:37 37 egSetGraphicsModeEnabled(false); (gdb) Enter "bt" for backtrace and that's it : (gdb) bt Python Exception <type 'exceptions.ImportError'> No module named gdb.frames: #0 panic_ (format=0x7ddb1938 "sdfsdf", va=0x7fcef488 "\377\377\377\377\377\377\377\377", <incomplete sequence \372\316\177>) at /JiefLand/5.Devel/Clover/Clover-projects/Clover--CloverHackyColor--master.2/rEFIt_UEFI/Platform/Posix/abort.cpp:37 #1 0x000000007dc9b0d6 in panic (Python Exception <type 'exceptions.NameError'> Installation error: gdb.execute_unwinders function is missing: format=0x7ddb1938 "sdfsdf") at /JiefLand/5.Devel/Clover/Clover-projects/Clover--CloverHackyColor--master.2/rEFIt_UEFI/Platform/Posix/abort.cpp:71 #2 0x000000007dc7bb95 in REFIT_MAINMENU_SCREEN::RunMainMenu (Python Exception <type 'exceptions.NameError'> Installation error: gdb.execute_unwinders function is missing: this=0x7de1d700 <MainMenu>, DefaultSelection=-1, ChosenEntry=0x7fcefa28) at /JiefLand/5.Devel/Clover/Clover-projects/Clover--CloverHackyColor--master.2/rEFIt_UEFI/gui/REFIT_MAINMENU_SCREEN.cpp:729 #3 0x000000007dc45ac4 in RefitMain (Python Exception <type 'exceptions.NameError'> Installation error: gdb.execute_unwinders function is missing: ImageHandle=0x7ec39918, SystemTable=0x7f745f18) at /JiefLand/5.Devel/Clover/Clover-projects/Clover--CloverHackyColor--master.2/rEFIt_UEFI/refit/main.cpp:3339 #4 0x000000007dc38369 in ProcessModuleEntryPointList (Python Exception <type 'exceptions.NameError'> Installation error: gdb.execute_unwinders function is missing: ImageHandle=0x7ec39918, SystemTable=0x7f745f18) at /JiefLand/5.Devel/Clover/Clover-projects/Clover--CloverHackyColor--master.2/Build/Clover/DEBUG_GCC53/X64/rEFIt_UEFI/refit/DEBUG/AutoGen.c:649 #5 0x000000007dc38297 in _ModuleEntryPoint (Python Exception <type 'exceptions.NameError'> Installation error: gdb.execute_unwinders function is missing: ImageHandle=0x7ec39918, SystemTable=0x7f745f18) at /JiefLand/5.Devel/Clover/Clover-projects/Clover--CloverHackyColor--master.2/MdePkg/Library/UefiApplicationEntryPoint/ApplicationEntryPoint.c:59 (gdb) Notice the "REFIT_MAINMENU_SCREEN.cpp:729" on the frame #2. That way you'll get the exact line where most likely a loop among MainMenu.entries is wrong. I can do it if you send me the Qemu img AND the "./Build/Clover/DEBUG_GCC53/X64/CLOVERX64.debug" file, generated at the compilation of the CloverX64.efi that's in the img. Any other, from a previous compilation, won't work. Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1043/#findComment-2753785 Share on other sites More sharing options...
Jief_Machak Posted March 24, 2021 Share Posted March 24, 2021 1 hour ago, matxpa said: SubEntry-boot-log.txt 59.38 kB · 0 downloads I tried an old 5123 and your problem is already there. And it happens only when the parameter is "-v", I think. So I guess, somewhere Clover removes it for an unknown reason. Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1043/#findComment-2753787 Share on other sites More sharing options...
Jief_Machak Posted March 24, 2021 Share Posted March 24, 2021 I can also add that if you want to iterate through menu entries : if you use size(), you need then to access with operator [] if you used sizeIncludingHidden(), you need to use ElementAt() instead of []. This will panic otherwise. Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1043/#findComment-2753788 Share on other sites More sharing options...
Jief_Machak Posted March 25, 2021 Share Posted March 25, 2021 To save time from gdb compilation, this should work : gdb.zip Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1043/#findComment-2753807 Share on other sites More sharing options...
Jief_Machak Posted March 25, 2021 Share Posted March 25, 2021 The good news is : it looks like gdb doesn't need to be signed to debug qemu ! Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1043/#findComment-2753831 Share on other sites More sharing options...
Recommended Posts