LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-17-2006, 08:06 AM   #1
giraf
Member
 
Registered: Dec 2005
Distribution: Debian
Posts: 135

Rep: Reputation: 15
compiling driver and installing module


Hi ,
2.6.12 "testing "

1. What are the steps to compile a driver , is there a debian guide for that ? should I have access to the kernel source and how can I look for it (can't find it - 2.6.12) ?
I'm getting this erorr :
make: *** /lib/modules/2.6.12-1-386/build: No such file or directory. Stop.

2. If I see this driver as a module in debian , does this mean it has already been compiled ? Where can I see it after installation ? should it have exact kernwl version as I have ?

I know its a lot of questions maybe a simple guid can help .
Thanks.
 
Old 05-17-2006, 12:39 PM   #2
verdeboy2k
Member
 
Registered: Jan 2004
Location: /dev/random
Distribution: Gentoo amd64, CrunchBang amd64
Posts: 350

Rep: Reputation: 32
1. Which driver? To compile code that links against kernel code you need the kernel header package for the kernel you have installed.

2. If the driver is listed in lsmod, then it did compile sucessfully and apparently inserted correctly. The driver should be compiled against the exact same kernel as your have.

If you got the driver as a .deb package it should install flawlessly if if matches your kernel version (usually not a problem if you got it through apt-get).

The nVidia driver compiles with just the kernel headers on any system I have ever used. The ati driver does the same.

Generally the driver source should have told you which libraries you need to have installed to compile it. If you meet that requirement and you still get a file not found error it could be an error in the make file or a version mismatch.

But I really need to know waht exactly you are trying to compile to get more detailed.
 
Old 05-18-2006, 06:09 AM   #3
giraf
Member
 
Registered: Dec 2005
Distribution: Debian
Posts: 135

Original Poster
Rep: Reputation: 15
The driver is spca5xx-20060501 , I understand I need this driver for my Logitech USB webcamera.
As I wrote when I'm trying to compile it I see this error :
" make: *** /lib/modules/2.6.12-1-386/build: No such file or directory. Stop."
I probably need step by step instruction for how to compile, where can I find/install my kernel header ?

The module I found in the debian packages is " spca5xx modules for Linux (kernel 2.6.16-1-686)" which isn't match my kernel (uname -r = 2.6.12-1) , so I understand I can't use it ? should I be able to find a module that match my kenel version .

(by the way when I look through SYNAPT ,I do not see that 2.6.12 is installed , I'm totaly confused ...)

Thanks.
 
Old 05-18-2006, 08:34 AM   #4
powadha
Member
 
Registered: Nov 2003
Location: Zwolle
Distribution: Arch
Posts: 651

Rep: Reputation: 31
For installing spca you can use the module-assistant. It offers a hassle free way of installing modules.

Start with installing module-assistant:
Code:
# apt-get install module-assistant
This will install the needed headers aswell. After that it is nothing more then:
Code:
# m-a prepare
# m-a a-i spca5xx
That command will auto install the driver for you. Easy as that!
 
Old 05-19-2006, 12:02 PM   #5
giraf
Member
 
Registered: Dec 2005
Distribution: Debian
Posts: 135

Original Poster
Rep: Reputation: 15
Thanks a lot .
I'll try it .
 
Old 05-19-2006, 03:14 PM   #6
giraf
Member
 
Registered: Dec 2005
Distribution: Debian
Posts: 135

Original Poster
Rep: Reputation: 15
I did that and that's what I got :
" Bad luck, the kernel headers for the target kernel version could ▒
│ not be found ▒
│ and you did not specify other valid kernel headers to use. "
If the running kernel has been shipped with the Debian ▒
│ distribution, please install the package ▒
│ linux-headers-2.6.12-1-386. If your kernel source tree (or ▒
│ headers) is located in some non-usual location, please set the ▒
│ KERNELDIRS environment variable to the path of this directory, or ▒
│ (alternatively) specify the source directory we build for with ▒
│ the --kernel-dir option in module-assistant calls.

I tried to install (apt-get install linux-headers-2.6.12-1-386 ) it told me it didn't find that package .
Where is that kernel header ?

Thanks.
 
Old 05-20-2006, 05:48 AM   #7
powadha
Member
 
Registered: Nov 2003
Location: Zwolle
Distribution: Arch
Posts: 651

Rep: Reputation: 31
Not sure if you're using testing or not but if you are (according to the Package search on debian.org) testing is using kernel 2.6.15 and has the headers available. So if you are on testing I would suggest to upgrade the kernel . In testing that's fairly easy since you can just apt-get it by installing the package linux-image-686 (for pentium) or linux-image-k7 for amd. Reboot selecting the new kernel and rerun the module-assistant commands. This time it should work without problems.
 
Old 05-22-2006, 02:27 PM   #8
giraf
Member
 
Registered: Dec 2005
Distribution: Debian
Posts: 135

Original Poster
Rep: Reputation: 15
Finally I succeeded to install the driver , now it tells me (camorama , gnomeeting etc.) that it can't find video device /dev/video0 .

any idea ?
Thanks
 
Old 06-03-2006, 02:45 PM   #9
heloma
LQ Newbie
 
Registered: Jun 2006
Posts: 4

Rep: Reputation: 0
compiling driver and installing module

Hi,
you just need to create a link in the /dev/video.

ln -s /dev/video video0

and you're done..



omar
 
Old 06-06-2006, 02:23 PM   #10
giraf
Member
 
Registered: Dec 2005
Distribution: Debian
Posts: 135

Original Poster
Rep: Reputation: 15
Hi,
Did it and finally I have the video0 in /dev/video0 , but still Gnomeeting won't see my video device :
"Input device : No Device Found "
Any Ideas ?
Thanks
 
  


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
need help installing driver module Suse 10.0 yoinker Linux - Newbie 2 05-09-2006 12:59 PM
need help installing driver module SuSe 9.1 yoinker Linux - Newbie 2 05-08-2006 11:14 AM
snd-emu2k1 module missing after installing Intel sound driver snd-azx comatosebuddha Linux - Software 15 01-25-2006 12:39 AM
problem compiling kernel for installing alcatel driver fawkes.phoenix Linux - Software 2 07-01-2004 01:46 PM
Installing a device driver as a Module lehumphr Linux - Newbie 1 04-27-2004 11:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration