[f45b1953] | 1 | <sect2>
|
---|
| 2 | <title>Installation of XFree86</title>
|
---|
| 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
|
---|
[f45b1953] | 7 | that you compile MTRR (Memory Type Range Registers) support into the kernel.
|
---|
| 8 | The kernel can map Cyrix and AMD CPUs to the MTRR interface so selecting this
|
---|
| 9 | option is useful for those processors also.
|
---|
| 10 | This option is found in the
|
---|
| 11 | "Processor type and features" menu. It can increase performance of
|
---|
[19e9cee] | 12 | image write operations 2.5 times or more on PCI or AGP video cards.</para>
|
---|
[f45b1953] | 13 |
|
---|
[19e9cee] | 14 | <para>In the "Character Devices" section, enable AGP Support and select the chipset
|
---|
[f45b1953] | 15 | support on your motherboard. If you do not know the chipset, you may select
|
---|
| 16 | all the chip types at the expense of extra kernel size. You can usually
|
---|
| 17 | determine your motherboard's chipset by doing:
|
---|
[19e9cee] | 18 | <screen><userinput>cat /proc/pci</userinput></screen></para>
|
---|
[f45b1953] | 19 |
|
---|
[19e9cee] | 20 | <para>In the "Character Devices" section, <emphasis>disable</emphasis> Direct
|
---|
[f45b1953] | 21 | Rendering Manager unless you have a Direct Rendering Infrastructure (DRI)
|
---|
[071a954] | 22 | supported video card. A complete list of DRI supported video cards can
|
---|
| 23 | be found at <ulink url="http://dri.sourceforge.net" /> in the Status section.
|
---|
| 24 | Currently,
|
---|
| 25 | supported cards include those from 3dfx (Voodoo, Banshee), 3Dlabs,
|
---|
| 26 | ATI (Rage Pro, Rage 128,
|
---|
| 27 | Radeon 7X00, Radeon 2), Intel (i810, i815), and Matrox (G200, G400, G450).
|
---|
| 28 | Additionally NVidia provides their own closed source binary drivers.
|
---|
| 29 | If you do enable DRI here, make sure you select the video card(s) you want
|
---|
| 30 | to support as a <emphasis>module</emphasis>.</para>
|
---|
[f45b1953] | 31 |
|
---|
| 32 | <para>If you made any changes to the kernel configuration, recompile with
|
---|
[19e9cee] | 33 | <screen><userinput>make dep &&
|
---|
[f45b1953] | 34 | make bzImage &&
|
---|
| 35 | make modules &&
|
---|
[19e9cee] | 36 | make modules_install</userinput></screen>
|
---|
[f45b1953] | 37 | </para>
|
---|
| 38 |
|
---|
[19e9cee] | 39 | <para>Copy <filename>/usr/src/linux/arch/i386/boot/bzImage</filename> and
|
---|
[f45b1953] | 40 | <filename>/usr/src/linux/System.map</filename> to
|
---|
| 41 | <filename>/boot</filename>, edit <filename>/etc/lilo.conf</filename>
|
---|
[071a954] | 42 | appropriately and run <filename>lilo</filename>. If you use
|
---|
| 43 | <filename>grub</filename>, edit <filename>/boot/grub/grub.conf</filename>
|
---|
| 44 | and add the new kernel to the boot menu.
|
---|
| 45 | </para>
|
---|
[f45b1953] | 46 |
|
---|
[19e9cee] | 47 | <note><para>If you build XFree86 in a chroot environment, make sure the kernel
|
---|
| 48 | version of the base system and the target system are the same. This is
|
---|
| 49 | especially important if you enabled DRI support as a module as
|
---|
| 50 | instructed above.</para></note>
|
---|
[7db5869] | 51 |
|
---|
[f45b1953] | 52 | </sect3>
|
---|
[19e9cee] | 53 |
|
---|
[f45b1953] | 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"
|
---|
[c78533e] | 61 | /* Begin XFree86 host.def file */
|
---|
[f45b1953] | 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
|
---|
[1c78953e] | 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. **************/
|
---|
[f45b1953] | 69 |
|
---|
[2537aba] | 70 | /* #define DefaultGcc2i386Opt -O2 -fomit-frame-pointer -march=i686 */
|
---|
| 71 | /* #define DefaultGcc2AxpOpt -O2 -mcpu=ev6 */
|
---|
| 72 | /* #define DefaultGcc2PpcOpt -O2 -mcpu=750 */
|
---|
[f45b1953] | 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 |
|
---|
[071a954] | 77 | /* #define HasMTRRSupport YES */ /* Enabled in kernel see kernel docs*/
|
---|
[19e9cee] | 78 | /* #define HasMMXSupport NO */ /* Any i586 or above */
|
---|
[f45b1953] | 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 |
|
---|
[071a954] | 93 |
|
---|
| 94 | #define XF86CardDrivers mga glint nv tga s3 s3virge sis rendition \
|
---|
| 95 | neomagic i740 tdfx savage \
|
---|
| 96 | cirrus vmware tseng trident chips apm \
|
---|
| 97 | GlideDriver fbdev i128 nsc \
|
---|
| 98 | ati i810 AgpGartDrivers DevelDrivers ark \
|
---|
| 99 | cyrix siliconmotion \
|
---|
| 100 | vesa vga \
|
---|
| 101 | dummy XF86OSCardDrivers XF86ExtraCardDrivers
|
---|
| 102 |
|
---|
[f45b1953] | 103 |
|
---|
| 104 | /* FONT SERVER AND LIBRARY SETTINGS ****************************************/
|
---|
| 105 |
|
---|
[071a954] | 106 | /* These settings are the defaults ***************************************/
|
---|
[f45b1953] | 107 |
|
---|
[071a954] | 108 | /* #define BuildFontServer YES */ /* For GhostScript Print Server*/
|
---|
| 109 | /* #define SharedLibFont YES */
|
---|
| 110 | /* #define CompressAllFonts YES */
|
---|
| 111 | /* #define GzipFontCompression YES */
|
---|
[19e9cee] | 112 |
|
---|
[071a954] | 113 | /* These settings ensure we use our libraries ******************************/
|
---|
[19e9cee] | 114 | #define HasFreetype2 YES
|
---|
[071a954] | 115 | #define HasExpat YES
|
---|
| 116 | #define HasLibpng YES
|
---|
| 117 | #define HasZlib YES
|
---|
[f45b1953] | 118 |
|
---|
| 119 | /* The font path can be redefined in the XF86Config file *******************/
|
---|
| 120 |
|
---|
[071a954] | 121 | /*
|
---|
[f45b1953] | 122 | #define DefaultFontPath $(FONTDIR)/misc/,$(FONTDIR)/75dpi/,\
|
---|
| 123 | $(FONTDIR)/100dpi/,$(FONTDIR)/Type1,$(FONTDIR)/local,\
|
---|
| 124 | $(FONTDIR)/TrueType,$(FONTDIR)/CID,$(FONTDIR)/Speedo
|
---|
[071a954] | 125 | */
|
---|
| 126 |
|
---|
[f45b1953] | 127 |
|
---|
| 128 | /* INTERNATIONAL FONTS. Change to YES if you need any of them. These are
|
---|
| 129 | * the defaults. ***********************************************************/
|
---|
| 130 |
|
---|
[071a954] | 131 | /* #define BuildCyrillicFonts NO */
|
---|
| 132 | /* #define BuildArabicFonts NO */
|
---|
| 133 | /* #define BuildISO8859_6Fonts NO */
|
---|
| 134 | /* #define BuildGreekFonts NO */
|
---|
| 135 | /* #define BuildISO8859_7Fonts NO */
|
---|
| 136 | /* #define BuildHebrewFonts NO */
|
---|
| 137 | /* #define BuildISO8859_8Fonts NO */
|
---|
| 138 | /* #define BuildKOI8_RFonts NO */
|
---|
| 139 | /* #define BuildJapaneseFonts NO */
|
---|
| 140 | /* #define BuildJISX0201Fonts NO */
|
---|
| 141 | /* #define BuildKoreanFonts NO */
|
---|
| 142 | /* #define BuildChineseFonts NO */
|
---|
[f45b1953] | 143 |
|
---|
| 144 | /* DOCUMENTATION SETTINGS **************************************************/
|
---|
| 145 |
|
---|
| 146 | /* These setting are the defaults. *****************************************/
|
---|
| 147 |
|
---|
[071a954] | 148 | /* #define BuildLinuxDocHtml NO */ /* X Docs in Html format */
|
---|
| 149 | /* #define BuildLinuxDocPS NO */ /* PostScript format */
|
---|
| 150 | /* #define BuildAllSpecsDocs NO */ /* Various docs */
|
---|
| 151 | /* #define BuildHtmlManPages NO */
|
---|
[f45b1953] | 152 |
|
---|
| 153 | /* GENERAL SETTINGS: You generally want to leave these alone when
|
---|
| 154 | * building X on an LFS system *********************************************/
|
---|
| 155 |
|
---|
[071a954] | 156 | #define GccWarningOptions -pipe /* Speed up compiles */
|
---|
[f45b1953] | 157 | #define TermcapLibrary -lncurses
|
---|
| 158 | #define XprtServer YES /* Needed by realplayer */
|
---|
| 159 | #define XnestServer YES
|
---|
| 160 | #define XAppLoadDir EtcX11Directory/app-defaults
|
---|
| 161 | #define VarLibDir /var/lib
|
---|
| 162 | #define XFree86Devel NO
|
---|
| 163 | #define FSUseSyslog YES
|
---|
| 164 | #define ThreadedX YES
|
---|
| 165 | #define HasPam NO
|
---|
[071a954] | 166 | #define SystemManDirectory /usr/share/man /* Instead of /usr/man */
|
---|
[f45b1953] | 167 | #define HasLibCrypt YES
|
---|
| 168 | #define InstallXinitConfig YES
|
---|
| 169 | #define InstallXdmConfig YES
|
---|
| 170 | #define ForceNormalLib YES
|
---|
| 171 | #define BuildSpecsDocs NO
|
---|
| 172 |
|
---|
[c78533e] | 173 | /* End XFree86 host.def file */
|
---|
[f45b1953] | 174 | EOF</userinput></screen></para>
|
---|
| 175 |
|
---|
| 176 | <para>Edit the file for your hardware and desires.</para>
|
---|
[19e9cee] | 177 |
|
---|
[f45b1953] | 178 | </sect3>
|
---|
| 179 |
|
---|
| 180 | <sect3>
|
---|
| 181 | <title>Build Commands</title>
|
---|
| 182 | <para>Install XFree86 by running the following commands:</para>
|
---|
| 183 |
|
---|
[7db5869] | 184 |
|
---|
[071a954] | 185 | <para><screen><userinput>WORLDOPTS="" make World 2>&1 | tee xfree-compile.log &&
|
---|
[19e9cee] | 186 | make install &&
|
---|
| 187 | make install.man &&
|
---|
| 188 | ln -sf /usr/X11R6/bin /usr/bin/X11 &&
|
---|
| 189 | ln -sf /usr/X11R6/lib/X11 /usr/lib/X11 &&
|
---|
| 190 | ln -sf /usr/X11R6/include/X11 /usr/include/X11</userinput></screen></para>
|
---|
[f45b1953] | 191 |
|
---|
[3c989e81] | 192 | </sect3>
|
---|
| 193 |
|
---|
| 194 | <sect3>
|
---|
| 195 | <title>Updating Direct Rendering Infrastructure (DRI)</title>
|
---|
| 196 | <para>If you have one of the supported DRI cards and have enabled DRI kernel modules as explained
|
---|
| 197 | above, you now need to update the kernel modules to ensure they are compatible with the
|
---|
[b77b166f] | 198 | current version of XFree86. To do this, perform the following:</para>
|
---|
[3c989e81] | 199 |
|
---|
| 200 | <para><screen><userinput>cd programs/Xserver/hw/xfree86/os-support/linux/drm/kernel &&
|
---|
| 201 | make -f Makefile.linux &&
|
---|
| 202 | mkdir -p /lib/modules/`uname -r`/kernel/drivers/char/drm/ &&
|
---|
| 203 | cp gamma.o radeon.o sis.o r128.o i810.o i830.o mga.o tdfx.o \
|
---|
| 204 | /lib/modules/`uname -r`/kernel/drivers/char/drm/ &&
|
---|
| 205 | depmod -a</userinput></screen>
|
---|
| 206 | </para>
|
---|
[5628618e] | 207 | <warning><para>If you recompile or upgrade your kernel, you will need to re-copy the driver modules
|
---|
[3c989e81] | 208 | to the kernel module library and rerun depmod.</para></warning>
|
---|
[f45b1953] | 209 | </sect3>
|
---|
| 210 | </sect2>
|
---|
| 211 |
|
---|