Jump to content

[GUIDE] A fast and easy way to install Lion


tseug
 Share

607 posts in this topic

Recommended Posts

As Lion is coming out comparatively soon I thought it was about time to make an install method that was easy to use and fairly fast.

 

This method was created (and tested) for the Gigabyte GA-P35-DS4 motherboard but it should be relatively easy to modify for any other motherboard. It's a CLI at the moment for this reason but a GUI might exist at some point (Especially if someone else makes one :) ).

 

Note: only compatible with GM edition

 

The recipe:

 

Ingredients

 

OS X Lion install app

 

A USB drive (8 GB) or a spare partition. We'll assume you'll use a USB device here

 

....

 

Following this helps me to pin down the error. It also helps you because you will most likely not get an answer otherwise ;)

 

Hm, I ran your script to put the GM Lion Installation Disk on a spare partition (shoul be as good as a USB stick). When I boot from this partition by chosing it in Chameleon, It loads the kexts, i think it discovers some hardware and w/o any "comment" it reboots. /var/log/kernel.log is empty.

Any ideas? it is too fast to make a photo...

Hardware see Sig (the gigabyte of course...)

 

EDIT: stupid, it booted the old Chameleon. After replacing with r1007 what I now get is the message that my ATI somewhat is not found, and it starts reading the VBIOS. Well, after a few seconds the screen looks funny, and that's it. Looks as if my grapfics card is not liked. What can I do here?

 

Thanks

Joey

Link to comment
Share on other sites

tseug, your tutorial successfully worked for me (you can find my hardware specs into the sig line) :censored2: thank you :P

I have some power management problems: _CST, etc., power related logs into my kernel.log..., e. g. CPU power management is off -- will post later the log for investigation.

Link to comment
Share on other sites

As Lion is coming out comparatively soon I thought it was about time to make an install method that was easy to use and fairly fast.

 

This method was created (and tested) for the Gigabyte GA-P35-DS4 motherboard but it should be relatively easy to modify for any other motherboard. It's a CLI at the moment for this reason but a GUI might exist at some point (Especially if someone else makes one :) ).

 

Note: only compatible with GM edition

 

The recipe:

 

Ingredients

 

OS X Lion install app

 

A USB drive (8 GB) or a spare partition. We'll assume you'll use a USB device here

 

An install partition for OS X Lion. Let's call it Lion

 

A DSDT.aml (optional)

 

v0.7:

 

Directions

 

  1. In Disk Utility, format the USB as Mac OS X Extended (Journaled) and give it some name: We'll use USB Boot here but it can be anything. Make sure that "GUID Partition Table" is selected under "Options..."
  2. If you already have a custom DSDT.aml you wish to use, add it to install/Extra/. If you don't, you can generate one with DSDT Auto-Patcher. Note that if you add a custom DSDT, it must be named DSDT.aml. If you don't add a DSDT, one will be created for you when you run finalize (See below). Although the included patcher was made to support GA-P35-DS4 it has also been confirmed to work well with a number of other Gigabyte boards similar to GA-P35-DS4. Please let me know if it works out of the box with your motherboard.
  3. In Terminal:
    sudo install/mkboot Install\ Mac\ OS\ X\ Lion.app /Volumes/USB\ Boot/


    This should take ~15 minutes.

  4. Boot your USB device and install Lion on /Volumes/Lion as you normally would.
  5. Wait for the installation to finish. When your machine reboots in the end, boot onto the USB device again.
  6. Open up a terminal via the Utilities menu:
    ./finalize /Volumes/Lion
    reboot


  7. All done. The USB device can be ejected and OS X can be booted from the hard drive.

 

Sleep, network, and sound works on GA-P35-DS4. For a substantially different motherboard you'll need to modify mkboot and finalize appropriately.

 

------

 

How does it work?

 

mkboot is a bash script that installs Chameleon, the things needed from the Lion DMG, and other tidbits to the target volume.

 

finalize is a bash script as well. It is copied over to the boot USB by mkboot and installs Chameleon etc. on the target volume.

 

Both scripts are commented and include references to the description of the various phases.

 

I'm a Terminal newbie. What to do?

 

Welcome to the wonderful world of the Unix terminal :) Here are some extra instructions:

 

  1. Once you've downloaded install.tar.gz it should reside in the Downloads folder. Safari either unpacked it for you or you can do it yourself by double clicking the file.
  2. Open a terminal. Write sudo and drag and drop the mkboot file into the terminal. Make sure there is a space between sudo and the mkboot path. Then do the same with the Lion install app and finish off the line with /Volumes/USB\ Boot Again, make sure that the different command line elements are delimited by spaces.

 

Troubleshoting

 

Make sure you are actually booting from the USB device. On Gigabyte, you can press F12 on POST to get a boot menu.

 

Is your Graphics card mentioned in http://www.insanelymac.com/forum/index.php?showtopic=256103 ?

 

Error reporting

 

If you have problems please follow these guidelines when posting in this thread:

 

Report your hardware including motherboard and graphics card. Report whether the graphics card is reported as working in the thread mentioned above.

 

Report whether you have made any modifications to the install package.

 

Report exactly when the error happens. On running the script? If so, which one? On booting the USB device? On booting the hard drive?

 

Screenshots of the error are always helpful.

 

Following this helps me to pin down the error. It also helps you because you will most likely not get an answer otherwise :)

 

 

Thank You soooooo much :) i was almost goin to give up with this....phewww THANK YOU AGAIN... its so simple neat and PERFECT :) you the best!

Link to comment
Share on other sites

Thanks a lot, Works perfect on Gigabyte GA-EP45-UD3R motherboard with NVidia 8800GT 512MB card.

Everything works, network, Audio, QE+CI.

 

EDIT: Requires OpehHaltRestart.kext, otherwise machine does not power down.

Link to comment
Share on other sites

for everyone getting this error, you likely dont have InstallESD.dmg in your Lion image. comment out that line from the script and in your install folder, create a symlink called lioninst to whereever BaseSystem.dmg is

 

I too am always getting the error "Attaching OS X Lion...

hdiutil: attach failed - no such file or directory"

 

I don't really understand what I am doing wrong, and apologies TK but I don't know how to make a symlink.

 

I copied my GM files to the desktop, and have tried a bunch of attempts but I always get the same error. I do not have the DP4 installer files, just the GM ( copied all the files from the GM . dmg to my desktop)

 

Any advice?

Link to comment
Share on other sites

Installed Lion GM using your guide. Thanks.

 

Had to replace AppleACPIPlatform.kext and IOPCIFamily.kext from Snow Leopard for the USB installer to boot. Also, had to replace IO80211Family.kext from Snow Leopard for the Dell Wireless 1505 to work. VoodooHDA works for Audio.

post-490232-1309887201_thumb.png

Link to comment
Share on other sites

I got the same problem as seanmcgpa.

 

Help please!

 

------

I too am always getting the error "Attaching OS X Lion...

hdiutil: attach failed - no such file or directory

------

guys, your answers has been answered previously in this post ;)
Link to comment
Share on other sites

I too am always getting the error "Attaching OS X Lion...

hdiutil: attach failed - no such file or directory"

 

I don't really understand what I am doing wrong, and apologies TK but I don't know how to make a symlink.

 

I copied my GM files to the desktop, and have tried a bunch of attempts but I always get the same error. I do not have the DP4 installer files, just the GM ( copied all the files from the GM . dmg to my desktop)

 

Any advice?

 

I had the exact problem. I think you have a bootable DMG version rather than the LION install APP with the embedded DMG. If it is so you need to just copy the install app out of the dmg and put both app and dmg in the desktop and also edit the install script to mount the external dmg. By default the script looks for the dmg inside the app. If you have no success let me know, I will dig out the modified install script that I use

Link to comment
Share on other sites

guys, your answers has been answered previously in this post :)

 

No it has not been.

 

-There has been an explaination on how to drag files to terminal to get the correct path.

-There have been vague hints on where the files should be stored

-Then there was someone who posted:

"for everyone getting this error, you likely dont have InstallESD.dmg in your Lion image. comment out that line from the script and in your install folder, create a symlink called lioninst to whereever BaseSystem.dmg is "

 

which doesn´t make any sense cause installESD.dmg IS the lion image which contains BaseSystem.dmg as hidden file.

 

There hasn´t been a description how to edit the script "mkboot" to make things work. (BaseTarget or InAPPDMG).

 

So i have installESD.dmg on my desktop. Next to it i have the install folder with the script files.

I have a USBStick formated as "USB Boot".

 

i open up terminal and drag the mkboot the lion install ap (which i copied out of the InstallESD.dmg before umounting the DMG) and then the usb into terminal.

 

And get the exact same error message.So which part of mkboot do i have to edit HOW to make it work? I guess inAppDMG but entering the correct path to installESD.dmg results in the same error.

Link to comment
Share on other sites

@tseug

 

Thx for Your work & help with installing Lion.

 

I have GA-P35-DS4 mobo with Q6600@3.2, 8G RAM, GS8400, 1xDVD-RW, 1x Bluray RO, BIOS F14

 

I was able to install GM via Your method (but with chameleon r1096 + NullCPUPowerManagement).

System boots OK without dsdt.aml (no QE/CI,snd,sleep obviously)

I auto-generate dsdt.aml with latest dsdt-auto-patcher.

Unfortunately with auto-generated dsdt.aml I'm getting KP (early stage, no references to any kext).

Strange as this mobo is well supported....

I also tried with my 10.6.8 fully working dsdt.aml. Also KP.

 

FYI I'm attaching auto-generated dsdt.aml - maybe You have clue what is wrong here ?

 

Thx in advance !

 

dsdt.aml.zip

Link to comment
Share on other sites

@tseug

 

Thx for Your work & help with installing Lion.

 

I have GA-P35-DS4 mobo with Q6600@3.2, 8G RAM, GS8400, 1xDVD-RW, 1x Bluray RO, BIOS F14

 

I was able to install GM via Your method (but with chameleon r1096 + NullCPUPowerManagement).

System boots OK without dsdt.aml (no QE/CI,snd,sleep obviously)

I auto-generate dsdt.aml with latest dsdt-auto-patcher.

Unfortunately with auto-generated dsdt.aml I'm getting KP (early stage, no references to any kext).

Strange as this mobo is well supported....

I also tried with my 10.6.8 fully working dsdt.aml. Also KP.

 

FYI I'm attaching auto-generated dsdt.aml - maybe You have clue what is wrong here ?

 

Thx in advance !

 

dsdt.aml.zip

 

If you have a GA-P35-DS4 don't use DSDT Auto-Patcher. Don't add a DSDT to the USB boot. It will autogenerate it for you, install a Chameleon version that works etc.

 

In other words, follow the guide: "If you don't add a DSDT, one will be created for you when you run finalize (See below). Although the included patcher was made to support GA-P35-DS4 it has also been confirmed to work well with a number of other Gigabyte boards similar to GA-P35-DS4. "

Link to comment
Share on other sites

If you have a GA-P35-DS4 don't use DSDT Auto-Patcher. Don't add a DSDT to the USB boot. It will autogenerate it for you, install a Chameleon version that works etc.

 

Thx for quick replay !

I do install in exact such way (without adding custom dsdt.aml in boot USB).

It was successful install (but after install process there wasn't dsdt autogenerated by install process).

My issue is related to boot installed Lion - I can boot it only when there is no dsdt.aml.

As there is no dsdt - sys is without QE/CI, snd, sleep.

 

Any attempt to use any version of dsdt (from my working 10.6.8 SL or fresh autogenerated) causes KP.

 

I'm wonder where issue might be ?

 

I'm on BIOS F14 (latest & well known to users of GA-P35-DS4).

My BIOS settings are OK as I have 100% functional SL 10.6.8.

 

Only area where I see potential issue is dsdt file content.

I included autogenerated dsdt - maybe somebody better than me in dsdt specifics can find root cause of issue....

 

thx again for trying help !

Link to comment
Share on other sites

Thx for quick replay !

I do install in exact such way (without adding custom dsdt.aml in boot USB).

It was successful install (but after install process there wasn't dsdt autogenerated by install process).

My issue is related to boot installed Lion - I can boot it only when there is no dsdt.aml.

As there is no dsdt - sys is without QE/CI, snd, sleep.

 

Any attempt to use any version of dsdt (from my working 10.6.8 SL or fresh autogenerated) causes KP.

 

I'm wonder where issue might be ?

 

Could you paste (or take a screenshot of) the output of ./finalize please (step 6)?

Link to comment
Share on other sites

Could you paste (or take a screenshot of) the output of ./finalize please (step 6)?

 

Sorry for delay.

For purpose of this debugging I do clean install.

Only things changed in Your scripts are:

-changed paths in install script as as input I'm using InstallESD.dmg

-upgraded chameleon to 1096

-added NullCPUPowerManagement by "finalize" script to installed system (without it I have KP)

 

I formatted target partition with GUI scheme, boot USB stick, do Lion Install, fired ./finalize.

After rebooting to just installed Lion partition I'm receiving KP (jpg attached).

 

For Your convenience I'm attaching:

-packed Extra content

-output of ./finalize

-packet dsdt generation intermediate files

-JPG with KP

 

 

I'm really glad You want to help me and I'll be happy to help You with debugging this issue.

 

Extra.zip

dsdt_generation.zip

finalize.txt.zip

KP_jpg.zip

Link to comment
Share on other sites

Thanks for the files.

 

-upgraded chameleon to 1096

 

Why? What happens if you use the bundled Chameleon version?

 

For Your convenience I'm attaching:

-packed Extra content

-output of ./finalize

-packet dsdt generation intermediate files

-JPG with KP

 

I have almost the same hardware as you. Same MB, same BIOS, same CPU. My Graphics card is an 8800 GT but thats about it when it comes to differences.

 

The DSDT generated here and the one your system are exactly the same.

 

Two differences: My CPU is not overclocked and I don't have any modules in /Extra. I'm assuming the modules are from your Chameleon install. Why did you install them?

 

Assuming you get the same behavior with the bundled Chameleon I would suggest that you try booting without overclocking. Other than that I'm out of ideas.

Link to comment
Share on other sites

I've added a dmg version of the script to the guide at the bottom.

 

Thanks !

 

Worked flawless out-of-the-box

 

HW:

P35-DS4 Rev 1.0 (Bios F14)

E8400

GTX 285

4GB DDR2

 

SW:

Aperture

Paragon NTFS 9

iLife 11

Final Cut X

MS Office 2011

 

 

Not a single problem so far

Link to comment
Share on other sites

I'm really glad I found and used this guide. Worked (almost) perfectly.

 

Everything went well and Lion booted. Yayy. But no sound. I have an older GigaByte mobo (GA-G31M-ES2L rev. 1) which has worked with just about every Leopard & SL. Usually I would have to fix sound as a last step (HDA rollback). What I did here was to take my SL kext "LegacyALC883.kext" and put it in /Extra/Extensions/ on Lion. (The only other kext in there is "FakeSMC.kext")

 

That did it! A Restart and sound was working!!!!

 

Thanks a ton for showing us how easy this can be.

 

 

GA-G31M-ES2L rev. 1

E7400

GTS 250

4GB DDR2

Link to comment
Share on other sites

Thanks for the files.

 

 

 

Why? What happens if you use the bundled Chameleon version?

 

Oh - well. It is because my previous problems with KP. I was thinking newer chameleon maybe can help...

 

I have almost the same hardware as you. Same MB, same BIOS, same CPU. My Graphics card is an 8800 GT but thats about it when it comes to differences.

 

The DSDT generated here and the one your system are exactly the same.

 

Two differences: My CPU is not overclocked and I don't have any modules in /Extra. I'm assuming the modules are from your Chameleon install. Why did you install them?

 

Assuming you get the same behavior with the bundled Chameleon I would suggest that you try booting without overclocking. Other than that I'm out of ideas.

 

Ok. I found it. Issue is QPB (FSB) frequency. I have 400MHz as it gives me integer ratio between MEM & QPB - so no buffering on MCH. Returning to factory 266MHz allows me successful boot :-)

I remember we can declare FSB in chameleon - do we ?

Do You remember by heart what command allows it ?

 

Anyway, after removing NullCpuPowerManagement it seems like sys is fully functional (QE/CI, snd, net, sleep)

Only thing which seems to be currently non-functional is SpeedSteep.

I have 4 Pstates reported by SMCmonitor - but CPU freq stays constantly at 2.4GHz. Strange as I have it working in 10.6.8 (but in SL I have to use NullCpuPowerManagement).

 

Is it speedsteep working for You in Lion ?

 

Thx again for Your work & help !

Link to comment
Share on other sites

Yes. SMC monitor shows speedstepping working correctly (CPU freq change depending on work load).

 

Hmm - strange.

Maybe there is difference in BIOS settings.

Or maybe I observe it to shortly (5-10sec) ?

Have You enabled EIST in BIOS ?

(I remember from some other posts, it should be disabled as OSX speedsteep is interfering with ACPI. This sounds strange for me as I always was thinking that OS is responsible for speedsteep level changes....)

 

br

Link to comment
Share on other sites

Hmm - strange.

Maybe there is difference in BIOS settings.

Or maybe I observe it to shortly (5-10sec) ?

Have You enabled EIST in BIOS ?

(I remember from some other posts, it should be disabled as OSX speedsteep is interfering with ACPI. This sounds strange for me as I always was thinking that OS is responsible for speedsteep level changes....)

 

br

 

How do you monitor the frequency? You seem to be missing the appropriate FakeSMC plugin.

Link to comment
Share on other sites

How do you monitor the frequency? You seem to be missing the appropriate FakeSMC plugin.

Oh - attached Extra content is install vanilla one.

I of course added bunch of SMC plug-ins needed to monitor IntelCPU, Nv GFX and LPC.

I believe monitoring works OK as SMC monitor shows reasonable values (freq, VID, mem volt. and gfx freq/volt.)

br

Link to comment
Share on other sites

 Share

×
×
  • Create New...