aboutsummaryrefslogtreecommitdiffstats
path: root/README
diff options
context:
space:
mode:
authorBrian2007-04-25 15:52:29 -0500
committerBrian2007-04-25 15:52:29 -0500
commit5c8561aae22138880673503d930af7f1b361d071 (patch)
treecade3abe4e4736e74ab64a0f6eba41bd9730581e /README
parent61477d60c466b4aac395057a285c1d238a83ce1c (diff)
downloadexternal-libdrm-5c8561aae22138880673503d930af7f1b361d071.tar.gz
external-libdrm-5c8561aae22138880673503d930af7f1b361d071.tar.xz
external-libdrm-5c8561aae22138880673503d930af7f1b361d071.zip
More detailed instructions, tips.
Diffstat (limited to 'README')
-rw-r--r--README71
1 files changed, 68 insertions, 3 deletions
diff --git a/README b/README
index b466dd88..40f7e114 100644
--- a/README
+++ b/README
@@ -1,4 +1,69 @@
1By default, this will install into /usr/local. If you want to install this
2libdrm to replace your system copy, say:
3 1
4./configure --prefix=/usr --exec-prefix=/ 2DRM README file
3
4
5There are two main parts to this package: the DRM client library/interface
6(libdrm.so) and kernel/hardware-specific device modules (such as i915.ko).
7
8
9
10Compiling
11---------
12
13By default, libdrm and the DRM header files will install into /usr/local/.
14If you want to install this DRM to replace your system copy, say:
15
16 ./configure --prefix=/usr --exec-prefix=/
17
18Then,
19 make install
20
21
22To build the device-specific kernel modules:
23
24 cd linux-core/
25 make
26 cp *.ko /lib/modules/VERSION/kernel/drivers/char/drm/
27 (where VERSION is your kernel version: uname -f)
28
29Or,
30 cd bsd-core/
31 make
32 copy the kernel modules to the appropriate place
33
34
35
36Tips & Trouble-shooting
37-----------------------
38
391. You'll need kernel sources. If using Fedora Core 5, for example, you may
40 need to install RPMs such as:
41
42 kernel-smp-devel-2.6.15-1.2054_FC5.i686.rpm
43 kernel-devel-2.6.15-1.2054_FC5.i686.rpm
44 etc.
45
46
472. You may need to make a symlink from /lib/modules/VERSION/build to your
48 kernel sources in /usr/src/kernels/VERSION (where version is `uname -r`):
49
50 cd /lib/modules/VERSION
51 ln -s /usr/src/kernels/VERSION build
52
53
543. If you've build the kernel modules but they won't load because of an
55 error like this:
56
57 $ /sbin/modprobe drm
58 FATAL: Error inserting drm (/lib/modules/2.6.15-1.2054_FC5smp/kernel/drivers/char/drm/drm.ko): Invalid module format
59
60 And 'dmesg|tail' says:
61
62 drm: disagrees about version of symbol struct_module
63
64 Try recompiling your drm modules without the Module.symvers file.
65 That is rm the /usr/src/kernels/2.6.15-1.2054_FC5-smp-i686/Module.symvers
66 file (or rename it). Then do a 'make clean' before rebuilding your drm
67 modules.
68
69