<html><body>
<a href="doc130.htm"><img src=../icons/next.gif alt="Next"></a>
<a href="doc000.htm"><img src=../icons/up.gif alt="Up"></a>
<a href="doc128.htm"><img src=../icons/previous.gif alt="Previous"></a>
<a href="doc000.htm"><img src=../icons/contents.gif alt="Contents"></a>
<a href="doc136.htm"><img src=../icons/index.gif alt="Index"></a>
<hr>

<title>Choosing a Boot Method</title>
<h2><a name="sF.5">F.5 Choosing a Boot Method</a></h2>

<a name="i1356">
<a name="i1357">

<p>This section describes how to start (or <em>boot</em>) the installation
program.  Once the installation program is running, you will be able to
choose from several installation methods.  You can choose from the
following installation methods: CD-ROM, NFS, hard disk, and FTP.  (Note
that if the installation program is booted directly from CD-ROM, the
installation will automatically proceed from that CD-ROM.)

<p>There are three different ways a Red Hat Linux/SPARC installation can be started:

<p><dl>

<p><dt><dd><b>Boot From Diskette</b> -- The installation program is read from
a diskette.

<p><dt><dd><b>Boot From CD-ROM</b> -- The installation program is read
directly from the Red Hat Linux/SPARC CD-ROM.

<p><dt><dd><b>Boot From the Network</b> -- The installation program is read from
a TFTP server.

<p></dl>

<p><h3><a name="sF.5.1">F.5.1 Booting From Diskette</a></h3>

<a name="i1358">
<a name="i1359">

<p>If your SPARC system has a diskette drive, you can boot the Red Hat Linux/SPARC
installation program from a diskette.  The boot diskette image (known as
<tt>boot.img</tt>) is located in the <tt>images/</tt> directory on your
Red Hat Linux/SPARC CD-ROM.  Please refer to Appendix
<a href="doc091.htm#sB">B</a> for instructions on writing
the image file to a diskette.  Make sure you label the diskette ``Boot
Diskette''.

<p><h4><a name="sF.5.1.1">F.5.1.1 Diskette Boot Commands</a></h4>
<a name="i1360">
<a name="i1361">

<p>For SPARC systems with a PROM version of 2.0 or greater, the proper boot
command (when in new command mode) is:

<p><blockquote><font size=-1><tt>
<pre>
boot floppy
</pre>
</tt></font></blockquote>

<p>On the other hand, SPARC systems with PROM versions less than 2.0 should
use the following command at the <tt><tt>&#62;</tt></tt> prompt:

<p><blockquote><font size=-1><tt>
<pre>
b fd()
</pre>
</tt></font></blockquote>

<p><b>Please Note:</b>There have been reports that some systems with pre-2.0 PROMs
cannot boot the Red Hat Linux/SPARC installation program from diskette.  If you
find this to be the case with your SPARC system, you will need to use
another boot method.

<p><h3><a name="sF.5.2">F.5.2 Booting From CD-ROM</a></h3>

<a name="i1362">
<a name="i1363">

<p>If your SPARC system has a fully Sun-supported CD-ROM drive, you can boot
directly from the Red Hat Linux/SPARC CD-ROM.  For SPARC systems with a PROM
version of 2.0 or better, use the following command when in new command
mode:

<p><blockquote><font size=-1><tt>
<pre>
boot cdrom
</pre>
</tt></font></blockquote>

<p>SPARC systems with PROM versions less than 2.0 may not be able to boot from
a CD-ROM at all.  Theoretically, if your SPARC system has a CD-ROM at SCSI
id 6, the following command should boot the Red Hat Linux/SPARC installation
program:

<p><blockquote><font size=-1><tt>
<pre>
b sd(0,6,0)
</pre>
</tt></font></blockquote>

<p>Unfortunately, due to a lack of resources, Red Hat Software has not been
able to test this boot command.  If one of our readers has been successful
getting a pre-2.0 SPARC system booted from the Red Hat Linux/SPARC CD-ROM, please
send us mail at <tt>docs@redhat.com</tt>, and we'll update this manual.  Thank
you!

<p>Note that using an NFS-mounted root after booting from CD-ROM is not
supported, as the filesystem on the Red Hat Linux/SPARC CD-ROM performs the same
function as an NFS-mounted root.  Therefore, no additional boot command
arguments should be given for CD-ROM boots.

<p><h3><a name="sF.5.3">F.5.3 Booting From the Network</a></h3>
<a name="i1364">
<a name="i1365">

<p>There are two types of network boots supported by the Red Hat Linux/SPARC
installation program:

<p><ol>

<p><li>Network boot with NFS-mounted root.  This method is required for
SPARC systems with less than 12 MB of RAM.

<p><li>Network boot with network-loaded ramdisk.  This method can be used by
systems with at least 12 MB of RAM.

<p></ol>

<p>While booting your SPARC system from the network is fairly straightforward,
there are several requirements:

<p><ul>

<p><li>Your SPARC system must have a network connection.

<p><li>Your network must be able to give your SPARC system its IP address
via a <tt>rarp</tt>.

<p><li>You must have a TFTP server that can download the Red Hat Linux/SPARC kernel
and installation program to your SPARC system.

<p><li>If you are going to use an NFS-mounted root, an NFS server capable of
exporting the Red Hat Linux/SPARC CD-ROM (or equivalent files).

<p></ul>

<p><h5>Setting up RARP</h5>
<a name="i1366">
<a name="i1367">

<p>If you are going to use <tt>rarp</tt>, please refer to Section
<a href="doc128.htm#sF.4.1">F.4.1</a>.

<p><h5>TFTP Server Setup</h5>
<a name="i1368">
<a name="i1369">

<p>If you are going to set up a TFTP server on a Red Hat Linux system, simply install
the latest <tt>tftp</tt> package using RPM, and make sure the line in
<tt>inetd.conf</tt> that will run <tt>tftp</tt> is uncommented.  Don't forget to
<tt>kill -HUP</tt> inetd if you needed to make any changes to
<tt>inetd.conf</tt>.

<p>Next, you'll need to make a symlink describing the SPARC system to be
booted, and pointing to the file from which it should boot.  The name of
the symlink contains two items:

<p><ol>

<p><li>The IP address of the system to be booted, in hexadecimal.

<p><li>A string describing the architecture of the system to be booted.

<p></ol>

<p>To convert the more common ``dotted decimal'' IP address into its hex
equivalent, convert each of the address' four groups of numbers into hex.
If the resulting hex number is only one digit, add a leading zero to it.
Then append all four hex numbers together.  For example, take the IP
address 10.0.2.254. Convert each set of four numbers into hex, and add a
leading zero where necessary:

<p><blockquote><font size=-1><tt>
<pre>
 10 = A  or 0A
  0 = 0  or 00
  2 = 2  or 02
254 = FE or FE
</pre>
</tt></font></blockquote>

<p>Therefore, the IP address 10.0.2.254 in hex is: 0A0002FE.

<p>The second part of the symlink name is the SPARC system's architecture.
For our example, we'll use <tt>SUN4M</tt>.  The IP address and architecture
are separated by a dot, resulting in this symlink name:

<p><blockquote><font size=-1><tt>
<pre>
0A0002FE.SUN4M
</pre>
</tt></font></blockquote>

<p>The last step is figuring out what this symlink should point to.  There are
two choices.  If you want to use an NFS-mounted root, use the file
<tt>/kernels/vmlinux</tt>.  If you would rather use a ramdisk, use the file
<tt>/images/tftpboot.img</tt>.

<p>Place the appropriate file in the TFTP server's directory, and create the
symlink.  In this example, we're using the image that includes a ramdisk:

<p><blockquote><font size=-1><tt>
<pre>
ln -s tftpboot.img 0A0002FE.SUN4M
</pre>
</tt></font></blockquote>

<p><h4><a name="sF.5.3.1">F.5.3.1 Network Boot Commands</a></h4>
<a name="i1370">
<a name="i1371">

<p>You're now ready to boot.  If you're going to boot <tt>tftpboot.img</tt>,
simply use the following command (in new command mode):

<p><blockquote><font size=-1><tt>
<pre>
boot net
</pre>
</tt></font></blockquote>

<p>On the other hand, if you're going boot from <tt>vmlinux</tt> and use an
NFS-mounted root, use this command:

<p><blockquote><font size=-1><tt>
<pre>
boot net linux nfsroot=nfs.server.IP.address:/path/to/RH/image
</pre>
</tt></font></blockquote>

<p>Replace <tt>nfs.server.ip.address</tt> with the NFS server's IP address,
and<br>
<tt>/path/to/RH/image</tt> with the path to the exported directory
containing the appropriate Red Hat Linux/SPARC files.

<p>SPARC systems with PROM versions less than 2.0 should use this boot
command, appending the usual NFS root argument if required:

<p><blockquote><font size=-1><tt>
<pre>
b le()
</pre>
</tt></font></blockquote>

<p><p><hr>
<a href="doc130.htm"><img src=../icons/next.gif alt="Next"></a>
<a href="doc000.htm"><img src=../icons/up.gif alt="Up"></a>
<a href="doc128.htm"><img src=../icons/previous.gif alt="Previous"></a>
<a href="doc000.htm"><img src=../icons/contents.gif alt="Contents"></a>
<a href="doc136.htm"><img src=../icons/index.gif alt="Index"></a>
<hr>
</body></html>
