| 1 |
swift |
1.1 |
<?xml version='1.0' encoding='UTF-8'?>
|
| 2 |
|
|
<!DOCTYPE sections SYSTEM "/dtd/book.dtd">
|
| 3 |
|
|
|
| 4 |
|
|
<!-- The content of this document is licensed under the CC-BY-SA license -->
|
| 5 |
|
|
<!-- See http://creativecommons.org/licenses/by-sa/1.0 -->
|
| 6 |
|
|
|
| 7 |
swift |
1.2 |
<!-- $Header: /home/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-sparc-bootloader.xml,v 1.1 2004/04/05 09:11:03 swift Exp $ -->
|
| 8 |
swift |
1.1 |
|
| 9 |
|
|
<sections>
|
| 10 |
|
|
<section>
|
| 11 |
|
|
<title>Making your Choice</title>
|
| 12 |
|
|
<subsection>
|
| 13 |
|
|
<title>Introduction</title>
|
| 14 |
|
|
<body>
|
| 15 |
|
|
|
| 16 |
|
|
<p>
|
| 17 |
|
|
Now that your kernel is configured and compiled and the necessary system
|
| 18 |
|
|
configuration files are filled in correctly, it is time to install a
|
| 19 |
|
|
program that will fire up your kernel when you start the system. Such a
|
| 20 |
|
|
program is called a <e>bootloader</e>.
|
| 21 |
|
|
</p>
|
| 22 |
|
|
|
| 23 |
|
|
</body>
|
| 24 |
|
|
</subsection>
|
| 25 |
|
|
</section>
|
| 26 |
|
|
<section>
|
| 27 |
|
|
<title>Installing the SPARC Bootloader: SILO</title>
|
| 28 |
|
|
<body>
|
| 29 |
|
|
|
| 30 |
|
|
<p>
|
| 31 |
|
|
It is now time to install and configure <uri
|
| 32 |
|
|
link="http://www.sparc-boot.org">SILO</uri>, the Sparc Improved boot
|
| 33 |
|
|
LOader.
|
| 34 |
|
|
</p>
|
| 35 |
|
|
|
| 36 |
|
|
<pre caption = "Installing SILO">
|
| 37 |
|
|
# <i>emerge --usepkg silo</i>
|
| 38 |
|
|
</pre>
|
| 39 |
|
|
|
| 40 |
|
|
<p>
|
| 41 |
|
|
Now open up your favorite editor (we use <c>nano</c> as an example) and
|
| 42 |
|
|
create <path>/etc/silo.conf</path>.
|
| 43 |
|
|
</p>
|
| 44 |
|
|
|
| 45 |
|
|
<pre caption = "Creating /etc/silo.conf">
|
| 46 |
|
|
# <i>nano -w /etc/silo.conf</i>
|
| 47 |
|
|
</pre>
|
| 48 |
|
|
|
| 49 |
|
|
<p>
|
| 50 |
|
|
Beneath you find an example <path>silo.conf</path> file. It uses the
|
| 51 |
|
|
partitioning scheme we use throughout this book and
|
| 52 |
|
|
<path>kernel-2.4.24</path> as kernelimage.
|
| 53 |
|
|
</p>
|
| 54 |
|
|
|
| 55 |
|
|
<pre caption = "Example /etc/silo.conf">
|
| 56 |
|
|
partition = 1 <comment># Boot partition</comment>
|
| 57 |
|
|
root = /dev/hda4 <comment># Root partition</comment>
|
| 58 |
swift |
1.2 |
timeout = 150 <comment># Wait 15 seconds before booting the default section</comment>
|
| 59 |
swift |
1.1 |
|
| 60 |
|
|
image = /boot/kernel-2.4.24
|
| 61 |
|
|
label = linux
|
| 62 |
|
|
</pre>
|
| 63 |
|
|
|
| 64 |
|
|
<p>
|
| 65 |
|
|
If you use the example <path>silo.conf</path> delivered by Portage, be
|
| 66 |
|
|
sure to comment out <e>all</e> lines that you do not need.
|
| 67 |
|
|
</p>
|
| 68 |
|
|
|
| 69 |
|
|
<p>
|
| 70 |
|
|
If you have a separate <path>/boot</path> partition, copy over the
|
| 71 |
|
|
configuration file to <path>/boot</path> and run <c>/sbin/silo</c>:
|
| 72 |
|
|
</p>
|
| 73 |
|
|
|
| 74 |
|
|
<pre caption = "Only if you have /boot on a separate partition">
|
| 75 |
|
|
# <i>cp /etc/silo.conf /boot</i>
|
| 76 |
|
|
# <i>/sbin/silo -C /boot/silo.conf</i>
|
| 77 |
|
|
/boot/silo.conf appears to be valid
|
| 78 |
|
|
</pre>
|
| 79 |
|
|
|
| 80 |
|
|
<p>
|
| 81 |
|
|
If your <path>/boot</path> directory resides on your root partition,
|
| 82 |
|
|
just run <c>/sbin/silo</c>:
|
| 83 |
|
|
</p>
|
| 84 |
|
|
|
| 85 |
|
|
<pre caption = "Run silo">
|
| 86 |
|
|
# <i>/sbin/silo</i>
|
| 87 |
|
|
/etc/silo.conf appears to be valid
|
| 88 |
|
|
</pre>
|
| 89 |
|
|
|
| 90 |
|
|
<p>
|
| 91 |
|
|
Now continue with <uri link="?part=1&chap=10">Installing Necessary System
|
| 92 |
|
|
Tools</uri>.
|
| 93 |
|
|
</p>
|
| 94 |
|
|
|
| 95 |
|
|
</body>
|
| 96 |
|
|
</section>
|
| 97 |
|
|
</sections>
|