- Timestamp:
- Jun 9, 2006, 5:15:04 PM (19 years ago)
- Branches:
- clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
- Children:
- e29fb58
- Parents:
- b708a6c
- Location:
- BOOK
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/appendices/ppc/macmiscellany.xml
rb708a6c r073fae8 44 44 machines are unlikely to be able to read or write to macintosh partitions 45 45 (in particular, fdisk does not understand them). The format allows a large 46 number of individual partitions, and the native Mac tools ha vea tendency46 number of individual partitions, and the native Mac tools had a tendency 47 47 to insert small "filler" partitions between the real partitions. Under 48 48 linux, using more than 15 partitions can be problematic (shortage of device … … 51 51 Mac OS partition(s) after it and (re-)install the Mac OS. The 52 52 freespace can then be partitioned using <command>parted</command> or the 53 older <command>mac-fdisk</command>.</para> 53 older <command>mac-fdisk</command>. It seems that recent versions of the 54 Mac tools may no longer insert the filler partitions, so it may be 55 possible to do all the partitioning before installing OSX.</para> 54 56 55 57 <warning> 56 <para>The Macintosh resizing and partitioning tools are destructive and will 57 delete all data when a partition is resized.</para> 58 <para>The Macintosh resizing and partitioning tools are destructive and may 59 delete all data when a partition is resized, even on unaltered partitions. 60 </para> 58 61 </warning> 59 62 … … 66 69 are as normal (at least one rootfs, perhaps swap, perhaps others).</para> 67 70 68 <para>If you follow this advice, partition 1 will be the apple partition 71 <para>According to the lfs-from-osx hint, the Mac partitioning tools 72 can create an apple_bootstrap partition and therefore there is no need 73 to use a Linux CD to create the desired partitions from freespace, but 74 using a Linux CD to create the partitions is a more widely tested approach. 75 </para> 76 77 <para>If you follow this approach, partition 1 will be the apple partition 69 78 map, partition 2 will be the bootstrap at the start of the disk, the 70 79 linux partitions will follow, and then the mac partition(s) - under OSX 71 80 the first mac partition will be number 3, under OS9 it would have a higher 72 number .</para>81 number and there would be some apple driver partitions.</para> 73 82 </listitem> 74 83 </varlistentry> -
BOOK/boot/ppc/hfsutils.xml
rb708a6c r073fae8 22 22 <sect2 role="installation"> 23 23 <title>Installation of Hfsutils</title> 24 25 <para>If you have created, or will create, the ext2 filesystem on your 26 Mac using ext2fsx you can jump ahead to 27 <xref linkend="ch-boot-yaboot-build" role="."/>. The next three packages 28 are for people who cannot do that.</para> 24 29 25 30 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" -
BOOK/boot/ppc/yaboot.xml
rb708a6c r073fae8 16 16 </indexterm> 17 17 18 <para>This is a place holder for yaboot</para> 18 <para os="a">Some of the idiosyncracies of booting on ppc are discussed in 19 <xref linkend="appendixe" role="."/>. Essentially, there are two options 20 here - either copy the bootloader to an OSX root partition and boot from 21 Open Firmware, or use an install, Live, or rescue CD to set up a bootstrap 22 partition.</para> 23 24 <sect2 role="."> 25 <title>Copying the bootloader to OSX and booting from OF.</title> 26 27 <para os="b">You must now ensure that <filename>/tools/etc/yaboot.conf</filename> 28 contains the correct details for the CLFS system. Consult 29 <xref linkend="ch-bootable-yaboot" role="."/> for details, but note that 30 at this point you do not need the <literal>install, magicboot, enablecdboot 31 </literal>or <literal>macosx</literal> parameters because these are not 32 available when you boot from Open Firmware.</para> 33 34 <para os="c">By this stage, you should have the temporary system on an ext2 35 filesystem on your Mac. Now, from within OSX, copy 36 <filename>/tools/lib/yaboot/yaboot</filename>) and 37 <filename>/tools/etc/yaboot.conf</filename>) to the OSX <filename>/</filename> 38 directory.</para> 39 40 <para os="d">Each time you want to boot into the temporary system, hold down 41 the option-command-o-f keys to get to Open Firmware, then use the following 42 command, replacing <literal>X</literal> with the number of the partition 43 containing the <emphasis>OSX</emphasis> root filesystem (typically, this 44 will be '3').</para> 45 46 <screen os="e" role="nodump"><userinput>boot hd:X,yaboot</userinput></screen> 47 48 </sect2> 49 50 <sect2 role="."> 51 <title>Using a CD to set up the bootstrap partition.</title> 52 53 <para os="f">This is particularly appropriate if you cannot write to an 54 ext2 filesystem from OSX. Boot from the CD, and (as necessary) create 55 partitions and filesystems, mount the CLFS partition at 56 <filename>/tools</filename> and untar the temporary system there.</para> 57 58 <para os="g">Now set up <filename>/tools/etc/yaboot.conf</filename> - see 59 <xref linkend="ch-bootable-yaboot" role="."/> for details of what should be 60 in it, but note that the <emphasis>install</emphasis> and <emphasis>magicboot 61 </emphasis>specifications should point to<filename>/tools/lib/yaboot/</filename> 62 and <emphasis>not</emphasis> <filename>/usr/lib/yaboot</filename>.</para> 63 64 <para os="h">To write the bootloader to the disk, with <filename>/tools/sbin 65 </filename>first on your path and <filename>/proc</filename> mounted, run the 66 following command:</para> 67 68 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 69 href="../../bootable/ppc/yaboot.xml" 70 xpointer="xpointer(//*[@os='r'])"/> 71 72 <screen os="j" role="nodump"><userinput>ybin -v -C /tools/etc/yaboot.conf</userinput></screen> 73 74 </sect2> 19 75 20 76 </sect1> -
BOOK/bootable/ppc/yaboot.xml
rb708a6c r073fae8 31 31 it. This is all handled by <command>ybin</command> the yaboot installer.</para> 32 32 33 <para os="d">Ybin assembles all the information it needs by reading yaboot.conf, 34 then writes the bootstrap. When booted, the bootstrap provides an initial menu to 35 choose between linux, boot from CD, and e.g. osx (depending on what was in yaboot.conf). 36 If you boot to 'linux', yaboot kicks in and lets you select which kernel to use.</para> 33 <para os="d">Ybin writes an optional 'OS selector' menu into Open Firmware, 34 then writes yaboot and yaboot.conf to the bootstrap partition, blesses this, 35 and updates the boot device recorded in nvram. When booted, the OF provides 36 the initial menu to choose between linux, boot from CD, and e.g. OSX 37 (depending on what was in yaboot.conf). If you boot to 'linux', yaboot is 38 executed and lets you select which kernel to use.</para> 37 39 38 40 <para os="e">Images (kernels) are specified, together with any necessary path, … … 44 46 full OF path to the device, obtained by running <command>ofpath /dev/hdX</command> 45 47 .</para> 46 47 <para os="f">Note that the man page mentions which filesystems yaboot can48 navigate to find the images - the only linux filesystem type mentioned is ext2.49 You can use ext3 because that can be read like ext2, but if you wish to use50 reiserfs or any other filesystem you may need to create a separate boot partition51 formatted as ext2.</para>52 48 53 49 <para os="h">Using the above information, determine the appropriate designators … … 136 132 137 133 <warning os="r"> 138 <para>The following command will overwrite the current boot loader. 139 Do not run the command if this is not desired.</para> 134 <para>The following command will update the bootstrap partition and the 135 boot variable in Open Firmware. Do not run the command if this is not 136 desired.</para> 140 137 </warning> 141 138 -
BOOK/introduction/ppc/changelog.xml
rb708a6c r073fae8 33 33 34 34 --> 35 36 <listitem> 37 <para>June 9, 2006</para> 38 <itemizedlist> 39 <listitem> 40 <para>[ken] - Some tidying of the additions to 'boot', corrections 41 to partitioning, tidying and correcting the final instructions for 42 making it bootable, and add instructions to boot the temporary system, 43 either from OF via OSX, or using a CD to install the bootstrap. The 44 instructions to boot from OF use an idea from Martin Schaffner's 45 lfs-from-osx hint.</para> 46 </listitem> 47 </itemizedlist> 48 </listitem> 35 49 36 50 <listitem> -
BOOK/partitioning/ppc-chapter.xml
rb708a6c r073fae8 13 13 14 14 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/introduction.xml"/> 15 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href=" common/creatingpartition.xml"/>15 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="ppc/creatingpartition.xml"/> 16 16 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/creatingfilesystem.xml"/> 17 17 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/mounting.xml"/>
Note:
See TracChangeset
for help on using the changeset viewer.