source: x/installing/xfree86/xfree86-inst.xml@ a4be499

10.0 10.1 11.0 6.0 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 ken/refactor-virt krejzi/svn lazarus nosym perl-modules qt5new systemd-11177 systemd-13485 trunk upgradedb v5_0 v5_0-pre1 v5_1 v5_1-pre1 xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since a4be499 was a4be499, checked in by Larry Lawrence <larry@…>, 18 years ago

spelling and grammer

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1292 af4574ff-66df-0310-9fd7-8a98e5e911e0

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