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