From: <jrf...@us...> - 2004-03-01 12:15:53
|
diff -urN /tmp/wiki.3c3c8C/wiki/text/ATIMach64 /home/groups/d/dr/dri/wiki/text/ATIMach64 --- /tmp/wiki.3c3c8C/wiki/text/ATIMach64 2004-02-13 01:33:07.000000000 -0800 +++ /home/groups/d/dr/dri/wiki/text/ATIMach64 2004-02-29 22:22:09.000000000 -0800 @@ -11,7 +11,11 @@ === How do I build the mach64 branch? === -Follow the steps described in the LeifDelgass' [http://www.retinalburn.net/linux/dri_HOWTO.html Compiling the mach64 branch of DRI mini-HOWTO] . +Follow the instructions on the Building page. When checking out the DRI tree be sure to specify the correct branch: + +{{{ cvs -z3 -d:pserver:ano...@dr...:/cvs/dri co -r mach64-0-0-7-branch xc }}} + +Build instructions for older branches are in LeifDelgass' [http://www.retinalburn.net/linux/dri_HOWTO.html Compiling the mach64 branch of DRI mini-HOWTO] . === What is it necessary to do for the branch is merged in the trunk? === diff -urN /tmp/wiki.3c3c8C/wiki/text/Building /home/groups/d/dr/dri/wiki/text/Building --- /tmp/wiki.3c3c8C/wiki/text/Building 2004-02-26 06:45:36.000000000 -0800 +++ /home/groups/d/dr/dri/wiki/text/Building 2004-02-29 22:33:17.000000000 -0800 @@ -3,52 +3,68 @@ This is a basic guide to building DRI from source. The 3D drivers now live in the Mesa tree so you will have to check out both the DRI cvs tree (for 2D driver, X bits, and DRM) and the Mesa cvs tree (for 3D driver and GL stuff). === Howto === -Getting the CVS trees +==== Getting the CVS trees ==== Download the CVS trees for Mesa and the DRI. There is no password for anonymous CVS so just hit enter when prompted. -==== Getting DRI ==== +===== Getting DRI ===== For instructions on downloading the DRI cvs tree see the Download page. +{{{ + cvs -z3 -d:pserver:ano...@dr...:/cvs/dri login cvs -z3 -d:pserver:ano...@dr...:/cvs/dri co xc -==== Getting Mesa ==== +}}} + +===== Getting Mesa ===== + +{{{ cvs -z3 -d:pserver:ano...@dr...:/cvs/mesa login cvs -z3 -d:pserver:ano...@dr...:/cvs/mesa co Mesa +}}} + ==== Editing host.def ==== Edit the host.def file in xc/xc/config/cf in the DRI cvs tree. Edit this line to point to the mesa cvs tree you downloaded: +{{{ #define MesaSrcDir /path/to/Mesa +}}} NOTE: If you are building cvs for savage, make sure to add savage to the 'XF86CardDrivers' and 'DriDrivers' defines. e.g., +{{{ #define XF86CardDrivers tdfx i810 mga ati glint vga sis savage #define DriDrivers r200 mga i810 r128 radeon gamma i830 sis tdfx ffb savage +}}} ==== Compiling ==== To build the whole thing, change to the xc/xc/ directory in the DRI cvs tree and run: +{{{ make World >& world.log & +}}} -This will output all of the compiler information into the world.log file. Keeping a copy of this file can be useful later on if you hit problems. If you want to watch the compile "as it happens" simply enter the following command. tail -f world.log +This will output all of the compiler information into the world.log file. Keeping a copy of this file can be useful later on if you hit problems. If you want to watch the compile "as it happens" simply give the command {{{tail -f world.log}}} . If there were no errors, next run: +{{{ make install +}}} to install over your existing XFree86 installation. @@ -56,21 +72,25 @@ Change to the xc/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel directory in the DRI cvs tree. -to compile the DRM run: +To compile the DRM run: +{{{ make -f Makefile.linux +}}} or: +{{{ make -f Makefile.linux LINUXDIR=/path/to/kernel/source +}}} if the previous command could not find your kernel source tree or if you want to build against another kernel. -copy the resulting *.ko (2.6.x kernel) or *.o (2.4.x kernel) modules into the kernel module tree, usually: +Copy the resulting *.ko (2.6.x kernel) or *.o (2.4.x kernel) modules into the kernel module tree, usually: -/lib/modules/`kernel version`/kernel/drivers/char/drm +/lib/modules/$KERNEL/kernel/drivers/char/drm -where 'kernel version' is the kernel you built against, then run 'depmod -a'. +where $KERNEL is the kernel you built against. Finally, run 'depmod -a', or 'depmod -a $KERNEL' if you built against a different kernel. Make sure you have run at least 'make dep' on your kernel tree or the build will fail. @@ -78,7 +98,7 @@ Make sure your XF86Config is set up right. -On Linux 2.4.x make sure the agpgart kernel module is loaded before you start X. On Linux 2.6.x make sure both agpgart and the agp chipset specific driver for your motherboard (via-agp, intel-agp, et al.) are loaded before you start X. +On Linux 2.4.x make sure the agpgart kernel module is loaded before you start X. On Linux 2.6.x make sure both agpgart and the agp chipset specific driver for your motherboard (via-agp, intel-agp, et al.) are loaded before you start X. === References === |