Matgen84 Posted February 8, 2021 Share Posted February 8, 2021 (edited) Hi @Slice @Jief_Machak I have annoying issue with r5129 commit d66a14ae3 (IvyBridge config - Mojave): at start, black screen instead of Clover GUI I don't understand why. Don't try on Z390 and Big Sur 11.3 Beta Any one have this problem or just me. Edited February 8, 2021 by Matgen84 Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1028/#findComment-2750556 Share on other sites More sharing options...
Jief_Machak Posted February 8, 2021 Share Posted February 8, 2021 Just now, Matgen84 said: Hi @Slice @Jief_Machak I have annoying issue with r5129 commit d66a14ae3 (IvyBridge config - Mojave): at start, black screen instead of Clover GUI I don't understand why. Don't try on Z390 and Big Sur 11.3 Beta Any one have this problem or just me. debug.log ? So we can see as far as it went. It's most likely a NULL pointer exception. Most of firmware just ignore it, some just stop. Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1028/#findComment-2750557 Share on other sites More sharing options...
Matgen84 Posted February 8, 2021 Share Posted February 8, 2021 2 minutes ago, Jief_Machak said: debug.log ? So we can see as far as it went. It's most likely a NULL pointer exception. Most of firmware just ignore it, some just stop. Debug.log not generated on Ivybridge So I can't upload it. I test just now: same issue on Z390 config Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1028/#findComment-2750558 Share on other sites More sharing options...
Jief_Machak Posted February 8, 2021 Share Posted February 8, 2021 Just now, Matgen84 said: Debug.log not generated on Ivybridge Do you mean this time ? or never generated ? Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1028/#findComment-2750559 Share on other sites More sharing options...
Matgen84 Posted February 8, 2021 Share Posted February 8, 2021 Just now, Jief_Machak said: Do you mean this time ? or never generated ? I mean this time only ! Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1028/#findComment-2750560 Share on other sites More sharing options...
Jief_Machak Posted February 8, 2021 Share Posted February 8, 2021 Ah ok. That means a very early crash. Let's compile a version that put debug.log on screen. Here it is. You may need to film in slow motion (my main usage of a smartphone since a year !! ). CloverX64-2021-02-08-10-52-24-d66a14a-dirty-jief.zip 1 Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1028/#findComment-2750563 Share on other sites More sharing options...
Matgen84 Posted February 8, 2021 Share Posted February 8, 2021 21 minutes ago, Jief_Machak said: Ah ok. That means a very early crash. Let's compile a version that put debug.log on screen. Here it is. You may need to film in slow motion (my main usage of a smartphone since a year !! ). CloverX64-2021-02-08-10-52-24-d66a14a-dirty-jief.zip 762.62 kB · 0 downloads I've to find a android app for slow motion movie because I don't have it. I upload the movie, ASAP I try your dirty efi file: I can boot Big Sur on my Z390 config. Don't test IvyBridge. Is it a local building issue. ? Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1028/#findComment-2750565 Share on other sites More sharing options...
Jief_Machak Posted February 8, 2021 Share Posted February 8, 2021 1 minute ago, Matgen84 said: Is it a local building issue. ? Don't know. It's dirty because I redirect the log on screen. Not more. So maybe. To be sure, do a rm -r Build in clover directory. That way, you'll rebuild everything. It's strange. Last time, you cannot use the efi I sent you. Now my efi works and not yours... Maybe last time I had the problem you now have, generated builds that cause problems for your computer. Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1028/#findComment-2750566 Share on other sites More sharing options...
Matgen84 Posted February 8, 2021 Share Posted February 8, 2021 4 minutes ago, Jief_Machak said: Don't know. It's dirty because I redirect the log on screen. Not more. So maybe. To be sure, do a rm -r Build in clover directory. That way, you'll rebuild everything. It's strange. Last time, you cannot use the efi I sent you. Now my efi works and not yours... Maybe last time I had the problem you now have, generated builds that cause problems for your computer. I don't find a free android app effective for filming in slow motion. Yes, it's strange. I will delete the Build directory and recompile to see. I'll keep you posted. Thanks Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1028/#findComment-2750568 Share on other sites More sharing options...
Matgen84 Posted February 8, 2021 Share Posted February 8, 2021 31 minutes ago, Jief_Machak said: To be sure, do a rm -r Build in clover directory. That way, you'll rebuild everything. It's strange. Last time, you cannot use the efi I sent you. Now my efi works and not yours... Maybe last time I had the problem you now have, generated builds that cause problems for your computer. I remove Build in Clover, rebuild again everything: same issue Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1028/#findComment-2750572 Share on other sites More sharing options...
Jief_Machak Posted February 8, 2021 Share Posted February 8, 2021 Let's try to solve that once for all ! In BootLog.cpp, change line 281 : MemLogfVA(TRUE, DebugMode, FormatString, Marker); by MemLogfVA(TRUE, 2, FormatString, Marker); Compile (no need to rm -R Build). Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1028/#findComment-2750573 Share on other sites More sharing options...
Matgen84 Posted February 8, 2021 Share Posted February 8, 2021 34 minutes ago, Jief_Machak said: Let's try to solve that once for all ! In BootLog.cpp, change line 281 : MemLogfVA(TRUE, DebugMode, FormatString, Marker); by MemLogfVA(TRUE, 2, FormatString, Marker); Compile (no need to rm -R Build). Which one, there is 2 BootLog.cpp. I suppose: rEFIt_UEFI ▸ Platform, Right. Note: when I compile with GCC53 instead of XCODE8: I can boot Mojave (IvyBridge) Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1028/#findComment-2750576 Share on other sites More sharing options...
Jief_Machak Posted February 8, 2021 Share Posted February 8, 2021 1 minute ago, Matgen84 said: Which one, there is 2 BootLog.cpp. I suppose: rEFIt_UEFI ▸ Platform, Right Yes. The others are in my Xcode unit tests projects and are not used for Clover EFI. 1 Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1028/#findComment-2750577 Share on other sites More sharing options...
Matgen84 Posted February 8, 2021 Share Posted February 8, 2021 (edited) 36 minutes ago, Jief_Machak said: Yes. The others are in my Xcode unit tests projects and are not used for Clover EFI. Modify Bootlog.cpp, rebuild... Test on Z390 from USB XCODE8 Build: When I use Bootloader Chooser selected from F12: 'press any key to continue' message after select efi file When I use normal USB selected from F12: instant return to BIOS boot chooserGCC53 Build: When I use Bootloader Chooser selected from F12: I can boot BS When I use normal USB selected from F12: I can boot BS Edited February 8, 2021 by Matgen84 Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1028/#findComment-2750579 Share on other sites More sharing options...
Jief_Machak Posted February 8, 2021 Share Posted February 8, 2021 in rEFIt_UEFI/refit/main.cpp, remove line 2570 "#define DEBUG_ERALY_CRASH" and 2 line lower "#endif" Then, if you don't have message "Start" at the beginning, the crash is not in Clover, which seems impossible. Let's assume you'll have it. Then, move these down : SystemTable->ConOut->OutputString(SystemTable->ConOut, L"Start"); PauseForKey(L"1) press any key\n"); line 2599. If now you can't see it : move up. If you still see the message : move down No need to go past line 2627, because it's MsgLog, which should have printed something on the console. So the crash is before. Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1028/#findComment-2750580 Share on other sites More sharing options...
Jief_Machak Posted February 8, 2021 Share Posted February 8, 2021 I realize there is a new thing on line 2612 "DataHubInstall (ImageHandle, SystemTable);" Maybe it's in there. Also, to go quicker. Instead of moving the 2 lines, just duplicate SystemTable->ConOut->OutputString(SystemTable->ConOut, L"Start"); and change the message. Like : #ifdef DEBUG_ERALY_CRASH SystemTable->ConOut->OutputString(SystemTable->ConOut, L"Start"); PauseForKey(L"1) press any key\n"); #endif #ifdef DEBUG_ON_SERIAL_PORT SerialPortInitialize(); #endif SystemTable->ConOut->OutputString(SystemTable->ConOut, L"Start1"); { EFI_LOADED_IMAGE* LoadedImage; Status = gBS->HandleProtocol(gImageHandle, &gEfiLoadedImageProtocolGuid, (void **) &LoadedImage); // if ( !EFI_ERROR(Status) ) { // XString8 msg = S8Printf("Clover : Image base = 0x%llX\n", (uintptr_t)LoadedImage->ImageBase); // do not change, it's used by grep to feed the debugger // SerialPortWrite((UINT8*)msg.c_str(), msg.length()); // } if ( !EFI_ERROR(Status) ) DBG("CloverX64 : Image base = 0x%llX\n", (uintptr_t)LoadedImage->ImageBase); // do not change, it's used by grep to feed the debugger #ifdef JIEF_DEBUG gBS->Stall(1500000); // to give time to gdb to connect // gBS->Stall(0500000); // to give time to gdb to connect // PauseForKey(L"press\n"); #endif } SystemTable->ConOut->OutputString(SystemTable->ConOut, L"Start2"); #ifdef CLOVER_BUILD construct_globals_objects(gImageHandle); // do this after self.getSelfLoadedImage() is initialized #endif SystemTable->ConOut->OutputString(SystemTable->ConOut, L"Start3"); #ifdef JIEF_DEBUG // all_tests(); // PauseForKey(L"press\n"); #endif gRT->GetTime(&Now, NULL); SystemTable->ConOut->OutputString(SystemTable->ConOut, L"Start4"); // firmware detection gFirmwareClover = StrCmp(gST->FirmwareVendor, L"CLOVER") == 0; if (!gFirmwareRevision) { // gFirmwareRevision = P__oolPrint(L"%d", gST->FirmwareRevision); } SystemTable->ConOut->OutputString(SystemTable->ConOut, L"Start5"); DataHubInstall (ImageHandle, SystemTable); SystemTable->ConOut->OutputString(SystemTable->ConOut, L"Start6"); InitializeConsoleSim(); SystemTable->ConOut->OutputString(SystemTable->ConOut, L"Start7"); InitBooterLog(); SystemTable->ConOut->OutputString(SystemTable->ConOut, L"Start8"); ZeroMem((void*)&gGraphics[0], sizeof(GFX_PROPERTIES) * 4); ZeroMem((void*)&gAudios[0], sizeof(HDA_PROPERTIES) * 4); DBG("\n"); if (Now.TimeZone < -1440 || Now.TimeZone > 1440) { MsgLog("Now is %02d.%02d.%d, %02d:%02d:%02d (GMT)\n", Now.Day, Now.Month, Now.Year, Now.Hour, Now.Minute, Now.Second); } else { MsgLog("Now is %02d.%02d.%d, %02d:%02d:%02d (GMT+%d)\n", Now.Day, Now.Month, Now.Year, Now.Hour, Now.Minute, Now.Second, gSettings.GUI.Timezone); } SystemTable->ConOut->OutputString(SystemTable->ConOut, L"Start10"); //MsgLog("Starting Clover rev %ls on %ls EFI\n", gFirmwareRevision, gST->FirmwareVendor); MsgLog("Starting %s on %ls EFI\n", gRevisionStr, gST->FirmwareVendor); MsgLog("Build id: %s\n", gBuildId.c_str()); if ( gBuildInfo ) DBG("Build with: [%s]\n", gBuildInfo); You can copy and paste this in main.cpp. Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1028/#findComment-2750581 Share on other sites More sharing options...
Matgen84 Posted February 8, 2021 Share Posted February 8, 2021 8 minutes ago, Jief_Machak said: You can copy and paste this in main.cpp. Ok. I modify the file. In my previous post, do you see that there is no problem when GCC53 Build. Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1028/#findComment-2750583 Share on other sites More sharing options...
iCanaro Posted February 8, 2021 Share Posted February 8, 2021 3 hours ago, Matgen84 said: Hi @Slice @Jief_Machak I have annoying issue with r5129 commit d66a14ae3 (IvyBridge config - Mojave): at start, black screen instead of Clover GUI I don't understand why. Don't try on Z390 and Big Sur 11.3 Beta Any one have this problem or just me. no problem detected in starting Z68, Z97, Z370, X570 try the clover i compiled CLOVERX64-5129-d66a14ae3.efi.zip Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1028/#findComment-2750585 Share on other sites More sharing options...
Matgen84 Posted February 8, 2021 Share Posted February 8, 2021 21 minutes ago, Jief_Machak said: I realize there is a new thing on line 2612 "DataHubInstall (ImageHandle, SystemTable);" Maybe it's in there. Also, to go quicker. Instead of moving the 2 lines, just duplicate SystemTable->ConOut->OutputString(SystemTable->ConOut, L"Start"); and change the message. Like : #ifdef DEBUG_ERALY_CRASH SystemTable->ConOut->OutputString(SystemTable->ConOut, L"Start"); PauseForKey(L"1) press any key\n"); #endif #ifdef DEBUG_ON_SERIAL_PORT SerialPortInitialize(); #endif SystemTable->ConOut->OutputString(SystemTable->ConOut, L"Start1"); { EFI_LOADED_IMAGE* LoadedImage; Status = gBS->HandleProtocol(gImageHandle, &gEfiLoadedImageProtocolGuid, (void **) &LoadedImage); // if ( !EFI_ERROR(Status) ) { // XString8 msg = S8Printf("Clover : Image base = 0x%llX\n", (uintptr_t)LoadedImage->ImageBase); // do not change, it's used by grep to feed the debugger // SerialPortWrite((UINT8*)msg.c_str(), msg.length()); // } if ( !EFI_ERROR(Status) ) DBG("CloverX64 : Image base = 0x%llX\n", (uintptr_t)LoadedImage->ImageBase); // do not change, it's used by grep to feed the debugger #ifdef JIEF_DEBUG gBS->Stall(1500000); // to give time to gdb to connect // gBS->Stall(0500000); // to give time to gdb to connect // PauseForKey(L"press\n"); #endif } SystemTable->ConOut->OutputString(SystemTable->ConOut, L"Start2"); #ifdef CLOVER_BUILD construct_globals_objects(gImageHandle); // do this after self.getSelfLoadedImage() is initialized #endif SystemTable->ConOut->OutputString(SystemTable->ConOut, L"Start3"); #ifdef JIEF_DEBUG // all_tests(); // PauseForKey(L"press\n"); #endif gRT->GetTime(&Now, NULL); SystemTable->ConOut->OutputString(SystemTable->ConOut, L"Start4"); // firmware detection gFirmwareClover = StrCmp(gST->FirmwareVendor, L"CLOVER") == 0; if (!gFirmwareRevision) { // gFirmwareRevision = P__oolPrint(L"%d", gST->FirmwareRevision); } SystemTable->ConOut->OutputString(SystemTable->ConOut, L"Start5"); DataHubInstall (ImageHandle, SystemTable); SystemTable->ConOut->OutputString(SystemTable->ConOut, L"Start6"); InitializeConsoleSim(); SystemTable->ConOut->OutputString(SystemTable->ConOut, L"Start7"); InitBooterLog(); SystemTable->ConOut->OutputString(SystemTable->ConOut, L"Start8"); ZeroMem((void*)&gGraphics[0], sizeof(GFX_PROPERTIES) * 4); ZeroMem((void*)&gAudios[0], sizeof(HDA_PROPERTIES) * 4); DBG("\n"); if (Now.TimeZone < -1440 || Now.TimeZone > 1440) { MsgLog("Now is %02d.%02d.%d, %02d:%02d:%02d (GMT)\n", Now.Day, Now.Month, Now.Year, Now.Hour, Now.Minute, Now.Second); } else { MsgLog("Now is %02d.%02d.%d, %02d:%02d:%02d (GMT+%d)\n", Now.Day, Now.Month, Now.Year, Now.Hour, Now.Minute, Now.Second, gSettings.GUI.Timezone); } SystemTable->ConOut->OutputString(SystemTable->ConOut, L"Start10"); //MsgLog("Starting Clover rev %ls on %ls EFI\n", gFirmwareRevision, gST->FirmwareVendor); MsgLog("Starting %s on %ls EFI\n", gRevisionStr, gST->FirmwareVendor); MsgLog("Build id: %s\n", gBuildId.c_str()); if ( gBuildInfo ) DBG("Build with: [%s]\n", gBuildInfo); You can copy and paste this in main.cpp. Same issue with Bootloader Chooser and USB normal Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1028/#findComment-2750588 Share on other sites More sharing options...
Jief_Machak Posted February 8, 2021 Share Posted February 8, 2021 You see no messages at all ? Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1028/#findComment-2750589 Share on other sites More sharing options...
Matgen84 Posted February 8, 2021 Share Posted February 8, 2021 4 minutes ago, iCanaro said: no problem detected in starting Z68, Z97, Z370, X570 try the clover i compiled CLOVERX64-5129-d66a14ae3.efi.zip 650.52 kB · 0 downloads Thanks. Do use XCODE or GCC to build ? I've only problem with XCODE. Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1028/#findComment-2750590 Share on other sites More sharing options...
Jief_Machak Posted February 8, 2021 Share Posted February 8, 2021 Interesting, you are "InsanelyMacaholic", I am "teh 1337n3ss!" ! 3 Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1028/#findComment-2750592 Share on other sites More sharing options...
Matgen84 Posted February 8, 2021 Share Posted February 8, 2021 2 minutes ago, Jief_Machak said: You see no messages at all ? Take a look to page 1041, I edit my post few minutes ago Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1028/#findComment-2750593 Share on other sites More sharing options...
iCanaro Posted February 8, 2021 Share Posted February 8, 2021 4 minutes ago, Matgen84 said: Thanks. Do use XCODE or GCC to build ? I've only problem with XCODE. XCODE usage I normally click build, menu 10 then menu 7 Z370 --> Catalina --> XCODE 12.4 1 Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1028/#findComment-2750594 Share on other sites More sharing options...
Matgen84 Posted February 8, 2021 Share Posted February 8, 2021 3 minutes ago, iCanaro said: XCODE usage I normally click build, menu 10 then menu 7 Z370 --> Catalina --> XCODE 12.4 I use XCODE 11.3.1 (Mojave 10.14.6) IvyBridge - Z77 to build Clover. Don't use my Z390 for building Clover Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1028/#findComment-2750595 Share on other sites More sharing options...
Recommended Posts