B660M-HDV-i5-12400F-Hackintosh icon indicating copy to clipboard operation
B660M-HDV-i5-12400F-Hackintosh copied to clipboard

Hackintosh EFI information for Asrock B660M-HDV and i5-12400F

As my motherboard/CPU recently fried due to a PSU issue, updates will likely cease. Please see the successor 'project', https://github.com/dclive/Gigabyte-B660M-Elite-AX, a Gigabyte Aorus B660M Elite AX motherboard.

Hackintosh EFI Information for Asrock B660M-HDV and i5-12400F - Fully working, OC90 [Update OC yourself to OC9x], MacOS13.5

*MAJOR CHANGES: *

Now works with B660M HDV BIOS 13.03 (Tested 6.28.2023).

209979958-639eab22-4828-4d80-82e3-be2a5510edc7

PC3200 RAM & BIOS 11.01:

Screenshot 4

PC4266 RAM & BIOS 11.01:

Screenshot3

PC4400 RAM & BIOS 12.01:

240060265-78fb479e-577b-46bc-b67c-314ec07a70ef

PC4400 RAM & BIOS 13.03:

249596696-2ff73ede-f509-4e87-add2-bb35d65df47e

The RAM sticks are unchanged from the second test to the last test; BIOS updates are the only change. I do note that RAM speed seen in MacOS has changed from PC4266 to PC4400, even if the sticks of RAM remain the same, with the only change being the new BIOS.

Credits

Most content was sourced from https://github.com/Xmingbai/ASUS-TUF-GAMING-B660M-PLUS-Wi-Fi-D4-Hackintosh. In order to facilitate the greatest number of people getting this information, I've slightly modified these files, tested it on the Asrock B660M-HDV, and am publishing the results in English. If there are items I've missed (as again, this is not my original content), please file an issue so I can correct it. Modifications are: Kernel/Quirks/AppleXcpmForceBoost (for better turbo), networking, unselection of unused SSDTs, unselection of unused KEXTs, use of CorpNewt's https://github.com/corpnewt/CPU-Name CPU-Name to update the About-This-Mac information, and removal of the "ProvideCurrentCPUInfo" quirk so that Intel CPUs with no efficiency cores can boot properly (if you're using a 12th gen with efficiency cores, you can leave this enabled). For an excellent discussion in English on these details and more, see https://www.tonymacx86.com/threads/z690-chipset-and-alder-lake-cpus.316618/ and https://www.tonymacx86.com/threads/asus-z690-proart-creator-wifi-thunderbolt-4-i7-12700k-amd-rx-6800-xt.318311/page-21#post-2304707.

Tested macOS

  • OC90+ and Ventura 13.5 is the only focus of current testing.

Hardware

  • Asrock B660M-HDV with BIOS 13.03 works well in MacOS Ventura. It's safe to update, and all testing will only include BIOS 13.03 (or later) going forward. Flash to 13.03. After the flash, load all BIOS defaults. Then disable GPU ReBar, disable serial, disable secure boot, disable CFGLock, set XMP to on (if your RAM is capable), and ... I think that's all that's required in BIOS. I do not suggest changing any wattage limits. The above graphic of my speed is superior to previous test runs where I changed BIOS options to increase wattage limits; it appears with this motherboard removing those wattage limits is a bad idea. I welcome comments and tests on this in the 'Issues' section of this Github; please add your findings.

  • Intel i5-12400F

  • AMD RX 5700 GPU or AMD RX 6800XT GPU [An AMD GPU is required regardless of which 12th gen CPU you use, no exceptions]

    • Most typical, RX470, RX480, RX570, RX580, RX590, Vega 56, Vega 64, RX 5700, RX6600, RX6600XT, RX6800, RX6800XT, RX6900XT will all work. Some other variants (some RX560, for example) will work also, but you should google for more details before buying. If you buy a 6900XT and it's the XTXH variant (you'll know because it will work, but won't be GPU-accellerated) please see the appropriate section far below.
  • 32GB RAM PC4400 [2 x 16GB DIMMs]

  • 2TB NVME [ADATA 8200 Pro]

  • Corsair RM650x

  • PowerMac G5 Case, LaserHive MATX 120 modifications [https://thelaserhive.com/product/g5-matx-120-kit/]. : Note: I have no front panel USB3 ports in my case. You'll need to handle mapping your own USB3 (internal) ports if this is important to you / if you have a different case. Use USBToolbox in Windows for the simplest experience. Note that process will have TWO kexts you have to put into your Kexts folder, not one.

  • BCM94360CS2 wifi card (https://www.amazon.com/dp/B01L6YWGXW) with M2 to NGFF adapter (https://www.ebay.com/itm/BCM94360CS2-Card-To-NGFF-M-2-Key-A-E-Adapter-For-Mac-OS-and-Hackintosh/391512537270?hash=item5b27f738b6:g:wIEAAOSw42JZGAtx) - fits perfectly on this motherboard in the wireless slot; no BIOS blocking of add-in cards exists on this machine.

Working

  • Bluetooth, Wi-Fi [See above add-in card] and LOM ethernet
  • AMD GPU HDMI & DP Audio;motherboard 3.5MM audio out (audio in is untested)
  • Sleep / Wake works; mouse / keyboard wakes machine
  • App Store, Time Machine [But to recover, keep track of your USB stick with your serials/MAC Address/etc. embedded in it!]
  • Apple Watch unlock (mostly reliable, not perfect), AirDrop
  • USB port mapping is complete, resulting in iPhone/iPads charging at 2100 ma, and Apple Watch at 1000 ma. If yours (iPhone, iPad, Apple Watch) doesn't show this rate in About This Mac / System Report / USB, then your USB mapping may not be working correctly. All 'A' USB ports on this motherboard, USB2 and USB3, are in use and 'active' (working). USB-C port works, but is only lightly tested.

Untested

  • N/A

Not Working

  • Broadly, anything requiring Intel QuickSync / Intel graphics won't work, since the Intel Xe graphics on 11th-12th gen isn't supported by MacOS in any capacity whatsoever - zero functionality, no exceptions. You must have an AMD GPU with 11th-12th-13th gen Intel CPUs.
  • Sidecar, as the Intel i5-12400F doesn't have an iGPU, and SideCar supports either the iGPU or a T2, not an AMD GPU.
  • All video-out ports on the motherboard, as Intel 11th-12th gen (Xe) iGPU isn't supported in MacOS.
  • Universal Control and related functions don't reliably work for me. I don't use them and can't help with troubleshooting.

Disabled

  • In the Asrock B660M-HDV BIOS: Disable: Fast Boot, serial port, CSM, CAM (Clever Access Memory, AKA Resize Bar), Secure Boot, CFG-Lock. Once you get everything else working, feel free to enable resize bar (and use the appropriate controls in OC) if you wish; I don't bother.

Enabled

  • Above 4G decoding, VT-x, VT-d, XMP2.0.

Next Steps - Required

You will need to do the following:

  • Prepare a USB boot disk for MacOS 13.x installation. The easiest way is on a real Mac, although gibMacOS may work for you as well. To follow the much easier Real Mac path, read https://support.apple.com/en-us/HT201372 and follow the directions for MacOS, including the terminal command to write the download to the USB stick. You'll want to format the USB as HFS+ format, GUID. The application 'TINU' also can make a bootable USB stick... (https://github.com/ITzTravelInTime/TINU)
  • Download EFIAgent (https://github.com/headkaze/EFI-Agent) and mount the EFI (ESP) partition for the USB stick you just made. Using EFIAgent again, "open" the EFI partition so it shows on the Mac desktop. Note that EFI partitions are typically GRAY in color in EFIAgent. To find EFIAgent, locate the new icon in the upper right clock area that looks like a circular pie. Screen Shot 2021-09-25 at 7 22 44 PM

Remember this process for any future EFI partitions you must mount; this is a common procedure.

  • Copy the contents of the attached zipfile to the USB stick, so that your files look something like the picture:

EFI Layout

  • The EFI (ESP) partition on the USB stick has an EFI folder in it, in the root, and inside of that folder, there are two subfolders, OC and Boot, each with files in them. Make sure your EFI partition looks just like this once you've unzipped the zipfile.
  • Note that you'll have TWO partitions on that one USB stick: the EFS/EFI partition (which has just the EFI folder on it, with the contents above) and the other partition, usually called 'Install MacOS Ventura' which will house the Mac's OS/installation details.

Technically, you are now done. You should be able to boot MacOS using the USB stick, and install MacOS onto your SSD. That said, I usually suggest configuring it a bit after you boot into MacOS for the first time with the right serials and ROM info:

  • Download OCAT https://github.com/ic005k/QtOpenCoreConfig and open it. Read the tooltips showing what all the icons at the top do. Update to the latest OCAT version by finding the update button and updating. Don't continue until you've done this. Run the latest OCAT version. As of last edit, OC90 is current and fully working. Over the course of time further updates will be required. Become familiar with how to pull the latest OCxx release and KEXT updates from within OCAT 'into' your EFI configuration; you will do this a lot.
  • Open your USB stick's config.plist by using OCAT's OPEN icon.
  • In OCAT, notice the row of icons on the left side. Go to "PI" on the row.
  • Let's generate a new serial. Ensure, under the GENERIC tab, that for "SystemProductName" you have the MacPro7,1. Then click GENERATE right next to the MacPro7,1 box. Your serial numbers are now set up.
  • Note you can also use the GenSMBIOS command to do all this too (https://github.com/corpnewt/GenSMBIOS)

Now let's fix your MAC address (ROM)

  • [Mac: This only works if you used the USB stick to install MacOS already; assumes MacOS is installed on this motherboard] Go to the Mac's terminal, type in "ifconfig", and find "en0:", your ethernet adapter. Find the line "ether xx:xx:xx:xx:xx:xx" and write those numbers, without the :, into the ROM box.
  • [Using Windows, if Windows is installed on this motherboard] Go to Windows' commandline/powershell interface. Type 'ipconfig /all' and find your ethernet adapter. Find the line "Physical Address" with xx-xx-xx-xx-xx-xx letters to the right on that same line. Key in those letters and numbers, without the -, in the ROM box.
  • [The easy way; untested] Click GENERATE immediately to the right of the ROM box.
  • Serialization and ROM setup is now complete. Press the SAVE icon in OCAT and then quit OCAT.
  • Your USB stick is ready to use to boot your Mac and install MacOS.
  • After all of the above: Go to Dortania's page and read - before logging in with any AppleID accounts. https://dortania.github.io/OpenCore-Post-Install/universal/iservices.html

Final Steps

  • Assuming no other issues, your setup is now complete!
  • Restart, press F11 at the Asrock boot screen so you can choose a boot disk, and boot from the USB stick (select the uEFI option if prompted). You'll then be able to step through installation of MacOS. You'll need to format your SSD as APFS or HFS+ (APFS is the new one; use that). Name the newly formatted SSD something like MacSSD so you know that's what you'll boot from in the future. Then you can start setup.
  • Once setup is done, use EFIAgent to copy the USB stick's EFI folder, with your serial number modifications, to the SSD's EPS (EFI) partition, and then you'll be able to boot from that disk (and you won't need the USB stick anymore, but keep it forever as a backup!). Do note: Until you've copied the EFI folder from your USB stick to your SSD's EPS (EFI) partition, you must continue to F11-boot into your USB stick before booting into MacOS. Once you've copied the USB stick's EFI folder to the EPS (EFI) partition on the SSD, then you'll no longer need to use the USB stick to boot, and you'll just boot from the SSD's EPS (EFI).
  • Versioning on this zipfile is OC90. Future versions, if required, would have higher numbers so it is easier to see what version you have. Keep the zipfile (name, at least) around so you know what version you have.
  • You can clean up logs and logging / bootup, if you wish, once you have everything sorted. Doritania's guide has a post-install cleanup section with good details on that. In the zip, logging is fully enabled, so that if there's a problem you can take a video of the screen on your phone and troubleshoot based on that.
  • Use OCAuxiliaryTools to update to later OpenCore releases. Use MacOS's built-in update mechanism to update MacOS releases.
  • Otherwise, please leave comments/issues here.

Benchmark Expectations

  • With BIOS 13.03 and PC4400 RAM, I get 2263/10209 in GeekBench 6.10.
  • A typical M2 base $499 [Edu] mini is (Geekbench) 2629/9733, so the base i5-12400F (PC4400 RAM) is about 86% of the M2's speed per core, and about 105% of the M2 (mini) speed with all cores compared.

Addendum: 6900 Configuration

Most graphics cards I've listed far above work fine with no additional work required. A very specific variant of the AMD Radeon RX6900XT, called the XTHX variant, doesn't. If you buy a 6900XT, there's no immediately obvious way to know which you have when looking at it, or within Windows. In MacOS, you'll know you have the XTXH because you'll get nice graphics, but there's no graphics acceleration, so doing common things becomes very, very slow.

To get the 6900XT (XTXH) version working, you must enable the ssdt-brg0.aml file (supplied in the zip, already) in OCAT's ACPI section, and you must add the following to OCAT's DP / PCILists section:

​ PciRoot(0x0)/Pci(0x1,0x0)/Pci(0x0,0x0)/Pci(0x0,0x0)/Pci(0x0,0x0)

And it must have two entries (on the right) associated with it:

​ device-id Data BF730000

​ model String Radeon RX 6900 XT (XTXH)-DCL (or whatever you'd like to call your 6900)

Save, reboot, and your 6900 will be enabled. Note: this only works with a B660M-HDV motherboard. Other motherboards may label their bridge chips or other bits differently.

209982583-cfde040a-d2bb-46a3-b8dd-ef810f555fc6

Addendum: OC90+

  • Use OCAT to update to the latest OpenCore. No issues to report. DO THIS. It's worth staying current and fully fixed. OC93 is tested (6/13/2023) and works great. Read a simple guide I wrote here for details on howto: https://github.com/dclive/Howto--Update-OpenCore-with-OCAT