1 | <sect2>
|
---|
2 | <title>Installation of XFree86</title>
|
---|
3 |
|
---|
4 |
|
---|
5 | <sect3>
|
---|
6 | <title>Kernel Compilation Settings</title>
|
---|
7 | <para>
|
---|
8 | If you have an Intel P6 (Pentium Pro, Pentium II and later) it is recommneded
|
---|
9 | that you compile MTRR (Memory Type Range Registers) support into the kernel.
|
---|
10 | The kernel can map Cyrix and AMD CPUs to the MTRR interface so selecting this
|
---|
11 | option is useful for those processors also.
|
---|
12 | This option is found in the
|
---|
13 | "Processor type and features" menu. It can increase performance of
|
---|
14 | image write operations 2.5 times or more on PCI or AGP video cards.
|
---|
15 | </para>
|
---|
16 |
|
---|
17 | <para>
|
---|
18 | In the "Character Devices" section, enable AGP Support and select the chipset
|
---|
19 | support on your motherboard. If you do not know the chipset, you may select
|
---|
20 | all the chip types at the expense of extra kernel size. You can usually
|
---|
21 | determine your motherboard's chipset by doing:
|
---|
22 | <screen><userinput>cat /proc/pci</userinput></screen>
|
---|
23 | </para>
|
---|
24 |
|
---|
25 | <para>
|
---|
26 | In the "Character Devices" section, <emphasis>disable</emphasis> Direct
|
---|
27 | Rendering Manager unless you have a Direct Rendering Infrastructure (DRI)
|
---|
28 | supported video card. See the DRI section below for a list. If you do
|
---|
29 | enable DRI here, make sure you select the video card(s) you want to support
|
---|
30 | as a <emphasis>module</emphasis>.
|
---|
31 | </para>
|
---|
32 |
|
---|
33 | <para>If you made any changes to the kernel configuration, recompile with
|
---|
34 | <screen>make dep &&
|
---|
35 | make bzImage &&
|
---|
36 | make modules &&
|
---|
37 | make modules_install</screen>
|
---|
38 | </para>
|
---|
39 |
|
---|
40 | <para>
|
---|
41 | Copy <filename>/usr/src/linux/arch/i386/boot/bzImage</filename> and
|
---|
42 | <filename>/usr/src/linux/System.map</filename> to
|
---|
43 | <filename>/boot</filename>, edit <filename>/etc/lilo.conf</filename>
|
---|
44 | appropriately and run <userinput>lilo</userinput>.
|
---|
45 | </para>
|
---|
46 |
|
---|
47 | <note><para>
|
---|
48 | If you build XFree86 in a chroot environment, make sure the kernel version of the base
|
---|
49 | system and the target system are the same. This is especially important if you
|
---|
50 | enabled DRI support as a module as instructed above.
|
---|
51 | </para></note>
|
---|
52 |
|
---|
53 | </sect3>
|
---|
54 | <sect3><title>Creating <filename>host.def</filename></title>
|
---|
55 |
|
---|
56 | <para>Although XFree86 will compile without a host.def file, the following file
|
---|
57 | is recommended for customizing the installation. Start from
|
---|
58 | the <filename>xc</filename> directory.</para>
|
---|
59 |
|
---|
60 | <para><screen><userinput>cat > config/cf/host.def << "EOF"
|
---|
61 | # Begin XFree86 hosts.def file
|
---|
62 |
|
---|
63 | /* System Related Information. If you read and configure only one
|
---|
64 | * section then it should be this one. The Intel architecture defaults are
|
---|
65 | * set for a i686 and higher. Axp is for the Alpha architecture and Ppc is
|
---|
66 | * for the Power PC. Note that there have been reports that the Ppc
|
---|
67 | * optimization line causes segmentation faults during build. If that
|
---|
68 | * happens, try building without the DefaultGcc2PpcOpt line. **************/
|
---|
69 |
|
---|
70 | #define DefaultGcc2i386Opt -O2 -fomit-frame-pointer -march=i686
|
---|
71 | #define DefaultGcc2AxpOpt -O2 -mcpu=ev6
|
---|
72 | #define DefaultGcc2PpcOpt -O2 -mcpu=750
|
---|
73 |
|
---|
74 | /* The following definitions are normally set properly by XFree86's scripts.
|
---|
75 | * You can uncomment them if you want to make sure. ************************/
|
---|
76 |
|
---|
77 | /* #define HasMTRRSupport YES */ /* Enabled in kernel see kernel docs */
|
---|
78 | /* #define HasMMXSupport NO */ /* Any i586 or above */
|
---|
79 | /* #define HasKatmaiSupport NO */ /* PIII SSE instuctions */
|
---|
80 | /* #define Has3DNowSupport NO */ /* AMD instructions */
|
---|
81 |
|
---|
82 |
|
---|
83 | /* This setting reduces compile time a little by omitting rarely used input
|
---|
84 | * devices. You can find the complete list in config/cf/xfree86.cf ********/
|
---|
85 |
|
---|
86 | #define XInputDrivers mouse void
|
---|
87 |
|
---|
88 | /* VIDEO DRIVERS ***********************************************************/
|
---|
89 |
|
---|
90 | /* If you are sure you only want the drivers for one or a few video cards,
|
---|
91 | * you can delete the drivers you do not want. *****************************/
|
---|
92 |
|
---|
93 | #define XF86CardDrivers mga glint nv tga s3virge rendition \
|
---|
94 | cirrus vmware tseng chips apm \
|
---|
95 | fbdev i128 \
|
---|
96 | ati AgpGartDrivers DevelDrivers ark cyrix \
|
---|
97 | vesa vga XF86OSCardDrivers
|
---|
98 |
|
---|
99 | /* FONT SERVER AND LIBRARY SETTINGS ****************************************/
|
---|
100 |
|
---|
101 |
|
---|
102 | /* These setting should be set by default, but we are making sure. *********/
|
---|
103 |
|
---|
104 | #define BuildFontServer YES /* Need for GhostScript Print Server */
|
---|
105 | #define BuildFreetype2Library YES /* For using TrueType Fonts */
|
---|
106 | #define SharedLibFont YES /* Needed for Truetype */
|
---|
107 | #define CompressAllFonts YES
|
---|
108 | #define GzipFontCompression YES
|
---|
109 |
|
---|
110 | /* The font path can be redefined in the XF86Config file *******************/
|
---|
111 |
|
---|
112 | #define DefaultFontPath $(FONTDIR)/misc/,$(FONTDIR)/75dpi/,\
|
---|
113 | $(FONTDIR)/100dpi/,$(FONTDIR)/Type1,$(FONTDIR)/local,\
|
---|
114 | $(FONTDIR)/TrueType,$(FONTDIR)/CID,$(FONTDIR)/Speedo
|
---|
115 |
|
---|
116 | /* INTERNATIONAL FONTS. Change to YES if you need any of them. These are
|
---|
117 | * the defaults. ***********************************************************/
|
---|
118 |
|
---|
119 | #define BuildCyrillicFonts NO
|
---|
120 | #define BuildArabicFonts NO
|
---|
121 | #define BuildISO8859_6Fonts NO
|
---|
122 | #define BuildGreekFonts NO
|
---|
123 | #define BuildISO8859_7Fonts NO
|
---|
124 | #define BuildHebrewFonts NO
|
---|
125 | #define BuildISO8859_8Fonts NO
|
---|
126 | #define BuildKOI8_RFonts NO
|
---|
127 | #define BuildJapaneseFonts NO
|
---|
128 | #define BuildJISX0201Fonts NO
|
---|
129 | #define BuildKoreanFonts NO
|
---|
130 | #define BuildChineseFonts NO
|
---|
131 |
|
---|
132 | /* DOCUMENTATION SETTINGS **************************************************/
|
---|
133 |
|
---|
134 | /* These setting are the defaults. *****************************************/
|
---|
135 |
|
---|
136 | #define BuildLinuxDocHtml NO /* X Docs in Html format */
|
---|
137 | #define BuildLinuxDocPS NO /* X Docs in PostScript format */
|
---|
138 | #define BuildAllSpecsDocs NO /* Various docs */
|
---|
139 | #define BuildHtmlManPages NO
|
---|
140 |
|
---|
141 | /* Linux Distribution Information - Not essential that it is totally right.*/
|
---|
142 |
|
---|
143 | #define LinuxDistribution LFS
|
---|
144 | #define LinuxCLimbMajorVersion 3
|
---|
145 | #define LinuxCLimbMinorVersion 3
|
---|
146 | #define LinuxCLimbTeenyVersion 0
|
---|
147 |
|
---|
148 | /* GENERAL SETTINGS: You generally want to leave these alone when
|
---|
149 | * building X on an LFS system *********************************************/
|
---|
150 |
|
---|
151 | #define GccWarningOptions -pipe
|
---|
152 | #define TermcapLibrary -lncurses
|
---|
153 | #define XprtServer YES /* Needed by realplayer */
|
---|
154 | #define XnestServer YES
|
---|
155 | #define XAppLoadDir EtcX11Directory/app-defaults
|
---|
156 | #define VarLibDir /var/lib
|
---|
157 | #define XFree86Devel NO
|
---|
158 | #define FSUseSyslog YES
|
---|
159 | #define ThreadedX YES
|
---|
160 | #define HasZlib YES
|
---|
161 | #define HasNCurses YES
|
---|
162 | #define HasPam NO
|
---|
163 | #define SystemManDirectory /usr/share/man
|
---|
164 | #define HasLibCrypt YES
|
---|
165 | #define InstallXinitConfig YES
|
---|
166 | #define InstallXdmConfig YES
|
---|
167 | #define ForceNormalLib YES
|
---|
168 | #define BuildSpecsDocs NO
|
---|
169 |
|
---|
170 | # End XFree86 host.def file
|
---|
171 | EOF</userinput></screen></para>
|
---|
172 |
|
---|
173 | <para>Edit the file for your hardware and desires.</para>
|
---|
174 | </sect3>
|
---|
175 |
|
---|
176 | <sect3>
|
---|
177 | <title>Build Commands</title>
|
---|
178 | <para>Install XFree86 by running the following commands:</para>
|
---|
179 |
|
---|
180 |
|
---|
181 | <para><screen><userinput>patch -Np1 -i ../4.2.0-4.2.1.diff &&</userinput>
|
---|
182 | <userinput>make World 2>&1 | tee xfree-compile.log &&</userinput>
|
---|
183 | <userinput>make install &&</userinput>
|
---|
184 | <userinput>make install.man &&</userinput>
|
---|
185 | <userinput>ln -sf /usr/X11R6/bin /usr/bin/X11 &&</userinput>
|
---|
186 | <userinput>ln -sf /usr/X11R6/lib/X11 /usr/lib/X11 &&</userinput>
|
---|
187 | <userinput>ln -sf /usr/X11R6/include/X11 /usr/include/X11</userinput></screen></para>
|
---|
188 |
|
---|
189 | </sect3>
|
---|
190 | </sect2>
|
---|
191 |
|
---|