summaryrefslogtreecommitdiffstats
path: root/tools/ppc
diff options
context:
space:
mode:
Diffstat (limited to 'tools/ppc')
-rw-r--r--tools/ppc/README52
-rwxr-xr-xtools/ppc/convert5
-rwxr-xr-xtools/ppc/magic89
-rwxr-xr-xtools/ppc/mapping36
4 files changed, 182 insertions, 0 deletions
diff --git a/tools/ppc/README b/tools/ppc/README
new file mode 100644
index 000000000..b752395c2
--- /dev/null
+++ b/tools/ppc/README
@@ -0,0 +1,52 @@
+Mini-Howto on burning Mandrake PPC Bootable CD's for Apple G3/G4 systems
+-------------------------------------------------------------------------
+email: John Buswell <johnb@mandrakesoft.com>
+
+To create a disk image simply use the mkINSTALLCD script provided in this
+directory. The path you provide the script should point to the root directory
+for the CD.
+
+For example after you have built the gi install with /export, simply pass
+/export to the script as the distribution path and a name for the image.
+Once the image is built you can use hmount, humount, hdir, hcd and hattrib
+to modify and inspect the image before you commit it to CD-R.
+
+Before you run the script make sure the CD version of iBoot is in the
+iBoot directory below /export (eg. /export/iBoot), if you want to use some
+other directory then simply modify the script. Beware, HFS is not case
+sensitive, so if you already have an INSTALL file you cannot create install.
+
+Currently iBoot sports two trees, one for the install CD and another for
+regular usage. These will be merged shortly and a simply #define can be used
+in the Makefile to implement one or the other from a single binary.
+
+Enjoy!!
+
+
+Addendum: 3/15/2001 Stew Benedict <sbenedict@mandrakesoft.com>
+--------------------------------------------------------------------------
+
+A couple of changes.
+
+I've opted to standardize on yaboot, which is user configurable, so the script
+is modified now to use yaboot.
+
+Secondly, since mkhybrid merged with mkisofs, the hybrid images it creates are
+read-only, so one is unable to mount the image and bless the boot directory for
+booting. Consequently, I've included the binary for mkhybrid-1.12b5.4, which
+does work.
+
+
+Addendum: 3/10/2005 Christiaan Welvaart <cjw@daneel.dyndns.org>
+-------------------------------------------------------------------------
+
+10.1 and 10.2 ppc isos were generated with mkcd, with the following options
+added to the mkisofs call:
+ -T --netatalk -hfs -probe -part -no-desktop \\
+ -hfs-volid "$config->{disc}[$i]->{label}" \\
+ -map /usr/share/mkcd/hfs_mapping \\
+ -magic /usr/share/mkcd/hfs_magic \\
+ -hide '*.MacOS' -hide '*.DOS' \\
+ -hide-joliet '*.Unix' -hide-joliet '*.MacOS' \\
+ -hide-hfs '*.Unix' -hide-hfs '*.DOS' \\
+ '-hfs-bless' $builddir/$i/boot \\
diff --git a/tools/ppc/convert b/tools/ppc/convert
new file mode 100755
index 000000000..a2622c630
--- /dev/null
+++ b/tools/ppc/convert
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+mv $1.orig $1.Unix
+tr "\n" "\r" < $1.Unix > $1.MacOS
+perl -e '@line = <>; $line = join("\r\n", split(/\n/, join("", @line))); print $line; print "\r\n";' < $1.Unix > $1.DOS
diff --git a/tools/ppc/magic b/tools/ppc/magic
new file mode 100755
index 000000000..91f4193ea
--- /dev/null
+++ b/tools/ppc/magic
@@ -0,0 +1,89 @@
+#
+# Example magic file for mkhybrid
+#
+# The "message" for the offset MUST be 4 characters for the CREATOR
+# and 4 characters for the TYPE - white space is optional between them.
+# Any other characters on this line are ignored. Continuation lines (starting
+# with '>') are also ignored i.e. only the initial offset lines are used.
+#
+# The continuation lines are given here, but they do not need to exist.
+
+#
+# James Pearson 20/5/98
+
+# Modified by Christian Walther, 2003/01/17:
+# changed gzip to StuffIt Expander
+# added perl & shell script
+
+# off type test message
+
+# GIF
+0 string GIF8 8BIM GIFf
+>4 string 7a \b, version 8%s,
+>4 string 9a \b, version 8%s,
+>6 leshort >0 %hd x
+>8 leshort >0 %hd,
+#>10 byte &0x80 color mapped,
+#>10 byte&0x07 =0x00 2 colors
+#>10 byte&0x07 =0x01 4 colors
+#>10 byte&0x07 =0x02 8 colors
+#>10 byte&0x07 =0x03 16 colors
+#>10 byte&0x07 =0x04 32 colors
+#>10 byte&0x07 =0x05 64 colors
+#>10 byte&0x07 =0x06 128 colors
+#>10 byte&0x07 =0x07 256 colors
+
+# JPEG images
+#
+0 ubeshort 0xffd8 8BIM JPEG image data
+
+# StuffIt
+#
+0 string SIT! SIT!SIT!
+
+# standard unix compress
+0 string \037\235 LZIV ZIVU
+>2 byte&0x80 >0 block compressed
+>2 byte&0x1f x %d bits
+
+# gzip (GNU zip, not to be confused with Info-ZIP or PKWARE zip archiver)
+0 string \037\213 Gzip SITx gzip compressed data
+>2 byte <8 \b, reserved method,
+>2 byte 8 \b, deflated,
+>3 byte &0x01 ASCII,
+>3 byte &0x02 continuation,
+>3 byte &0x04 extra field,
+>3 byte &0x08 original filename,
+>3 byte &0x10 comment,
+>3 byte &0x20 encrypted,
+>4 ledate x last modified: %s,
+>8 byte 2 max compression,
+>8 byte 4 max speed,
+>9 byte =0x00 os: MS-DOS
+>9 byte =0x01 os: Amiga
+>9 byte =0x02 os: VMS
+>9 byte =0x03 os: Unix
+>9 byte =0x05 os: Atari
+>9 byte =0x06 os: OS/2
+>9 byte =0x07 os: MacOS
+>9 byte =0x0A os: Tops/20
+>9 byte =0x0B os: Win/32
+
+# Postscript
+0 string %! ASPSTEXT
+>2 string PS-Adobe- conforming
+>>11 string >\0 at level %.3s
+>>>15 string EPS - type %s
+>>>15 string Query - type %s
+>>>15 string ExitServer - type %s
+# Some PCs have the annoying habit of adding a ^D as a document separator
+0 string \004%! ASPS TEXT PostScript document text
+>3 string PS-Adobe- conforming
+>>12 string >\0 at level %.3s
+>>>16 string EPS - type %s
+>>>16 string Query - type %s
+>>>16 string ExitServer - type %s
+
+# scripts
+0 string #!/usr/bin/perl McPL TEXT
+0 string #!/bin/sh ttxt TEXT
diff --git a/tools/ppc/mapping b/tools/ppc/mapping
new file mode 100755
index 000000000..a84b0019d
--- /dev/null
+++ b/tools/ppc/mapping
@@ -0,0 +1,36 @@
+# Example filename mapping file
+# Modified by Christian Walther, 2003/01/17
+#
+# EXTN XLate CREATOR TYPE Comment
+COPYING Ascii 'ttxt' 'ttro' "Text File"
+CREDITS Ascii 'ttxt' 'ttro' "Text File"
+README Ascii 'ttxt' 'ttro' "Text File"
+RPM-PGP-KEY Ascii 'ttxt' 'ttro' "Text File"
+VERSION Ascii 'ttxt' 'ttro' "Text File"
+.gz Raw 'SITx' 'Gzip' "GZip Compressed File"
+.sit Raw 'SIT!' 'SITD' "StuffIt Archive"
+.hqx Ascii 'SITx' 'TEXT' "BinHex Encoded File"
+.html Ascii 'MOSS' 'TEXT' "HTML File"
+.htm Ascii 'MOSS' 'TEXT' "HTML File"
+.gif Raw 'ogle' 'GIFf' "GIF Image"
+.jpg Raw 'ogle' 'JPEG' "JPEG Image"
+.tif Raw 'ogle' 'TIFF' "TIFF Image"
+.bz2 Raw 'SITx' 'Bzp2' "BZip2 Compressed File"
+.png Raw 'ogle' 'PNGf' "PNG Image"
+.rpm Raw 'mRPM' 'RPMf' "RPM Software Package"
+.pl Ascii 'McPL' 'TEXT' "Perl Script"
+.pl Ascii 'McPL' 'TEXT' "Perl Module"
+.doc Raw 'MSWD' 'WDBN' "Word file"
+.mov Raw 'TVOD' 'MooV' "QuickTime Movie"
+.txt Ascii 'ttxt' 'TEXT' "Text File"
+.conf Ascii 'ttxt' 'TEXT' "config file"
+.tbxi Raw 'chrp' 'tbxi' "Macintosh Toolbox ROM file"
+.sea Raw 'aust' 'APPL' "Self Expanding Archive"
+.mov Raw 'TVOD' 'MooV' "QuickTime Movie"
+.bin Raw 'ddsk' 'DDim' "Floppy or ramdisk image"
+.img Raw 'ddsk' 'DDim' "Floppy or ramdisk image"
+.b Raw 'UNIX' 'tbxi' "bootstrap"
+yaboot Raw 'UNIX' 'boot' "bootstrap"
+vmlinux Raw 'UNIX' 'boot' "bootstrap"
+.conf Raw 'UNIX' 'conf' "bootstrap"
+* Raw '????' '????' "Unknown"