|
发表于 2003-1-11 16:45:55
|
显示全部楼层
这段我翻译完了
正在翻译lib和其他的东西
是XML的 你先将就看一下 等我把它都翻译完了 就把完整的方上
大家也看看有没有什么毛病
我加了一段关于DRI的译注 主要是方便大家了解自己显卡对DRI的支持问题
看看是否合适
-----------------------------------------------------------
<sect2>
<title>安装流程</title>
<sect3>
<title>配置内核</title>
<para>如果您使用Intel P6 (Pentium Pro, Pentium II 或者更高) 需要将内核的MTRR (Memory Type Range Registers)支持打开.内核对于Cyrix和AMD的CPU同样支持MTRR,所以此项对于使用以上两种CPU的朋友一样有效.
选项位于"rocessor type and features"菜单. MTRR能使PCI或AGP的显卡在处理图象的时候速度提高2.5倍甚至更多.</para>
<para>在菜单"Character Devices" 中,打开AGP 支持同时选中您主板所使用的芯片(chip).如果不清楚您主板的芯片种类,就需要将所有的chip都选上,当然这样做的代价就是增加了内核的体积. 您通常可以这样查看主板的芯片类型:
<screen><userinput>cat /proc/pci</userinput></screen></para>
<para>在菜单"Character Devices" 中, 根据您显卡对DRI(Direct
Rendering Manager)的支持情况来设置Direct
Rendering Manager支持, 具体请查看DRI的列表. 如果您打开了DRI支持, 确定使用<emphasis>module</emphasis>了方式选中您所对应的显卡.</para>
<para>(译注:
DRI支持下列公司的显卡:</para>
<itemizedlist>
<listitem><para>Matrox公司:
G200 和 G400. 据说也支持G450,但目前没得到证实。</para></listitem>
<listitem><para>Intel公司:
i810、i810-dc100、i810e,i815是否支持目前尚未知。</para></listitem>
<listitem><para>ATI公司:
Rage Fury, Rage Magnum, Xpert2000, Xpert 128, Xpert 99, All-in-Wonder 128 AGP, Radeon SDR, Radeon DDR. PCI接口的显卡只有很少的支持,不支持Rage 128。</para></listitem>
<listitem><para>DRI 不支持 nVidia 显卡 但幸运的是,NVIDIA 为 Linux 提供它们自己的高质量加速 XFree86 可兼容驱动程序,其中包括新式的加速 OpenGL 实现。
此页面提供对Linux上XFree86驱动程序的访问<ulink url="http://www.nvidia.com/view.asp?PAGE=linux"/>)</para></listitem>
</itemizedlist>
<para>编译内核的命令:
<screen><userinput>make dep &&
make bzImage &&
make modules &&
make modules_install</userinput></screen>
</para>
<para>复制<filename>/usr/src/linux/arch/i386/boot/bzImage</filename>和
<filename>/usr/src/linux/System.map</filename>到
<filename>/boot</filename>目录下,适当修改<filename>/etc/lilo.conf</filename>
并运行<userinput>lilo</userinput>.</para>
<note><para>如果您在chroot环境下编译XFree86,确定编译系统和目标系统使用内核版本是一样的.特别是您通过模块(module)方式打开了DRI支持之后.</para></note>
</sect3>
<sect3><title>创建<filename>host.def</filename>文件</title>
<para>虽然XFree86在没有host.def文件的时候也一样可以编译, 但是我们这样做可以更方便的定制系统. 在<filename>xc</filename>下运行下面命令.</para>
<para><screen><userinput>cat > config/cf/host.def << "EOF"
/* Begin XFree86 host.def file */
/* System Related Information. If you read and configure only one
* section then it should be this one. The Intel architecture defaults are
* set for a i686 and higher. Axp is for the Alpha architecture and Ppc is
* for the Power PC. Note that there have been reports that the Ppc
* optimization line causes segmentation faults during build. If that
* happens, try building without the DefaultGcc2PpcOpt line. **************/
#define DefaultGcc2i386Opt -O2 -fomit-frame-pointer -march=i686
#define DefaultGcc2AxpOpt -O2 -mcpu=ev6
#define DefaultGcc2PpcOpt -O2 -mcpu=750
/* The following definitions are normally set properly by XFree86's scripts.
* You can uncomment them if you want to make sure. ************************/
/* #define HasMTRRSupport YES */ /* Enabled in kernel see kernel docs */
/* #define HasMMXSupport NO */ /* Any i586 or above */
/* #define HasKatmaiSupport NO */ /* PIII SSE instuctions */
/* #define Has3DNowSupport NO */ /* AMD instructions */
/* This setting reduces compile time a little by omitting rarely used input
* devices. You can find the complete list in config/cf/xfree86.cf ********/
#define XInputDrivers mouse void
/* VIDEO DRIVERS ***********************************************************/
/* If you are sure you only want the drivers for one or a few video cards,
* you can delete the drivers you do not want. *****************************/
#define XF86CardDrivers mga glint nv tga s3virge rendition \
cirrus vmware tseng chips apm \
fbdev i128 \
ati AgpGartDrivers DevelDrivers ark cyrix \
vesa vga XF86OSCardDrivers
/* FONT SERVER AND LIBRARY SETTINGS ****************************************/
/* These setting should be set by default, but we are making sure. *********/
#define BuildFontServer YES /* Need for GhostScript Print Server */
#define SharedLibFont YES
#define CompressAllFonts YES
#define GzipFontCompression YES
/* These setting ensure we use the proper version of freetype **************/
#define HasFreetype2 YES
#define BuildFreetype2Library NO
#define Freetype2Dir /usr
/* The font path can be redefined in the XF86Config file *******************/
#define DefaultFontPath $(FONTDIR)/misc/,$(FONTDIR)/75dpi/,\
$(FONTDIR)/100dpi/,$(FONTDIR)/Type1,$(FONTDIR)/local,\
$(FONTDIR)/TrueType,$(FONTDIR)/CID,$(FONTDIR)/Speedo
/* INTERNATIONAL FONTS. Change to YES if you need any of them. These are
* the defaults. ***********************************************************/
#define BuildCyrillicFonts NO
#define BuildArabicFonts NO
#define BuildISO8859_6Fonts NO
#define BuildGreekFonts NO
#define BuildISO8859_7Fonts NO
#define BuildHebrewFonts NO
#define BuildISO8859_8Fonts NO
#define BuildKOI8_RFonts NO
#define BuildJapaneseFonts NO
#define BuildJISX0201Fonts NO
#define BuildKoreanFonts NO
#define BuildChineseFonts YES
/* DOCUMENTATION SETTINGS **************************************************/
/* These setting are the defaults. *****************************************/
#define BuildLinuxDocHtml NO /* X Docs in Html format */
#define BuildLinuxDocPS NO /* X Docs in PostScript format */
#define BuildAllSpecsDocs NO /* Various docs */
#define BuildHtmlManPages NO
/* Linux Distribution Information - Not essential that it is totally right.*/
#define LinuxDistribution LFS
/* GENERAL SETTINGS: You generally want to leave these alone when
* building X on an LFS system *********************************************/
#define GccWarningOptions -pipe
#define TermcapLibrary -lncurses
#define XprtServer YES /* Needed by realplayer */
#define XnestServer YES
#define XAppLoadDir EtcX11Directory/app-defaults
#define VarLibDir /var/lib
#define XFree86Devel NO
#define FSUseSyslog YES
#define ThreadedX YES
#define HasZlib YES
#define HasNCurses YES
#define HasPam NO
#define SystemManDirectory /usr/share/man
#define HasLibCrypt YES
#define InstallXinitConfig YES
#define InstallXdmConfig YES
#define ForceNormalLib YES
#define BuildSpecsDocs NO
/* End XFree86 host.def file */
EOF</userinput></screen></para>
<para>根据您的硬件情况修改该文件.</para>
</sect3>
<sect3>
<title>开始编译</title>
<para>使用下面的命令来安装XFree86:</para>
<para><screen><userinput>patch -Np1 -i ../4.2.0-4.2.1.diff &&
make World 2>&1 | tee xfree-compile.log &&
make install &&
make install.man &&
ln -sf /usr/X11R6/bin /usr/bin/X11 &&
ln -sf /usr/X11R6/lib/X11 /usr/lib/X11 &&
ln -sf /usr/X11R6/include/X11 /usr/include/X11</userinput></screen></para>
</sect3>
</sect2> |
|