X99 Hackintosh OsxAptioFixDrv: AllocateRelocBlock Error Update

A lot of people have asked for help regarding the OsxAptioFixDrv: AllocateRelocBlock Error on their X99 Hackintosh systems, so I thought I would write an update with an explanation of what the error means and the solution.

The Problem

The problem is that most X99 systems are allocating a lot of memory to PCIe devices, and allocating the memory in many memory fragments rather than one contiguous chunk.

Test Image

X99 memory allocation looks a little like the top example, where other platforms look more like the bottom.

OS X 10.11.4 and greater: Allocates memory above the memory space which is covered by the AptioFixDrv memory relocation.

OS X 10.11.3 and earlier: Tries to allocate memory in the low memory range that is already occupied.

The Solution

The solution is to first free the first 512MB of fragmented memory which gives ample room for the OS X kernel and kernel cache, then apply memory map fixes which allow OS X to communicate with your installed hardware.

OS X 10.11.4 and greater

  1. Upgrade Clover to at least version r3354.
  2. Remove all AptioFixDrv files from your /EFI/ClOVER/drivers64UEFI folder.
  3. Download and place OsxAptioFix2Drv-free2000.efi in your /EFI/ClOVER/drivers64UEFI folder.
  4. Restart and try.

If still getting the OsxAptioFixDrv error - Try my updated Test2.efi fix

  1. Install OsxAptioFixDrv-64.efi in your /EFI/ClOVER/drivers64UEFI folder. Remove any other OsxAptioFix files.
  2. Download and place Test2-2016.efi alongside OsxAptioFixDrv-64.efi in your /EFI/ClOVER/drivers64UEFI folder.
  3. Restart and try.

If still getting the OsxAptioFixDrv error - Here are some troubleshooting options

  1. Remove any non-essential hardware including USB devices and HDDs/SSDs from your system. If you're not using the SATA controller, disable it in BIOS.
  2. Reflash your BIOS with the latest version. If you're already on the latest version it anyway to completely reset your bios settings. I had to do this on my Gigabyte X99-UD5 to completely clear the memmap.
  3. Try connecting your SSD/HDD to another controller.
  4. Try my Test2-2016.efi file and post results.
  5. Pour yourself a glass of whiskey and relax, start fresh tomorrow. :)

Please post your results in the comments. Credit h4x on OsxAptioFix2Drv-free2000.efi fix

OS X 10.11.3 and earlier
1. Upgrade Clover to at least version r3354.
2. Install OsxAptioFixDrv-64.efi in your /EFI/ClOVER/drivers64UEFI folder. Remove any other OsxAptioFix files.
3. Download and place Test2.efi alongside OsxAptioFixDrv-64.efi in your /EFI/ClOVER/drivers64UEFI folder.
4. Restart and try.

More Reading

Notes

If you have the Gigabyte GA-X99P-SLI you may still have problems as the memory map appears to be very wonky on this board.

Want to know what the memory addresses like 0x20000000 mean? Use this converter: http://www.binaryhexconverter.com/hex-to-decimal-converter.

Want to see your memory map? Enter the Clover EFI shell and type the command memmap.

Save to file like this:

memmap > my_memory_map.txt

Please post any questions/comments and I'll try to help.


If you found this resource helpful; the greatest compliment you could give is a small donation. Your patronage really motivates me to invest more of my time into the community.