LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 02-22-2007, 01:31 PM   #1
Lannix
LQ Newbie
 
Registered: Jan 2007
Location: Leicester, UK
Distribution: Debian Etch, Mac OS X 10.4
Posts: 23

Rep: Reputation: 15
Why can't I compile this kernel module? (kernel: 2.6.8-powerpc Debian sarge)


Hi,
I've been attempting to compile a kernel module (an ov511 video driver) for a while, but make always dies with:

Code:
make -C /lib/modules/2.6.8-powerpc/build M=/home/jon/ov51x-jpeg-0.5.4 modules
make: *** /lib/modules/2.6.8-powerpc/build: No such file or directory.  Stop.
make: *** [all] Error 2
I've installed all the 2.6.8 (and 2.6.8-3) kernel headers and just about everything else on the server that has 'kernel' in the name. But I still can't get this module to compile. Any ideas?

Thanks in advance!
 
Old 02-23-2007, 06:22 AM   #2
Emerson
Senior Member
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~
Posts: 3,177

Rep: Reputation: Disabled
/lib/modules/2.6.8-powerpc/

What kernel version are you running, is the above directory present?
 
Old 02-24-2007, 02:09 AM   #3
Lannix
LQ Newbie
 
Registered: Jan 2007
Location: Leicester, UK
Distribution: Debian Etch, Mac OS X 10.4
Posts: 23

Original Poster
Rep: Reputation: 15
I'm running kernel version 2.6.8 (Debian Stable). /lib/modules/2.6.8-powerpc DOES exist and contains:
kernel, modules.generic_string, modules.parportmap, modules.usbmap, modules.alias, modules.ieee1394map, modules.pcimap, source, modules.ccwmap, modules.inputmap, modules.pnpbiosmap, modules.dep, modules.isapnpmap, modules.symbols.

Last edited by Lannix; 02-24-2007 at 02:10 AM.
 
Old 05-01-2007, 08:52 AM   #4
haxpor
Member
 
Registered: Dec 2006
Distribution: Ubuntu 9.10
Posts: 86

Rep: Reputation: 15
May be you must be root in order to that kernel module.
 
Old 05-01-2007, 08:53 AM   #5
haxpor
Member
 
Registered: Dec 2006
Distribution: Ubuntu 9.10
Posts: 86

Rep: Reputation: 15
[Correct]
in order to compile that kernel module.
[/Correct]
 
Old 05-01-2007, 12:29 PM   #6
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 64
Install the module-assistant package then use m-a prepare to have the kernel headers properly linked for building modules and try it again. You may need to check the path to make sure that the /lib/modules/2.6.8-powerpc is there if not it may be the /lib/modules/2.6.8-3-powerpc that you need to use in your command.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How To Compile A Kernel - The Debian (Sarge) Way LXer Syndicated Linux News 0 12-21-2006 07:54 PM
compile the new kernel 2.6 on Debian Sarge cccc Debian 7 08-01-2005 07:26 AM
debian-sarge-netinst.iso (powerpc) sebyte Debian 9 10-06-2004 01:43 PM
Debian Sarge PowerPC can't find module for harddrive GT3NE1 Linux - Hardware 0 10-04-2004 12:05 PM
can i compile just one kernel module whithout recompiling the whole kernel? edman007 Linux - Software 3 02-17-2004 03:05 PM


All times are GMT -5. The time now is 02:48 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration