/[gentoo]/xml/htdocs/doc/en/handbook/hb-install-sparc-bootloader.xml
Gentoo

Contents of /xml/htdocs/doc/en/handbook/hb-install-sparc-bootloader.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.20 - (show annotations) (download) (as text)
Mon May 7 18:11:41 2007 UTC (7 years, 5 months ago) by nightmorph
Branch: MAIN
Changes since 1.19: +10 -5 lines
File MIME type: application/xml
2007.0 release is here; final changes and new docs

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/draft/hb-install-sparc-bootloader.xml,v 1.16 2007/04/02 01:06:33 nightmorph Exp $ -->
8
9 <sections>
10
11 <version>3.0</version>
12 <date>2007-05-07</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-<keyval id="kernel-version"/></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-<keyval id="kernel-version"/>
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 <note>
97 You have to run <c>silo</c> (with parameters) again each time you update or
98 reinstall the <c>sys-boot/silo</c> package.
99 </note>
100
101 <p>
102 Now continue with <uri link="#reboot">Rebooting the System</uri>.
103 </p>
104
105 </body>
106 </section>
107 <section id="reboot">
108 <title>Rebooting the System</title>
109 <subsection>
110 <body>
111
112 <p>
113 Exit the chrooted environment and unmount all mounted partitions. Then type in
114 that one magical command you have been waiting for: <c>reboot</c>.
115 </p>
116
117 <pre caption="Exiting the chroot, unmounting all partitions and rebooting">
118 # <i>exit</i>
119 cdimage ~# <i>cd</i>
120 cdimage ~# <i>umount /mnt/gentoo/usr /mnt/gentoo/home /mnt/gentoo/var</i>
121 cdimage ~# <i>umount /mnt/gentoo/dev /mnt/gentoo/proc /mnt/gentoo</i>
122 cdimage ~# <i>reboot</i>
123 </pre>
124
125 <p>
126 Of course, don't forget to remove the bootable CD, otherwise the CD will be
127 booted again instead of your new Gentoo system.
128 </p>
129
130 <p>
131 Once rebooted in your Gentoo installation, finish up with <uri
132 link="?part=1&amp;chap=11">Finalizing your Gentoo Installation</uri>.
133 </p>
134
135 </body>
136 </subsection>
137 </section>
138 </sections>

  ViewVC Help
Powered by ViewVC 1.1.20