Hello guys,

I promised (about 1 or 2 months ago) that I would post up a small 
tutorial on how I got DRM complied and running on Ubuntu. I originally 
meant to post a detailed explanation on how to do it, but real-life got 
in the way and in the interests of keeping my word, I'm posting this.

Before I start, I want to thank Tormod, who had been a BIG help for me. 
(He's the one who reminded me to post this).

My objective with these notes, is to explain how to download the linux 
sources from the Canonical servers, show at what stage you can tinker 
with them, and then compile drm using them. While this might not help 
you to begin posting patches to the lists, it should help jump-start, on 
understanding how drm works.


I'm doing all my work from my home directory. You will first need to 
install the kernel-packages from Canonical, as well the relevent 
compilers and other such dependencies.

Ok, after that get the linux sources with,

$ apt-get source linux-image-$(uname -r)

Now, create a working directory,

$  mkdir mytree

Let's copy over our existing configuration file,

$ cp /boot/config-$(uname -r) mytree/.config

As well as this,

$ cp /usr/src/linux-headers-$(uname -r)/Module.symvers mytree/

Move to the linux source directory you just downloaded (destination can 
change depending on your ubuntu)

$ cd linux-source-$(uname -r)

Now for compiling do this,

$ make O=../mytree prepare
$ make O=../mytree oldconfig
$ make O=../mytree outputmakefile
$ make O=../mytree archprepare
$ make O=../mytree modules SUBDIRS=scripts
$ make O=../mytree modules SUBDIRS=drivers/char/drm

By the end of that, you should have the required *.ko files in the 
/mytree folder. Just use insmod to load them up and begin 
experimenting!! (I recommend doing this in conjugation with libdrm, but 
thats your call)

Now I originally figured out all this from Tormod's post here,

http://ubuntuforums.org/showthread.php?t=279628

All I did was just arrange the instructions in the right order. ;)

Now, I really, really wish I could have done a better job with this 
post, but I'm just too busy with other things these days. (I'm still 
able to follow up on the mailing list, though!)

Yours,
Abraham


------------------------------------------------------------------------------
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to