| 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/2.5 --> |
| 6 |
|
| 7 |
<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-sparc-bootloader.xml,v 1.15 2005/11/24 17:26:10 neysx Exp $ --> |
| 8 |
|
| 9 |
<sections> |
| 10 |
|
| 11 |
<version>2.3</version> |
| 12 |
<date>2006-01-19</date> |
| 13 |
|
| 14 |
<section> |
| 15 |
<title>Making your Choice</title> |
| 16 |
<subsection> |
| 17 |
<title>Introduction</title> |
| 18 |
<body> |
| 19 |
|
| 20 |
<p> |
| 21 |
Now that your kernel is configured and compiled and the necessary system |
| 22 |
configuration files are filled in correctly, it is time to install a |
| 23 |
program that will fire up your kernel when you start the system. Such a |
| 24 |
program is called a <e>bootloader</e>. |
| 25 |
</p> |
| 26 |
|
| 27 |
</body> |
| 28 |
</subsection> |
| 29 |
</section> |
| 30 |
<section> |
| 31 |
<title>Installing the SPARC Bootloader: SILO</title> |
| 32 |
<body> |
| 33 |
|
| 34 |
<p> |
| 35 |
It is now time to install and configure <uri |
| 36 |
link="http://www.sparc-boot.org">SILO</uri>, the Sparc Improved boot |
| 37 |
LOader. |
| 38 |
</p> |
| 39 |
|
| 40 |
<pre caption = "Installing SILO"> |
| 41 |
# <i>emerge silo</i> |
| 42 |
</pre> |
| 43 |
|
| 44 |
<p> |
| 45 |
Now open up your favorite editor (we use <c>nano</c> as an example) and |
| 46 |
create <path>/etc/silo.conf</path>. |
| 47 |
</p> |
| 48 |
|
| 49 |
<pre caption = "Creating /etc/silo.conf"> |
| 50 |
# <i>nano -w /etc/silo.conf</i> |
| 51 |
</pre> |
| 52 |
|
| 53 |
<p> |
| 54 |
Below you'll find an example <path>silo.conf</path> file. It uses the |
| 55 |
partitioning scheme we use throughout this book and |
| 56 |
<path>kernel-2.4.31</path> as kernelimage. |
| 57 |
</p> |
| 58 |
|
| 59 |
<pre caption = "Example /etc/silo.conf"> |
| 60 |
partition = 1 <comment># Boot partition (= root partition)</comment> |
| 61 |
root = /dev/sda1 <comment># Root partition</comment> |
| 62 |
timeout = 150 <comment># Wait 15 seconds before booting the default section</comment> |
| 63 |
|
| 64 |
image = /boot/kernel-2.4.31 |
| 65 |
label = linux |
| 66 |
</pre> |
| 67 |
|
| 68 |
<p> |
| 69 |
If you use the example <path>silo.conf</path> delivered by Portage, be |
| 70 |
sure to comment out <e>all</e> lines that you do not need. |
| 71 |
</p> |
| 72 |
|
| 73 |
<p> |
| 74 |
If the physical disk on which you want to install SILO (as bootloader) differs |
| 75 |
from the physical disk on which <path>/etc/silo.conf</path> resides, you must |
| 76 |
copy over <path>/etc/silo.conf</path> to a partition on that disk. Assuming that |
| 77 |
<path>/boot</path> is a separate partition on that disk, copy over the |
| 78 |
configuration file to <path>/boot</path> and run <c>/sbin/silo</c>: |
| 79 |
</p> |
| 80 |
|
| 81 |
<pre caption = "Only if /boot and the SILO destination are not on the same disk"> |
| 82 |
# <i>cp /etc/silo.conf /boot</i> |
| 83 |
# <i>/sbin/silo -C /boot/silo.conf</i> |
| 84 |
/boot/silo.conf appears to be valid |
| 85 |
</pre> |
| 86 |
|
| 87 |
<p> |
| 88 |
Otherwise just run <c>/sbin/silo</c>: |
| 89 |
</p> |
| 90 |
|
| 91 |
<pre caption = "Run silo"> |
| 92 |
# <i>/sbin/silo</i> |
| 93 |
/etc/silo.conf appears to be valid |
| 94 |
</pre> |
| 95 |
|
| 96 |
<p> |
| 97 |
Now continue with <uri link="#reboot">Rebooting the System</uri>. |
| 98 |
</p> |
| 99 |
|
| 100 |
</body> |
| 101 |
</section> |
| 102 |
<section id="reboot"> |
| 103 |
<title>Rebooting the System</title> |
| 104 |
<subsection> |
| 105 |
<body> |
| 106 |
|
| 107 |
<p> |
| 108 |
Exit the chrooted environment and unmount all mounted partitions. Then type in |
| 109 |
that one magical command you have been waiting for: <c>reboot</c>. |
| 110 |
</p> |
| 111 |
|
| 112 |
<pre caption="Exiting the chroot, unmounting all partitions and rebooting"> |
| 113 |
# <i>exit</i> |
| 114 |
cdimage ~# <i>cd</i> |
| 115 |
cdimage ~# <i>umount /mnt/gentoo/boot /mnt/gentoo/dev /mnt/gentoo/proc /mnt/gentoo</i> |
| 116 |
cdimage ~# <i>reboot</i> |
| 117 |
</pre> |
| 118 |
|
| 119 |
<p> |
| 120 |
Of course, don't forget to remove the bootable CD, otherwise the CD will be |
| 121 |
booted again instead of your new Gentoo system. |
| 122 |
</p> |
| 123 |
|
| 124 |
<p> |
| 125 |
Once rebooted in your Gentoo installation, finish up with <uri |
| 126 |
link="?part=1&chap=11">Finalizing your Gentoo Installation</uri>. |
| 127 |
</p> |
| 128 |
|
| 129 |
</body> |
| 130 |
</subsection> |
| 131 |
</section> |
| 132 |
</sections> |