Category Archives: Hackintosh

Samsung NP300V5Z – Mountain Lion Success

Samsung NP300V5Z – Mountain Lion Success


After nailing another Core 2 Duo build on Mountain Lion last week I adventured into cursing a Samsung Laptop with the osx plague.

I have followed the guide to Vanilla OS X from insanelyMac:

You need to download the latest Maverick Install Guide – with Screenshots.pdf from the end of the first item in that thread (I used Mavericks install Guide – v4.2 – With Sreenshots.pdf), as that’s the latest one.

I followed part 1 step entirely to download all of the software.

I created the vanilla installer following the Part 2 with the only exception being the usage of Master Boot Record (the laptop never booted from a GUID Partition table).

For the part 2.2 I patched the installer and used a MacBook Pro 8.1 definition for the SMBios (as that was the one already using Sandy Bridge i5)

In order to cope for the Master Boot Record I followed the steps from 2.3 to add the tweaked version of the OSInstall files from there. (I only had a Mountain Lion 10.8.2 version on a stick, but it should be working just as fine with 10.8.5 and using those files).

Installing OSX

I was only able to boot on the usb stick with the -x flag on. (use the USB 2.0 ports for booting with the stick). An odd issue was the fact that I was not able to access the keyboard & touchpad at all during the installation, so you’ll have to make sure you have a USB mouse & keyboard laying around (I used a wireless keyboard plugged into the USB).

Other than formatting the hard drive using the Master Boot Record and Mac OS X Extended (Journaled) file system everything went smoothly.

After installing for making the drive bootable – it is required to boot once more into the installer and access the Utilities -> Terminal and copy the NullCPUPowerManagement.kext and FakeSMC.kext from the USB stick on the main hard drive where you already installed OSX. I encountered a little hick-ups as simple auto-completion didn’t seem to function correctly with the volume name containing a space in it (in the tutorial you have “os x” for the volume name, but I recommend using a simple, space-less volume name). After figuring out to add the quotes around the autocompleted file addresses I was able to make it bootable (without doing this, it simply gives the AppleIntelCPUPowerManagement kernel panic, don’t worry).

I had to use the -f boot flag to get into the OSX properly. (this clears the caches of the kexts, so it loads the ones we manually copied into the /System/Library/Extention folder).

Once inside, I got the proper resolution going, but no audio, no network, no keyboard, no touchpad. Now the fun begins.

Here I dropped the guide to vanilla osx and downloaded the latest MultiBeast (5.5) and installed drivers:

-  I knew it had a Realtek LAN card, so I followed my guts and installed the Lnx2Mac driver

Rebooted – had internet going.

I tried installing the VoodooHDA, but that one didn’t detect the audio card, so after googling a bit I found that the C200 audio card is quite common through laptops and ended up on this thread:

Went to settings and selected for the sound the internal speakers – had audio going.

Rebooted, went again to multibeast and installed the ps/2 keyboard and touchpad driver and that activated my keyboard (the function keys work as well). I also installed the generic USB 3.0 driver.

The webcam works out of the box.

Now I still need to have the following:

  • the wireless network card
  • the touchpad (I use a wireless mouse most of the time, but I’ll still try to get this going)
  • the battery charge status (it displays 0% for now) – I get the dimmed screen when removing the power cord and goes bright when plugging it back in, so it is functional, but unknown

Not sure about nvidia.

I found another post with a similar hardware here, which I’ve followed to get Audio working and will draw inspiration onto trying to get other things I might have missed working properly.…asus-k43sv-a43sv-mountain-lion-working-help-needed.html

Read More

Mountain Lion on Gigabyte GA-Z77X-D3H Tutorial

I’ve built a CustoMac, mostly based on the recommendations from TonyMacX86 – CustoMac: Buyer’s Guide 2012

I’ve chosen Z77X-D3H over the GA-Z77-DS3H, which has a supported Realtek audio card, as this one had better over-clocking capabilities (the turbo speed of the CPU can be setup to reach higher clock speeds). The cheapest Z77X board with a similar supported audio card is GA-Z77X-UD5H ($190), which is 50% more expensive than GA-Z77X-D3H while it only offers extra features which can not be used in Mountain Lion. Since this computer was aimed at being a Mac build, those extras were not needed / useful.

The build consists of the following:

  • Mainboard: Gigabyte GA-Z77X-D3H
  • CPU: i5 3570K ( + Zalman CNPS-9700 )
  • RAM: 16 GB (2*8) Corsair Vengeance DDR3 1600MHz CL10
  • Video Card: An old Gigabyte nVidia 9500GT 512MB
    Pro-Tip: Ati Radeon 6870 should work, but it needs to be inserted after the installation of OS X (install OSX with the on-board graphics, and install the Ati graphics card afterwards)
  • Case: Corsair Carbide 400R
  • Power Supply: Corsair 430 Watt
  • SSD: Corsair Force Series 3 – 60GB

I started with the following tutorial: TonyMacX86 – Unibeast Install OS-X Mountain Lion

On an existing Mac

  • Purchased Mountain Lion from a Mac, downloaded it
  • Downloaded the latest Mountain Lion UniBeast ( 1.5.3 at the moment of writing )
  • Started Unibeast and installed ML on an 8GB USB stick (haven’t selected Legacy USB / Laptop support)
  • After the Unibeast install I copied over the latest Mountain Lion MultiBeast to the USB stick in a “Kits” folder (just in case the networking might not work out of the box)

On the CustoMac

  • Loaded optimized defaults in the Bios
  • Plug the USB stick into a USB 2.0 port on the back (it won’t work from an USB 3.0 port)
  • Boot from the USB, get the installer running (if it doesn’t start use ‘-x’, but it was not necessary for me)
  • Partition the main hard-disk
  • Install OSX
  • Reboot, boot from the USB stick and this time choose the OSX partition to continue booting from
  • Complete the OSX setup
  • Run MultiBeast with the following options:
    • UserDSDT or DSDT-Free Installation
    • Drivers & Bootloaders > Drivers > Network > maolJ’s AtherosL1cEthernet (the ethernet worked out of the box, so installing the driver is optional)
    • Customization > Identifiers > MacBook Pro 8,1 (initially I chose MacPro 5,2 and booting did not work)

After a restart you should have a functioning, bootable OSX Mountain Lion with ethernet and USB 3.0 support (only the 2 top USB 3.0 in the back work, the lower 4 USB 3.0 are not functional).

Update 3: Vinicius was not able to patch the DSDT file, so I recommended him to try installing the latest AppleHDA and see if that works. Luckily he responded back and confirmed that his audio works (he tested this on a GA-Z77X-D3H + i7, but should work on i5 just as well).

So the latest recommendation in order to setup Audio support is to install this Kext:…html
The steps are written on the kext download page:

  • delete the voodHDA (if you have it)
  • delete the AppleHDA
  • and add these kexts from the zip using kext wizard,
  • then reboot with -v -f e tell if the sound is recognised (according to the uploader, I personally did not need to boot with any flags setup in order to get the sound working, so test this if it doesn’t work after reboot)

Update 2: For enabling audio, there’s a trickier path to go through.

I used the VIA VT2012/2020 tutorial and kexts from osX86

Later Edit: The following were required for a previous version of VIA VT2012/2020, now they’ve updated it to only require a patching of the AppleHDA kext. I’m leaving the original steps here though.

Update 1: At first, I went through the easy tutorial. Erased the AppleHDA.kext from /System/Library/Extentions. Opened up Kext Utility from osX86 and installed the AppleHDA.kext and the VIA2021.kext from the VIA VT2012/2020 from above.

Unfortunately this didn’t get me sound, so I had to go through the “Advanced Users” tutorial.

1. Back up AppleHDA.kext before patching.

2. Patching AppleHDA: open Terminal and type the below two commands and press enter

sudo perl -pi -e ‘s|\x84\x19\xd4\x11|\x41\x04\x06\x11|g’ /System/Library/Extensions/AppleHDA.kext/Contents/MacOS/AppleHDA

sudo perl -pi -e ‘s|\x83\x19\xd4\x11|\x00\x00\x00\x00|g’ /System/Library/Extensions/AppleHDA.kext/Contents/MacOS/AppleHDA

3. Enter password when prompted

4. Copy layout12.xml.zlib & Platform.xml.zlib to /System/Library/Extensions/AppleHDA.kext/Contents/Resources/

5. Run Kext utility and install VIA2021.kext and restart system

Rebooted the computer

1. Downloaded and started the DSDT Editor by olarila .

2. Go to File -> Extract DSDT

3. Patch -> New
Paste in the patch from here:

Click Apply

And now the ‘funny part’ starts. There’s a ton of errors showing up when trying to IASL -> Compile, and we need to get all of them solved before this would work.

First error is the DTGP method unknown.

I’ve pasted this function above the “_WAK”:

I had to erase a HD function (duplication error). Since there were two functions with the same name, one coming from the pastebin patch, and the other was already there. I had left the one with the DTGP (Arg0, Arg1,… call, and erased the other one.

I had to adjust the digits on a value (it required to be hex and it had ABCDEFGH as a value, while GH are invalid hex characters, so I got them replaced them with characters ABCDEF00 or ABCDEFF0), removed some functions that gave an error ‘object does not exist’ (probably referencing the duplicate function that I had to erase… did all this pretty much using my intuition. This is the hardest part from my point of view, as it might not be very clear for everybody on how to solve these errors.

I end up with this dsdt.aml

I copied it into the /Extra folder..

And rebooted again (while crossing fingers, an important aspect of the process)

… Houston, we have ignition ! The sound started.

If you’re making a build with the same main-board, do share your experience, as it might help others as well.


Later Edit: I’ve updated ML to 10.8.1 using the regular software update. All went smoothly.

Later Edit: I’ve updated ML to 10.8.2. I had to first erase AppleHDA.kext (and put back the AppleHDA.kext.backup) and VIA2021.kext as well. I ran the Kext Utility afterwards and rebooted. Then upgraded ML to 10.8.2, rebooted and the system stared up without audio (as expected). I’ve took the updated VIA VT2021/2020 kext, patched it as they required in the tutorial and installed it with Kext Utility. After a reboot I got proper sound, like before.

Read More