README revision 1.1
11.1Smrg 21.1SmrgDRM README file 31.1Smrg 41.1Smrg 51.1SmrgThere are two main parts to this package: the DRM client library/interface 61.1Smrg(libdrm.so) and kernel/hardware-specific device modules (such as i915.ko). 71.1Smrg 81.1Smrg 91.1Smrg 101.1SmrgCompiling 111.1Smrg--------- 121.1Smrg 131.1SmrgBy default, libdrm and the DRM header files will install into /usr/local/. 141.1SmrgIf you want to install this DRM to replace your system copy, say: 151.1Smrg 161.1Smrg ./configure --prefix=/usr --exec-prefix=/ 171.1Smrg 181.1SmrgThen, 191.1Smrg make install 201.1Smrg 211.1Smrg 221.1SmrgTo build the device-specific kernel modules: 231.1Smrg 241.1Smrg cd linux-core/ 251.1Smrg make 261.1Smrg cp *.ko /lib/modules/VERSION/kernel/drivers/char/drm/ 271.1Smrg (where VERSION is your kernel version: uname -f) 281.1Smrg 291.1SmrgOr, 301.1Smrg cd bsd-core/ 311.1Smrg make 321.1Smrg copy the kernel modules to the appropriate place 331.1Smrg 341.1Smrg 351.1Smrg 361.1SmrgTips & Trouble-shooting 371.1Smrg----------------------- 381.1Smrg 391.1Smrg1. You'll need kernel sources. If using Fedora Core 5, for example, you may 401.1Smrg need to install RPMs such as: 411.1Smrg 421.1Smrg kernel-smp-devel-2.6.15-1.2054_FC5.i686.rpm 431.1Smrg kernel-devel-2.6.15-1.2054_FC5.i686.rpm 441.1Smrg etc. 451.1Smrg 461.1Smrg 471.1Smrg2. You may need to make a symlink from /lib/modules/VERSION/build to your 481.1Smrg kernel sources in /usr/src/kernels/VERSION (where version is `uname -r`): 491.1Smrg 501.1Smrg cd /lib/modules/VERSION 511.1Smrg ln -s /usr/src/kernels/VERSION build 521.1Smrg 531.1Smrg 541.1Smrg3. If you've build the kernel modules but they won't load because of an 551.1Smrg error like this: 561.1Smrg 571.1Smrg $ /sbin/modprobe drm 581.1Smrg FATAL: Error inserting drm (/lib/modules/2.6.15-1.2054_FC5smp/kernel/drivers/char/drm/drm.ko): Invalid module format 591.1Smrg 601.1Smrg And 'dmesg|tail' says: 611.1Smrg 621.1Smrg drm: disagrees about version of symbol struct_module 631.1Smrg 641.1Smrg Try recompiling your drm modules without the Module.symvers file. 651.1Smrg That is rm the /usr/src/kernels/2.6.15-1.2054_FC5-smp-i686/Module.symvers 661.1Smrg file (or rename it). Then do a 'make clean' before rebuilding your drm 671.1Smrg modules. 681.1Smrg 691.1Smrg 70