LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 07-31-2005, 02:22 AM   #1
Mondus
Member
 
Registered: Jul 2005
Location: Denmark
Distribution: Debian
Posts: 31

Rep: Reputation: 15
Installing my webcam under Debian


Hi... I just tried installing my Logitech Clicksmart 310 on Debian.. But I ran into a problem... The driver is on this page:

http://spca50x.sourceforge.net/spca50x.php?page=faq


I use a 2.6.8 kernel......

Here is the INSTALL file:

Module compile outside the kernel tree but need the source of your running
kernel installed and configured.
be sure your kernel include usb and v4l stuff
Kernel 2.4.x
configure your kernel
make dep
go to the spca5xx directories
make clean (to be sure)
make
if all goes right as root :
make install
Kernel 2.6.x
make clean
make
if all goes right as root :
make install
To test please use the command line spcaview you need libsdl installed with the
header from your distro or goto http:www.libsdl.org
plug the cam
as root
lsmod
spca5xx should be load with videodev, if not somethings goes wrong,
verify that your cam is supported if not and you are sure for a Sunplus
chip goto irc.freenode.net channel #spca50x and ask for help
if yes run spcaview with this parameters (maybe read the readme is the
best)
spcaview -f yuv
if you have a bttv card use the -d parameters to change the video
setting
that should work
Enjoy !!


Here's what I did:
I downloaded the experimental driver..
I typed make clean.. and pressed enter
typed make and pressed enter..
typed make install and pressed enter..
After that I tryed pressing lsmod, and pressed enter
and after that tried pressing spcaview -f yuv.. which didn't work.. it said there was no such command... I looked up and saw the thing with the kernelheaders.. .but I'm not sure how to do that... Can someone help?
 
Old 08-02-2005, 11:29 PM   #2
rarsa
Member
 
Registered: Nov 2004
Location: Canada
Distribution: Puppy Linux/ Mint
Posts: 211

Rep: Reputation: 31
spcaview is just one of the tools that you can use to test the WebCam I actually tested with Gnomemeeting.

But before you can test, you have to load the drivers. I guess you skipped reading the readme file.

Here is an excerpt of the readme. I would recommend to go back and read it all
Quote:
Making sure the usb and v4l stuff is there
==========================================
For the module to function correctly, the video for linux subsystem needs to
be loaded. As root, check the output of lsmod for videodev. If its not there,
do: modprobe videodev.
Also, you need to make sure that the usbcore module is loaded (or compiled
into your kernel) and similarly the module appropriate for your usb controller
(uhci or ohci).


Loading it
==========
If you have compiled the module, but haven't done 'make install' you can load
the module in the top build directory by doing as root: insmod spca5xx.o

If you have made install, do as root: modprobe spca5xx

There are several parameter that can be passed in:
etc etc etc...
What this means is that you execute
Code:
lsmod
and see if videodev is in the list shown, if it's not, you add it with
Code:
modprobe videodev
Then you load the spca driver with
Code:
modprobe spca5xx
Now you are ready to test with whatever program that uses the webcam, e.g. gnomemeeting

Last edited by rarsa; 08-02-2005 at 11:35 PM.
 
Old 08-03-2005, 04:05 AM   #3
Mondus
Member
 
Registered: Jul 2005
Location: Denmark
Distribution: Debian
Posts: 31

Original Poster
Rep: Reputation: 15
Hey thanks man... it worked.... But do you know any programs for Linux which support the webcam capabilities in MSN... so that I can use my webcam when speaking to people using MSN.... like for example Gaim (damn irritating it doesn't support webcam)
 
Old 08-03-2005, 09:21 AM   #4
rarsa
Member
 
Registered: Nov 2004
Location: Canada
Distribution: Puppy Linux/ Mint
Posts: 211

Rep: Reputation: 31
There is a fork of Gaim that has the capability of receiving video, It does not sent video yet.

GnomeMeeting work very smoot. It's counterpart in the Windows World is NetMeeting.

You don't need to be in a directory to have a video conference, so, If you are chatting with someone in Gaim and want to start the video conferencing, just ask them to start NetMeeting or GnomeMeeting respectively and you can 'call' them to their IP address.

Just make sure that the appropriate ports are open in the respective firewalls.
 
Old 08-03-2005, 09:57 AM   #5
Mondus
Member
 
Registered: Jul 2005
Location: Denmark
Distribution: Debian
Posts: 31

Original Poster
Rep: Reputation: 15
And which ports would this be?
 
Old 08-03-2005, 12:10 PM   #6
rarsa
Member
 
Registered: Nov 2004
Location: Canada
Distribution: Puppy Linux/ Mint
Posts: 211

Rep: Reputation: 31
Oh, sorry I did not add it because it's very easy to find what ports need to be open by doing a Google search.

http://www.microsoft.com/windows/Net...r4/default.asp
 
Old 08-14-2005, 03:15 PM   #7
Mondus
Member
 
Registered: Jul 2005
Location: Denmark
Distribution: Debian
Posts: 31

Original Poster
Rep: Reputation: 15
Ok.. This is kinda irritating... I just changed kernel from 2.6.8-2-386 to 2.6.11-1-686-smp .. And now my webcam doesnt work of course... But then I follow the install as I did before, and what you said above (lsmod and modprobe stuff)... but then this comes:

Michael:/home/mondus/spca5xx-20050701# modprobe spca5xx
FATAL: Error inserting spca5xx (/lib/modules/2.6.11-1-686-smp/kernel/drivers/usb/media/spca5xx.ko): Invalid module format

Why doesn't it work? What am I doing wrong?
 
Old 08-14-2005, 08:18 PM   #8
rarsa
Member
 
Registered: Nov 2004
Location: Canada
Distribution: Puppy Linux/ Mint
Posts: 211

Rep: Reputation: 31
You need to recompile the spca5xx module every time you change your kernel.
 
Old 08-15-2005, 09:34 PM   #9
rarsa
Member
 
Registered: Nov 2004
Location: Canada
Distribution: Puppy Linux/ Mint
Posts: 211

Rep: Reputation: 31
By The way, I think you would be interested in This thread.
 
Old 08-16-2005, 02:21 AM   #10
Mondus
Member
 
Registered: Jul 2005
Location: Denmark
Distribution: Debian
Posts: 31

Original Poster
Rep: Reputation: 15
Ok.. The recompiling isn't working... I went in to the directory and did the following:

make uninstall (just to be sure)
make clean
make
make install (all of the above steps were done as root)

lsmod
modprobe videodev (because it wasn't there)
modprobe spca5xx

After the last command, the same error came again:

Michael:/home/mondus/spca5xx-20050701# modprobe spca5xx
FATAL: Error inserting spca5xx (/lib/modules/2.6.11-1-686-smp/kernel/drivers/usb/media/spca5xx.ko): Invalid module format




Btw.. thanks for the link.. I can really use that
 
Old 09-05-2005, 10:33 AM   #11
floschi
LQ Newbie
 
Registered: Sep 2005
Posts: 1

Rep: Reputation: 0
Quote:
Originally posted by Raul Suarez
spcaview is just one of the tools that you can use to test the WebCam I actually tested with Gnomemeeting.

But before you can test, you have to load the drivers. I guess you skipped reading the readme file.

Here is an excerpt of the readme. I would recommend to go back and read it all

What this means is that you execute
Code:
lsmod
and see if videodev is in the list shown, if it's not, you add it with
Code:
modprobe videodev
Then you load the spca driver with
Code:
modprobe spca5xx
Now you are ready to test with whatever program that uses the webcam, e.g. gnomemeeting
Sorry, that I'm asking again. But that didn't work in my case.
I have videodev and so on runnin' but it won't startup yet.
I still get error, that spca5xx.ko is not a valid format.
What could be wrong?

Here an excerpt of compiling it:

Quote:
Building SPCA5XX driver for 2.5/2.6 kernel.
Remember: you must have read/write access to your kernel source tree.
make -C /lib/modules/`uname -r`/build SUBDIRS=/home/fosses/spca5xx/modules/spca5xx modules
make[1]: Gehe in Verzeichnis »/usr/src/kernel-headers-2.6.11-kanotix-11«
CC [M] /home/fosses/spca5xx/modules/spca5xx/drivers/usb/spca5xx.o
In file included from /home/fosses/spca5xx/modules/spca5xx/drivers/usb/spca5xx.c:763:
/home/fosses/spca5xx/modules/spca5xx/drivers/usb/mr97311.h: In function 'pcam_start':
/home/fosses/spca5xx/modules/spca5xx/drivers/usb/mr97311.h:391: warning: ISO C90 forbids mixed declarations and code
/home/fosses/spca5xx/modules/spca5xx/drivers/usb/spca5xx.c: In function 'spca50x_configure':
/home/fosses/spca5xx/modules/spca5xx/drivers/usb/spca5xx.c:5908: warning: 'defaultpipe' may be used uninitialized in this function
/home/fosses/spca5xx/modules/spca5xx/drivers/usb/spca5xx.c:5907: warning: 'defaultrows' may be used uninitialized in this function
/home/fosses/spca5xx/modules/spca5xx/drivers/usb/spca5xx.c:5906: warning: 'defaultcols' may be used uninitialized in this function
CC [M] /home/fosses/spca5xx/modules/spca5xx/drivers/usb/spcadecoder.o
LD [M] /home/fosses/spca5xx/modules/spca5xx/spca5xx.o
Building modules, stage 2.
MODPOST
CC /home/fosses/spca5xx/modules/spca5xx/spca5xx.mod.o
LD [M] /home/fosses/spca5xx/modules/spca5xx/spca5xx.ko
Any ideas? please HELP!!
 
Old 09-05-2005, 10:20 PM   #12
rarsa
Member
 
Registered: Nov 2004
Location: Canada
Distribution: Puppy Linux/ Mint
Posts: 211

Rep: Reputation: 31
Have you installed the sources for your new kernel?

It seems that you are still compiling with the old kernel sources.
 
  


Reply



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
installing webcam server 0.50 bytesurfer Linux - Hardware 4 10-02-2005 10:08 AM
pwc driver for webcam won't compile on debian silex_88 Linux - Software 2 08-30-2005 02:07 PM
iBot FireWire webcam on Debian Unstable (ppc iBook) help llamakc Debian 2 02-28-2005 03:26 PM
Webcam - 3com home connect lite under Debian Lenale Linux - Hardware 0 01-20-2005 05:44 PM
Debian thinks my webcam is a soundcard doctorwebbox Linux - Hardware 1 12-08-2004 07:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:45 PM.

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
Open Source Consulting | Domain Registration