OSX86

Mac Os X

Working with new Machine

1

I ‘m back again, now with a new machine, i just build an intel platform for my Hackintosh:

My new RIG is :
Intel Core2Quad Q8400
Gigabyte EP43-UD3L
Geforce 9600 GT
4 GB kit G-Skill pc 6400
Seagate 500 GB Sata 2

i have post my installation in here

my new hackintosh

i still have an AMD machine, but i m not using it everyday, so i will keep posting about Hackintosh Generally and also Hackintosh on AMD..

i will keep this blog update, so stay tunes for my next post

CPUIDs Patch for Snow Leopard

14

AMD

Legacy kernel like modbin mach_kernel.test7 and qoopz “anappirtrvh” XNU kernel for snow Leopard doesn’t have on fly cpuids patch for AMD like 10.5 voodoo based kernel.

if you have success installing Snow Leopard on your AMD system, you will need to patch some cpuids. some application will crash without cpuids patch like iTunes and Spotlight. To do cpuids patch you will need a cpuids pacther like Marvin’s AMD Utility v.25. you can download it here.

To Fix iTunes you can do a cpuids patch on:

/System/Library/QuickTime/

and

/System/Library/Frameworks/CoreServices.frameork/Versions/A/Frameworks/CarbonCore.framework/Versions/A/

To fix Spotlight :

/System/Library/PreferencePanes/Spotlight.prefPane

You Can do A CPUIDs Patch on /system/library/ but do not patch front row because it will make front row not working..

if you have already patch all cpuids you can restore your frontrow binary to make frontrow work

LIZARD – A companion for Chameleon bootloader

0

Lizard

Are you using Chameleon boot loader or PC EFI boot loader, you might need to write smbios.plist

Sotone has created a cocoa application, designed to manage Chameleon. You can edit com.apple.Boot.plist, smbios.plist and build a bootable ISO. Lizard only support Extra folder from the system partition, actually it can’t grab Extra folder from another partition (but i hope it will).
It also can’t (and probably never) grab files from the “efi” partition.

However, you can specify a custom path for smbios.plist, or use the Apple’s default location for com.apple.Boot.plist (seem’s necessary for RAID).

Lizard - GUI

The avanced Theme part is able to read some new informations
- You can add two keys in the theme.plist

<key>Author</key>
<string>Me</string>
<key>Version</key>
<string>1.0</string>

- And add a thumb named “thumb.png” with other files.

If you’re not familiar with Chameleon, the application is shipped with detailled help files.

Hope Lizard will makes your chameleon’s experience better…

Credits:
Prasys for Smbios Help content
Distemperus for Boot Help content
Trauma, Kabyl, JrCs, BlackOsx for their advices and expertise.

You can download the latest build : here

Building XNU kernel on Snow Leopard

1

XNU kernel Source for Mac Os X 10.6 Snow Leopard  has ben release on opensource.apple.com

Building xnu requires some open source (but not pre-installed) tools. Darwinbuild is the most reliable way for building these dependencies and xnu itself. Until that is ready, you can build the tools manually as follows:

make a dir in desktop or some where else (eg Kernel)

Open Terminal and type

cd ~/desktop/Kernel

(if you created a Kernel dir in desktop)

  1. Download the build tools source(s)

    $ curl -s -O http://www.opensource.apple.com/tarballs/cxxfilt/cxxfilt-9.tar.gz
    $ curl -s -O http://www.opensource.apple.com/tarballs/dtrace/dtrace-78.tar.gz
    $ curl -s -O http://www.opensource.apple.com/tarballs/kext_tools/kext_tools-177.tar.gz
    $ curl -s -O http://www.opensource.apple.com/tarballs/bootstrap_cmds/bootstrap_cmds-72.tar.gz
  2. Unpack the tools

    $ tar zxf cxxfilt-9.tar.gz
    $ tar zxf dtrace-78.tar.gz
    $ tar zxf kext_tools-177.tar.gz
    $ tar zxf bootstrap_cmds-72.tar.gz
  3. Build cxxfilt

    $ cd cxxfilt-9
    $ mkdir -p obj sym dst
    $ make install RC_ARCHS="i386 x86_64" RC_CFLAGS="-arch i386 -arch x86_64 -pipe" RC_OS=macos RC_RELEASE=SnowLeopard SRCROOT=$PWD OBJROOT=$PWD/obj SYMROOT=$PWD/sym DSTROOT=$PWD/dst
    ...
    $ sudo ditto $PWD/dst/usr/local /usr/local
    Password:
    $ cd ..
  4. Build dtrace

    $ cd dtrace-78
    $ mkdir -p obj sym dst
    $ xcodebuild install -target ctfconvert -target ctfdump -target ctfmerge ARCHS="i386 x86_64" SRCROOT=$PWD OBJROOT=$PWD/obj SYMROOT=$PWD/sym DSTROOT=$PWD/dst
    ...
    $ sudo ditto $PWD/dst/usr/local /usr/local
    Password:
    $ cd ..
  5. Build kext_tools

    $ cd kext_tools-177
    $ mkdir -p obj sym dst
    $ xcodebuild install -target kextsymboltool -target setsegname ARCHS="i386 x86_64" SRCROOT=$PWD OBJROOT=$PWD/obj SYMROOT=$PWD/sym DSTROOT=$PWD/dst
    ...
    $ sudo ditto $PWD/dst/usr/local /usr/local
    Password:
    $ cd ..
  6. Build bootstrap_cmds

    $ cd bootstrap_cmds-72
    $ mkdir -p obj sym dst
    $ make install RC_ARCHS="i386" RC_CFLAGS="-arch i386 -pipe" RC_OS=macos RC_RELEASE=SnowLeopard SRCROOT=$PWD OBJROOT=$PWD/obj SYMROOT=$PWD/sym DSTROOT=$PWD/dst
    ...
    $ sudo ditto $PWD/dst/usr/local /usr/local
    Password:
    $ cd ..
  7. Download the xnu source

    $ curl -s -O http://www.opensource.apple.com/tarballs/xnu/xnu-1456.1.26.tar.gz
  8. Unpack xnu

    $ tar zxf xnu-1456.1.26.tar.gz
  9. Build xnu

    $ cd xnu-1456.1.26
    $ make ARCH_CONFIGS="I386 X86_64" KERNEL_CONFIGS="RELEASE"
    ...
    $ file BUILD/obj/RELEASE_*/mach_kernel
    BUILD/obj/RELEASE_I386/mach_kernel: Mach-O executable i386
    BUILD/obj/RELEASE_X86_64/mach_kernel: Mach-O 64-bit executable x86_64

Original Post :  here

To build a modified XNU with a .diff of an XNU kernel you need to:

1. Download and Apply the patch

download the .diff file and place it in your kernel folder (eg. ~/desktop/Kernel/patch.diff )

Patch the source  with :

cd ~/desktop/Kernel/

patch -p0 -i patch.diff

2. build the kernel (make sure you have remove the BUILD folder in  xnu-1456.1.26 folder i you have try to build before

$ cd xnu-1456.1.26
$ make ARCH_CONFIGS=”I386 X86_64″ KERNEL_CONFIGS=”RELEASE”

(for i386 and x86_64 build)

or

$ cd xnu-1456.1.26
$ make ARCH_CONFIGS=”I386″ KERNEL_CONFIGS=”RELEASE”

(for i386 build only (legacy kernel))

Install Snow Leopard on AMD

3

Snow Leopard on AMD

You will need a retail Snow Leopard to do this installation. you can buy it at apple store or some where else (i will not post the link to retail snow dvd, dmg, or iso)

Before we begin to install Snow leopard On AMD system we need to prepare some file :

1. Kernel : Because AMD cant boot with vanila kernel.. for me the most success kernel is mach_kernel.test7 from modbin. test7 its because its kernel number 7 i have test from modbin (all other kernel get me a KP) you can get the kernel : here

2. Chameleon rc 2.640 pkg… you can get it from their website or : here

3. boot file to replace chameleon 2 boot file : here

4. DSDT.aml for your system. Google it to find out how you will need a cmos reset fix in your DSDT.aml, DSDT patch also can be use to make your HDA sound working with vanilla AppleHDA.kext

5. Some kext like: dsmos.kext – required to decrypt encrypted binaries NullCPUPowerManagement.kext – attaches in place of the real AppleIntel CPUPowerManagement which doesn’t work right on PCs (kernel panic, cpu running hot) OpenHaltRestart.kext – very simple kext that makes reboot and shutdown work on PCs PlatformUUID.kext – sets the platform UUID so that you have a uniform UUID from the very start of the boot.. this UUID is used in your preferences files (among other things) and I think it is important for a clean install to have this right from the first boot. you can get it here

Next Step Installing Snow… (install from a working leopard)

1. prepare an empty volume with disk utilities n get the uuid of the volume in this sample name it “snow” Make sure that the new volume’s root directory is owned by the root user.

chown 0:0 /Volumes/Snow

2. Mount the installer

a. if you have a GPT (GUUID Partition Table) mount the snow leopard installation dmg/iso open

/Volumes/Mac\ OS\ X\ Install\ DVD/System/Installation/Packages/OSInstall.mpkg

b. if you have an MBR partition u need to edit the OSInstall.mpkg or you can download : here u can restore the dmg/iso to an empty partition and change the Osinstall.mpkg its located on

/Volume/”some volume name”/System/Installation/Packages/ run the Os install.mpkg

3. Install Snow leopard to targeted volume 4. Install Chameleon Rc 2.640 to targeted volume. 5. Replace the boot file 5. Place the new kernel in the root of volume 6. create an smbios.plist and place in to /Extra (in the targeted volume) this is the dummy:

smbios

change the UUID with volume UUID that u have before (point 1) also place the UUID in the PlatformUUID.kext its located on PlatformUUID.kext/content/info.plist

7. Place dmos.kext, PlatformUUID.kext, Openhaltrestart.kext, NullCPUPowerManagement.kext in /Extra/Extensions/

8. Edit your /extra/com.apple.Boot.plist

9. Place your fixed DSDT.aml in the root of targeted volume

10. if you have other kext like voodooHDA or sumthing you can also install it (i use dsdt to get my sound working)

11. Reboot your PC and boot from targeted volume Good Luck….

Update: You can Use Chameleon 2 rc 3 ort PC EFI 10.3, 10.4, 10.4.1, or 10.5 to replace the boot file

Go to Top