>-----Original Message----- >From: Tormod Volden [mailto:lists.tor...@gmail.com] >Sent: 13 January 2009 22:18 >To: abraham.varric...@gdatech.co.in >Cc: dri-devel@lists.sourceforge.net >Subject: Re: unable to build i915.ko > >On Sun, Jan 11, 2009 at 5:31 PM, Abraham ><abraham.varric...@gdatech.co.in> wrote: >> 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 > >At what point do you get the error? The kernel should ship with the >modules you need, no need to compile your own? > >> 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) > >You should use only the -generic folder if you compile something for >your -generic kernel. > >> 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. > >You would need to run a few other make commands first. But again, use >the shipped modules instead. > >Tormod
You are correct, my kernel (2.6.28-4-generic) does ship with the drm & i915 modules it needs, but I want learn how drm & i915 work by modifying the source & studying the results. I get "error inserting 'drm.ko' : -1 Invalid module format" when I run this command, $ sudo insmod drm.ko debug=1 I'll use the -generic folder for any more compilations I do from now on. Can you please tell me what are the other make commands I need to run? Repeating myself, what I run now is, linux-headers-2.6.28-4-generic> make menuconfig linux-headers-2.6.28-4-generic> make drivers/gpu/drm linux-headers-2.6.28-4-generic> make drivers/gpu/drm.ko At this point I get the error message I mentioned in my last mail. Thanks for all your replies, Tormod. You've been a big help. Yours truly, Abru (Abraham Varricatt) ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -- _______________________________________________ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel