Chameleon Bootloader Mac

  1. Chameleon Bootloader Mac Os
  2. Chameleon Bootloader For Mac
  3. Chameleon Bootloader For Mac Free Download
  1. Patch DSDT

Chameleon is a boot loader for Mac OS X. It seems that standard boot loaders for Mac OS X either lack many cool features, or have many cool features, but are closed-sourced. With Chameleon you can have all benefits of features while you can inspect/bugfix/extend the codebase. Mac OS X needed for original boot can be installed to USB. I’ve tested a simple Chameleon R2588 version USB boot drive to work with OS X: Yosemite, Mavericks and Mountain Lion. I tested the boot with 3 OS Xs and 3 laptops: Sandy Bridge (2nd generation HD3000), Ivy Bridge (3rd generation HD4000) and Haswell (4th generation HD4400). If you don’t have a Mac, you can try to create one with Windows.

After 2 days of struggle I successfully installed Mac OS X Mountain Lion 10.8.2 With the help of Niresh's method I have installed Chamaleon bootloader and updated to the latest version, but I can't boot into my hard disk without the installer DVD. If I insert the disk I am booting OS X normally, but it should boot without the installer DVD. The Chameleon Boot Loader is released under the terms and conditions of Apple Public Source License (see APPLELICENSE). This project is divided into so far: - Booter: the bootloader itself - PrefPane: a upcoming Mac OS X Preferences Pane. 'boot' file - The main boot file that Chameleon bootloader will need to start Mac OS X. This file was extracted from the newest version of Chameleon bootloader (as of July 1st, 2013), and can boot any version of Mac OS X, including OS X 10.9 Mavericks.

When running non-modified retail version of Mac OS X on ageneric PC, a special boot loader is needed in order to trick thevanilla Apple operating system to think it’s running on a genuineMac[1]. One ofthese boot loaders is called Chameleon[2]. But Chameleoninstallation requires some tweaking in order to do the magic. It’snot enough just to install Chameleon on the system disk but youalso need some hardware-specific configuration in order to enjoy afully working Hackintosh system.

The configuration consists of multiple files. You could installthese files directly to the system disk you’re booting from or theEFI file partition if using hard disk with GPT partition layout.But it’s also possible to bundle all the needed stuff except bootconfiguration inside a single disk image file which Chameleon loadson startup and reads the files inside the image. This way you onlyneed to install this preboot image file and boot configuration fileand your system disk remains less polluted. I find this approachmuch more appealing as it allows me to keep the system as clean aspossible.

In this guide we’re going to create a Chameleon preboot imagefrom the scratch in a generic way. It is assumed that the machineand motherboard in particular in use has good compatibility withvanilla Mac OS X Snow Leopard. In practice this means Intel Core 2processor with Intel chipset on the motherboard. You’ll also need aworking Mac OS X 10.5 or 10.6 installation running on a genuine Macor Hackintosh with root shell access. The whole process is beingdone in the shell using command-line tools. Also if you’re going topatch your DSDT, you’re probably goingto need a way to boot Linux on the machine if you don’t have Mac OSX already installed. Ubuntu Live CD would do it justfine[3].

  1. Create the preboot disk image and mount it. We’re using the file~/Desktop/Hackintosh/Preboot.dmg in this guide.

  2. Write down the device name for the preboot disk. In the guidewe’re using /dev/disk3.

  3. Fix the preboot mountpoint so that file can be owned byroot.

  4. Mark the file system so that fseventsd doesn’t keep any logsthere.

Chameleon needs to load some kernel extensions prior to bootingthe Mac OS X kernel in order to fix some issues running the Appleoperating system on non-Apple hardware. Also Mac OS X may notinclude drivers for all of your hardware so you need to add any 3rdparty drivers that your hardware needs to function. You can readthis article[4]to find more about kernel extensions.

  1. Create directory to hold the kernel extensions. You must notchange the path as Chameleon expects to find the kernel extensionsunder Extra/Extensions directory under the root of thepreboot volume.

  2. Download the following mendatory kernel extensions saving each.kext file under/Volumes/Preboot/Extra/Extensions.

    • fakesmc.kext[5],[6]
      • System Management Controller emulator. Mac OS X won’t boot on aHackintosh without this.
    • OpenHaltRestart.kext[7]
      • Fixes shutdown/restart issues.
  3. You may want to include the following additional generic kernelextensions.

    • ElliottForceLegacyRTC.kext[8]
      • Fixes CMOS corruption that exists with many motherboards if nopatched DSDT is installed. See the sectionbelow about DSDT patching.
    • NullCPUPowerManagement.kext[9]
      • Disables Apple’sAppleIntelCPUPowerManagement.kext. You need this ifDSDT is not patched to support native CPU power management. Seethe section below about DSDTpatching.
    • ApplePS2Controller.kext[10]
      • You need this driver if you have PS/2 keyboard and mouse.
      • URL:
  4. Download any 3rd party driver kernel extensions for yourhardware and place them under/Volumes/Preboot/Extra/Extensions too. Good places tofind additional kernel extensios are[11]and myHack[10]. For areal-world example, you can read my posting Technical details of my Hackintosh installation.

  5. Fix permissions and ownership of the kernel extensions. Kernelextensions won’t load if the files are not owned byroot:wheel[12].

  6. Create/update extensions cache

DSDT[13],[14]is an ACPI table that is stored in the BIOS. In order to workcorrectly, some functionality in Mac OS X depends on features ofthe DSDT that can be found on Macs. The DSDT in your generic PC’sBIOS might be incorrect or buggy when used with Mac OS X. Chameleonsupports overriding the DSDT provided by your hardware with aversion loaded prior to loading the operating system. Thus you cancreate a patched DSDT for your hardware based on your original DSDTthat is also compatible with Mac OS X and make your Hackintoshbehave well without modifying hardware or BIOS.

The plan for DSDT patching is straightforward.

  1. First you need to extract the DSDT binary code in AML format(ACPI Machine Language) wired to your BIOS.

  2. Then you decompile the AML binary to ASL (ACPI Source Language),which is source code to the AML binary in ASCII format.

  3. Edit the AML source code to patch in any desired fixes.

  4. Compile the patched AML source to get an updated DSDT AML binaryfile.

  5. You need to include the resulting DSDT AML binary file in theChameleon preboot environment so Chameleon can find and load it andoverride the built-in DSDT with the patched one on systemstartup.

For decompilation and compilation of DSDT you need Intel ASLcompiler/decompiler[15].For Debian/Ubuntu, the tool is available in the packageiasl[16]. Macversion[17]is also available. The iasl binary is stored in theTools directory of the linked download.

Actual changes to the DSDT are always dependant on thecombination of particular hardware and BIOS version so I’ll gothrough these steps here in a generic way.

Extracting the DSDT AMLbinary

In Linux, the DSDT extraction is a breeze as the blob availableunder the /proc file system[14].Just run

Chameleon Bootloader Mac

and you have a copy of your DSDT AML binary in the file~/dsdt-original.aml.

In Mac OS X you can extract the DSDT AML binary to the file~/Desktop/Hackintosh/dsdt-original.aml by running thefollowing command:

Note that if running Mac OS X, be sure that the system doesn’thave a patched currently DSDT applied or you won’t be able toextract the original DSDT in the BIOS!

Decompiling DSDT AMLbinary to ASL source

Use the following iasl command to decompile theDSDT AML binary ~/Desktop/Hackintosh/dsdt-original.amland save it as ASL source file~/Desktop/Hackintosh/dsdt.dsl:

Chameleon bootloader mac os

Editing the DSDT ASL source

Now you can edit the file~/Desktop/Hackintosh/dsdt.dsl and fix anyhardware-specific problems with the DSDT. I’ve documented theneeded DSDT patches for one of my systems in the posting Technicaldetails of my Hackintosh installation. Many of these patchesare quite generic.

Compiling ASL source toDSDT AML binary

After applying the desired set of patches, compile the ASLsource back to a DSDT AML binary file~/Desktop/Hackintosh/dsdt.aml with the followingcommand:

Configuring Chameleon preboot image to load the DSDT AMLbinary

ChameleonChameleon bootloader mac download

Let’s say you have the modified DSDT AML binary saved as thefile ~/Desktop/Hackintosh/dsdt.aml. In order forChameleon to find and load the patched DSDT, the file needs to beinstalled as Extra/dsdt.aml under the preboot imageroot. So copy it like this:

System Management BIOS or SMBIOS stores some details about yourhardware[18],[19].In Mac OS X you can view the current SMBIOS information withSystem Chameleon allows customization ofthe SMBIOS values. You can do this by creating the fileExtra/smbios.plist under the preboot image root. Youcould use this feature to make your Hackintosh mimic some existingMac model or you could provide your own values. It’s all optional,though. But If you want to do that, then read thesearticles[20],[21],[22]for more details and save the resulting file as/Volumes/Preboot/Extra/smbios.plist.

Here is a sample smbios.plist which gives thesystem a custom serial number.

Chameleon Bootloader Mac Os

By default Chameleon tries to find DSDT and SMBIOS data from thesystem disk. In order to instruct Chameleon to use the prebootimage, the file RAMDisk.plist needs to be added to theroot directory of the preboot file system. So save the this as/Volumes/Preboot/RAMDisk.plist.

  1. Cleanup preboot file system

  2. Eject the preboot disk

Chameleon Bootloader For Mac

The preboot image ~/Desktop/Hackintosh/Preboot.dmgis now ready to be deployed in the Extra directory ofa Chameleon boot disk.

Chameleon Bootloader For Mac Free Download

  • [1] OSx86 at Wikipedia /
  • [2] Chameleon /
  • [3] Download Ubuntu /
  • [4] What is kext, where is kext, how to install kext /
  • [5] FakeSMC 2.5 /
  • [6] Fakesmc version 2.5 - /
  • [7] OpenHaltRestart /
  • [8] CMOS reset fix (via kext) - /
  • [9] NullCPUPowerManagement (32-/64-bit) - /—64-bit).html
  • [10] myHack / Downloads /
  • [11] The Hackintosh Kext Database /
  • [12] kextload(8) Mac OS X Manual Page /
  • [13] DSDT at wiki /
  • [14] Linux/ACPI - DSDT: Overview /
  • [15] ACPI Component Architecture /
  • [16] Debian package iasl /
  • [17] DSDT Patcher / iasl - /
  • [18] System Management BIOS at Wikipedia /
  • [19] DMTF - System Managemen BIOS (SMBIOS) /
  • [20] Prasys' Blog: [GUIDE]Creating your own SMBIOS.plist /
  • [21] InfiniteMac Forum: SL / SMBIOS.plist /
  • [22] Techedze: Editing your SMBios.plist /