Home | History | Annotate | Line # | Download | only in dist
README revision 1.1
      1 
      2 DRM README file
      3 
      4 
      5 There 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 
     10 Compiling
     11 ---------
     12 
     13 By default, libdrm and the DRM header files will install into /usr/local/.
     14 If you want to install this DRM to replace your system copy, say:
     15 
     16 	./configure --prefix=/usr --exec-prefix=/
     17 
     18 Then,
     19 	make install
     20 
     21 
     22 To 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 
     29 Or,
     30 	cd bsd-core/
     31 	make
     32 	copy the kernel modules to the appropriate place
     33 
     34 
     35 
     36 Tips & Trouble-shooting
     37 -----------------------
     38 
     39 1. 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 
     47 2. 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 
     54 3. 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 
     70