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