Contribute
Register

[Guide] Fix panic on asrock new BIOS [for H310, B360, Z390, deskmini 310]

Joined
Nov 3, 2018
Messages
305
Motherboard
ASRock B360-HDV
CPU
i5-8400
Graphics
RX 470
Mobile Phone
iOS
Hi, recently upgraded my asrock B360M BIOS to v4.10 and failed to boot macOS. so i extracted the DSDT.aml of v3.10 and v4.10, and did a diff, find out that there is a new _STA block in RTC device of v4.1 BIOS, as attached screenshot (left v3.10, right v4.10)
411099


to remove the _STA block from the DSDT.aml of new bios, i can just rename the _STA to XSTA, but there are so many "_STA" in DSDT.aml, to locate the _STA of RTC device, i have to use Hex Fiend to open the DSDT.aml and look for the hex of _STA under RTC, the hex code of _STA is 5F535441, this can be calculated use some online TEXT to HEX converter, to locate the one under RTC device, i have to find out what's the 8 bit code on the left and right, finally i found out, it is:

79001415 5F535441 00A00A93
Left Bits | _STA(of RTC) | Right Bits

to rename it to XSTA, i just need to use 58535441(hex of XSTA) on the same location, which is

79001415 58535441 00A00A93
Left Bits | XSTA(of RTC) |Right Bits

the left bits and right bits are for precise locating, to make sure we rename the _STA of RTC device, not the _STA of other devices.

Finally, to make sure that i did not rename other _STA, open DSDT.aml of v4.10 BIOS with Hex Fiend, search for 79001415 5F535441 00A00A93, there is only one result, then that's the proof.

So, grab Clover Configurator, open config.plist, go to ACPI/DSDT/Patches:

Comments: Rename _STA to XSTA of RTC Device (c. justinhe)
Find: 79001415 5F535441 00A00A93
Repl: 79001415 58535441 00A00A93


After above DSDT patching, macOS should be able to boot, login and run MaciASL.app (find it on google), search for Device (RTC), there is XSTA block there.

This method works for Asrock B360M-HDV BIOS v3.2, v4.0, v4.1, should also work for new bios of Asrock Deskmini 310, Z390 etc.
let me know if you have any questions.

PS: there is another method around of fixing the panic thing:
Find: A00A9353 54415301
Repl: A00A910A FF0BFFFF
but this method only change the code of "If ((STAS == One))" to "If ((0xFF || 0xFFFF))" under _STA of RTC Devices. same purpose, it's just my method is to completely disable the _STA block under RTC device.
 
Last edited:
Joined
Nov 3, 2018
Messages
305
Motherboard
ASRock B360-HDV
CPU
i5-8400
Graphics
RX 470
Mobile Phone
iOS
A much better method

 
Joined
Nov 3, 2018
Messages
305
Motherboard
ASRock B360-HDV
CPU
i5-8400
Graphics
RX 470
Mobile Phone
iOS
The best of best method

 
Last edited:
Top