1 | <sect2>
|
---|
2 | <title>Installation of <application>XFree86</application></title>
|
---|
3 |
|
---|
4 | <sect3>
|
---|
5 | <title>Kernel Compilation Settings</title>
|
---|
6 | <para>If you have an Intel P6 (Pentium Pro, Pentium II and later) it is recommended
|
---|
7 | that you compile <acronym>MTRR</acronym> (Memory Type Range Registers) support into the kernel.
|
---|
8 | The kernel can map Cyrix and AMD <acronym>CPU</acronym>s to the
|
---|
9 | <acronym>MTRR</acronym> interface so selecting this
|
---|
10 | option is useful for those processors also.
|
---|
11 | This option is found in the
|
---|
12 | "Processor type and features" menu. It can increase performance of
|
---|
13 | image write operations 2.5 times or more on <acronym>PCI</acronym> or
|
---|
14 | <acronym>AGP</acronym> video cards.</para>
|
---|
15 |
|
---|
16 | <para>In the "Character Devices" section, enable <acronym>AGP</acronym> Support and select the chipset
|
---|
17 | support on your motherboard. If you do not know the chipset, you may select
|
---|
18 | all the chip types at the expense of extra kernel size. You can usually
|
---|
19 | determine your motherboard's chipset by doing:</para>
|
---|
20 | <screen><userinput><command>cat /proc/pci</command></userinput></screen>
|
---|
21 |
|
---|
22 | <para>In the "Character Devices" section, <emphasis>disable</emphasis> Direct
|
---|
23 | Rendering Manager unless you have a Direct Rendering Infrastructure
|
---|
24 | (<acronym>DRI</acronym>)
|
---|
25 | supported video card. A complete list of <acronym>DRI</acronym> supported video cards can
|
---|
26 | be found at <ulink url="http://dri.sourceforge.net" /> in the Status section.
|
---|
27 | Currently,
|
---|
28 | supported cards include those from 3dfx (Voodoo, Banshee), 3Dlabs,
|
---|
29 | ATI (Rage Pro, Rage 128,
|
---|
30 | Radeon 7X00, Radeon 2), Intel (i810, i815), and Matrox (G200, G400, G450).
|
---|
31 | If you do enable <acronym>DRI</acronym> here, make sure you select the video card(s) you want
|
---|
32 | to support as a <emphasis>module</emphasis>.</para>
|
---|
33 |
|
---|
34 | <para>Additionally NVidia provides their own closed source binary drivers,
|
---|
35 | which do not make use of <acronym>DRI</acronym>. If you intend to use these drivers,
|
---|
36 | do not enable <acronym>DRI</acronym>.</para>
|
---|
37 |
|
---|
38 | <para>If you made any changes to the kernel configuration, recompile with</para>
|
---|
39 | <screen><userinput>make dep &&
|
---|
40 | make bzImage &&
|
---|
41 | make modules &&
|
---|
42 | make modules_install</userinput></screen>
|
---|
43 |
|
---|
44 | <para>Copy <filename>/usr/src/linux/arch/i386/boot/bzImage</filename> and
|
---|
45 | <filename>/usr/src/linux/System.map</filename> to
|
---|
46 | <filename>/boot</filename>, edit <filename>/etc/lilo.conf</filename>
|
---|
47 | appropriately and run <filename>lilo</filename>. If you use
|
---|
48 | <filename>grub</filename>, edit <filename>/boot/grub/grub.conf</filename>
|
---|
49 | and add the new kernel to the boot menu.
|
---|
50 | </para>
|
---|
51 |
|
---|
52 | <note><para>If you build <application>XFree86</application> in a chroot environment, make sure the kernel
|
---|
53 | version of the base system and the target system are the same. This is
|
---|
54 | especially important if you enabled <acronym>DRI</acronym> support as a module as
|
---|
55 | instructed above.</para></note>
|
---|
56 |
|
---|
57 | </sect3>
|
---|
58 |
|
---|
59 | <sect3><title>Creating <filename>host.def</filename></title>
|
---|
60 |
|
---|
61 | <para>Although <application>XFree86</application> will compile without a
|
---|
62 | <filename>host.def</filename> file, the following file
|
---|
63 | is recommended for customizing the installation. Start from
|
---|
64 | the <filename class="directory">xc</filename> directory.</para>
|
---|
65 |
|
---|
66 | <note><para>The <filename>host.def</filename> file is a
|
---|
67 | <application>C</application> file, not the
|
---|
68 | usual configuration file. If you make any changes, be sure the comment characters
|
---|
69 | (<userinput>/*</userinput> and <userinput>*/</userinput>)
|
---|
70 | are balanced. Most of the entries in the file below are
|
---|
71 | commented out with the default settings shown.
|
---|
72 | </para></note>
|
---|
73 |
|
---|
74 | <screen><userinput><command>cat > config/cf/host.def << "EOF"</command>
|
---|
75 | /* Begin XFree86 host.def file */
|
---|
76 |
|
---|
77 | /* System Related Information. If you read and configure only one
|
---|
78 | * section then it should be this one. The Intel architecture defaults are
|
---|
79 | * set for a i686 and higher. Axp is for the Alpha architecture and Ppc is
|
---|
80 | * for the Power PC. Note that there have been reports that the Ppc
|
---|
81 | * optimization line causes segmentation faults during build. If that
|
---|
82 | * happens, try building without the DefaultGcc2PpcOpt line. **************/
|
---|
83 |
|
---|
84 | /* #define DefaultGcc2i386Opt -O2 -fomit-frame-pointer -march=i686 */
|
---|
85 | /* #define DefaultGcc2AxpOpt -O2 -mcpu=ev6 */
|
---|
86 | /* #define DefaultGcc2PpcOpt -O2 -mcpu=750 */
|
---|
87 |
|
---|
88 | /* The following definitions are normally set properly by XFree86's scripts.
|
---|
89 | * You can uncomment them if you want to make sure. ************************/
|
---|
90 |
|
---|
91 | /* #define HasMTRRSupport YES */ /* Enabled in kernel see kernel docs*/
|
---|
92 | /* #define HasMMXSupport NO */ /* Any i586 or above */
|
---|
93 | /* #define HasKatmaiSupport NO */ /* PIII SSE instructions */
|
---|
94 | /* #define Has3DNowSupport NO */ /* AMD instructions */
|
---|
95 |
|
---|
96 |
|
---|
97 | /* This setting reduces compile time a little by omitting rarely used input
|
---|
98 | * devices. You can find the complete list in config/cf/xfree86.cf ********/
|
---|
99 |
|
---|
100 | #define XInputDrivers mouse void
|
---|
101 |
|
---|
102 | /* VIDEO DRIVERS ***********************************************************/
|
---|
103 |
|
---|
104 | /* If you are sure you only want the drivers for one or a few video cards,
|
---|
105 | * you can delete the drivers you do not want. *****************************/
|
---|
106 |
|
---|
107 |
|
---|
108 | #define XF86CardDrivers mga glint nv tga s3 s3virge sis rendition \
|
---|
109 | neomagic i740 tdfx savage \
|
---|
110 | cirrus vmware tseng trident chips apm \
|
---|
111 | GlideDriver fbdev i128 nsc \
|
---|
112 | ati i810 AgpGartDrivers DevelDrivers ark \
|
---|
113 | cyrix siliconmotion \
|
---|
114 | vesa vga \
|
---|
115 | dummy XF86OSCardDrivers XF86ExtraCardDrivers
|
---|
116 |
|
---|
117 |
|
---|
118 | /* USER AND SYSTEM DEFAULT PATHS *******************************************/
|
---|
119 |
|
---|
120 | /* These settings set the PATH variables used by xdm. See README for *******/
|
---|
121 | /* detailed description and modify the following as per your need. *********/
|
---|
122 |
|
---|
123 | /* #define DefaultSystemPath /usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin */
|
---|
124 | /* #define DefaultUserPath /usr/bin:/bin:/usr/X11R6/bin */
|
---|
125 |
|
---|
126 | /* FONT SERVER AND LIBRARY SETTINGS ****************************************/
|
---|
127 |
|
---|
128 | /* These settings are the defaults ***************************************/
|
---|
129 |
|
---|
130 | /* #define BuildFontServer YES */ /* For Ghostscript Print Server*/
|
---|
131 | /* #define SharedLibFont YES */
|
---|
132 | /* #define CompressAllFonts YES */
|
---|
133 | /* #define GzipFontCompression YES */
|
---|
134 |
|
---|
135 | /* These settings ensure we use our libraries ******************************/
|
---|
136 | #define HasFreetype2 YES
|
---|
137 | #define HasFontconfig YES
|
---|
138 | #define HasExpat YES
|
---|
139 | #define HasLibpng YES
|
---|
140 | #define HasZlib YES
|
---|
141 |
|
---|
142 | /* The font path can be redefined in the XF86Config file *******************/
|
---|
143 |
|
---|
144 | /*
|
---|
145 | #define DefaultFontPath $(FONTDIR)/misc/,$(FONTDIR)/75dpi/,\
|
---|
146 | $(FONTDIR)/100dpi/,$(FONTDIR)/Type1,$(FONTDIR)/local,\
|
---|
147 | $(FONTDIR)/TrueType,$(FONTDIR)/CID,$(FONTDIR)/Speedo
|
---|
148 | */
|
---|
149 |
|
---|
150 |
|
---|
151 | /* INTERNATIONAL FONTS. Change to YES if you need any of them. These are
|
---|
152 | * the defaults. ***********************************************************/
|
---|
153 |
|
---|
154 | /* #define BuildCyrillicFonts NO */
|
---|
155 | /* #define BuildArabicFonts NO */
|
---|
156 | /* #define BuildISO8859_6Fonts NO */
|
---|
157 | /* #define BuildGreekFonts NO */
|
---|
158 | /* #define BuildISO8859_7Fonts NO */
|
---|
159 | /* #define BuildHebrewFonts NO */
|
---|
160 | /* #define BuildISO8859_8Fonts NO */
|
---|
161 | /* #define BuildKOI8_RFonts NO */
|
---|
162 | /* #define BuildJapaneseFonts NO */
|
---|
163 | /* #define BuildJISX0201Fonts NO */
|
---|
164 | /* #define BuildKoreanFonts NO */
|
---|
165 | /* #define BuildChineseFonts NO */
|
---|
166 |
|
---|
167 | /* DOCUMENTATION SETTINGS **************************************************/
|
---|
168 |
|
---|
169 | /* These setting are the defaults. *****************************************/
|
---|
170 |
|
---|
171 | /* #define BuildLinuxDocHtml NO */ /* X Docs in Html format */
|
---|
172 | /* #define BuildLinuxDocPS NO */ /* PostScript format */
|
---|
173 | /* #define BuildAllSpecsDocs NO */ /* Various docs */
|
---|
174 | /* #define BuildHtmlManPages NO */
|
---|
175 |
|
---|
176 | /* GENERAL SETTINGS: You generally want to leave these alone when
|
---|
177 | * building X on an LFS system *********************************************/
|
---|
178 |
|
---|
179 | #define GccWarningOptions -pipe /* Speed up compiles */
|
---|
180 | #define TermcapLibrary -lncurses
|
---|
181 | #define XprtServer YES /* Needed by realplayer */
|
---|
182 | #define XnestServer YES
|
---|
183 | #define XAppLoadDir EtcX11Directory/app-defaults
|
---|
184 | #define VarLibDir /var/lib
|
---|
185 | #define XFree86Devel NO
|
---|
186 | #define FSUseSyslog YES
|
---|
187 | #define ThreadedX YES
|
---|
188 | #define HasPam NO
|
---|
189 | #define SystemManDirectory /usr/share/man /* Instead of /usr/man */
|
---|
190 | #define HasLibCrypt YES
|
---|
191 | #define InstallXinitConfig YES
|
---|
192 | #define InstallXdmConfig YES
|
---|
193 | #define ForceNormalLib YES
|
---|
194 | #define BuildSpecsDocs NO
|
---|
195 |
|
---|
196 | /* End XFree86 host.def file */
|
---|
197 | <command>EOF</command></userinput></screen>
|
---|
198 |
|
---|
199 | <para>Edit the file for your hardware and desires.</para>
|
---|
200 |
|
---|
201 | </sect3>
|
---|
202 |
|
---|
203 | <sect3>
|
---|
204 | <title>Build Commands</title>
|
---|
205 | <para>Install <application>XFree86</application> by running the following commands:</para>
|
---|
206 |
|
---|
207 |
|
---|
208 | <screen><userinput><command>( make WORLDOPTS="" World 2>&1 | tee xfree-compile.log && exit $PIPESTATUS ) &&
|
---|
209 | make install &&
|
---|
210 | make install.man &&
|
---|
211 | ln -sf /usr/X11R6/bin /usr/bin/X11 &&
|
---|
212 | ln -sf /usr/X11R6/lib/X11 /usr/lib/X11 &&
|
---|
213 | ln -sf /usr/X11R6/include/X11 /usr/include/X11</command></userinput></screen>
|
---|
214 |
|
---|
215 | </sect3>
|
---|
216 |
|
---|
217 | <sect3>
|
---|
218 | <title>Updating Direct Rendering Infrastructure (<acronym>DRI</acronym>)</title>
|
---|
219 | <para>If you have one of the supported <acronym>DRI</acronym> cards and
|
---|
220 | have enabled <acronym>DRI</acronym> kernel modules as explained
|
---|
221 | above, you now need to update the kernel modules to ensure they are compatible with the
|
---|
222 | current version of <application>XFree86</application>. To do this, perform the following:</para>
|
---|
223 |
|
---|
224 | <screen><userinput><command>cd programs/Xserver/hw/xfree86/os-support/linux/drm/kernel &&
|
---|
225 | make CC=/opt/gcc-2.95.3/bin/gcc -f Makefile.linux &&
|
---|
226 | mkdir -p /lib/modules/`uname -r`/kernel/drivers/char/drm/ &&
|
---|
227 | cp gamma.o radeon.o sis.o r128.o i810.o i830.o mga.o tdfx.o \
|
---|
228 | /lib/modules/`uname -r`/kernel/drivers/char/drm/ &&
|
---|
229 | depmod -a</command></userinput></screen>
|
---|
230 |
|
---|
231 | <warning><para>If you recompile or upgrade your kernel, you will need to re-copy the
|
---|
232 | appropriate driver module(s)
|
---|
233 | to the kernel module library and rerun <command>depmod</command>.</para></warning>
|
---|
234 |
|
---|
235 | <note><para>If you created <acronym>AGP</acronym> support as a module when compiling the kernel, you may
|
---|
236 | have to add a line to <filename>/etc/modules.conf</filename> to ensure
|
---|
237 | the agpgart module is loaded. For instance, the <acronym>AGP</acronym> version of the Radeon video card
|
---|
238 | will use the <filename>radeon.o</filename> driver. It will
|
---|
239 | need to have the line <screen>below radeon agpgart</screen> in
|
---|
240 | <filename>/etc/modules.conf</filename> to enable <acronym>DRI</acronym> support.</para></note>
|
---|
241 |
|
---|
242 | </sect3>
|
---|
243 | </sect2>
|
---|
244 |
|
---|