Index: trunk/efisysinst.sh =================================================================== --- trunk/efisysinst.sh (revision 167) +++ trunk/efisysinst.sh (revision 168) @@ -1,31 +0,0 @@ -#!/bin/sh - -# efisysinst.sh -# -# -# Created by mackerintel on 2/2/09. -# Copyright 2009 mackerintel. All rights reserved. - -if [[ x$1 == x ]]; then - echo Usage: $0 disknumber; - exit 0; -fi - -if [[ `dd if=/dev/disk${1}s1 count=8 bs=1 skip=82 | uuencode -m -|head -n 2|tail -n 1` != "RkFUMzIgICA=" ]]; then - echo "/dev/disk${1}s1" "isn't" a FAT32 partition; - exit 1; -fi - -if [ ! -f boot1f32 ]; then - echo "boot1f32 not found"; - exit 1; -fi -if [ ! -f boot0 ]; then - echo "boot0 not found"; - exit 1; -fi -dd if=/dev/disk${1}s1 count=1 bs=512 of=/tmp/origbs -cp boot1f32 /tmp/newbs -dd if=/tmp/origbs of=/tmp/newbs skip=3 seek=3 bs=1 count=87 conv=notrunc -dd of=/dev/disk${1}s1 count=1 bs=512 if=/tmp/newbs -dd if=boot0 of=/dev/disk${1} count=430 bs=1 Index: trunk/doc/README =================================================================== --- trunk/doc/README (revision 167) +++ trunk/doc/README (revision 168) @@ -18,8 +18,7 @@ - automatic FSB detection code even for recent AMD CPUs. - Apple Software RAID support. - stage2 loader (boot) can be placed as a regular file in the boot - partition's root folder. It has precedence over the embedded - startupfile. + partition's root folder. Installation @@ -31,7 +30,7 @@ Suppose that your installation is on /dev/disk0s2 - Install boot0 to the MBR: - sudo fdisk -f boot0 -u -y /dev/rdisk0 + sudo ./fdisk440 -f boot0 -u -y /dev/rdisk0 - Install boot1h to the partition's bootsector: sudo dd if=boot1h of=/dev/rdisk0s2 @@ -52,8 +51,8 @@ namely /dev/disk0s3 and /dev/disk1s3 - Install boot0 to the MBR of both disks: - sudo fdisk -f boot0 -u -y /dev/rdisk0 - sudo fdisk -f boot0 -u -y /dev/rdisk1 + sudo ./fdisk440 -f boot0 -u -y /dev/rdisk0 + sudo ./fdisk440 -f boot0 -u -y /dev/rdisk1 - Install boot1h to the bootsector of each boot partition: sudo dd if=boot1h of=/dev/rdisk0s3 @@ -66,14 +65,7 @@ diskutil mount disk1s3 cp boot /Volumes/Boot\ OSX diskutil unmount disk1s3 - - - Add "rd=uuid boot-uuid=506D8F03-0596-32D8-BE0B-E3A4E7D5C72A" to your kernel flags - (replace with your root volume's UUID; find out using "Disk Utility.app", right - click on your root volume, then Get Info"): - nano /Library/Preferences/SystemConfiguration/com.apple.Boot.plist - touch /System/Library/Extensions - Support: -------- @@ -93,5 +85,3 @@ Chameleon is released under the terms and conditions of Apple Public Source License (see APPLE_LICENSE). - To use "Chameleon" for commercial purposes please contact us at: - http://chameleon.osx86.hu/contact Index: trunk/i386/boot1/boot1f32-install.sh =================================================================== --- trunk/i386/boot1/boot1f32-install.sh (revision 0) +++ trunk/i386/boot1/boot1f32-install.sh (revision 168) @@ -0,0 +1,26 @@ +#!/bin/sh + +# boot1f32-install.sh +# +# Created by mackerintel on 2/2/09. +# Copyright 2009 mackerintel. All rights reserved. + +if [[ x$1 == x ]]; then + echo Usage: $0 disknumber; + exit 0; +fi + +if [[ `dd if=/dev/disk${1}s1 count=8 bs=1 skip=82 | uuencode -m -|head -n 2|tail -n 1` != "RkFUMzIgICA=" ]]; then + echo "/dev/disk${1}s1" "isn't" a FAT32 partition; + exit 1; +fi + +if [ ! -f boot1f32 ]; then + echo "boot1f32 not found"; + exit 1; +fi + +dd if=/dev/disk${1}s1 count=1 bs=512 of=/tmp/origbs +cp boot1f32 /tmp/newbs +dd if=/tmp/origbs of=/tmp/newbs skip=3 seek=3 bs=1 count=87 conv=notrunc +dd of=/dev/disk${1}s1 count=1 bs=512 if=/tmp/newbs