Index: appendices/ppc/macmiscellany.xml
===================================================================
--- appendices/ppc/macmiscellany.xml (revision d0fd0fdee38dc996b864bfed73ab55ddde2236fa)
+++ appendices/ppc/macmiscellany.xml (revision 983df6f71b73c0d9bfcda795b41d235000da3eea)
@@ -44,5 +44,5 @@
machines are unlikely to be able to read or write to macintosh partitions
(in particular, fdisk does not understand them). The format allows a large
- number of individual partitions, and the native Mac tools have a tendency
+ number of individual partitions, and the native Mac tools had a tendency
to insert small "filler" partitions between the real partitions. Under
linux, using more than 15 partitions can be problematic (shortage of device
@@ -51,9 +51,12 @@
Mac OS partition(s) after it and (re-)install the Mac OS. The
freespace can then be partitioned using parted or the
- older mac-fdisk.
+ older mac-fdisk. It seems that recent versions of the
+ Mac tools may no longer insert the filler partitions, so it may be
+ possible to do all the partitioning before installing OSX.
- The Macintosh resizing and partitioning tools are destructive and will
- delete all data when a partition is resized.
+ The Macintosh resizing and partitioning tools are destructive and may
+ delete all data when a partition is resized, even on unaltered partitions.
+
@@ -66,9 +69,15 @@
are as normal (at least one rootfs, perhaps swap, perhaps others).
- If you follow this advice, partition 1 will be the apple partition
+ According to the lfs-from-osx hint, the Mac partitioning tools
+ can create an apple_bootstrap partition and therefore there is no need
+ to use a Linux CD to create the desired partitions from freespace, but
+ using a Linux CD to create the partitions is a more widely tested approach.
+
+
+ If you follow this approach, partition 1 will be the apple partition
map, partition 2 will be the bootstrap at the start of the disk, the
linux partitions will follow, and then the mac partition(s) - under OSX
the first mac partition will be number 3, under OS9 it would have a higher
- number.
+ number and there would be some apple driver partitions.
Index: boot/ppc/hfsutils.xml
===================================================================
--- boot/ppc/hfsutils.xml (revision d0fd0fdee38dc996b864bfed73ab55ddde2236fa)
+++ boot/ppc/hfsutils.xml (revision 983df6f71b73c0d9bfcda795b41d235000da3eea)
@@ -22,4 +22,9 @@
Installation of Hfsutils
+
+ If you have created, or will create, the ext2 filesystem on your
+ Mac using ext2fsx you can jump ahead to
+ . The next three packages
+ are for people who cannot do that.
- This is a place holder for yaboot
+ Some of the idiosyncracies of booting on ppc are discussed in
+ . Essentially, there are two options
+ here - either copy the bootloader to an OSX root partition and boot from
+ Open Firmware, or use an install, Live, or rescue CD to set up a bootstrap
+ partition.
+
+
+ Copying the bootloader to OSX and booting from OF.
+
+ You must now ensure that /tools/etc/yaboot.conf
+ contains the correct details for the CLFS system. Consult
+ for details, but note that
+ at this point you do not need the install, magicboot, enablecdboot
+ or macosx parameters because these are not
+ available when you boot from Open Firmware.
+
+ By this stage, you should have the temporary system on an ext2
+ filesystem on your Mac. Now, from within OSX, copy
+ /tools/lib/yaboot/yaboot) and
+ /tools/etc/yaboot.conf) to the OSX /
+ directory.
+
+ Each time you want to boot into the temporary system, hold down
+ the option-command-o-f keys to get to Open Firmware, then use the following
+ command, replacing X with the number of the partition
+ containing the OSX root filesystem (typically, this
+ will be '3').
+
+boot hd:X,yaboot
+
+
+
+
+ Using a CD to set up the bootstrap partition.
+
+ This is particularly appropriate if you cannot write to an
+ ext2 filesystem from OSX. Boot from the CD, and (as necessary) create
+ partitions and filesystems, mount the CLFS partition at
+ /tools and untar the temporary system there.
+
+ Now set up /tools/etc/yaboot.conf - see
+ for details of what should be
+ in it, but note that the install and magicboot
+ specifications should point to/tools/lib/yaboot/
+ and not /usr/lib/yaboot.
+
+ To write the bootloader to the disk, with /tools/sbin
+ first on your path and /proc mounted, run the
+ following command:
+
+
+
+ybin -v -C /tools/etc/yaboot.conf
+
+
Index: bootable/ppc/yaboot.xml
===================================================================
--- bootable/ppc/yaboot.xml (revision d0fd0fdee38dc996b864bfed73ab55ddde2236fa)
+++ bootable/ppc/yaboot.xml (revision 983df6f71b73c0d9bfcda795b41d235000da3eea)
@@ -31,8 +31,10 @@
it. This is all handled by ybin the yaboot installer.
- Ybin assembles all the information it needs by reading yaboot.conf,
- then writes the bootstrap. When booted, the bootstrap provides an initial menu to
- choose between linux, boot from CD, and e.g. osx (depending on what was in yaboot.conf).
- If you boot to 'linux', yaboot kicks in and lets you select which kernel to use.
+ Ybin writes an optional 'OS selector' menu into Open Firmware,
+ then writes yaboot and yaboot.conf to the bootstrap partition, blesses this,
+ and updates the boot device recorded in nvram. When booted, the OF provides
+ the initial menu to choose between linux, boot from CD, and e.g. OSX
+ (depending on what was in yaboot.conf). If you boot to 'linux', yaboot is
+ executed and lets you select which kernel to use.
Images (kernels) are specified, together with any necessary path,
@@ -44,10 +46,4 @@
full OF path to the device, obtained by running ofpath /dev/hdX
.
-
- Note that the man page mentions which filesystems yaboot can
- navigate to find the images - the only linux filesystem type mentioned is ext2.
- You can use ext3 because that can be read like ext2, but if you wish to use
- reiserfs or any other filesystem you may need to create a separate boot partition
- formatted as ext2.
Using the above information, determine the appropriate designators
@@ -136,6 +132,7 @@
- The following command will overwrite the current boot loader.
- Do not run the command if this is not desired.
+ The following command will update the bootstrap partition and the
+ boot variable in Open Firmware. Do not run the command if this is not
+ desired.
Index: introduction/ppc/changelog.xml
===================================================================
--- introduction/ppc/changelog.xml (revision d0fd0fdee38dc996b864bfed73ab55ddde2236fa)
+++ introduction/ppc/changelog.xml (revision 983df6f71b73c0d9bfcda795b41d235000da3eea)
@@ -33,4 +33,18 @@
-->
+
+
+ June 9, 2006
+
+
+ [ken] - Some tidying of the additions to 'boot', corrections
+ to partitioning, tidying and correcting the final instructions for
+ making it bootable, and add instructions to boot the temporary system,
+ either from OF via OSX, or using a CD to install the bootstrap. The
+ instructions to boot from OF use an idea from Martin Schaffner's
+ lfs-from-osx hint.
+
+
+
Index: partitioning/ppc-chapter.xml
===================================================================
--- partitioning/ppc-chapter.xml (revision d0fd0fdee38dc996b864bfed73ab55ddde2236fa)
+++ partitioning/ppc-chapter.xml (revision 983df6f71b73c0d9bfcda795b41d235000da3eea)
@@ -13,5 +13,5 @@
-
+
Index: partitioning/ppc/creatingpartition.xml
===================================================================
--- partitioning/ppc/creatingpartition.xml (revision 983df6f71b73c0d9bfcda795b41d235000da3eea)
+++ partitioning/ppc/creatingpartition.xml (revision 983df6f71b73c0d9bfcda795b41d235000da3eea)
@@ -0,0 +1,48 @@
+
+
+ %general-entities;
+]>
+
+
+
+
+ Creating a New Partition
+
+
+
+
+
+
+
+ Open Firmware and the Mac OS's impose certain requirements on
+ partitioning. This is discussed in .
+ In particular, you cannot use fdisk, you will need an
+ apple_bootstrap partition, and that should precede any
+ OSX partition.
+
+ Start a disk partitioning program such as parted
+ with a command line option naming the hard
+ disk on which the new partition will be created—for example
+ /dev/hda for the primary
+ Integrated Drive Electronics (IDE) disk. Create at least an apple bootstrap
+ partition, a Linux native partition, and a swap partition, if needed. Please
+ refer to parted(8) if you do not yet know how to use the
+ programs.
+
+ Remember the designation of the new partition (e.g.,
+ hda5). This book will refer to
+ this as the CLFS partition. Also remember the designation of the swap
+ partition. These names will be needed later for the
+ /etc/fstab file. You will also need to know the
+ designation of the apple_bootstrap partition for the yaboot.conf
+ when you set this up before you run ybin.
+
+