Jump to content

[ PRE-INSTALL AUTOMATOR v1.1 ] for easily installing vanilla snow leo.


dj nitehawk
 Share

281 posts in this topic

Recommended Posts

What is this?

 

This is a script which lets you do quick and easy Snow Leopard installs by automating the pre-install preparation process.

 

What exactly does the script do?

 

It takes care of the following:

  • Installs Chameleon 2 RC3 boot loader
  • Creates a patched dsdt.aml file for your specific motherboard
  • Installs the required kexts + boot plist

Why use this?

 

  • Fully automated - you only need to tell it where to install
  • No more typing commands in terminal
  • No more editing plist files
    • No need for EFI strings for nVidia graphics cards. Chameleon 2 RC3 detects them automatically.
    • No need for disk UUID strings. Again, Chameleon takes care of it.

    [*]Can install to any disk/partition, even to raid helper partitions

    [*]Can be used from within Leopard 10.5 or Snow Leopard 10.6

    [*]Can be used straight from the retail Snow Leo Installer DVD (follow guide below).

    [*]Not specific to a certain motherboard make/model.

    [*]Helps doing a basic pure vanilla installation quickly.

    [*]Can easily customize for your needs.

    • Can easily add any additional kexts for your system
    • The source code is editable

Warning:

 

This is not meant for complete noobs. It will not magically give you a working Snow Leopard install. The upcoming iKaros distro is recommended for that.

How do I use this?

 

This script could be used in a few different ways but here's the easiest way that i could come up with to get a working Snow Leo installation quickly.

 

Brief guide (for experienced/intermediate hackintoshers):

  1. Restore the retail "Snow Leopard Install DVD" to a read/write disk partition (hdd or usb flash drive).
  2. Download and extract the attached zip file to your desktop.
  3. Add any additional kexts your system needs to the following location: (see tip #1 below)
    • "desktop/snow-installer/filez/Extra/Extensions/"

[*]Run the script from "desktop/snow-installer/installnow" by double-clicking on it or via the terminal.

[*]Go through the on-screen prompts. Select the above restored install dvd partition as the target.

  • For ex: "/Volumes/Mac OS X Install DVD" so that the installer dvd partition becomes bootable.

[*]Copy the folder "desktop/snow-installer" to the above restored location.

  • For ex: "/Volumes/Mac OS X Install DVD/"

[*]Restart the computer and boot into the above install dvd disk/partition.

[*]After the retail installer loads, click "Utilities" > "Terminal" in the menu and type the following to run the script again:

  • "/snow-installer/installnow"

[*]Go through the prompts again and select your ultimate Snow Leo destination disk/partition.

  • For ex: "/Volumes/MySnowLeo"

[*]Close terminal and continue with the retail snow installer and select the same location as step 9 for the install target.

  • "/Volumes/MySnowLeo"

That's it in 10 easy steps!!!

 

 

Is this guaranteed to work?

 

Hell no!!! No guarantees...

Use at your own risk...

 

This is just a tool that i made to make my life easier when doing new OSX installations for myself and friends. Just wanted to give something back to the community.

 

I apologize in advance if i don't answer your questions in a timely manner. Im sure all the other knowledgeable members here will step in and help...

 

Last but not least... My heartfelt gratitude goes out to the following people:

 

-The Chameleon Team (for a kick ass boot loader)

-Netkas (for fakesmc)

-Fassl (for the dsdt patcher)

-Voodoo Team (for voodoohda and voodoops2)

-Psystar (for openhaltrestart)

-iAtkos Team (for giving me my first fully working hackintosh)

-Everyone else that's made OSX86 a reality.

 

LONG LIVE THE HACKINTOSH SCENE!!!

 

Note for non-nVidia graphics card users:

 

If your graphics card is not nVidia, chameleon's auto graphics detection will not work. Before doing anything, please edit the file "desktop/snow-installer/filez/Extra/com.apple.boot.plist" and change the "Yes" to "No" where it says:

 

GraphicsEnabler=Yes

 

Then you will have to take whatever measure necessary to add the proper graphics card support by using EFI strings, injectors/enablers, custom kexts, etc. Just search the web/forums for help with that...

Tip 0:

 

Before running this script, please go through your bios setup and make sure that the following(or similar) are enabled if available. these settings help in trouble[free/less] booting.

 

hpet(high precision event timer), sata ahci, intel xd(execute disable bit), intel vt (virtualization technology), acpi 2, s3 sleep state, intel speedstep

 

even if they are not available, just give it a whirl and see what happens.

Tip 1:

 

The kexts that are included in this package are only the real basic ones that are required to get a basic vanilla system running on most modern desktops assuming it has sata hdd's with ahci support + multi core intel processor + intel chipset on southbridge etc...

 

You may have to add any additional kexts your system might need for ex: sound + network + ide hdd support etc. if they are not detected by the stock kexts that come with snow leo...

 

The best way to figure out what additional kexts are needed, is to look at a guide specifically written for you motherboard or computer model and see which kexts are missing and simply add them in step 3 of the above guide.

 

Tip 2:

 

Some kexts such as network card drivers, sound drivers (voodoohda) do not work from "/Extra/Extensions" if that's the case for you, simply move them to "/System/Library/Extensions" once you get your basic snow leo up and running.

 

Tip 3:

 

After messing with the "/System/Library/Extensions" always issue the following commands in the terminal so that there wont be any errors regarding permissions and outdated boot caches:

  • sudo chown -R root:wheel /system/library/extensions
  • sudo chmod -R 755 /system/library/extensions
  • sudo diskutil repairpermissions /volumes/NAMEOFSNOWVOLUME
  • sudo touch /system/library/extensions

Tip 4:

 

This script generates and places a dsdt.aml file on the target disk which will only work with the computer you ran it on.

 

If you want to try booting that disk on a different computer, you can temporarily disable the loading of the patched dsdt.aml by interrupting chameleon at boot time by pressing any key and typing in the following:

 

"DSDT=nothing.aml" without quotes.

 

 

Tip 5:

 

The patched dsdt.aml currently does not include the "cmos reset fix" which is required if your bios/cmos gets corrupted/reset everytime you reboot. So if your mobo suffers from this problem, you will have to edit your dsdt manually. Guide's can be found on the net on how to do that...

Im currently trying to learn the C language so i can update Fassl's dsdt patcher code with the cmos reset fix. If any of you C pros out there would like to help, that would be great!!!

 

Revision History:

 

v1.0:

  • Initial release

v1.1

  • fixed issues encountered when running from within leopard 10.5
  • solved bash external command dependencies when running from the retail dvd installer
  • increased error checking for trouble[free/less] operation
  • enabled manual volume mounting/unmounting in case of error
  • updated the guide for better and trouble[free/less] install experience

Request from the pros:

 

If you think any of the info on this post is incorrect or could be improved, please do let me know...

 

And you guys are welcome to edit the script and make improvements to it. Just send me a copy so i can post it up here...

snow_installer_v1.1.zip

Link to comment
Share on other sites

Warning:

 

This is not meant for complete noobs. It will not magically give you a working Snow Leopard install. The upcoming iKaros distro is recommended for that.

 

...

 

LONG LIVE THE HACKINTOSH SCENE!!!

 

 

Thanks dude, I will try this out, it looks very useful. Feedback's on the way.

Link to comment
Share on other sites

Thanks dude, I will try this out, it looks very useful. Feedback's on the way.

 

hey a few of us at infinitemac found a few issues with this script... so im trying to fix those now...

 

just doing some final testing...

 

will update this post with version 1.1 soon... you can try the existing v1 and give me feedback...

 

here's the link to the other forum so you might find some answers there:

 

http://www.infinitemac.com/f57/auto-pre-in...-vanilla-t4041/

Link to comment
Share on other sites

Wow, this is really awesome!

I have yet to try the new version. For some reason I kept getting a KP during boot when I had the mkext file, so I just took it out. And it started working, but then my DMG I think got curruted because when I o

looked at the log, when copying the voice,pkg. It would just fail. Good thing I have all Sunday to try your way! I'll reprt back soon!;)

Link to comment
Share on other sites

hello,

 

this guide seems like it presents the most elegant solution as of yet !

 

i am not a very confident hacker,,, so i have a question concerning the following step;

(lol, i actually always used apple hardware unntill now,,)

 

6. Add any additional kexts your system need to the following location:

"/Volumes/Mac OS X Install DVD/snow-installer/filez/Extra/Extensions/"

 

i have made my personal setup as follows;

-Gigabyte motherboard EP45-UD3R

-Intel core 2 duo Q9550

-Gigabyte nVidia 9600GT 512mo (GV-N96TSL-512I)

-Seagate barracuda 7200.12 (ST31000528AS)

-Samsung SH-S223L/BEBS DVD Burner

-TRENDnet TEG-PCITXR ethernet card

 

when i looked in the filez/Extra/Extensions folder i compared the kext's with the ones suggested for my motherboard in this thread; EP45-UD3R thread, and they list the following kext's in addition to the ones that come with your package;

-IOAHCIBlockStorageInjector.kext

-JMicronATA.kext

-LegacyHDA.kext

-NullCPUPowerManagement.kext

-PlatformUUID.kext

-SleepEnabler.kext

 

As i really would like to put all chances on my side as to get this right from the start, i wondered if any of the above kext's would be in conflict with those in your package, or if simply not needed,, ??

 

i thought that maybe the "fakesmc.kext" and "-NullCPUPowerManagement.kext" might be conflictual ??

 

thank you for great work,

 

andreas

-

Link to comment
Share on other sites

hello,

 

As i really would like to put all chances on my side as to get this right from the start, i wondered if any of the above kext's would be in conflict with those in your package, or if simply not needed,, ??

 

i thought that maybe the "fakesmc.kext" and "-NullCPUPowerManagement.kext" might be conflictual ??

 

thank you for great work,

 

andreas

-

 

 

fakesmc.kext (32bit and 64bit compatible) -> emulates SMC to provide the information required for the Don't Steal Mac OS X.kext to decrypt the Apple encrypted files

 

NullCPUPowerManagement.kext (32bit and 64bit compatible) -> A problem with running OS X running on non-Apple hardware (both physically and in VM) is that the AppleIntelCPUPowerManagement.kext invariably causes a kernel panic or at bootup generates endless messages regarding the HPET and links to the CPU. AFAIK the NullCPUPowerManagement.kext plays a couple of tricks with the IOKit service registration process to take over the role of the AppleIntelCPUPowerManagement.kext, essentially disabling it. Also deals with heat issues.....

 

 

 

nope, they do two different things.

Link to comment
Share on other sites

I dont know if you hackintosh community members already know, there is a better script then this guy is purporting and the script has many more features. It has features that this nighthawk guy (no offense) will never have and features he will upgrade the script with are amazing too. Unlike nighthawks new script, DD's script has been tested for a long time, with most bugs that can occur with scripting, removed over time. You can make kexts packages with DD's script and release them for your motherboard. Although, DD needs full credit where due because he is a very caring Insanelymac member and earned his respect.

 

Now here is the NEW most easy solution for you and everyone.

 

Use this script from DD, link

more info on that script here, link

 

This script is for ddr3 platforms, but will work on any computer, so Change the smbios in the plist to memtype=19 for your ddr2 platform.

 

Read up on this easy smbios guide from BlackOSX's pdf at this link

In relation to the kexts, sound will need voodoohda for most systems and you put that in the correct place in the script folders (out of repository and into main sound folder) to make the script insert the correct kext into your extra folder.

 

Other then that, the script creates the dsdt for you automatically, as well as entering the kexts (Which you need to carefully choose into your extra folder, chameleon and the plists.

 

Basically, use this path for now on.

Link to comment
Share on other sites

Just a quick question. Since this generates DSDT for your MB, that would mean you need to be running this script on the computer you're installing it on? I don't have OS X on my hack yet, was planning on setting up the install from my Macbook since that has been advised previously.

Link to comment
Share on other sites

Just a quick question. Since this generates DSDT for your MB, that would mean you need to be running this script on the computer you're installing it on? I don't have OS X on my hack yet, was planning on setting up the install from my Macbook since that has been advised previously.

 

yeah your gonna need leo or snow on your computer already for this too work. becuase the DSDT.aml is made for your hardware speficially.

 

I dont know if you hackintosh community members already know, there is a better script then this guy is purporting and the script has many more features. It has features that this nighthawk guy (no offense) will never have and features he will upgrade the script with are amazing too. Unlike nighthawks new script, DD's script has been tested for a long time, with most bugs that can occur with scripting, removed over time. You can make kexts packages with DD's script and release them for your motherboard. Although, DD needs full credit where due because he is a very caring Insanelymac member and earned his respect.

 

Now here is the NEW most easy solution for you and everyone.

 

Use this script from DD, link

more info on that script here, link

 

This script is for ddr3 platforms, but will work on any computer, so Change the smbios in the plist to memtype=19 for your ddr2 platform.

 

Read up on this easy smbios guide from BlackOSX's pdf at this link

In relation to the kexts, sound will need voodoohda for most systems and you put that in the correct place in the script folders (out of repository and into main sound folder) to make the script insert the correct kext into your extra folder.

 

Other then that, the script creates the dsdt for you automatically, as well as entering the kexts (Which you need to carefully choose into your extra folder, chameleon and the plists.

 

Basically, use this path for now on.

 

 

are you kidding?

do you see how many words there are in that guide and in this guide?

this guide worked perfectly for me and i didnt even have to like do much.

theres so much changing in that one and whatnot.

 

anyways, i want to thank the OP very greatly for getting sn0w to work on my comp! thanks so much dude :D

Link to comment
Share on other sites

are you kidding?

do you see how many words there are in that guide and in this guide?

this guide worked perfectly for me and i didnt even have to like do much.

 

Your condescending attitude towards me in relation to my post #9 will convince nobody that DD's script is less comprehensive then nitehawks script.

 

I have to say that you not even trying DD's script and making an opinion on it would be wholeheartedly stubborn.

 

You could just ignore any guides or information on DD's script and just run it as is and it would work perfectly just as you desire, you just need to fix the smbios plist for ddr2 if need be.

Link to comment
Share on other sites

Your condescending attitude towards me in relation to my post #9 will convince nobody that DD's script is less comprehensive then nitehawks script.

 

I have to say that you not even trying DD's script and making an opinion on it would be wholeheartedly stubborn.

 

You could just ignore any guides or information on DD's script and just run it as is and it would work perfectly just as you desire, you just need to fix the smbios plist for ddr2 if need be.

 

sorry about that, i just feel like you were bashing the op.

 

i actually looked into the directions and whatnot and the directions and i felt as though teaching someone who knew nothing about osx86 would be able to use this script better than the other one.

Link to comment
Share on other sites

wow!!! DD's script is pretty full on... if i had seen that before i might have not created this script at all...

 

but... i really hate long as guides and a long as lists of things to do...

 

that's why i've tried to really simplify things with my brief guide and the script...

 

to be honest im not out to prove anything or try to win the best script of the month award or anything like that...

 

as noted in the main post, i didnt make this script for the public, i made it for myself... and i felt guilty not sharing it cos it could help others reduce the amount of work needed when doing new installs...

 

i initially thought this script would not be helpful for newbies but it seems i was wrong... a number of moderately experienced hackintoshers have had success with this...

 

so yeh... use mine, use DD's... i dont care... as long as u can get ur osx up and running...

 

good luck to everyone!!!

 

Wow, this is really awesome!

I have yet to try the new version. For some reason I kept getting a KP during boot when I had the mkext file, so I just took it out. And it started working, but then my DMG I think got curruted because when I o

looked at the log, when copying the voice,pkg. It would just fail. Good thing I have all Sunday to try your way! I'll reprt back soon!:rolleyes:

 

v1.1 doesnt come the the mkext... retry with new version...

 

hello,

 

this guide seems like it presents the most elegant solution as of yet !

 

i am not a very confident hacker,,, so i have a question concerning the following step;

(lol, i actually always used apple hardware unntill now,,)

 

 

 

i have made my personal setup as follows;

-Gigabyte motherboard EP45-UD3R

-Intel core 2 duo Q9550

-Gigabyte nVidia 9600GT 512mo (GV-N96TSL-512I)

-Seagate barracuda 7200.12 (ST31000528AS)

-Samsung SH-S223L/BEBS DVD Burner

-TRENDnet TEG-PCITXR ethernet card

 

when i looked in the filez/Extra/Extensions folder i compared the kext's with the ones suggested for my motherboard in this thread; EP45-UD3R thread, and they list the following kext's in addition to the ones that come with your package;

-IOAHCIBlockStorageInjector.kext

-JMicronATA.kext

-LegacyHDA.kext

-NullCPUPowerManagement.kext

-PlatformUUID.kext

-SleepEnabler.kext

 

As i really would like to put all chances on my side as to get this right from the start, i wondered if any of the above kext's would be in conflict with those in your package, or if simply not needed,, ??

 

i thought that maybe the "fakesmc.kext" and "-NullCPUPowerManagement.kext" might be conflictual ??

 

thank you for great work,

 

andreas

-

 

yes u can add those safely... there's nothing that conflict with whats included... but... i suggest you do this...

 

try booting with whats included... and if things arent working, try adding kexts that should solve the problems one by one...

 

my theory is "why waste resources on things that might not be needed?"

 

or u could start with all of them, and start removing one by one... if the removed kext doesnt do any damage, they can remain removed...

 

up to you :-)

 

Just a quick question. Since this generates DSDT for your MB, that would mean you need to be running this script on the computer you're installing it on? I don't have OS X on my hack yet, was planning on setting up the install from my Macbook since that has been advised previously.

 

please refer to tip no: 4 on the main post...

 

im currently trying to find a solution for a universal dsdt... will update when sorted...

Link to comment
Share on other sites

sorry about that, i just feel like you were bashing the op.

 

No, no bashing, dj nitehawk is an honorable person for helping the community. I just wanted to give my 2 cents on my experiences with scripts that ease the process of installing SL. It can be really hard for uninformed souls and who ever goes out of there way and makes that path easier is really doing a good deed for us all.

wow!!! DD's script is pretty full on... if i had seen that before i might have not created this script at all...

 

Good effort either way, maybe you guys could combine your awesome skills somehow.

Link to comment
Share on other sites

Thx to you dude i now run SL flawlessly on my p5k-e I am posting from it the only things i had to do after the install is install the latest chameleon boot loader, apply the time machine fix and insert my video card string with uinstaller (the time machine fix is to get rid of the uuid weird errors i got after the upgrade to 10.6.1) oh and i took the dsdt.aml from the p5ke_pack.zip i took from another tutorial that didnt work for me i've tried many install methods all week-end long and succeded with your script not even a KP nothing all is good

 

thank alot dude

Link to comment
Share on other sites

No, no bashing, dj nitehawk is an honorable person for helping the community. I just wanted to give my 2 cents on my experiences with scripts that ease the process of installing SL. It can be really hard for uninformed souls and who ever goes out of there way and makes that path easier is really doing a good deed for us all.

 

 

Good effort either way, maybe you guys could combine your awesome skills somehow.

 

thank you for ur kind words!!!

 

i looked inside DD's script and my god, that is one real beast!!! meaning he is the mantis in scripting... i have no real skill to contribute to his project...

 

to be honest, this is the first bash script ive ever written...

 

im just an asp.net web developer who's found a way to run mac on his pc :-)

 

this script was made out of personal necessity... but yeh its good to know that its helped a few ppl...

 

i wish someday apple would stop being so greedy and release a mac os version that can be installed on any pc :-) *** yeah like thats ever gonna happen right *** :-)

 

Thx to you dude i now run SL flawlessly on my p5k-e I am posting from it the only things i had to do after the install is install the latest chameleon boot loader, apply the time machine fix and insert my video card string with uinstaller (the time machine fix is to get rid of the uuid weird errors i got after the upgrade to 10.6.1) oh and i took the dsdt.aml from the p5ke_pack.zip i took from another tutorial that didnt work for me i've tried many install methods all week-end long and succeded with your script not even a KP nothing all is good

 

thank alot dude

 

bloody marvelous...

 

fyi: the latest chameloen rc3 is included in the package...

 

id like to know if you are using an nvidia g.card and if the auto graphic detection didnt work for u? pls mention ur video card model?

Link to comment
Share on other sites

THANKS A LOT! i'm now using my snow leopard hackintosh.. my only issue is SOUND!! i have none =(. When I installed snow leopard a different route I did have sound..

 

I tried voohooda (however you spell that) with no success: I moved it to ~\library\extensions.

 

i could not repair permissions afterwards.

 

I also tried pulling the audio files from my leopard partition - but that also did not work.. please advise!

Link to comment
Share on other sites

THANKS A LOT! i'm now using my snow leopard hackintosh.. my only issue is SOUND!! i have none =(. When I installed snow leopard a different route I did have sound..

 

I tried voohooda (however you spell that) with no success: I moved it to ~\library\extensions.

 

i could not repair permissions afterwards.

 

I also tried pulling the audio files from my leopard partition - but that also did not work.. please advise!

Link to comment
Share on other sites

I tried voohooda (however you spell that) with no success: I moved it to ~\library\extensions.

 

looks like u moved it to the wrong location... it needs to be in:

 

NAME-OF-SNOW-VOLUME/System/Library/Extensions

 

and of course after moving, run the commands mentioned in teh main post and restart...

 

Running as we write but have a question. It shows on screen as running 32-bit,is this the loader or the program running at 32-bit? Can it be set to run 64 bit.

 

EP45T-UD3P with ATI 4850

 

where does it show 32bit?

 

there's 2 ways to boot in 64 bit...

 

1. while booting, interrupt chameleon by pressing any key and type the following:

 

arch=x86_64

 

2. to make the change permenant, edit "/extra/com.apple.boot.plist" and change where it says "arch=x86" to "arch=x86_64"

 

in my experience, there's no real advantage of running snow in 64bit unless u have more than 32gb of memory... 32bit mode can execute apps written for 64bit just fine... and all the core apps/drivers are always run in 64bit according to what ive read...

 

since a lot of drivers arent available in 64bit yet, i have made 32bit the default setting for this package...

Link to comment
Share on other sites

bloody marvelous...

 

fyi: the latest chameloen rc3 is included in the package...

 

id like to know if you are using an nvidia g.card and if the auto graphic detection didnt work for u? pls mention ur video card model?

 

i havent noticed for the new chameleon in the package :D

 

and for the auto detection of the video card it worked for the installation (flawlessly i was installing in dual screen native resolutions) but when i came back to my desktop after the install... i dont know why it didnt worked any more

 

the video card im using is a NVIDiA Gforce 8800 GTS 320 Mo

 

there is a strange thing tough... it only boots if i specify -v boot flag... so when i boot i enter -x64 -f..,

Link to comment
Share on other sites

It did not work went in to panic attached is photo of screen. Also cleared bios every time I tried to boot

EP45T-UD3P with ATI 4850

 

okkay minor issue... looks like u havent read tip #0 on the main post...

 

go through ur bios and enable HPET...

 

if thats not available try the following boot flag:

 

ForceHPET=Yes

 

if that doesnt work, try adding the nullcpupowermanagement.kext to /extra/extensions...

 

and as mentioned on the last tip on the main post, motherboards suffering from the cmos reset bug requires manual dsdt patching...

 

i havent noticed for the new chameleon in the package :thumbsup_anim:

 

and for the auto detection of the video card it worked for the installation (flawlessly i was installing in dual screen native resolutions) but when i came back to my desktop after the install... i dont know why it didnt worked any more

 

the video card im using is a NVIDiA Gforce 8800 GTS 320 Mo

 

there is a strange thing tough... it only boots if i specify -v boot flag... so when i boot i enter -x64 -f..,

 

that really is strange... when using g.card auto detection, does ur system profiler show the correct g.card info?

 

anyways, use an EFI string for ur card from gxfutil, efi studio, osx86tools, uinstaller or something... disable graphics auto detection in the boot plist first... then add the efi string and reboot...

 

in /extra/com.apple.boot.plist, set "GraphicsEnabler=No"

Link to comment
Share on other sites

that really is strange... when using g.card auto detection, does ur system profiler show the correct g.card info?

 

anyways, use an EFI string for ur card from gxfutil, efi studio, osx86tools, uinstaller or something... disable graphics auto detection in the boot plist first... then add the efi string and reboot...

 

in /extra/com.apple.boot.plist, set "GraphicsEnabler=No"

 

I did use uinstaller to use my gfi string everytning is fine except for the boot flag

Link to comment
Share on other sites

 Share

×
×
  • Create New...