Jump to content

[GUIDE] A fast and easy way to install Lion


tseug
 Share

607 posts in this topic

Recommended Posts

:) Thanks a lot!

 

All ok with your method in P5KSE, C2DE6850Conroe, 4Mb RAM DDR2800, ATI Radeon HD 4890.

Sleep/Wake. Reboot. QE/CI. Dual monitor. Audio in/out. Ethernet. Wifi Ralink. Bluetooth. CMOS reset solved.

Only one problem. Disk Utility in Lion report an error in the EFI partition. In Snow Leopard Disk Utility don't check EFI partition, no error. Don't repair, erase EFI partition. What about!

 

Sorry... Temperature about 35 Cº and SpeedStep ok.

Link to comment
Share on other sites

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

 

OK. EIST is enabled in my BIOS settings.

Link to comment
Share on other sites

I think this way of installing does not work with HP monitors.

After troubleshooting for two days I thought I had it figured out and then I brought it home from work.

I have tried two differemt HP monitors and both of them say no signal when it tries to load the login screen.

I plug in my acer test monitor and it comes right on.

One of the HP monitors is hdmi/dvi and the other is just standard vga and they both do not work.

Not sure if anyone else has run into this problem but I thought I would share it.

My HP monitor works fine on my snow leopard install from the last guide so Im not sure whats different.

Maybe one day I can afford an apple 27 led...

 

p35-ds4, geforce 9800gtx+, 6gb of ram, qx6850, stupid 24' HP monitor

Link to comment
Share on other sites

Thx!

I modify a little bit the contents for my motherboard purpose,

and I have now a full "pre-patched" USB installation method.

 

Thanks again for share!

 

Fabio

Link to comment
Share on other sites

bluetooth is not working correctly. I have a Zoom adapter - works really nicely in SL now is not working properly in Lion GM. I also tried a Belkin Mini Adapter and that works better but after sleep - mouse not working.

 

I have now tried my old TDK Adapter 1.1 Spec and that works flawlessly. But missing 2.1 features.

 

Anyone know what the best adapter for Lion?

Link to comment
Share on other sites

Works like a Charm! Thanx Tseug!

 

Only had to set GraphicsEnabler=No, deleted 2 nVidia-kexts in S/L/E and add EFI-string of my 8800GTS 320MB to org.chameleon.Boot.plist. Sound no problem with installing good old Audigy2ZS-card. Can't believe this card still works in Lion. Updated USB-stick to Chameleon RC5 VS r1135 because USB-stick wouldn't go through POST; bootloader problem. I have GA-EP45-UD3R motherboard with Carti-Bios. I don't need or use any DSDT-file.

 

Only had some problem with Logitech LCC Software because it's not Lion compatible. Work-around open content of package and install through mpkg in there!

Link to comment
Share on other sites

Mine seems to install and boot fine, but it's stuck at the Welcome screen. I go through the initial configuration with the registation and setting up my user account, and it gets to "Creating account" but then loops back to the Welcome screen where you select the language. It seems to be creating the account cause if I try and go through it again it and try to set it up with the same account name it says it's not available.

 

Audio is working, graphics is wrong resolution, networking is not working.

 

Motherboard: ASUS P5Q Pro

Graphics: nVidia GeForce 570GTX

CPU: Core 2 Quad

 

EDIT: I was able to log in by going into single user mode and adding the .AppleSetupDone file, however all of the user accounts I setup while looping in the Welcome screen are setup as standard users instead of admins and none of them have folders in the /User/ folder.

Link to comment
Share on other sites

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.

 

I was looking for something to do yesterday thought I would give this a try. As you can see from the specs in my sig, my system is an HP desktop. The motherboard is a brand I never heard of so I didn't expect your scripts to work. Still, you never know.

 

My system has Windows 7 installed on the internal hard drive and I have an e-sata pci-e card connected to an external storage box with two 2Tb drives configured as hardware raid-1. The drive is partitioned guid with partitions for SnowLeopard (10.6.8) chameleon 1078, OSXmedia, OSXdata, OSX-Lion (10.7-DP4) and OSXtest.

 

I used your scripts to build the USB stick on a SnaDisk cruzer (16Gb). Using the HP boot menu to select the USB install drive directly I ran two installs. One clean install to the OSXtest partition and one to install 10.7GM over the 10.7DP4 on the OSX-Lion partition.

 

Much to my surprise, they both run without a problem. I had to add the VoodooHDA kext to the OSXtest (clean install) version to get working sound. The OSX-Lion partition already had that kext.

 

Thanks for sharing your efforts.

 

CPU-ID images from my system

post-51049-1310245649_thumb.png

post-51049-1310245661_thumb.png

Link to comment
Share on other sites

I have successfully loaded Lion Gold Master on my Dell Latitude E6400.

 

 

I created a Lion USB installer. The installer is a 8GB USB GUID partition that automatically gets named as Mac OS X Base system when it is restored from Base System.dmg on Lion Gold Master. Then I , copied fakesmc, ACPIPlatform..., IOPCI... in /S/L/E on the installer drive. I used Kext Wizard which also repair /S/L/E permissions on the installer.

 

 

 

 

Kext Wizard that allows you to load kexts to other drives and repair other drives (from the one you are booted into) is a great help.

 

 

 

 

As I was loading Lion on an MBR partition I replaced:

 

/Volumes/Mac\ OS\ X\ Base\ System/System/Installation/Packages/OSInstall.mpkg and

 

/Volumes/Mac\ OS\ X\ Base\ System/System/Library/PrivateFrameworks/Install.framework/Frameworks/OSInstall.framework/Versions/A/OSInstall

 

--on the installer drive with modified files (obtained by googling)

 

 

 

 

Then I booted into the USB installer using Chameleon-2.0-RC5-r1083.pkg loaded on my existing SL drive, with -v -f flags. Then O followed regular install process. Once install is through I booted into existing SL and copied fakesmc, ACPIPlatform..., IOPCI... in /S/L/E on the new Lion Drive with Kext Wizard and repaired /S/L/E permissions. I also copied com.apple.Boot.plist from my old SL into /E of the new Lion Drive and repaired permissions on /E as well. This last step is essential to avoid kernel panic or keyboard freeze at login time after loading Chameleon on the new Lion Drive.

 

 

 

 

After initial boot up, for whatever system that didnt work, I used my old SL kexts, such as IONetworkingFamily.kext, IO80211Family.kext, Intel82566MM.kext, VoodooHDA, VoodooSDHC, AppleACPIBatteryManager.kext

 

 

 

 

To enable native ntfs, I used iBlacky method of copying mount_ntfs to mount_ntfs.org and saving the follwing script to mount_ntfs:

 

#!/bin/sh

 

/sbin/mount_ntfs.orig -o rw "$@“

 

 

 

 

For this too I had to load the kext from SL.

 

 

 

 

I now have a fully working Lion Gold Master. As it doesnt have nvidia, I cannot enjoy all graphic applications, but it does better than my SL, as I able to open jpegs with Preview.app.

 

 

 

 

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.

 

Troubleshooting

 

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 :P

 

Various

 

DMG version:

Link to comment
Share on other sites

Hi,

 

I'm trying to install on the GA-P35-DS3 (currently running 10.5.8). I built the USB without issue and when inserted in the computer I can select the USB and boot from it. Files are loading on the screen, but then after a minute or two the system just reboots without displaying any errors. I never get to any graphical installation part....just a verbose listing of files that are loading.

 

I'm not sure what to do. Any ideas why the system would be abruptly rebooting.

 

Cheers

 

EDIT: Are there any special BIOS settings? Should I unplug all hard drives except the master?

Link to comment
Share on other sites

Hi,

 

I'm trying to install on the GA-P35-DS3 (currently running 10.5.8). I built the USB without issue and when inserted in the computer I can select the USB and boot from it. Files are loading on the screen, but then after a minute or two the system just reboots without displaying any errors. I never get to any graphical installation part....just a verbose listing of files that are loading.

 

I'm not sure what to do. Any ideas why the system would be abruptly rebooting.

 

Cheers

 

Please take a look at the troubleshooting and error reporting sections of the guide

 

EDIT: Are there any special BIOS settings? Should I unplug all hard drives except the master?

 

I use these: http://www.insanelymac.com/forum/index.php?showtopic=77165

Link to comment
Share on other sites

 

My card is a GeForce 7600GT.

 

I haven't made any changes to the install package. The problem occurs when booting the USB. The system is loading kexts (i think) and then just reboots without warning. It's impossible to take a picture of it happening as it happens without warning and there are no error codes shown.

 

I will try in the morning again with different BIOS setting and see if that has any effect.

 

Cheers.

Link to comment
Share on other sites

I used the step by step guide with my P35-DS4 everything works fine, exept that i#ve a problem with safari and flash. On some pages safari reloads the page again and again unti i get an error that safari is unable to display the content. My second problem is that i installed the newest flash beta for os lion by adobe but flash doesn't work in safari and firefox, i always get a plugin error.

Link to comment
Share on other sites

Hmm...Still no luck.

 

I unhooked all HDs except for the master drive. I changed all bios setting to the same as mention in the previous post. The system still starts loading Darwin and shows a bunch of extensions being loaded and then I'm guessing its at the end (seems so alphabetically) and then the system reboots without warning.

 

Here is a picture of the stuff loading (although I'm sure everyone sees the same thing).

 

post-59925-1310430915_thumb.jpg

Link to comment
Share on other sites

Hi, I'd like to make my firs hackintosh..I tried to install Snow Leopard, but i failed.. So i have only a PC (hardware in my signature) with Windows 7.. But I thought to install Lion (I saw that my GPU is compatible with this version without any extra elements), but I have a problem: the guide you wrote, is compatible with my hardware? If not, what have I to modify? And I haven't got a MAC now.. If I install a version of Snow Leopard on a virtual machine, and with that format the usb stick and install Lion on it, and next boot from usb and install Lion on a partion in the HDD, formatted in EXT2, will it work?

Thanks very much previousely.. And excuse me for my bad english.. I am an italian IT student..

Thanks again

 

Akylle

Link to comment
Share on other sites

Hi, firstly I would like to thank you for the work, that the first thing first. That said, I have a problem because the installer did not start, I think the USB Boot, and create it along with your script, but start with the usb, I try to boot and remains banned from the next screen. It is a mistake of some of the PCI. See if you can help me because I'm willing to install the Lion.

 

FYI my hardware is compatible with Mac OSX as well have used the Snow Leopard, although I have to say that the last version I have done well is 10.6.7, then upgrading to the 10.6.8, I gave the same error when trying to start the Lion, I hangs on the same screen of the PCI.

I've always had trouble starting the Snow Leopard, and had to boot with cd [url="http://www.insanelymac.com/forum/topic/279450-why-insanelymac-does-not-support-tonymacx86/"]#####[/url], I never boot from the hard drive, but even if I booted with the [url="http://www.insanelymac.com/forum/topic/279450-why-insanelymac-does-not-support-tonymacx86/"]#####[/url] was fully functional and everything worked perfect. There must be some mistake of the PCI, but what is the error, since I can not even begin the installation.

I would greatly appreciate your help.

 

Greetings.

 

lionpanic.jpg

Link to comment
Share on other sites

Working on my ASRock P55Pro (i5-670/9500GT) with my own DSDT.

 

Worked first time, and there have been no failures of any kind in 1.5 days.

 

My /E/E contains fakeSMC, ONLY.

 

After operation was confirmed, I deleted the -v boot flag from com.apple.Boot.plist as the revised version of Chameleon does not accept boot flags from the keyboard.

 

Its a good thing that the revised version of Chameleon will display and boot the other hard drives, too!

 

When I went to install Lion on my 10.7 Backup volume, I had to specify 10.7\ Backup to finalize, a small price to pay. Just remember that all values specified to TERMINAL which have embedded spaces must indicate those spaces by "\ ".

Link to comment
Share on other sites

Maybe this will help for those having problems getting your USB Boot drive made...

 

For Lion GM you have an InstallESD.dmg and have formatted your USB thumb drive and named it "USB Boot". Add your custom DSDT if you want per tseug's instructions

 

1) download install_dmg.tar.gz from the end of the first post and uncompress it

2) open a terminal session

3) type

sudo

in the terminal session

4) drag the mkboot script from inside the "install" folder created when you uncompressed the install_dmg.tar.gz after the word sudo in your terminal session

5) Do not mount installESD.dmg - drag installESD.dmg to your terminal session

6) Drag your mounted "USB Boot" to the terminal session

7) Hit enter and type your password and it will create the bootable thumb drive

 

My terminal session command looked like this

sudo install/mkboot /Volumes/MacData/Downloads/InstallESD.dmg /Volumes/USB\ Boot

 

Note that I did not mount the InstallESD.dmg just dragged the actual file to the terminal session

Link to comment
Share on other sites

I got Lion installed thanks to tseug's work

 

I have a Gigabyte GA-Z68MA-D2H-B3 motherboard with an i5 2500k and 12GB of RAM. I didn't remove any of the RAM and installed over loved at 4.0GHz as well. The sticking point was my XFX 5770 which worked in 10.6.7 but became incompatible in 10.6.8 for some reason and still doesn't work in Lion.

 

I used the Z68 Autopatcher for my DSDT.

 

I booted off the USB with flags "-x GraphicsEnabler=No". That's the only way I could get into the installer (because of the XFX 5770). After the install I had to use the same flags above to get Into the OS.

 

I got the XFX 5770 working by getting tweaked 10.6.8 ATI drivers from here

http://www.macprovideocards.com/wp-content...Patch10.6.8.pkg

And installing them when I booted from the USB with the flags above.

 

Once those graphics drivers were installed, I could boot from the USB with no flags and the resolution was perfect.

I ran the finalize script but pulled out the NIC and Sound drivers as they didn't work on my board. Instead, I used [url="http://www.insanelymac.com/forum/topic/279450-why-insanelymac-does-not-support-tonymacx86/"]#####[/url] 3.8.0 and did the HDARollback with 889 drivers for sound and the Realtek 2.0.6 drivers for the NIC.

 

I also switched the SMBios file to iMac12,2 since I'm on an 1155 board.

 

I haven't tried sleep yet. I'm also getting in an ATI 6850 tomorrow so I'll see how that works with the Lion ATI drivers

 

*****EDIT*****

I will actually be trying

Sapphire HD5570

Batmobile HD5770

Sapphire HD6850

 

all with Lion to see which ones can work with the native drivers some way. It is somewhat disappointing that the XFX 5770 is the one 5770 that can't work with native drivers and I have to roll back to 10.6.8 patched ones.

 

*****EDIT2*****

XFX 5770 with the 10.6.8 drivers in the link above were a no go. Almost like there was minimal QE/CI - videos stuttered and Launchpad was glacial.

I put the Sapphire 6850 in. Lion Boot USB didn't recognize the HDMI port but it did recognize the top DVI. Full injection and no safe mode.

Link to comment
Share on other sites

 Share

×
×
  • Create New...