<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  <!ENTITY % general-entities SYSTEM "../../general.ent">
  %general-entities;
]>

<sect1 id="ch-system-yaboot" role="wrap">
  <?dbhtml filename="yaboot.html"?>

  <title>Yaboot-&yaboot-version;</title>

  <indexterm zone="ch-system-yaboot">
    <primary sortas="a-Yaboot">Yaboot</primary>
  </indexterm>

  <sect2 role="package">
    <title/>

    <para>The Yaboot package contains a PowerPC Boot Loader for machines using
    Open Firmware such as NewWorld Macintoshes.</para>

  </sect2>

  <sect2 role="installation">
    <title>Installation of Yaboot</title>

    <para os="p3">The following patch adds stub functions for newer e2fsprogs releases:</para>

<screen os="p4"><userinput>patch -Np1 -i ../&yaboot-stubfuncs-patch;</userinput></screen>

    <para os="p5">The following patch adds Parted support to yabootconfig:</para>

<screen os="p6"><userinput>patch -Np1 -i ../&yaboot-parted-patch;</userinput></screen>

    <para os="a">The supplied man pages have <filename
    class="directory">/usr/local</filename> in the text. This sed will correct
    that:</para>

<screen os="b"><userinput>sed -i 's%/usr/local%/usr%' man/*</userinput></screen>

    <para os="aa"> Prevent the build from failing due to warnings with
    the following sed:</para>

<screen os="ba"><userinput>sed -i 's%-Werror%%' Makefile</userinput></screen>

    <para os="c">Compile the package:</para>

<screen os="d"><userinput>make PREFIX=/usr</userinput></screen>

    <para os="e">Install the package:</para>

<screen os="f"><userinput>make PREFIX=/usr install</userinput></screen>

  </sect2>

  <sect2 id="contents-yaboot" role="content">
    <title>Contents of Yaboot</title>

    <segmentedlist>
      <segtitle>Installed programs</segtitle>
      <segtitle>Installed files</segtitle>

      <seglistitem>
        <seg>addnote, mkofboot (link to ybin), ofboot, ofpath, yaboot,
        yabootconfig, ybin</seg>
        <seg>yaboot.conf</seg>
      </seglistitem>
    </segmentedlist>

    <variablelist>
      <bridgehead renderas="sect3">Short Descriptions</bridgehead>
      <?dbfo list-presentation="list"?>
      <?dbhtml list-presentation="table"?>

      <varlistentry id="addnote">
        <term><command>addnote</command></term>
  <listitem>
    <para>For IBM CHRP machines, add a PT_NOTE program header
    entry to an elf file so that it can be booted.</para>
    <indexterm zone="ch-system-yaboot addnote">
      <primary sortas="b-addnote">addnote</primary>
    </indexterm>
  </listitem>
      </varlistentry>

      <varlistentry id="mkofboot">
        <term><command>mkofboot</command></term>
        <listitem>
          <para>Format the bootstrap partition and install the yaboot
          boot loader.</para>
          <indexterm zone="ch-system-yaboot mkofboot">
            <primary sortas="b-mkofboot">mkofboot</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="ofboot">
        <term><command>ofboot</command></term>
        <listitem>
          <para>Script to format the boot menu using yaboot.conf and
    write the resulting Open Firmware code to the bootstrap.</para>
          <indexterm zone="ch-system-yaboot ofboot">
            <primary sortas="b-ofboot">ofboot</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="ofpath">
        <term><command>ofpath</command></term>
        <listitem>
          <para>Determine Open Firmware path corresponding to a device
    node.</para>
          <indexterm zone="ch-system-yaboot ofpath">
            <primary sortas="b-ofpath">ofpath</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="yaboot">
        <term><command>yaboot</command></term>
        <listitem>
          <para>Open Firmware boot loader.</para>
          <indexterm zone="ch-system-yaboot yaboot">
            <primary sortas="b-yaboot">yaboot</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="yabootconfig">
        <term><command>yabootconfig</command></term>
        <listitem>
          <para>Generate and install a simple yaboot.conf.</para>
          <indexterm zone="ch-system-yaboot yabootconfig">
            <primary sortas="b-yabootconfig">yabootconfig</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="ybin">
        <term><command>ybin</command></term>
        <listitem>
          <para>Shell script to update or install the boot loader
    on a bootstrap partition.</para>
          <indexterm zone="ch-system-yaboot ybin">
            <primary sortas="b-ybin">ybin</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="yaboot.conf">
        <term><filename>yaboot.conf</filename></term>
        <listitem>
          <para>Configuration file used by <command>ybin</command> to determine
    how to install <command>yaboot</command> on the bootstrap partition.</para>
          <indexterm zone="ch-system-yaboot yaboot.conf">
            <primary sortas="e-yaboot.conf">yaboot.conf</primary>
          </indexterm>
        </listitem>
      </varlistentry>

    </variablelist>

  </sect2>

</sect1>
