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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download) (as text)
Sun Sep 12 22:59:22 2004 UTC (10 years ago) by vapier
Branch: MAIN
Changes since 1.4: +14 -8 lines
File MIME type: application/xml
clarify some of the SRM usage

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 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-alpha-bootloader.xml,v 1.4 2004/08/04 13:20:18 cam Exp $ -->
8
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 <p>
24 Several bootloaders exist for Linux/Alpha. You must choose one of the supported
25 bootloaders, not all. You have the choice between <uri link="#aboot">aBoot</uri>
26 and <uri link="#milo">MILO</uri>.
27 </p>
28
29 </body>
30 </subsection>
31 </section>
32 <section id="aboot">
33 <title>Default: Using aboot</title>
34 <body>
35
36 <p>
37 We first install aboot on our system. Of course we use <c>emerge</c> to
38 do so:
39 </p>
40
41 <pre caption = "Installing aboot">
42 # <i>emerge --usepkg aboot</i>
43 </pre>
44
45 <p>
46 The next step is to make our bootdisk bootable. This will start
47 <c>aboot</c> when you boot your system. We make our bootdisk bootable by
48 writing the <c>aboot</c> bootloader to the start of the disk.
49 </p>
50
51 <pre caption = "Making your bootdisk bootable">
52 # <i>swriteboot -f3 /dev/sda /boot/bootlx</i>
53 # <i>abootconf /dev/sda 2</i>
54 </pre>
55
56 <note>
57 If you use a different partitioning scheme than the one we use
58 throughout this chapter, you have to change the commands accordingly.
59 Please read the appropriate manual pages (<c>man 8 swriteboot</c> and
60 <c>man 8 abootconf</c>).
61 </note>
62
63 <p>
64 Additionally, you can make Gentoo boot automatically by setting up the
65 aboot configuration file and SRM boot_osflags variable. You will need to
66 make sure that the bootdef_dev is also properly set (easier to do at the
67 console than from Linux).
68 </p>
69
70 <pre caption = "Automatically booting Gentoo">
71 # <i>echo '0:2/boot/vmlinux.gz root=/dev/sda2' &gt; /etc/aboot.conf</i>
72 # <i>echo -n 0 &gt; /proc/srm_environment/named_variables/boot_osflags</i>
73 # <i>echo -n '' &gt; /proc/srm_environment/named_variables/boot_file</i>
74 </pre>
75
76 <p>
77 If you need to get into the SRM console again in the future (to recover
78 your Gentoo install, play with some variables, or whatever), just hit
79 CTRL+C to abort the automatic loading process.
80 </p>
81
82 <p>
83 If you're installing using a serial console, don't forget to include
84 the serial console boot flag in <path>aboot.conf</path>. See
85 <path>/etc/aboot.conf.example</path> for some further information.
86 </p>
87
88 <p>
89 Aboot is now configured and ready to use. Continue with <uri
90 link="#reboot">Rebooting the System</uri>.
91 </p>
92
93 </body>
94 </section>
95 <section id="milo">
96 <title>Alternative: Using MILO</title>
97 <body>
98
99 <p>
100 Before continuing, you should decide on how to use MILO. In this
101 section, we will assume that you want to make a MILO boot floppy. If you
102 are going to boot from an MS-DOS partition on your hard disk, you should
103 amend the commands appropriately.
104 </p>
105
106 <p>
107 To install MILO, we use <c>emerge</c>.
108 </p>
109
110 <pre caption = "Installing MILO">
111 # <i>emerge --usepkg milo</i>
112 </pre>
113
114 <p>
115 After MILO has been installed, the MILO images should be in
116 <path>/opt/milo</path>. The commands below make a bootfloppy for use
117 with MILO. Remember to use the correct image for your Alpha-system.
118 </p>
119
120 <pre caption = "Installing MILO on a floppy">
121 <comment>(First insert a blank floppy)</comment>
122 # <i>fdformat /dev/fd0</i>
123 # <i>mformat a:</i>
124 # <i>mcopy /opt/milo/milo-2.2-18-gentoo-ruffian a:\milo</i>
125 # <i>mcopy /opt/milo/linload.exe a:\lilnload.exe</i>
126 <comment>(Only if you have a Ruffian:</comment>
127 # <i>mcopy /opt/milo/ldmilo.exe a:\ldmilo.exe</i>
128 <comment>)</comment>
129 # <i>echo -ne '\125\252' | dd of=/dev/fd0 bs=1 seek=510 count=2</i>
130 </pre>
131
132 <p>
133 Your MILO boot floppy is now ready to boot Gentoo Linux. You may need to
134 set environment variables in your ARCS Firmware to get MILO to start;
135 this is all explained in the <uri
136 link="http://tldp.org/HOWTO/MILO-HOWTO/">MILO-HOWTO</uri> with some examples
137 on common systems, and examples of the commands to use in interactive mode.
138 </p>
139
140 <p>
141 Not reading the <uri link="http://tldp.org/HOWTO/MILO-HOWTO/">MILO-HOWTO</uri>
142 is a <e>bad</e> idea.
143 </p>
144
145 <p>
146 Now continue with <uri link="#reboot">Rebooting the System</uri>.
147 </p>
148
149 </body>
150 </section>
151 <section id="reboot">
152 <title>Rebooting the System</title>
153 <subsection>
154 <body>
155
156 <p>
157 Exit the chrooted environment and unmount all mounted partitions. Then type in
158 that one magical command you have been waiting for: <c>reboot</c>.
159 </p>
160
161 <pre caption="Exiting the chroot, unmounting all partitions and rebooting">
162 # <i>exit</i>
163 cdimage ~# <i>umount /mnt/gentoo/boot /mnt/gentoo/proc /mnt/gentoo</i>
164 cdimage ~# <i>reboot</i>
165 </pre>
166
167 <p>
168 Of course, don't forget to remove the bootable CD, otherwise the CD will be
169 booted again instead of your new Gentoo system.
170 </p>
171
172 <p>
173 Once rebooted in your Gentoo installation, finish up with <uri
174 link="?part=1&amp;chap=11">Finalizing your Gentoo Installation</uri>.
175 </p>
176
177 </body>
178 </subsection>
179 </section>
180
181 </sections>

  ViewVC Help
Powered by ViewVC 1.1.20