Back to the index page  
  FAQ   Rechercher   Membres   Groupes   S’enregistrer   Profil   Se connecter pour vérifier ses messages privés   Connexion 
[Guide] Installation de Leopard Kalyway 10.5.1 sur une Asrock 775Dual-VSTA

 
Poster un nouveau sujet   Ce sujet est verrouillé; vous ne pouvez pas éditer les messages ou faire de réponses.    Installer OS X sur PC Index du Forum :: Installer OS X sur PC :: Tutoriaux
Sujet précédent :: Sujet suivant  
Auteur Message
Raid13
Administrateur

Hors ligne

Inscrit le: 15 Oct 2007
Messages: 3 932
Localisation: Orléans
Masculin

MessagePosté le: Mer 27 Fév 2008 - 23:48    Sujet du message: [Guide] Installation de Leopard Kalyway 10.5.1 sur une Asrock 775Dual-VSTA Répondre en citant
[Guide] Installation de Leopard Kalyway 10.5.1 sur une Asrock 775Dual-VSTA   



Le fichier "theStevo 4.0 Patch for the 775Dual-VSTA"


Materials required:

1. ISO of the disc to modify
2. PackageMaker (From xCode or other sources)
3. Installed Iceberg
4. Working OS X install (Tiger or Leopard)

First, a brief overview of the concept of how the install works. Think of there being two distinct Operating Systems to modify. The first one is the live boot Operating System, rather like Ubuntu or Knoppix, that installs the Operating System that will reside on your hard drive and you will use. The live one is the easiest and most essential one to modify.


Step 1: the live install OS

If you have ever installed a kext by hand, this will be very familar.

1. Mount the ISO
CODE
sudo -s
hdiutil attach -readwrite file/location.iso -owners on
2. Add the kext files to the mounted disc in /volumes/disc_name/system/library/extensions . You can drag and drop them in finder.
3. Set proper permissions.
CODE
chown -R root:wheel /volumes/disc_name/system/library/extensions
chmod -R 755 /volumes/disc_name/system/library/extensions

Now, that is all you will need to boot from the disc and have it recognize your hardware. The kexts you added will NOT be transfered to the hard drive but the OS X files will. If you are adding a kext for your ATA controller, the system will not boot after the install. However, you can add these kexts back manually with only using the disc (no need for access from a separate installation) by booting from the disc again and copying the kexts you added to the hard drive using the terminal. We won't discuss that, because step two exists to make that unnecessary.

Step 2: the installed OS

This is the more complicated of the two steps. It involves creating an installer package that will ultimately place the kexts in the extensions folder.

Part A: Creating the installer package

For the purposes of this guide we will use Iceberg to create the install packages. The reason being that it is more flexible to use and easier to create the packages needed for installation. PackageMaker in xCode seems very slick, but it likes to create mpkgs with separate pkgs for each file and it seemed to me that it created problems with the installation.

1. If you are adding kext files that do not have versions by the same name in the extensions folder already (like VIARhine.kext, Apple doesn't have that by default), then you can drag and drop these extensions into the /system/library/extensions folder inside the files section of your installer project.
2. If you are adding kext files that do have versions by the same name in the extensions folder already (like AppleHDA.kext), then create a folder inside of /system/library/tempfile in the file section and drag and drop your extensions into there.
3. Add a postflight script in the scripts section of the project like 'postkextmove' given in the development folder. Modify 'postkextmove' as per the name of your folder you created in tempfile and the name of your kext. Tip: use TextWrangler for editing that file.
4. In the settings section change the project to requiring root authentication and requiring logout.
5. Take note of the package name and identifier, change them to be what you wish.
6. Build package
7. The ISO should be mounted as readwrite as describe above, then copy the built package into /system/installation/packages of the ISO.
8. Fix permissions on /system/installation/packages of the ISO.
CODE
chown -R root:wheel /volumes/disc_name/system/installation/packages
chmod -R 755 /volumes/disc_name/system/installation/packages

The concept: Many things are happening during the install. OSInstall.mpkg calls the install processes of all selected .pkgs and then finishes its own processes at the end. When we start adding more and more packages in addition to the ones that Apple gives us by default, it increases the possibility that any changes directly written into the /system/library/extensions will be overwritten before the installation is over. Therefore we create a folder inside of tempfile, which itself is a creation of Kalyway for the same purpose, so that we can install the kext files and then move them into place at the end of OSInstall's run through a postflight in the package we create. Regardless of when the main install is done inside of OSInstall's run, the postflights are all executed at the end in the same order that the installs were executed. The installer puts the kexts in tempfile/thestevo then the other installers run. At the end of OSInstall.mpkg the postflights start to run and our installer first removes the existing files from /system/library/extensions and copies our installed ones from tempfile/thestevo. Removing the existing ones is necessary because cp will not overwrite files with root:wheel ownership.

Part B: Add to Install Checklist

This requires editing OSInstall.mpkg. The way I did it will be as follows, I'm sure there is an easier way, but I didn't use it. Feel free to let me know if it should be different.

1. Copy OSInstall.mpkg to some place to work with it (e.g. desktop)
2. Open OSInstall.mpkg in Flat Package Editor (Inside of PackageMaker, will show up on 'Open with' list after you launch it once through the menu command inside PackageMaker)
3. Copy 'Distribution' from inside Flat Package Editor to some place to work with it.
4. Open 'Distribution' in TextWrangler.
5. Use the find command to find every instance of SSE2. Copy every line, or set of lines, pertaining to SSE2 and modify the references as per what you set the package settings to before you built it.
6. Double check to make sure that every SSE2 reference has a corresponding one for your package and that it has been properly changed to match what your installer package settings are.
7. Save the file and fix the permissions. Chown and Chmod it like before.
8. Delete the 'Distribution' file that is inside of the Flat Package Editor.
9. Copy the 'Distribution' that you edited into Flat Package Editor.
10. Save OSInstall.mpkg in the Flat Package Editor.
11. Copy OSInstall.mpkg into the /system/installation/packages folder of the ISO.
12. Fix permissions on /system/installation/packages of the ISO.
CODE
chown -R root:wheel /volumes/disc_name/system/installation/packages
chmod -R 755 /volumes/disc_name/system/installation/packages

Concept: SSE2 is an item that is on the main level of the packages list. This process simply duplicates the entries and uses them as a template to fill your own information into. It helps ensure that everything is correctly entered.

Samples of all changes can be seen by the files in the 'Development' folder. This guide will be refined, input welcomed.



* MD5s are in a file inside the 'Development' folder.
* Please seed!
* Please report if it works! A simple 'It works' helps me know what to think when somebody tells me it didn't work. I need to know whether my patch is bad or their setup is wrong. If I don't get feedback, I can't help others.

Remember to drop by the 775Dual-VSTA wiki! Its newly revised and unlocked so that others can make changes too!
_________________________________________________
HackIntosh Mac Pro
Intel Core 2 Duo E8400
Gigabyte EP35-DS3(Sleep/Reboot/Shutdown)
2 Go DDR2 - 800 OK
500Go Samsung F1 Sata2
Pioneer DVR-212D
GeForce 7800GTX 256MoOK
Boitier PowerMac G5 ATX by Alex
Mac OS X.5.5 iDeneb v1.1 OK

http://raid13.labrute.fr

Power Mac G4 Gigabit Ethernet Bi-Pro 450 @ Gigadesign mono G4/1,8GHz

<a href="http://mac-on-pc.fr" target="_blank"><img src="http://maconpc.niloo.fr/images/pub88x31.gif" alt="Gamejapanime" border="0"></a>

Je ne réponds plus aux MPs de demande d'aide // CF. Charte
Revenir en haut
Visiter le site web du posteur
Publicité






MessagePosté le: Mer 27 Fév 2008 - 23:48    Sujet du message: Publicité
PublicitéSupprimer les publicités ?
Revenir en haut
Montrer les messages depuis:   
Poster un nouveau sujet   Ce sujet est verrouillé; vous ne pouvez pas éditer les messages ou faire de réponses.    Installer OS X sur PC Index du Forum :: Installer OS X sur PC :: Tutoriaux Toutes les heures sont au format GMT + 1 Heure
Page 1 sur 1

 
Sauter vers:  

Portail | Index | créer forum | Forum gratuit d’entraide | Annuaire des forums gratuits | Signaler une violation | Conditions générales d'utilisation


Powered by phpBB © 2001, 2015 phpBB Group Traduction par : phpBB-fr.com 
Macinscott theme by Scott Stubblefield