/[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.7 - (show annotations) (download) (as text)
Sun Sep 19 19:49:17 2004 UTC (9 years, 11 months ago) by vapier
Branch: MAIN
Changes since 1.6: +5 -5 lines
File MIME type: application/xml
updated kernel and booting info #64644

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.6 2004/09/17 02:43:01 vapier 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 some SRM variables. You can try setting
66 these variables from Linux, but it may be easier to do so from the SRM
67 console itself.
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>cd /proc/srm_environment/named_variables</i>
73 # <i>echo -n 0 &gt; boot_osflags</i>
74 # <i>echo -n '' &gt; boot_file</i>
75 # <i>echo -n 'BOOT' &gt; auto_action</i>
76 # <i>echo -n 'dkc100' &gt; bootdef_dev</i>
77 <comment>(Substitute dkc100 with whatever your boot device is)</comment>
78 </pre>
79
80 <p>
81 If you need to get into the SRM console again in the future (to recover
82 your Gentoo install, play with some variables, or whatever), just hit
83 CTRL+C to abort the automatic loading process.
84 </p>
85
86 <p>
87 If you're installing using a serial console, don't forget to include
88 the serial console boot flag in <path>aboot.conf</path>. See
89 <path>/etc/aboot.conf.example</path> for some further information.
90 </p>
91
92 <p>
93 Aboot is now configured and ready to use. Continue with <uri
94 link="#reboot">Rebooting the System</uri>.
95 </p>
96
97 </body>
98 </section>
99 <section id="milo">
100 <title>Alternative: Using MILO</title>
101 <body>
102
103 <p>
104 Before continuing, you should decide on how to use MILO. In this
105 section, we will assume that you want to make a MILO boot floppy. If you
106 are going to boot from an MS-DOS partition on your hard disk, you should
107 amend the commands appropriately.
108 </p>
109
110 <p>
111 To install MILO, we use <c>emerge</c>.
112 </p>
113
114 <pre caption = "Installing MILO">
115 # <i>emerge --usepkg milo</i>
116 </pre>
117
118 <p>
119 After MILO has been installed, the MILO images should be in
120 <path>/opt/milo</path>. The commands below make a bootfloppy for use
121 with MILO. Remember to use the correct image for your Alpha-system.
122 </p>
123
124 <pre caption = "Installing MILO on a floppy">
125 <comment>(First insert a blank floppy)</comment>
126 # <i>fdformat /dev/fd0</i>
127 # <i>mformat a:</i>
128 # <i>mcopy /opt/milo/milo-2.2-18-gentoo-ruffian a:\milo</i>
129 # <i>mcopy /opt/milo/linload.exe a:\lilnload.exe</i>
130 <comment>(Only if you have a Ruffian:</comment>
131 # <i>mcopy /opt/milo/ldmilo.exe a:\ldmilo.exe</i>
132 <comment>)</comment>
133 # <i>echo -ne '\125\252' | dd of=/dev/fd0 bs=1 seek=510 count=2</i>
134 </pre>
135
136 <p>
137 Your MILO boot floppy is now ready to boot Gentoo Linux. You may need to
138 set environment variables in your ARCS Firmware to get MILO to start;
139 this is all explained in the <uri
140 link="http://tldp.org/HOWTO/MILO-HOWTO/">MILO-HOWTO</uri> with some examples
141 on common systems, and examples of the commands to use in interactive mode.
142 </p>
143
144 <p>
145 Not reading the <uri link="http://tldp.org/HOWTO/MILO-HOWTO/">MILO-HOWTO</uri>
146 is a <e>bad</e> idea.
147 </p>
148
149 <p>
150 Now continue with <uri link="#reboot">Rebooting the System</uri>.
151 </p>
152
153 </body>
154 </section>
155 <section id="reboot">
156 <title>Rebooting the System</title>
157 <subsection>
158 <body>
159
160 <p>
161 Exit the chrooted environment and unmount all mounted partitions. Then type in
162 that one magical command you have been waiting for: <c>reboot</c>.
163 </p>
164
165 <pre caption="Exiting the chroot, unmounting all partitions and rebooting">
166 # <i>exit</i>
167 cdimage ~# <i>umount /mnt/gentoo/boot /mnt/gentoo/proc /mnt/gentoo</i>
168 cdimage ~# <i>reboot</i>
169 </pre>
170
171 <p>
172 Of course, don't forget to remove the bootable CD, otherwise the CD will be
173 booted again instead of your new Gentoo system.
174 </p>
175
176 <p>
177 Once rebooted in your Gentoo installation, finish up with <uri
178 link="?part=1&amp;chap=11">Finalizing your Gentoo Installation</uri>.
179 </p>
180
181 </body>
182 </subsection>
183 </section>
184
185 </sections>

  ViewVC Help
Powered by ViewVC 1.1.20