/[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.9 Revision 1.10
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.9 2007/11/27 19:23:06 neysx Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-bootloader.xml,v 1.10 2008/04/01 08:53:46 nightmorph Exp $ -->
8 8
9<sections> 9<sections>
10 10
11<version>5.1</version> 11<version>6.0</version>
12<date>2007-11-27</date> 12<date>2008-04-01</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>
55<c>genkernel</c> default kernel configuration), you can activate it by adding a 55<c>genkernel</c> default kernel configuration), you can activate it by adding a
56<c>vga</c> and/or a <c>video</c> statement to your bootloader configuration 56<c>vga</c> and/or a <c>video</c> statement to your bootloader configuration
57file. 57file.
58</p> 58</p>
59 59
60<p test="func:keyval('arch')='x86'"> 60<p>
61First of all, you need to know what type of framebuffer device you're using. If 61First of all, you need to know what type of framebuffer device you're using. If
62you use a Gentoo patched kernel tree (such as <c>gentoo-sources</c>) you will 62you use a Gentoo patched kernel tree (such as <c>gentoo-sources</c>) you will
63have had the possibility of selecting <c>vesafb-tng</c> as the <e>VESA driver 63have had the possibility of selecting <c>uvesafb</c> as the <e>VESA driver</e>.
64type</e> (which is default for these kernel sources). If this is the case, you 64If this is the case, you are using <c>uvesafb</c> and <e>do not need</e> to set
65are using <c>vesafb-tng</c> and <e>do not need</e> to set a <c>vga</c>
66statement. Otherwise you are using the <c>vesafb</c> driver and <e>need</e> to 65a <c>vga</c> statement. Otherwise you are using the <c>vesafb</c> driver and
67set the <c>vga</c> statement. 66<e>need</e> to set the <c>vga</c> statement.
68</p>
69
70<p test="contains('AMD64 IA64',func:keyval('arch'))">
7164-bit systems must use the the <c>vesafb</c> driver, and need the <c>vga</c>
72statement.
73</p> 67</p>
74 68
75<p> 69<p>
76The <c>vga</c> statement controls the resolution and color depth of your 70The <c>vga</c> statement controls the resolution and color depth of your
77framebuffer screen for <c>vesafb</c>. As stated in 71framebuffer screen for <c>vesafb</c>. As stated in
124</tr> 118</tr>
125</table> 119</table>
126 120
127<p> 121<p>
128The <c>video</c> statement controls framebuffer display options. It needs to be 122The <c>video</c> statement controls framebuffer display options. It needs to be
129given the framebuffer driver (<c>vesafb</c> for 2.6 kernels, or <c>vesa</c> for 123given the framebuffer driver followed by the control statements you wish to
1302.4 kernels) followed by the control statements you wish to enable. All
131variables are listed in 124enable. All variables are listed in
132<path>/usr/src/linux/Documentation/fb/vesafb.txt</path>. The most-used options 125<path>/usr/src/linux/Documentation/fb/vesafb.txt</path>. The most-used options
133are: 126are:
134</p> 127</p>
135 128
136<table> 129<table>
144 Assume that the graphical card can wrap around its memory (i.e. continue at 137 Assume that the graphical card can wrap around its memory (i.e. continue at
145 the beginning when it has approached the end) 138 the beginning when it has approached the end)
146 </ti> 139 </ti>
147</tr> 140</tr>
148<tr> 141<tr>
149 <ti>mtrr:n</ti> 142 <ti>mtrr:<c>n</c></ti>
150 <ti> 143 <ti>
151 Setup MTRR registers. <c>n</c> can be:<br/> 144 Setup MTRR registers. <c>n</c> can be:<br/>
152 0 - disabled<br/> 145 0 - disabled<br/>
153 1 - uncachable<br/> 146 1 - uncachable<br/>
154 2 - write-back<br/> 147 2 - write-back<br/>
155 3 - write-combining<br/> 148 3 - write-combining<br/>
156 4 - write-through 149 4 - write-through
157 </ti> 150 </ti>
158</tr> 151</tr>
159<tr test="func:keyval('arch')='x86'"> 152<tr>
160 <ti><c>mode</c></ti> 153 <ti><c>mode</c></ti>
161 <ti> 154 <ti>
162 (<c>vesafb-tng</c> only)<br/> 155 (<c>uvesafb</c> only)<br/>
163 Set up the resolution, color depth and refresh rate. For instance, 156 Set up the resolution, color depth and refresh rate. For instance,
164 <c>1024x768-32@85</c> for a resolution of 1024x768, 32 bit color depth and a 157 <c>1024x768-32@85</c> for a resolution of 1024x768, 32 bit color depth and a
165 refresh rate of 85 Hz. 158 refresh rate of 85 Hz.
166 </ti> 159 </ti>
167</tr> 160</tr>
168</table> 161</table>
169 162
170<p test="contains('AMD64 IA64',func:keyval('arch'))">
171The result of those two statements could be something like <c>vga=0x318
172video=vesafb:mtrr:3,ywrap</c>. Write this setting down; you will need it
173shortly.
174</p> 163<p>
175
176<p test="func:keyval('arch')='x86'">
177The result of those two statements could be something like <c>vga=0x318 164The result of those two statements could be something like <c>vga=0x318
178video=vesafb:mtrr:3,ywrap</c> or 165video=vesafb:mtrr:3,ywrap</c> or
179<c>video=vesafb:mtrr:3,ywrap,1024x768-32@85</c>. Write this setting down; you 166<c>video=uvesafb:mtrr:3,ywrap,1024x768-32@85</c>. Write this setting down; you
180will need it shortly. 167will need it shortly.
181</p> 168</p>
182 169
183<p test="func:keyval('arch')='IA64'"> 170<p test="func:keyval('arch')='IA64'">
184Now, you should install the <uri link="#elilo">elilo bootloader</uri>. 171Now, you should install the <uri link="#elilo">elilo bootloader</uri>.
292timeout 30 279timeout 30
293<comment># Nice, fat splash-image to spice things up :) 280<comment># Nice, fat splash-image to spice things up :)
294# Comment out if you don't have a graphics card installed</comment> 281# Comment out if you don't have a graphics card installed</comment>
295splashimage=(hd0,0)/boot/grub/splash.xpm.gz 282splashimage=(hd0,0)/boot/grub/splash.xpm.gz
296 283
297title=Gentoo Linux <keyval id="kernel-version"/> 284title Gentoo Linux <keyval id="kernel-version"/>
298<comment># Partition where the kernel image (or operating system) is located</comment> 285<comment># Partition where the kernel image (or operating system) is located</comment>
299root (hd0,0) 286root (hd0,0)
300kernel /boot/<keyval id="kernel-name"/> root=/dev/hda3 287kernel /boot/<keyval id="kernel-name"/> root=/dev/hda3
301 288
302title=Gentoo Linux <keyval id="kernel-version"/> (rescue) 289title Gentoo Linux <keyval id="kernel-version"/> (rescue)
303<comment># Partition where the kernel image (or operating system) is located</comment> 290<comment># Partition where the kernel image (or operating system) is located</comment>
304root (hd0,0) 291root (hd0,0)
305kernel /boot/<keyval id="kernel-name"/> root=/dev/hda3 init=/bin/bb 292kernel /boot/<keyval id="kernel-name"/> root=/dev/hda3 init=/bin/bb
306 293
307<comment># The next four lines are only if you dualboot with a Windows system.</comment> 294<comment># The next four lines are only if you dualboot with a Windows system.</comment>
308<comment># In this case, Windows is hosted on /dev/hda6.</comment> 295<comment># In this case, Windows is hosted on /dev/hda6.</comment>
309title=Windows XP 296title Windows XP
310rootnoverify (hd0,5) 297rootnoverify (hd0,5)
311makeactive 298makeactive
312chainloader +1 299chainloader +1
313</pre> 300</pre>
314 301
315<pre caption="grub.conf for genkernel users"> 302<pre caption="grub.conf for genkernel users">
316default 0 303default 0
317timeout 30 304timeout 30
318splashimage=(hd0,0)/boot/grub/splash.xpm.gz 305splashimage=(hd0,0)/boot/grub/splash.xpm.gz
319 306
320title=Gentoo Linux <keyval id="kernel-version"/> 307title Gentoo Linux <keyval id="kernel-version"/>
321root (hd0,0) 308root (hd0,0)
322kernel /boot/<keyval id="genkernel-name"/> root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda3 udev 309kernel /boot/<keyval id="genkernel-name"/> root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda3 udev
323initrd /boot/<keyval id="genkernel-initrd"/> 310initrd /boot/<keyval id="genkernel-initrd"/>
324 311
325<comment># Only in case you want to dual-boot</comment> 312<comment># Only in case you want to dual-boot</comment>
326title=Windows XP 313title Windows XP
327rootnoverify (hd0,5) 314rootnoverify (hd0,5)
328makeactive 315makeactive
329chainloader +1 316chainloader +1
330</pre> 317</pre>
331 318

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.20