Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 45
Discuss Create new OSX installation DVD with minimum changes at the Tiger - Hackint0sh.org; I didn make any progress. The DVD bootloader still needed to boot the install partition ...
  1. #21
    Professional Array

    Join Date
    Sep 2006
    Posts
    94
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    12

    Default

    I didn make any progress. The DVD bootloader still needed to boot the install partition (seems the darwin bootloader isnt installed on the HD, or something...). Anyway I'll post what I did so someone can take it from there.... it is not very complete guide and many things can be done in other ways...

    I used:
    -An already working OSX istallation.
    -An original apple install DVD image (macbook 10.4.8 disk)
    -Any of the X86 DVD hackintosh relases image.
    -a re-writable DVD to try out the image

    So if U have a double layer DVD that holds more than 4.7 gb you can skip this first step. Otherways you have fit the dvd content in a 4.7 gb disk. to do so mount the apple image as readwrithe and rip out files that are not essential to the installation. Xcode folder is the best option, printer drivers and lenguage translations are good to be erased too, but then you have to delete any reference to them inside the OSInstall.dist file located in /sysytem/library/installation/packages/OSInstall.mpkg/contents/.
    Once you're shure that the content will fit mount the hackintosh image in the same way as before (readwrite) and erase all inside it, we need only the boot sector of it. You might need something like Onyx to see the invisible files inside the DVD's.
    Now copy (from within the terminal something like: cp /volumes/image1/ /volumes/image2 ) the content from the apple image (already stripped down) to the empty hackintosh DVD image. that's that.
    note: you have to unselect 'ignore ownerships on this volume' option in both images.....

    Now work on the hackintosh image (4.7 gb, right?):

    -replace /mach_kernel (I used a 10.4.8 apple dve as base so I put the 8.8.1 b9 kernel by semtex)

    -replace system/library/extensions.mkext (you can generate your own. It s also posible to unpack the one from the original dvd, add the kexts needed and repack it again). If U repack the original one you showld replace AppleAPIC, AppleACPI, AppleSMBIOS, IOATAFamily kexts. The disk I used was from a macbook so I had to add PS2Controller kext too. Also added natit (its cool to see the cube-spining effect in the first boot). Maybe more kexts are needed to be replace so U might have to try a few times. I used the .mkext file from the jas 10.4.8 dvd. Be aware that this kexts are only used to get the DVD going. The files that are actually going to be istalled are contained inside the Essentials.pkg package.

    -remove system/library/extensions folder. (I think to unpack the .mkext file into this folder instead of remove it might work too, but I didnt try this yet)

    -mod system/installation/packages/OSinstall.mpkg/contents/OSInstall.dist file. You could use BBedit, 'cos it wont change the ownership on the file. Basically, theres a couple of hardware checks at the begining. You have to remove the body of them so they look like:

    Code:
    function checkSupportedMachine(machineType){
    
    return true;
    }
    
    function checkSupportedBootRom(machineType){
    
    return true;
    }
    
    function installCheckScript(){
    
    return true;
    }

    This file contains also all the references to the pkg files needed for the installation.
    Later you have to add a package to install the modded files, so have a look how the thing are in this file.

    -Replace /applications/diskutility.app (best option: one from any 10.4.6 relase)

    -burn the image and see if it boots. Try to install, etc


    I was able to install from the DVD. Then I moved/replaced mach_kernel, and the kexts listed above into the install HD. And it worked (only using the bootloader from the dvd ).
    Next step it will be to create a PKG with the files that have to be replaced and add it to the install sequence (I've done it before, NP with that). But first I resolve the bootloader problem...I dont have idea what could be the solution for this...
    Last edited by blackchungo; 07-05-2007 at 12:23 AM.


  2. #22
    Advanced Array

    Join Date
    Mar 2007
    Posts
    31
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    I really don't have a clue. Did you make some progress? Maybe we can ask Jas or uphuck?

  3. #23
    JaS
    JaS is offline
    Our Most Honourable Administrator Array JaS's Avatar

    Join Date
    Apr 2006
    Posts
    65
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    10

    Default

    I would build an installer package and have that package run at the end of the installation as a first step to learn how to get your modded files on the installed system.

    Also to be sure things go well post install try adding a few commands to your osinstall.dist/contents/resources/postflight file ( open it in your fav text editor . Adding these commands to the end of the postflight )

    I use

    diskutil repairPermissions "$3/" ($3 is the variable the installer uses to identify the installed system hdd)

    Bless -mount "$3/" -setBoot ( be sure to use the bless binary, diskutility and mediakit.framework from a working bootable hackint0sh install dvd. add these files to their respective places on the iso you are creating)

    Something interesting is to try and use the old xcode from the 10.4.4 dvd, later versions of xcode seem to build packages that have version checking in them and will not install older kexts and files ( most of the modded kexts are older versions ).

    Once your comfortable with package maker you can just unpack the Essentials.pkg from the dvd and add your edited files directly to it, repack it with the proper permissions, then it is just a matter of replacing the Archive.pax.gz from your newly built package with the original Essentials.pkg's Archive.gz.pax.

    This will allow you to add files to the iso without having to add package listings to the osinstall.dist.

    Keep up the good work

    JaS
    Last edited by JaS; 07-04-2007 at 09:34 PM.

  4. #24
    Professional Array

    Join Date
    Sep 2006
    Posts
    94
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    12

    Default

    Hey JaS, Thanks a lot man....
    I'll have some days off next week to try your advices....
    I hope I'll get it working.
    I just got a mac pro 10.4.9 disk image. I'll try with that.

  5. #25
    Newbie Array Simon's Avatar

    Join Date
    Jul 2006
    Posts
    6
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    cool just found someone did a copy of my notes from the Win2OSX wiki

    This is how i used to create a bootable DVD... some of the instructions dont aply now but im sure you can figure out what to do.

    Things to keep in mind with this Script

    The script never mounts or needs a 10.4.3 DVD image you only need the i386 folder from 10.4.3 and a couple of kext's listed below.
    The MASTERCD variable is the name of your 10.4.4 dmg you converted to an iso
    MSTRCDMNTD variable is the name of the MASTERCD volume when its mounted in finder.
    You will need a working verison of mkisofs which you can get from http://**********.de/files/12913464/mkisofs.zip.html this can be put anywhere but the script assumes /usr/bin
    Once the script has created you a new DVD you will need to add Maxxuss's patches to it as well.

    The following are the apparent patches needed prior to burning (copied from Maxxuss' site):
    Replace the mach_kernel with the one supplied with the 10.4.4 Anti-TPM patch. This is in the base (root) directory of the mounted ISO.
    On the mounted ISO, modify the file /System/Installation/Packages/OSInstall.mpkg/Contents/OSInstall.dist with your text editor and change the JavaScript function hwbeModelCheck:

    <script>function hwbeModelCheck() {
    return true;
    ...

    (news flash: this step apparently is NOT for dvd boot) On the mounted ISO, modify the BaseSystem package file /System/Installation/Packages/BaseSystem.pkg/Contents/Info.plist. Search for IFPkgFlagAltSourceLocation and replace the string value like shown below:
    <key>IFPkgFlagAltSourceLocation</key>
    <string>../../../../Volumes/Mac OS X Install Disc 1/</string>

    [edit]
    Steps to get things working

    Convert the 10.4.4 dmg to and iso which will be about 4.73gb in size
    e.g. "hdiutil convert masterdmgname.dmg -format UDTO -o masterisoname.iso"
    Use hdiutil attach masterisoname -readwrite from the terminal to open the ISO in writable mode.
    Remove the /usr/standalone/i386 folder from the 10.4.4 mounted ISO
    Remove the Xcode Folder to free up some space.
    Get the i386 folder from a 10.4.3 DVD image and copy it to /usr/standalone/ on the 10.4.4 mounted ISO
    Rename the mounted name of the 10.4.4 iso from Mac OS X Install Disc 1 to Mac_OS_X_Install_Disc_1 (This is because the script doesn't like spaces in the name of a volume).
    Create a custom Extensions.mkext including IOATAFamilty.kext and IONetworkingFamily.kext from the 10.4.3 DVD.
    Create a folder on your desktop or other convenient place with the name Extensions.
    Copy the 10.4.3 IOATAFamily.kext and IONetworkingFamily.kext from your 10.4.3 /System/Library/Extensions folder into this new one. It's best to do this via finder, as you want all contained files moved with the kexts. If you have problems seeing certain files, folders, or kexts from the Finder, use TinkerTool and disable hidden files in the Finder.
    kextcache -k Extensions (this assumes your terminal is "cd" to the parent directory where your new Extensions folder lives. It should create an Extensions.mkext for you.)
    Remove the Extensions folder and Extensions.mkext from the 10.4.4 mounted ISO (they are in /System/Library/).
    Add your new Extensions.mkext and Extensions folder to /System/Library/ on the mounted ISO.
    Un-mount (eject) the 10.4.4 iso you have been working on.
    Run the script from the terminal with ./mkboot.sh

    Below is the script for the rest of the boot image processing. You may change the MASTERCD and CDDMG variables to suit. You may copy this text and paste it into a terminal window that is editing a new file called mkboot.sh. Be sure after editing to perform a chmod +x mkboot.sh


    ##Begining of mkboot.sh (once you have saved this file you will need to chmod +x it so its executable)

    #!/bin/sh

    MKISOFS=/usr/bin/mkisofs
    VOLNAME="Mac OS X Install Disc x86"
    MKSIOFS_QUIET=
    HDIUTIL_QUIET=
    I386ISO=/tmp/i386booter.iso
    # This is the modified 10.4 disc with the new kernel and extensions.mkext
    MASTERCD=/Users/username/Desktop/10.4.4Master.iso
    # This is the name of the above disc when mounted
    MSTRCDMNTD=/Volumes/Mac_OS_X_Install_Disc_1
    # This give's you a DVD-R sized Disc Image
    SIZE="4481M"
    # The following can be anywhere you like its the the output image
    CDDMG=/Users/username/Desktop/MacOSX_10.4.4DVD.iso

    hdiutil attach $MASTERCD -owners on
    mkdir -p /tmp/i386
    cp $MSTRCDMNTD/usr/standalone/i386/* /tmp/i386/
    cd /tmp/i386
    #"$MKISOFS" -R -V "$VOLNAME" -no-emul-boot -T -J -c boot.cat -b cdboot -hide-joliet-trans-tbl $MKISOFS_QUIET -o "$I386ISO" .
    "$MKISOFS" -V "$VOLNAME" -no-emul-boot -boot-load-size 4 -c boot.cat -b cdboot $MKISOFS_QUIET -o "$I386ISO" .

    sectors=`du "$I386ISO" | tail -1 | awk '{print $1}'`

    # create a bootable image and remove any previous copies
    cd "$MSTRCDMNTD"
    if [ -f "$CDDMG" -o -f "$CDDMG".dmg ]; then
    rm -f "$CDDMG" "$CDDMG".dmg
    fi
    hdiutil create $HDIUTIL_QUIET "$CDDMG".dmg -size $SIZE -layout NONE
    dev=`hdid -nomount "$CDDMG".dmg | tail -1 | awk '{print $1}'`
    rdev=`echo $dev | sed s/disk/rdisk/`

    pdisk $rdev -initialize
    blocks=`pdisk $rdev -dump | grep 2: | awk -F" " '{print $4}'`
    if [ "$QUIET" == "" ]; then
    pdisk $rdev -dump
    fi
    # create the partition on the image
    pdisk $rdev -createPartition "$VOLNAME" Apple_HFS $sectors `expr $blocks - $sectors`
    # figure out what slice the partition was created on
    slice=`pdisk $rdev -dump | grep "$VOLNAME" | awk -F: '{print $1}' | awk -F" " '{print $1}'`

    # copy the data onto the image
    dd if="$I386ISO" of=$rdev skip=64 seek=64 bs=512
    newfs_hfs -v "$VOLNAME" ${rdev}s${slice}
    mkdir -p /mnt
    mount -t hfs -o perm ${dev}s${slice} /mnt
    ditto -rsrc "$MSTRCDMNTD" /mnt
    bless -folder /mnt/System/Library/CoreServices -bootinfo /mnt/usr/standalone/ppc/bootx.bootinfo -label "$VOLNAME"
    umount /mnt
    hdiutil eject $HDIUTIL_QUIET $dev
    cd /tmp/
    diskutil eject "$MSTRCDMNTD"
    Last edited by Simon; 07-05-2007 at 11:29 PM.


  6. #26
    Professional Array

    Join Date
    Sep 2006
    Posts
    94
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    12

    Default

    Quote Originally Posted by JaS View Post

    diskutil repairPermissions "$3/" ($3 is the variable the installer uses to identify the installed system hdd)

    Bless -mount "$3/" -setBoot ( be sure to use the bless binary, diskutility and mediakit.framework from a working bootable hackint0sh install dvd. add these files to their respective places on the iso you are creating)

    I dont seem to find the bless binary anywhere inside any DVD. I used the finder's search function but it couldnt find anything.... please if someone could point me into the right direction would be grate help....thanks!


    NEVERMIND, I found them....
    Last edited by blackchungo; 07-10-2007 at 09:27 PM.

  7. #27
    Professional Array

    Join Date
    Sep 2006
    Posts
    94
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    12

    Default

    YESss!!!!!!!!, I've made it.

    I replace the bless, diskutil binarys and the mediakit.framework and added the lines into the postflight sript as jas suggested... but I had the same result (not bootable partition).....
    basically the trick was made by replaceing the i386 folder in the DVD! thanks Simon to lead me to that!.... I didnt have to use his files nor his script thou.
    I used a mac pro 10.4.9 DVD and also I added some pkgs to replace the necesary files.....
    There are still a few bugs during the installation process: somehow strange behavior of diskutility's GUI (thou it works), and the keyboard support is gone (but some keys like "Bk Sp" works.....)
    I will post a complete guide...
    Shall I post it here or in the "how to" section?
    Last edited by blackchungo; 07-13-2007 at 02:37 PM.

  8. #28
    Eps
    Eps is offline
    Newbie Array

    Join Date
    Nov 2006
    Posts
    1
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    I have found that files in 10.4.3 dtk user ISOs can read in windows.
    But,it is still in HFS+ file-system.
    I think that HFS+ file-system should not read in Windows,but it can.
    I have a Mac Pro 10.4.9 install disc and files never read in Windows and HFS+ HDD partition,too.

    I think that maybe we don't need to made a boot iso to lead-boot to install DVD if we can make a DVD like 10.4.3 ISOs.
    But how?

  9. #29
    Professional Array

    Join Date
    Sep 2006
    Posts
    94
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    12

    Default

    Hey there!, the DVD is looking good. Im adding support for my hardware and some little apps on it (thanks jas for the 'old version packagemaker tip!).....

    but: I still have no keyboard support during the Installation process. The install log shows: "TSMprocessRawKeyCode failed (-192)". Im using a PS2 keyBrd.
    Thou the keyboard works fine after the installation (with ApplePS2Controller 2.0).....
    I've been googleing for this but theres no much info about it. If someone has a clue about solving this please drop some lines here....

  10. #30
    Advanced Array

    Join Date
    Mar 2007
    Posts
    31
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Quote Originally Posted by blackchungo View Post
    Hey there!, the DVD is looking good. Im adding support for my hardware and some little apps on it (thanks jas for the 'old version packagemaker tip!).....

    but: I still have no keyboard support during the Installation process. The install log shows: "TSMprocessRawKeyCode failed (-192)". Im using a PS2 keyBrd.
    Thou the keyboard works fine after the installation (with ApplePS2Controller 2.0).....
    I've been googleing for this but theres no much info about it. If someone has a clue about solving this please drop some lines here....
    Let me guess.. I think you created a pkg file with support for the ps2 controller? This explains why ps2 works after the installation. I think you need to come up with a way the installation dvd loads the ApplePS2Controller file and uses it. Try replacing the system/library/extensions.mkext or try to incorporate the ApplePS2Controller.
    Last edited by erhnam; 07-16-2007 at 01:23 PM.


 

 
Page 3 of 5 FirstFirst 12345 LastLast

Similar Threads

  1. MacNN: New MacBook Air may carry 4GB RAM, 128GB SSD minimum
    By hackint0sh in forum Latest Headlines
    Replies: 0
    Last Post: 07-14-2011, 09:30 PM
  2. Replies: 0
    Last Post: 07-14-2011, 09:00 PM
  3. how do i create a .img file of a vmware installation of leopard??
    By SengokuZero1 in forum Archiv (Leopard)
    Replies: 0
    Last Post: 09-06-2008, 05:39 PM
  4. create custom Leopard installation packages
    By starfish in forum Archiv (Leopard)
    Replies: 3
    Last Post: 11-10-2007, 04:03 AM
  5. A minimum OSX86 10.4.10 installation
    By bgrau2000 in forum Tiger
    Replies: 0
    Last Post: 07-06-2007, 02:14 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 03:26 PM.
twitter, follow us!