Contribute
Register

[Success][10.14.4] Gigabyte Z390M Gaming - Intel UHD 630 - i7 8700

Joined
May 22, 2011
Messages
283
Motherboard
Gigabyte Z370 AORUS Gaming 5
CPU
Intel Core i7-8700
Graphics
Gigabyte RX 580 Gaming 8GB
Mac
MacBook Pro
Hi,

I am just writting a little guide about my specific configuration.

Hardware

  • Intel Core i7-8700
  • Intel UHD 630
  • Gigabyte Z390M Gaming (Micro ATX)
  • Corsair Vengeance LPX 16GB (2x8GB) DDR4
  • Cooler Master MCB-Q300L-KANN-S00 MATX Case
  • EVGA 650 GQ - 80+ Gold 650 Watt
  • Samsung 970 Evo NVMe 500 GB

What works
  • Internal IGPU Intel UHD 630 (HDMI & DVI) with QE/CI acceleration
  • Shutdown / Reboot / Sleep
  • Sound (AppleALC - Audio ID 1)
  • USB Ports
  • Pretty much anything

What doesn't work
  • Nothing as far as I know

Bugs
  • 1 time out of 5, booting fails in Clover with error "Couldn't allocate runtime area". CTRL+ALT+Delete to reboot and try again and it works.
  • I've only had success with Clover that ships with Multibeast. Clover from https://sourceforge.net/projects/cloverefiboot/ gives the error "Couldn't allocate runtime area". I tried keeping the same 'drivers64' from the Multibeast version and config.plist, it still gives that error.
  • Nothing else

USB Configuration

I wrote an SSDT to make my USB ports working. USBInjectALL kext is required with the SSDT.

motherboard_usb_chart.png

Code:
// Back top ports only have USB 2.0 Enabled because I will use them for mouse and keyboard
// USB Type-C Port is Removed
// Motherboard header USB 2.0 F-USB2 is disabled
// Everything else is enabled for a total of 14 ports
DefinitionBlock ("SSDT-USB.aml", "SSDT", 1, "sample", "USBFix", 0x00003000)
{
    Device(UIAC)
    {
        Name(_HID, "UIA00000")
        Name(RMCF, Package()
        {
            // XHC overrides for 100-series boards
            "8086_a36d", Package()
            {
                "port-count", Buffer() { 0x18, 0, 0, 0}, // Highest port number is SS08 at 0x18
                "ports", Package()
                {
                  
                    "HS01", Package() // USB3.1Gen2-A port
                    {
                        "UsbConnector", 3,
                        "port", Buffer() { 0x01, 0, 0, 0 },
                    },
                    "SS01", Package() // USB3.1Gen2-A port
                    {
                        "UsbConnector", 3,
                        "port", Buffer() { 0x11, 0, 0, 0 },
                    },


                    "HS03", Package() // USB3.1Gen1 port
                    {
                        "UsbConnector", 3,
                        "port", Buffer() { 0x03, 0, 0, 0 },
                    },


                    "HS04", Package() // USB3.1Gen1 port
                    {
                        "UsbConnector", 3,
                        "port", Buffer() { 0x04, 0, 0, 0 },
                    },


                    "HS05", Package() // USB3.1Gen1 port
                    {
                        "UsbConnector", 3,
                        "port", Buffer() { 0x05, 0, 0, 0 },
                    },

                    "SS05", Package() // USB3.1Gen1 port
                    {
                        "UsbConnector", 3,
                        "port", Buffer() { 0x15, 0, 0, 0 },
                    },


                    "HS06", Package() // USB3.1Gen1 port
                    {
                        "UsbConnector", 3,
                        "port", Buffer() { 0x06, 0, 0, 0 },
                    },

                    "SS06", Package() // USB3.1Gen1 port
                    {
                        "UsbConnector", 3,
                        "port", Buffer() { 0x16, 0, 0, 0 },
                    },

                                      
                    "HS07", Package() // USB3.1Gen1 port
                    {
                        "UsbConnector", 3,
                        "port", Buffer() { 0x07, 0, 0, 0 },
                    },

                    "SS07", Package() // USB3.1Gen1 port
                    {
                        "UsbConnector", 3,
                        "port", Buffer() { 0x17, 0, 0, 0 },
                    },

                  
                    "HS08", Package() // USB3.1Gen1 port
                    {
                        "UsbConnector", 3,
                        "port", Buffer() { 0x08, 0, 0, 0 },
                    },

                    "SS08", Package() // USB3.1Gen1 port
                    {
                        "UsbConnector", 3,
                        "port", Buffer() { 0x18, 0, 0, 0 },
                    },

                  
                    "HS09", Package() // USB2 port F-USB1, Bluetooth
                    {
                        "UsbConnector", 255,
                        "port", Buffer() { 0x09, 0, 0, 0 },
                    },
                    "HS10", Package() // USB2 port F-USB1, Bluetooth
                    {
                        "UsbConnector", 255,
                        "port", Buffer() { 0x0a, 0, 0, 0 },
                    },
                },
            },
        })
    }
}
Fixing Shutdown/Reboot Kernel Panic and Sleep

The key was to remove in EFI/Clover/drivers64 AptioMemoryFix and add OsxAptioFix2Drv-free2000.efi and EmuVariableUefi-64.efi.
Any other variant of Aptio/OSxAptio ends up in a crash in Clover : Couldn't allocate runtime area. With these, the error still happens sometime, but it's nothing that bothers me since it never happened twice in a row.

The boot flag 'slide=0' is also required to avoid Couldn't allocate runtime area using OsxAptioFix2Drv-free2000.efi.

Fixing the internal GPU

Removing in Clover all HDMI, Intel patches and ID.
IntelGFX-> Empty, ig-platform-id->Empty, Inject Intel->Disabled, etc

Using the IGPU patches provided for this motherboard in this guide https://www.tonymacx86.com/threads/guide-general-framebuffer-patching-guide-hdmi-black-screen-problem.269149/ with WhateverGreen. The boot flag "-disablegfxfirmware" is also recommended

Fixing Sound

Use AppleALC with Lilu and layout audio id 1.

BIOS

Coming soon.
 

Attachments

Last edited:
Joined
Jan 4, 2018
Messages
1
hello,Looking through your article, I also configure Gigabyte's Z390 m motherboard. The problem I encounter is the USB interface, the mouse keyboard is all right, but the U disk and the mobile hard disk are not recognized.
 
Joined
May 22, 2011
Messages
283
Motherboard
Gigabyte Z370 AORUS Gaming 5
CPU
Intel Core i7-8700
Graphics
Gigabyte RX 580 Gaming 8GB
Mac
MacBook Pro
hello,Looking through your article, I also configure Gigabyte's Z390 m motherboard. The problem I encounter is the USB interface, the mouse keyboard is all right, but the U disk and the mobile hard disk are not recognized.
See "USB Configuration" section of my post
 
Joined
Jul 10, 2019
Messages
2
Motherboard
Gigabyte Z390 UD
CPU
i5-8400
Graphics
RX 570
Mac
MacBook Pro
Mobile Phone
iOS
I guess its something with the Z390 chipset... AptioMemoryFix also does not boot and OsxAptioFix2Drv-free2000 is required, GigaByte Z390 UD over here.

Don't know why AptioMemoryFix is not working...
 
Joined
Aug 3, 2019
Messages
6
Motherboard
gigabyte z390 m gaming
CPU
i7-8700K
Graphics
UHD 630
Hi, Im reading all your guide, downloaded your attached files but tried to boot with Sierra and High Sierra installers (created with their respective Unibeasts successfully) and failed always at about 50% of progress bar with the white apple logo; also had to mount the EFI partition in a working Mac and replace the OsxAptioFix2Drv-free2000.efi file to aviod the prohibited sign (which in verbose mode vomits the error you mention about allocation problem); so far my question is: do I need to try Mojave as you? or does your procedure work on Sierra/High Sierra? currently my main problem is not getting to the graphical installer, thank you
 
Joined
Aug 3, 2019
Messages
6
Motherboard
gigabyte z390 m gaming
CPU
i7-8700K
Graphics
UHD 630
I solved it; not a problem with Unibeast at all: my install-mojave-app was downloaded from the Patcher tool, not from the original apple store; I managed to get the original full installer from a real iMac from coworker (indeed its size was 6.5GB vs 5.4 from Patcher) and the bootable usb was smoothly generated; from there all went like butter on hot toast, thank you very very much from your impeccable EFI work, unzipped it from your attachment to my EFI partition and everything worked like a charm!
 
Joined
Aug 3, 2019
Messages
6
Motherboard
gigabyte z390 m gaming
CPU
i7-8700K
Graphics
UHD 630
After installed software (microsfot, adobe, etc) the machine was working fine for several hours; the next day I turned it on and the damn error "Couldnt allocate runtime area" shows up permanently and cant boot anymore; have you updated your BIOS? mine is version 2.20.1271 1AUOK540 date 03/14/2019
 
Joined
Apr 5, 2012
Messages
99
Motherboard
Acer Aspire F 15 F5-573G-7828-Clover
CPU
i7-6500U
Graphics
HD 520+GTX 950M, 1920x1080
Mac
iMac
Mobile Phone
Android, iOS
Please upload BIOS settings. Thanks.
 
Joined
Aug 3, 2019
Messages
6
Motherboard
gigabyte z390 m gaming
CPU
i7-8700K
Graphics
UHD 630

Attachments

Top