/[gentoo]/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-bootloader.xml
Gentoo

Diff of /xml/htdocs/doc/en/handbook/hb-install-x86+amd64-bootloader.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.7 Revision 1.8
2<!DOCTYPE sections SYSTEM "/dtd/book.dtd"> 2<!DOCTYPE sections SYSTEM "/dtd/book.dtd">
3 3
4<!-- The content of this document is licensed under the CC-BY-SA license --> 4<!-- The content of this document is licensed under the CC-BY-SA license -->
5<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> 5<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
6 6
7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-bootloader.xml,v 1.7 2007/03/13 14:31:03 neysx Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-bootloader.xml,v 1.8 2007/05/07 18:11:41 nightmorph Exp $ -->
8 8
9<sections> 9<sections>
10 10
11<version>4.3</version> 11<version>5.0</version>
12<date>2007-03-12</date> 12<date>2007-05-07</date>
13 13
14<section> 14<section>
15<title>Making your Choice</title> 15<title>Making your Choice</title>
16<subsection> 16<subsection>
17<title>Introduction</title> 17<title>Introduction</title>
57are using <c>vesafb-tng</c> and <e>do not need</e> to set a <c>vga</c> 57are using <c>vesafb-tng</c> and <e>do not need</e> to set a <c>vga</c>
58statement. Otherwise you are using the <c>vesafb</c> driver and <e>need</e> to 58statement. Otherwise you are using the <c>vesafb</c> driver and <e>need</e> to
59set the <c>vga</c> statement. 59set the <c>vga</c> statement.
60</p> 60</p>
61 61
62<p test="func:keyval('arch')='AMD64'"> 62<p test="contains('AMD64 IA64',func:keyval('arch'))">
6364-bit systems must use the the <c>vesafb</c> driver, and need the <c>vga</c> 6364-bit systems must use the the <c>vesafb</c> driver, and need the <c>vga</c>
64statement. 64statement.
65</p> 65</p>
66 66
67<p> 67<p>
158 </ti> 158 </ti>
159</tr> 159</tr>
160</table> 160</table>
161 161
162</body> 162</body>
163<body test="func:keyval('arch')='AMD64'"> 163<body test="contains('AMD64 IA64',func:keyval('arch'))">
164 164
165<p> 165<p>
166The result of those two statements could be something like <c>vga=0x318 166The result of those two statements could be something like <c>vga=0x318
167video=vesafb:mtrr:3,ywrap</c>. Write this setting down; you will need it 167video=vesafb:mtrr:3,ywrap</c>. Write this setting down; you will need it
168shortly. 168shortly.
169</p> 169</p>
170 170
171<p> 171<p test="func:keyval('arch')='AMD64'">
172While LILO does work on AMD64, Gentoo only supports using GRUB. Now continue by 172While LILO does work on AMD64, Gentoo only supports using GRUB. Now continue by
173its <uri link="#grub">installation</uri>. 173its <uri link="#grub">installation</uri>.
174</p>
175
176<p test="func:keyval('arch')='IA64'">
177Now, you should install the <uri link="#elilo">elilo bootloader</uri>.
174</p> 178</p>
175 179
176</body> 180</body>
177<body test="func:keyval('arch')='x86'"> 181<body test="func:keyval('arch')='x86'">
178 182
189</p> 193</p>
190 194
191</body> 195</body>
192</subsection> 196</subsection>
193</section> 197</section>
194<section id="grub"> 198<section id="grub" test="contains('AMD64 x86',func:keyval('arch'))">
195<title>Default: Using GRUB</title> 199<title>Default: Using GRUB</title>
196<subsection> 200<subsection>
197<title>Understanding GRUB's terminology</title> 201<title>Understanding GRUB's terminology</title>
198<body> 202<body>
199 203
656</p> 660</p>
657 661
658</body> 662</body>
659</subsection> 663</subsection>
660</section> 664</section>
665<section id="elilo" test="func:keyval('arch')='IA64'">
666<title>Default: Installing elilo</title>
667<body>
668
669<p>
670On the IA64 platform, the boot loader is called elilo. You may need to emerge
671it on your machine first.
672</p>
673
674<pre caption="Installing elilo">
675# <i>emerge elilo</i>
676</pre>
677
678<p>
679You can find the configuration file at <path>/etc/elilo.conf</path> and a
680sample file in the typical docs dir
681<path>/usr/share/doc/elilo-&lt;ver&gt;/</path>. Here is another sample
682configuration:
683</p>
684
685<pre caption="/etc/elilo.conf example">
686boot=/dev/sda1
687delay=30
688timeout=50
689default=Gentoo
690append="console=ttyS0,9600"
691prompt
692
693image=/vmlinuz
694 label=Gentoo
695 root=/dev/sda2
696 read-only
697
698image=/vmlinuz.old
699 label=Gentoo.old
700 root=/dev/sda2
701 read-only
702</pre>
703
704<p>
705The <c>boot</c> line tells elilo the location of the boot partition (in this
706case, <path>/dev/sda1</path>). The <c>delay</c> line sets the number of
70710<sup>th</sup> of seconds before automatically booting the default when in
708non-interactive mode. The <c>timeout</c> line is just like the delay line but
709for interactive mode. The <c>default</c> line sets the default kernel entry
710(which is defined below). The <c>append</c> line adds extra options to the
711kernel command line. The <c>prompt</c> sets the default elilo behavior to
712interactive.
713</p>
714
715<p>
716The sections that start with <c>image</c> define different bootable images.
717Each image has a nice <c>label</c>, a <c>root</c> filesystem, and will only
718mount the root filesystem <c>read-only</c>.
719</p>
720
721<p>
722When configuration is done, just run <c>elilo --efiboot</c>. The
723<c>--efiboot</c> option adds a menu entry for Gentoo Linux to the EFI Boot
724Manager.
725</p>
726
727<pre caption="Applying the elilo configuration">
728# <i>elilo --efiboot</i>
729</pre>
730
731<p>
732Now continue with <uri link="#reboot">Rebooting the System</uri>.
733</p>
734
735</body>
736</section>
737
661<section id="reboot"> 738<section id="reboot">
662<title>Rebooting the System</title> 739<title>Rebooting the System</title>
663<subsection> 740<subsection>
664<body> 741<body>
665 742
666<p> 743<p>
667Exit the chrooted environment and unmount all mounted partitions. Then type in 744Exit the chrooted environment and unmount all mounted partitions. Then type in
668that one magical command you have been waiting for: <c>reboot</c>. 745that one magical command you have been waiting for: <c>reboot</c>.
669</p> 746</p>
670 747
671<pre caption="Unmounting all partitions and rebooting"> 748<pre caption="Unmounting all partitions and rebooting" test="func:keyval('arch')='IA64'">
749# <i>exit</i>
750cdimage ~# <i>cd</i>
751cdimage ~# <i>umount /mnt/gentoo/boot /mnt/gentoo/sys /mnt/gentoo/dev /mnt/gentoo/proc /mnt/gentoo</i>
752cdimage ~# <i>reboot</i>
753</pre>
754
755<pre caption="Unmounting all partitions and rebooting" test="not(func:keyval('arch')='IA64')">
672# <i>exit</i> 756# <i>exit</i>
673cdimage ~# <i>cd</i> 757cdimage ~# <i>cd</i>
674cdimage ~# <i>umount /mnt/gentoo/boot /mnt/gentoo/dev /mnt/gentoo/proc /mnt/gentoo</i> 758cdimage ~# <i>umount /mnt/gentoo/boot /mnt/gentoo/dev /mnt/gentoo/proc /mnt/gentoo</i>
675cdimage ~# <i>reboot</i> 759cdimage ~# <i>reboot</i>
676</pre> 760</pre>
678<p> 762<p>
679Of course, don't forget to remove the bootable CD, otherwise the CD will be 763Of course, don't forget to remove the bootable CD, otherwise the CD will be
680booted again instead of your new Gentoo system. 764booted again instead of your new Gentoo system.
681</p> 765</p>
682 766
767<p test="func:keyval('arch')='IA64'">
768When you reboot you should see a new Gentoo Linux menu option in the EFI Boot
769Manager which will boot Gentoo.
770</p>
771
683<p> 772<p>
684Once rebooted in your Gentoo installation, finish up with <uri 773Once rebooted in your Gentoo installation, finish up with <uri
685link="?part=1&amp;chap=11">Finalizing your Gentoo Installation</uri>. 774link="?part=1&amp;chap=11">Finalizing your Gentoo Installation</uri>.
686</p> 775</p>
687 776

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.20