LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-10-2008, 03:25 AM   #1
bloodyscript
Member
 
Registered: Apr 2006
Distribution: Sabayon linux 5.1
Posts: 182

Rep: Reputation: 15
gspacav1-20071224 webcam driver


ok i have a pd1100 vista webcam seein if its going to work on linux was told that gspacav1-20071224 would work for it but it tells me

configured your kernel, and updated the dependencies:
'make [config|menuconfig|xconfig]; make dep'.

but like when i do that i get this

debian:/home/tobin/programs/gspcav1-20071224# make [config|menuconfig|xconfig]; make dep
bash: menuconfig: command not found
bash: xconfig]: command not found
make: *** No rule to make target `[config'. Stop.
make: *** No rule to make target `dep'. Stop.
debian:/home/tobin/programs/gspcav1-20071224# make [config|menuconfig|xconfig] bash: menuconfig: command not found
bash: xconfig]: command not found
make: *** No rule to make target `[config'. Stop.

do i need to be int he kernal place or is the code wrong and i need specify in it
 
Old 07-10-2008, 11:27 PM   #2
Cotobear
Member
 
Registered: Nov 2007
Location: Canada
Distribution: Slackware 12.0
Posts: 100

Rep: Reputation: 16
So I'm assuming you've typed:

./configure

which goes through a process and leaves you with your beginning statement?

Generally the process to build follows:
./configure
make
#:make install

But perhaps this has some configuration options to go with it. In that case, read the README file or INSTALL file and follow its directions. The reason you're getting errors is because you are supposed to choose one of the options config, menuconfig, xconfig. Something like:
make menuconfig
or make xconfig

And lastly, probably you'll make the dependencies by typing:
make dep.

Followed by a:
#:make install

The readme will clear all this up.
 
Old 07-11-2008, 12:34 AM   #3
bloodyscript
Member
 
Registered: Apr 2006
Distribution: Sabayon linux 5.1
Posts: 182

Original Poster
Rep: Reputation: 15
read the read me file and it confused me im sorry the read me file said exactly what i wrote. this is the part of the read me file

Compiling it

The driver module can be built without modifying your kernel source tree.

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

Make sure, when compiling the driver, you use the same version of compiler as
was used to compile your kernel. Not doing so can create incompatible binaries.

as root
goes to gspcav1 directory and run:
./gspca_build

if all goes right the module is compiled and load in memory
if not, errors messages can be found in kgspca.err You should post this file to the maintainer
or in the sourceforge project bugs report. <http://sourceforge.net/projects/spca50x/>.


it does not have a config file so i cant do ./configure like you normaly would. i need to do the ./gspca_build but when i did that it told me

FATAL you need to install the Kernel Source for your running kernel

soo like am i sapose to do a make for each on like make config make menu config make x config and make dep then do ./gspca_build and then make install the read me dosnt go throught it in detail

now if i have to do all those makes if i got rid of the bracets would that work and get rid of the errors in getting and is that considered the kernel source i need?

Last edited by bloodyscript; 07-11-2008 at 12:47 AM.
 
Old 07-12-2008, 07:25 AM   #4
Cotobear
Member
 
Registered: Nov 2007
Location: Canada
Distribution: Slackware 12.0
Posts: 100

Rep: Reputation: 16
This is much more sensible.

You need to download the kernel src. Depending on your distribution, you will download it from different places. i.e. Ubuntu=synaptics.

The source is installed in /usr/src so you can take a look to see if anything is in there already.

Try compiling again once you've installed the source to this directory.
 
Old 07-12-2008, 03:16 PM   #5
bloodyscript
Member
 
Registered: Apr 2006
Distribution: Sabayon linux 5.1
Posts: 182

Original Poster
Rep: Reputation: 15
ok i installed linux source files and linux headers in synaptic. i did lsusb in command line it showed that the computer reconzises its a creative ltd part but wont work. i tried ./gspca_build and gave me the same error. i went into src folder and linux source was just a bzip2 file so does that mean that synaptic just downloaded it and didnt install? i have debian linux etch 4.0 r3
 
Old 07-13-2008, 12:28 PM   #6
Cotobear
Member
 
Registered: Nov 2007
Location: Canada
Distribution: Slackware 12.0
Posts: 100

Rep: Reputation: 16
Make sure the version of the source that you downloaded is correct and is the same as what you are currently running on your system. If it is, then unzip the bzipped file in /usr/src/ ;

root#: tar xjvf kernel.tar.bz

Then make a symlink to the newly unzipped directory:

root#: ln -s linux-2.6.*.*/ linux
(where *.* is your version numbers-- this is assuming the directory was unzipped as linux-2.6.*.*)

Try the gspca build command again now.
 
Old 07-14-2008, 11:53 AM   #7
bloodyscript
Member
 
Registered: Apr 2006
Distribution: Sabayon linux 5.1
Posts: 182

Original Poster
Rep: Reputation: 15
ok so this is what i did.

tobin@debian:~$ uname -r
2.6.18-6-686
tobin@debian:~$ su
Password:
debian:/home/tobin# ln-s linux-2.6.18-686/ linux
bash: ln-s: command not found
debian:/home/tobin# ln -s linux-2.6.18-686/ linux
debian:/home/tobin# cd /usr/src/gspcav1-20071224
debian:/usr/src/gspcav1-20071224# ./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/
/sbin/depmod -ae

LOAD gspca in memory

PRINT COMPILATION MESSAGES if ERRORS look kgspca.err
make -C /lib/modules/`uname -r`/build SUBDIRS=/usr/src/gspcav1-20071224 CC=cc modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.18-6-686'
CC [M] /usr/src/gspcav1-20071224/gspca_core.o
CC [M] /usr/src/gspcav1-20071224/decoder/gspcadecoder.o
LD [M] /usr/src/gspcav1-20071224/gspca.o
Building modules, stage 2.
MODPOST
CC /usr/src/gspcav1-20071224/gspca.mod.o
LD [M] /usr/src/gspcav1-20071224/gspca.ko
make[1]: Leaving directory `/usr/src/linux-headers-2.6.18-6-686'


i made sure i had the right header files by doing uname -r. and i belived it work or did i miss understand it?

i also did lsusb:
tobin@debian:~$ lsusb
Bus 005 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 001 Device 007: ID 041e:401b Creative Technology, Ltd
Bus 001 Device 004: ID 05fe:0011 Chic Technology Corp. Browser Mouse
Bus 001 Device 001: ID 0000:0000
Bus 002 Device 004: ID 03f0:4f11 Hewlett-Packard
Bus 002 Device 001: ID 0000:0000
Bus 004 Device 003: ID 058f:9360 Alcor Micro Corp.
Bus 004 Device 001: ID 0000:0000


and dmesg:
Linux video capture interface: v2.00
usbcore: registered new driver gspca
/usr/src/gspcav1-20071224/gspca_core.c: gspca driver 01.00.20 registered.

thats wat it showed for my camera i just guessed it was.

so now i did make and make install in gspcav1-20071224 directory
then it tells me to do gspcagui -d /dev/video0 and adjust video0 to my device soo would it be Bus 001 Device 007: ID 041e:401b instead of video0 or would it just be Device007

i was doing more searching trying to get this to work and they said to do a modprobe gspca it gave me nothing as well as modprobe of videodev gave nothing. so then i did lsmod:

debian:/usr/src/gspcav1-20071224# lsmod
Module Size Used by
gspca 646480 0
videodev 21120 1 gspca
v4l1_compat 12036 1 videodev
v4l2_common 20448 1 videodev

witch you can see that gspca is there and videodev and v4l so why didnt anything get back to me on modprobe gspca and modprobe videodev i was root when i did it.

when i use any program it states that it cant find my camera creative vista pd1100

ok i also downloaded camoramo through apt-get i do camroma -d dev/video0 and i get cannont connect device dev/video0

Last edited by bloodyscript; 07-14-2008 at 04:21 PM.
 
Old 07-14-2008, 05:58 PM   #8
bloodyscript
Member
 
Registered: Apr 2006
Distribution: Sabayon linux 5.1
Posts: 182

Original Poster
Rep: Reputation: 15
would the problem be that i need to manualy mount the webcam as dev/video0
 
Old 07-15-2008, 10:01 AM   #9
bloodyscript
Member
 
Registered: Apr 2006
Distribution: Sabayon linux 5.1
Posts: 182

Original Poster
Rep: Reputation: 15
how would i go about manualy mounting the webcam as dev/video0

ok i dont knoe if this worked but i went to http://tldp.org/HOWTO/Webcam-HOWTO/d...tml#DEV-MANUAL

there it said to make a makedev file:
#!/bin/bash
function makedev () {
for dev in 0 1 2 3; do echo "/dev/$1$dev:
char 81 $[ $2 + $dev ]" rm -f /dev/$1$dev
mknod /dev/$1$dev c 81 $[ $2 + $dev ] chmod
666 /dev/$1$dev
done

# symlink for default device
rm -f /dev/$1 ln -s /dev/${1}0 /dev/$1
}

# see http://roadrunner.swansea.uk.linux.org/v4lapi.shtml
echo "*** new device names ***" makedev video
0 makedev radio 64 makedev vtx 192 makedev vbi 224
# "*** old device names (for compatibility only) ***"
#makedev bttv 0 #makedev bttv-fm 64 #makedev bttv-vbi 224

i saved it as makedev then do a chmod u+x makedev is the next command i did then i did ./makedev and it outputted this:

debian:/home/tobin# ./makedev
*** new device names *** makedev video
./makedev: line 15: 0: command not found

does that mean that it didnt work?

im stuck as to how to get my camera operational the gspca website says that my camera will work for it its emmbeded so does that mean that i need the spca light edtion or it shud be in the gspca package? if you need any more info just ask and ill give

Last edited by bloodyscript; 07-15-2008 at 12:57 PM.
 
Old 07-15-2008, 03:06 PM   #10
bloodyscript
Member
 
Registered: Apr 2006
Distribution: Sabayon linux 5.1
Posts: 182

Original Poster
Rep: Reputation: 15
ok so i dont see video0 in my dev folder but when i do

mknod /dev/video0 c 81 0 it says that it allready exsits so then i try camorama -d dev/video0 again and same thing that always pops up, pops up cannot connect device (dev/video0) please check connection


lsmod | grep gspca
gspca 646480 0
videodev 21120 1 gspca
usbcore 112644 7 gspca,usblp,usb_storage,usbhid,ehci_hcd,uhci_hcd

Last edited by bloodyscript; 07-15-2008 at 03:57 PM.
 
Old 07-15-2008, 05:37 PM   #11
bloodyscript
Member
 
Registered: Apr 2006
Distribution: Sabayon linux 5.1
Posts: 182

Original Poster
Rep: Reputation: 15
ok so i look on the gspca website and it seems the spca5xx was the driver i needed so i went there downloaded it uninstalled gspca and installed spca5xx and im still in the same boat when i do spcaview -d dev/video0 and when i do camorama -d dev/video0 it dosnt exsits the site specificaly states that it works for this camera
 
Old 07-15-2008, 06:06 PM   #12
Cotobear
Member
 
Registered: Nov 2007
Location: Canada
Distribution: Slackware 12.0
Posts: 100

Rep: Reputation: 16
Well, it seemed like the module loaded into the kernel properly. It's nothing complicated after that.. spcaview should work without any further command. Have you tried just typing spcaview to see if it works?

You do not have to mount your camera.

You can check to make sure the v4l device node is present. Try restarting your computer (if you haven't already, make sure the modules are loading still), replug the camera into your computer and maybe scan google for reports about bugs with your specific camera.

Everything looks okay though. If the module has loaded (along with v4l) then spcaview should work fine if the camera is compatible with that driver.
 
Old 07-16-2008, 10:48 PM   #13
bloodyscript
Member
 
Registered: Apr 2006
Distribution: Sabayon linux 5.1
Posts: 182

Original Poster
Rep: Reputation: 15
i just have to do modprobe videodev modprobe spca5xx everytime i restart the compiter the load the drivers
 
Old 07-16-2008, 11:37 PM   #14
Cotobear
Member
 
Registered: Nov 2007
Location: Canada
Distribution: Slackware 12.0
Posts: 100

Rep: Reputation: 16
Does the camera work now?

If you want to automate the loading of those modules, there should be a file somewhere in probably /etc/ that allows you to run certain commands at startup.

For slackware, it's /etc/rc.d/rc.local and you would add
/sbin/modprobe videodev
/sbin/modprobe spca5xx

This would load these modules during the normal bootup process.
 
Old 07-18-2008, 03:40 PM   #15
bloodyscript
Member
 
Registered: Apr 2006
Distribution: Sabayon linux 5.1
Posts: 182

Original Poster
Rep: Reputation: 15
oh ok thanx ill try it out tonight and see how it goes
 
  


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 in linux ravi_chobey Linux - Hardware 1 06-10-2008 02:29 AM
Webcam driver, what to use? cwwilson721 Linux - Hardware 1 01-22-2007 07:19 PM
Cannot find driver for webcam simonb1975uk Linux - Hardware 8 01-18-2007 11:14 AM
Webcam Driver chibiace Linux - Hardware 2 08-03-2005 03:40 AM
Webcam driver for Linux n3tw0rk Linux - Hardware 0 10-13-2004 10:43 AM


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