blob: 40f7e1146670a310a0c666e4adc7596acc4a5429 [file] [log] [blame]
Adam Jackson07d23f92005-07-10 22:42:42 +00001
Brian5c8561a2007-04-25 14:52:29 -06002DRM 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