LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-10-2009, 11:23 PM   #1
JOtis02
LQ Newbie
 
Registered: Feb 2009
Distribution: Fedora 10
Posts: 12

Rep: Reputation: 0
Installing spca5xx driver for webcam


I am trying to install the spca5xx driver for a webcam on my Sony Vaio PCG-FR130 notebook with Fedora Core 10 installed. Kernel Version 2.6.27.21-170.2.56.fc10.i686

Here is what I have done so far.

1) lsusb shows Bus 003 Device 004: ID 093a:2460 Pixart Imaging, Inc. Q-TEC WEBCAM 100

2)I looked in http://mxhaard.free.fr/spca5xx.html to see if spca5xx supports my webcam, it does.

3)I downloaded "for kernel up from 2.6.11 : gspcav1-20071224.tar.gz"
-unzipped directory

4)In the read/install file, it said...

- Before trying to compile the driver, ensure that you've configured your kernel, and updated the dependencies:
'make [config|menuconfig|xconfig]; make dep'.

(I do not know what this means)

-Run as root go to gspcav1 directory and run:
./gspca_build

I tried this, and the output was..

REMOVE the old module if present
ERROR: Module gspca does not exist in /proc/modules

CLEAN gspca source tree
rm -r -f *.o decoder/.gspcadecoder.o.cmd decoder/*.o \
.gspca.o.cmd *.o *.ko *.mod.* .[a-z]* core *.i \
*.symvers *.err

COMPILE gspca Please Wait ....!!

INSTALL gspca in the kernel binary tree
mkdir -p /lib/modules/`uname -r`/kernel/drivers/usb/media/
rm -f /lib/modules/`uname -r`/kernel/drivers/usb/media/spca5xx.ko
rm -f /lib/modules/`uname -r`/kernel/drivers/media/video/gspca.ko
install -c -m 0644 gspca.ko /lib/modules/`uname -r`/kernel/drivers/usb/media/
install: cannot stat `gspca.ko': No such file or directory
make: *** [install] Error 1

LOAD gspca in memory
FATAL: Module gspca not found.

PRINT COMPILATION MESSAGES if ERRORS look kgspca.err
make -C /lib/modules/`uname -r`/build SUBDIRS=/home/JOtis/Download/gspca/gspcadir CC=cc modules
make[1]: Entering directory `/usr/src/kernels/2.6.27.21-170.2.56.fc10.i686'
CC [M] /home/JOtis/Download/gspca/gspcadir/gspca_core.o
/home/JOtis/Download/gspca/gspcadir/gspca_core.c:54:27: error: asm/semaphore.h: No such file or directory
/home/JOtis/Download/gspca/gspcadir/gspca_core.c: In function ‘spca5xx_ioctl’:
/home/JOtis/Download/gspca/gspcadir/gspca_core.c:2463: error: implicit declaration of function ‘video_usercopy’
/home/JOtis/Download/gspca/gspcadir/gspca_core.c: At top level:
/home/JOtis/Download/gspca/gspcadir/gspca_core.c:2609: error: unknown field ‘owner’ specified in initializer
/home/JOtis/Download/gspca/gspcadir/gspca_core.c:2609: warning: initialization from incompatible pointer type
/home/JOtis/Download/gspca/gspcadir/gspca_core.c:2611: error: unknown field ‘type’ specified in initializer
/home/JOtis/Download/gspca/gspcadir/gspca_core.c: In function ‘spca50x_create_sysfs’:
/home/JOtis/Download/gspca/gspcadir/gspca_core.c:2769: error: implicit declaration of function ‘video_device_create_file’
/home/JOtis/Download/gspca/gspcadir/gspca_core.c:2780: error: implicit declaration of function ‘video_device_remove_file’
/home/JOtis/Download/gspca/gspcadir/gspca_core.c: In function ‘spca5xx_probe’:
/home/JOtis/Download/gspca/gspcadir/gspca_core.c:4301: error: incompatible types in assignment
make[2]: *** [/home/JOtis/Download/gspca/gspcadir/gspca_core.o] Error 1
make[1]: *** [_module_/home/JOtis/Download/gspca/gspcadir] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.27.21-170.2.56.fc10.i686'
make: *** [default] Error 2


I do not know what any of these errors mean or why they were caused, can anyone help me install this driver?
 
Old 05-11-2009, 02:48 AM   #2
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 75
Quote:
Originally Posted by JOtis02 View Post
I am trying to install the spca5xx driver for a webcam on my Sony Vaio PCG-FR130 notebook with Fedora Core 10 installed. Kernel Version 2.6.27.21-170.2.56.fc10.i686

Here is what I have done so far.

1) lsusb shows Bus 003 Device 004: ID 093a:2460 Pixart Imaging, Inc. Q-TEC WEBCAM 100

2)I looked in http://mxhaard.free.fr/spca5xx.html to see if spca5xx supports my webcam, it does.
The first question is: are you sure your kernel doesn’t already support this device? The gspca driver is included in vanilla kernels since 2.6.27. Vendor kernels might even include it sooner, but it looks like fedora 10 uses 2.6.27 as their base kernel version.

I suggest you look at the output of
Code:
zgrep GSPCA /proc/config.gz
to make sure that it is included in your vendor build.

If neccessary, just do
Code:
modprobe gspca_pac207
and the driver should be loaded. It will be usable as a normal v4l2 device (with both capture and stream capabilities).
 
Old 05-11-2009, 05:38 PM   #3
JOtis02
LQ Newbie
 
Registered: Feb 2009
Distribution: Fedora 10
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by osor View Post
The first question is: are you sure your kernel doesn’t already support this device? The gspca driver is included in vanilla kernels since 2.6.27. Vendor kernels might even include it sooner, but it looks like fedora 10 uses 2.6.27 as their base kernel version.

I suggest you look at the output of
Code:
zgrep GSPCA /proc/config.gz
to make sure that it is included in your vendor build.

If neccessary, just do
Code:
modprobe gspca_pac207
and the driver should be loaded. It will be usable as a normal v4l2 device (with both capture and stream capabilities).

I am getting the following output from "zgrep GSPCA /proc/config.gz"
gzip: /proc/config.gz: No such file or directory

And it also says modprobe is not a command
 
Old 05-11-2009, 05:46 PM   #4
NeddySeagoon
Gentoo support team
 
Registered: May 2009
Location: 56N 3W
Distribution: Gentoo
Posts: 178

Rep: Reputation: 40
JOtis02,

You need to be root or use sudo to modprobe. The command is in /sbin
zgrep GSPCA /proc/config.gz failed as your kernel does not export its config file in /proc
Thats a kernel build time option, it does not affect how it works.

Try
Code:
modprobe -l | grep spca
to see if you have any modules with spca in their name.
 
Old 05-11-2009, 09:40 PM   #5
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 75
Quote:
Originally Posted by JOtis02 View Post
I am getting the following output from "zgrep GSPCA /proc/config.gz"
gzip: /proc/config.gz: No such file or directory
As NeddySeagoon says, this means that “config.gz” support was not enabled in your vendor kernel (an increasing trend among distributions). If you want, you should be able to find your current config elsewhere (e.g., /boot/config-2.6.27.21-170.2.56.fc10.i686 or something similar).

If my analysis is correct (and you are indeed using a 2.6.27 kernel), you should be able to do
Code:
grep GSPCA /boot/config-2.6.27.21-170.2.56.fc10.i686
Successful output should show the driver built as a module (CONFIG_USB_GSPCA=m) or the driver built into the kernel (CONFIG_USB_GSPCA=y). The first case is most likely.

If the driver is built as a module, it will, as pointed out above, show up in
Code:
/sbin/modprobe -l | grep pac207
If it was already loaded automatically, it will show up in:
Code:
/sbin/modprobe | grep pac207
If not you will have to load the module manually (or add it to your init scripts). As pointed out above, you will most likely need root privileges:
Code:
/sbin/modprobe gspca_pac207
Once the module has been loaded (either manually or automatically), you should see a device node named /dev/video0 or similar. Also you might have dmesg output showing the driver loading:
Code:
dmesg | grep -iC5 video
…
Linux video capture interface: v2.00
pac207: main v2.2.0 registered
…
 
Old 05-18-2009, 09:09 AM   #6
sanjaydebnath
LQ Newbie
 
Registered: May 2008
Posts: 6

Rep: Reputation: 0
I am using fedora FC10 with 2.6.29.3-60.fc10.x86_64 with ID 0c45:613c Microdia PC Camera (SN9C120).
Tried to install to gspca (as root) from http://mxhaard.free.fr/spca50x/Investigation/Gspca/
It came up with error:
# ./gspca_build

REMOVE the old module if present
ERROR: Module gspca does not exist in /proc/modules

CLEAN gspca source tree
rm -r -f *.o decoder/.gspcadecoder.o.cmd decoder/*.o \
.gspca.o.cmd *.o *.ko *.mod.* .[a-z]* core *.i \
*.symvers *.err

COMPILE gspca Please Wait ....!!

INSTALL gspca in the kernel binary tree
mkdir -p /lib/modules/`uname -r`/kernel/drivers/usb/media/
rm -f /lib/modules/`uname -r`/kernel/drivers/usb/media/spca5xx.ko
rm -f /lib/modules/`uname -r`/kernel/drivers/media/video/gspca.ko
install -c -m 0644 gspca.ko /lib/modules/`uname -r`/kernel/drivers/usb/media/
install: cannot stat `gspca.ko': No such file or directory
make: *** [install] Error 1

Followed the thread here and checked:

modprobe -l | grep spca
Shows:
/lib/modules/2.6.29.3-60.fc10.x86_64/kernel/drivers/media/video/gspca/gspca_spca561.ko
/lib/modules/2.6.29.3-60.fc10.x86_64/kernel/drivers/media/video/gspca/gspca_pac7311.ko
/lib/modules/2.6.29.3-60.fc10.x86_64/kernel/drivers/media/video/gspca/gspca_spca501.ko
/lib/modules/2.6.29.3-60.fc10.x86_64/kernel/drivers/media/video/gspca/gspca_t613.ko
/lib/modules/2.6.29.3-60.fc10.x86_64/kernel/drivers/media/video/gspca/gspca_tv8532.ko
/lib/modules/2.6.29.3-60.fc10.x86_64/kernel/drivers/media/video/gspca/gspca_finepix.ko
/lib/modules/2.6.29.3-60.fc10.x86_64/kernel/drivers/media/video/gspca/gspca_mars.ko
/lib/modules/2.6.29.3-60.fc10.x86_64/kernel/drivers/media/video/gspca/gspca_vc032x.ko
/lib/modules/2.6.29.3-60.fc10.x86_64/kernel/drivers/media/video/gspca/gspca_sonixj.ko
/lib/modules/2.6.29.3-60.fc10.x86_64/kernel/drivers/media/video/gspca/gspca_stk014.ko
/lib/modules/2.6.29.3-60.fc10.x86_64/kernel/drivers/media/video/gspca/gspca_sonixb.ko
/lib/modules/2.6.29.3-60.fc10.x86_64/kernel/drivers/media/video/gspca/stv06xx/gspca_stv06xx.ko
/lib/modules/2.6.29.3-60.fc10.x86_64/kernel/drivers/media/video/gspca/gspca_ov519.ko
/lib/modules/2.6.29.3-60.fc10.x86_64/kernel/drivers/media/video/gspca/gspca_conex.ko
/lib/modules/2.6.29.3-60.fc10.x86_64/kernel/drivers/media/video/gspca/gspca_spca506.ko
/lib/modules/2.6.29.3-60.fc10.x86_64/kernel/drivers/media/video/gspca/gspca_pac207.ko
/lib/modules/2.6.29.3-60.fc10.x86_64/kernel/drivers/media/video/gspca/gspca_spca508.ko
/lib/modules/2.6.29.3-60.fc10.x86_64/kernel/drivers/media/video/gspca/gspca_zc3xx.ko
/lib/modules/2.6.29.3-60.fc10.x86_64/kernel/drivers/media/video/gspca/m5602/gspca_m5602.ko
/lib/modules/2.6.29.3-60.fc10.x86_64/kernel/drivers/media/video/gspca/gspca_main.ko
/lib/modules/2.6.29.3-60.fc10.x86_64/kernel/drivers/media/video/gspca/gspca_sunplus.ko
/lib/modules/2.6.29.3-60.fc10.x86_64/kernel/drivers/media/video/gspca/gspca_spca500.ko
/lib/modules/2.6.29.3-60.fc10.x86_64/kernel/drivers/media/video/gspca/gspca_ov534.ko
/lib/modules/2.6.29.3-60.fc10.x86_64/kernel/drivers/media/video/gspca/gspca_spca505.ko
/lib/modules/2.6.29.3-60.fc10.x86_64/kernel/drivers/media/video/gspca/gspca_etoms.ko

grep GSPCA /boot/config-2.6.29.3-60.fc10.x86_64
Shows:
CONFIG_USB_GSPCA=m

/sbin/modprobe -l | grep pac207
shows:
/lib/modules/2.6.29.3-60.fc10.x86_64/kernel/drivers/media/video/gspca/gspca_pac207.ko

dmesg | grep -iC5 video
Shows:
Linux video capture interface: v2.00
sn9c102: V4L2 driver for SN9C1xx PC Camera Controllers v1:1.47pre49
usb 2-2: SN9C120 PC Camera Controller detected (vidid 0x0C45:0x613C)

I am not sure if everything is OK. I cannot use webcam in skype or not even in amsn.

In skype it says "No devices found".
In amsn it says "Cannot display the webcam's image. Make sure your webcam is well plugged and installed. no grabber device available"
Another thing I noticed that when I try to open Cheese it flashes once and nothing happens.

Any help is greatly appreciated!!!
Cheers
 
Old 05-18-2009, 02:40 PM   #7
NeddySeagoon
Gentoo support team
 
Registered: May 2009
Location: 56N 3W
Distribution: Gentoo
Posts: 178

Rep: Reputation: 40
sanjaydebnath,
Code:
Linux video capture interface: v2.00
cound be a problem.
Check skype to see if it wants Video For Linux v1 or v2
 
Old 05-19-2009, 04:20 AM   #8
sanjaydebnath
LQ Newbie
 
Registered: May 2008
Posts: 6

Rep: Reputation: 0
Hi NeddySeagoon

Quote:
Check skype to see if it wants Video For Linux v1 or v2
How do I do that?
 
Old 05-19-2009, 04:21 AM   #9
sanjaydebnath
LQ Newbie
 
Registered: May 2008
Posts: 6

Rep: Reputation: 0
With cheese, I am getting:

cheese

** (cheese:3598): WARNING **: Unable to connect to dbus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

** (cheese:3598): CRITICAL **: dbus_g_connection_register_g_object: assertion `connection != NULL' failed

** (cheese:3598): CRITICAL **: dbus_g_proxy_new_for_name: assertion `connection != NULL' failed

** (cheese:3598): CRITICAL **: dbus_g_proxy_call: assertion `DBUS_IS_G_PROXY (proxy)' failed
 
Old 05-19-2009, 05:01 PM   #10
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 75
Skype is known to have problems with v4l, but it does not look like skype is the problem here. You might have an access or security error preventing you from correctly reading from the video capture device.

To see the permissions, look at the output of “ls -l /dev/video0” where video0 is the name of your capture device.
 
Old 05-19-2009, 10:43 PM   #11
JOtis02
LQ Newbie
 
Registered: Feb 2009
Distribution: Fedora 10
Posts: 12

Original Poster
Rep: Reputation: 0
I found that this command loads the necessary libraries and enables the webcam to work with skype. The brightness settings are slightly off, is there a way to adjust brightness levels of the webcam? Skype does not appear to have a brightness control option.

D_PRELOAD=/usr/lib/liv4/v42convert.so skype
 
  


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
webcam driver spca5xx stefane321 SUSE / openSUSE 6 07-04-2008 04:29 PM
spca5xx webcam driver installed but still no-dice... jaydag71 Linux - Hardware 9 10-08-2007 09:57 PM
Webcam driver Spca5xx-LE , Where !! mickeyboa Fedora 3 07-05-2007 08:01 PM
Spca5xx installed, but no webcam.... ningbojoe Mandriva 8 01-05-2007 01:12 PM
kernel 2.6.8-2-k7 and webcam spca5xx driver crispyleif Linux - Software 3 11-20-2005 07:31 PM


All times are GMT -5. The time now is 04:40 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