On Fri, 2009-01-09 at 17:40 +0100, Tomas Carnecky wrote:
> On 01/09/2009 04:50 PM, Sergio Monteiro Basto wrote:
> > On Fri, 2009-01-09 at 14:04 +0100, Tomas Carnecky wrote:
> >> The kernel modules are now being developed entirely within the
> >> kernel.
> >> Get the kernel source and build the drm module from there.
> >
> > Can I build just the drm modules ?
> > if yes how I do it ?
> 
> configure the kernel as usual (make menuconfig|gconfig) and then:
> $ make drivers/gpu/drm
> 
> But you really should update your kernel and modules at the same time. 
> Especially now that so many things around the kernel modules change.
> 
> tom
> 

I got the latest kernel source from kernel.org . I untarred it and did
the following,

linux-2.6.28> make menuconfig
linux-2.6.28> make drivers/gpu/drm
linux-2.6.28> make drivers/gpu/drm/drm.ko

Now I got the files I needed, drm.ko & i915.ko. Unfortunately when I
tried loading the modules I got an error like,
error inserting 'drm.ko' : -1 Invalid module format

I found out that this was because of version differences between the
kernel I was using and the kernel with which I compiled the modules.

I added the Jaunty repository and installed 2.6.28 into my Ubuntu. Now,
when I run "uname -r" I get,
2.6.28-4-generic

I still got the "Invalid module format" error with this, so I downloaded
the kernel sources from the Ubuntu repository. As a result, I got the
following 2 folders on my system,
/usr/src/linux-headers-2.6.28-4
/usr/src/linux-headers-2.6.28-4-generic

They appear to contain the kernel sources I need. In fact, I could run
"make menuconfig" in both of them. (From what I can tell, the generic
folder contains symbolic links for most of the directories & files to
the other one)

I copied the folders to my home directory and when I run,
make drivers/gpu/drm

I get this reply,
make: Nothing to be done for `drivers/gpu/drm'.
At this point, the .o files are not even created.

Anyway, I then ran,
make drivers/gpu/drm/drm.ko

And here is the output I get,
  CHK     include/linux/version.h
  CHK     include/linux/utsrelease.h
  SYMLINK include/asm -> include/asm-x86
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/basic/docproc
  HOSTCC  scripts/basic/hash
make[1]: *** No rule to make target `kernel/bounds.c', needed by
`kernel/bounds.s'.  Stop.
make: *** [prepare0] Error 2

It's the same error no matter which of the above 2 folders I run the
make from.

This one really has me stumped. I've spent the whole weekend at this and
not being able to compile the Ubuntu source when I can compile the
kernel.org source is VERY frusterating.

Any ideas on what I'm doing wrong ? Or did I miss a step somewhere ?

Yours,
Abru
(Abraham Varricatt)



------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to