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