<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
  "http://www.oasis-open.org/docbook/xml/4.4/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="a">Yaboot has a compilation error. The following patch properly
    fixes the issue:</para>

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

    <para os="c">The following patch removes a redundant test which prevents
    <command>ofpath</command> from executing against SATA disks:</para>

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

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

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

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

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

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

<screen os="j"><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>
