Hi list,
I found the MiniGLX tutorial at http://www.mesa3d.org/fbdev-dri.html
Some of the steps were not correct any more and some information did no
longer fit:
- changed CVS references to git
- renamed XFree86 to X.org (not sure if necessary/correct, but X.org is
the de facto X11 implementation now-a-days)
- added info that libpciaccess is needed
I currently won't stop my X11 server so the tutorial has been reviewed
up the the section starting with
"If X.org is currently running, exit/stop the X server so you're
working from the console."
Please review my modifications.
Thanks,
Christoph Brill
--- fbdev-dri.html.orig 2007-05-08 22:29:07.000000000 +0200
+++ fbdev-dri.html 2007-05-08 22:46:21.000000000 +0200
@@ -14,19 +14,19 @@
<p>
The fbdev/DRI sub-project within Mesa brings hardware accelerated OpenGL
rendering to the Linux fbdev environment.
-The X Window System / XFree86 is not needed.
+The X Window System / X.org is not needed.
</p>
<p>
-Basically, the <a href="http://dri.sf.net/">DRI</a> drivers for hardware
-accelerated OpenGL for XFree86 have been ported to fbdev so that X is
+Basically, the <a href="http://dri.freedesktop.org/">DRI</a> drivers for hardware
+accelerated OpenGL for X.org have been ported to fbdev so that X is
not needed.
This means fbdev/DRI works in full-screen mode only.
</p>
<p>
DRI driver writers may find this simplified environment easier to work in,
-compared to the full XFree86/DRI environment.
+compared to the full X.org/DRI environment.
</p>
<p>
@@ -42,19 +42,19 @@
<p>
The Mesa-based DRI drivers used to be hosted in the DRI tree (which is
-basically a copy of the XFree86 tree).
-Since the Mesa-based DRI drivers are moreso "Mesa drivers" than "XFree86
+basically a copy of the X.org tree).
+Since the Mesa-based DRI drivers are moreso "Mesa drivers" than "X.org
drivers" and the fact that with some work, the drivers could be used
without X, the driver code was moved into the Mesa tree.
</p>
<p>
So now the DRI drivers can be compiled for two different environments:
-fbdev and XFree86.
-To build the drivers for XFree86, one has to download/build the DRI
+fbdev and X.org.
+To build the drivers for X.org, one has to download/build the DRI
source tree.
-Eventually, we'd like to be able to build the drivers for XFree86 outside
-of the XFree86/DRI trees.
+Eventually, we'd like to be able to build the drivers for X.org outside
+of the X.org/DRI trees.
</p>
@@ -66,24 +66,18 @@
<p>
First, you'll need the DRM (Direct Rendering Manager) kernel module sources.
-They're found in a module of the DRI CVS tree.
+They're found in a git repository of Mesa git.
To obtain the code do the following:
</p>
<pre>
- cvs -d:pserver:[EMAIL PROTECTED]:/cvs/dri login
-</pre>
-<p>
-Press Enter/Return when prompted for a password. Then,
-</p>
-<pre>
- cvs -d:pserver:[EMAIL PROTECTED]:/cvs/dri co drm
+ git clone git://anongit.freedesktop.org/git/mesa/drm
</pre>
<p>
Compile the DRM kernel modules:
</p>
<pre>
- cd drm/linux
+ cd drm/linux-core
make
</pre>
@@ -117,16 +111,45 @@
<h2>2.2 Compiling the Mesa drivers</h2>
<p>
-Begin by editing the <code>Mesa/configs/default</code> file to set
+You'll now need Mesa sources as well. They are also available via git.
+To obtain the code do the following:
+</p>
+<pre>
+ git clone git://anongit.freedesktop.org/git/mesa/mesa
+</pre>
+
+<p>
+Begin by editing the <code>mesa/configs/default</code> file to set
the <code>DRM_SOURCE_PATH</code> variable.
Set it to the location where the DRM module sources are located.
For example, if your current directory in step 2.1 was <code>/home/fred/</code>
-set DRM_SOURCE_PATH to <code>/home/fred/drm</code>
+set DRM_SOURCE_PATH to <code>/home/fred/drm</code>. If the sources are both
+located in <code>/home/fred/</code>, one named <code>/home/fred/drm</code> and
+one name <code>/home/fred/mese</code>, you don't need to touch anything.
</p>
<p>
-Next, assuming you're starting with a fresh Mesa CVS checkout,
-do the following:
+You will also need libpciaccess to build the sources.
+To obtain the code do the following:
+</p>
+<pre>
+ git clone git://anongit.freedesktop.org/git/xorg/lib/libpciaccess
+</pre>
+
+<p>
+Now you need to build and install libpciaccess by doing
+</p>
+<pre>
+ cd libpciaccess
+ sh autogen.sh
+ ./configure --prefix=/usr
+ make
+ su -c "make install"
+</pre>
+
+<p>
+Next, assuming you're starting with a fresh Mesa git checkout, switch back
+to the Mesa source dir and do the following:
</p>
<pre>
make linux-solo
@@ -165,7 +188,7 @@
<h1>3. Using fbdev/DRI</h1>
<p>
-If XFree86 is currently running, exit/stop the X server so you're
+If X.org is currently running, exit/stop the X server so you're
working from the console.
</p>
@@ -245,7 +268,7 @@
start the sample_server program in the background:
</p>
<pre>
- ./sample_server &
+ ./sample_server &
</pre>
<p>
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev