GA-Z97X-Gaming 5: Random reboots and FileVault issues đ¤Ž
TLDR: Weird things happen before booting into kernel: Update your BIOS
Since 2015 I am using the GA-Z97X-Gaming 5 for my main desktop machine and eversince the beginning it behaved a bit weird.
- It sometimes needed 2 to 4 tries to POST. (âTHE BOOT LOOPâ)
- Kernel panics happened out of nowhere (but quite rarely). Most crash reports would mention something about APFS but I was never able to get more out of them.
- In about 20% of boot processes, Clover reseted after selecting âFileVault Preloaderâ (âTHE CLOVER RESETâ)
- In about 40% of boot processes, the FileVault Preloader was not able to boot into the kernel (âFILEVAULT PRELOADERâ)
After four years I somehow got used to boot my machine two or even four times. Since standby worked pretty good I almost never turned it off. I always thought it was an issue with the bootloader (Clover) but when I recently updated to revision 5098 the problem still wasnât gone. Thatâs why I asked for help on insanelymac.com. Shortly after, I found the solution by myself đââď¸.
Troubleshooting
Starting from day one I thought it may be a bug in Clover. I didnât want to spend the time to get into Cloverâs source and debug it by myself. Therefore I waited it out and updated to newer revisions every now and then. The problem was never resolved.
Some days ago I started looking into âTHE CLOVER RESETâ âŚ
- I copied by bootloader usb thumb drive over to another usb thumb drive and used that to boot OSX.
- I cloned my OSX installation to another drive and disconnected the original drive.
- I tried several Clover revisions: 5100, 5099, 5098, 5097, 5096, 5045
- I enabled the debug settings in cloverâs config. Using cloverâs
debug.logI was able to get details about what happend when theFileVault Preloaderwasnât able to boot into the kernel. It always stopped just beforeAPFS driver loaded. Thatâs why I investigated further intoApfsDriverLoader.efi. - I tried to get rid of
ApfsDriverLoader.efiand used a old version ofapfs.efi. - I looked into ApfsDriverLoaderâs source code. It was easy to find where the
'APFS driver loaded'message is logged but I didnât want to get outright into debugging clover. (How do I even do that without a serial port?) - I googled for hours: âApfsDriverLoader crashâ, âCrash after FileVault Prebooterâ, âGA-Z97X FileVaultâ
- Somehow I landed in the FileVaul 2 thread on InsanelyMac and noticed that nobody had similar issues. Thatâs why I asked for help.
After another desperate day of googling I started looking into âTHE BOOT LOOPâ.
- Google: âGA-Z97X-Gaming 5 takes several tries to postâ, âGA-Z97X-Gaming 5 POST problemâ, âGA-Z97X-Gaming 5 boot loopâ, âGA-Z97X-Gaming 5 issuesâ
- In some overclocker forum somebody wrote about how bad all the GA-Z97 BIOSâes are because of memory corruption, overclocking settings not being applied and some more. Another person mentioned that his MB (GA-Z97X-Gaming 5) works pretty good with BIOS
F8a.F8a?! Gigabyteâs support website doesnât even list theF8aBIOS!! - Memory corruption sounds like something that could trigger problems like that. It was my only clue âŚ
- After some more googling I found the F8a BIOS for my motherboard, downloaded it onto a
FAT32formatted thumb drive, flashed it usingQ-Flash, loaded optimized default settings in BIOS and finally re-applied all needed BIOS settings for overclocking and OSX.
I couldnât trust my eyes. It booted into Clover in a matter of seconds. FileVault Preloader loaded fast too, as well as OSX. I believed I just had some luck with that try and tried five additional times. No more boot loops, no more clover resets, no more not beeing able to load the kernel. I had this motherboard for four years and now it feels like itâs brand new.