Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i recently been trying to get drivers/kernel modules working for my webcam, they were compiled and all that but whenever i type something at the bash prompt nothing much happens, it either says wrong command in which case i work it out and put the right one in but even then nothing much happens, it just goes back to the prompt, how do i know if something happens?
EXAMPLE: i downloaded the spcaxx tar file for the logitech fusion webcam and extracted it to the desktop through gnome, all was done, then i go to Konsole and i get this...
and i type INSTALL at the prompt, command not found, however when i type ./INSTALL something happens:
deian@linux-vsvw:~/Desktop/spca5xx-20060501> INSTALL
bash: INSTALL: command not found
deian@linux-vsvw:~/Desktop/spca5xx-20060501> ./INSTALL
./INSTALL: line 1: Module: command not found
./INSTALL: line 2: kernel: command not found
./INSTALL: line 3: be: command not found
./INSTALL: line 4: Kernel: command not found
./INSTALL: line 5: configure: command not found
make: *** No rule to make target `dep'. Stop.
./INSTALL: line 7: go: command not found
./INSTALL: line 8: syntax error near unexpected token `('
./INSTALL: line 8: ` make clean (to be sure)'
deian@linux-vsvw:~/Desktop/spca5xx-20060501>
TOTALLY LOST NOW! I do have the kernel souces and all. Then i try:
./Makefile
bash: ./Makefile: Permission denied
THEN i try Make and i got this:
linux-vsvw:/home/deian/Desktop/spca5xx-20060501 # make
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/deian/Desktop/spca5xx-20060501 CC=cc modules
make[1]: Entering directory `/usr/src/linux-2.6.16.13-4-obj/i386/default'
make -C ../../../linux-2.6.16.13-4 O=../linux-2.6.16.13-4-obj/i386/default modules
CC [M] /home/deian/Desktop/spca5xx-20060501/drivers/usb/spca5xx.o
CC [M] /home/deian/Desktop/spca5xx-20060501/drivers/usb/spcadecoder.o
/home/deian/Desktop/spca5xx-20060501/drivers/usb/spcadecoder.c: In function ‘fun_D’:
/home/deian/Desktop/spca5xx-20060501/drivers/usb/spcadecoder.c:809: warning: value computed is not used
LD [M] /home/deian/Desktop/spca5xx-20060501/spca5xx.o
Building modules, stage 2.
MODPOST
CC /home/deian/Desktop/spca5xx-20060501/spca5xx.mod.o
LD [M] /home/deian/Desktop/spca5xx-20060501/spca5xx.ko
make[1]: Leaving directory `/usr/src/linux-2.6.16.13-4-obj/i386/default'
THEN i write insmod spca5xx.ko and the hard drive churns a bit and i HOPE it works?!?!
ok I'm a total noob here, and I'm pretty suck at compiling source code so I can't go into much detail (in fact I expect I would have some troubles trying to get this setup myself), but hopefully I can point you in the right direction at least.
OK, the file INSTALL is instructions on how to install, err, compile and install, not an installer file:
Code:
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 tool.
You need libsdl installed with the header from your distro or goto http://www.libsdl.org
/*******************************************************************************************/
SPCAVIEW is the only V4L1 Apps for testing your SPCA5XX webcam.
IF THAT WORK WITH SPCAVIEW ALL OTHERS V4L1 APPS SHOULD WORK !!!
DON'T ASK ME ABOUT :
XAWTV GNOMEMEETING MOTION EKIGA AMSN ZONEMINDER CAMORAMA CAMSTREAM
VIDEODOG PALANTIR SPOKE CAMSOURCE MPLAYER VLC FFMPEG MPEG4IP .....
ASK THE AUTHORS. YOU SHOULD GET A BETTER ANSWER !!!
/*******************************************************************************************/
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 -d /dev/video0 -f yuv
if you have a bttv card use change the video0 to video1
that should work
Enjoy !!
I can't explain it any better than that without promoting confusion. What distro are you using? this site that I got the source package from has binary packages (already compiled) for 18 different distros, you might want to try using one of them, as it should be as simple as one command (which command would depend on the distro). Though I believe you will still need the USB and VideoForLinux in your kernel for it to work (they're probably there by default, but I don't know for certain).
also, According to another txt file in the source code tarball, there are now modules supporting some of the hardware this driver supports right in the kernel..
anyway, it's not always as simple as ./configure, make, make install. I usually give up in the end out of frustration when it's not. Hope this info helps.
lurco masonm, good work, how silly of me to think there was a seperate installer when i installed it myself, all is clear now, i do have a bttv tv card too, so i need to make it video1, also i will need spcaview too to text it, ur not as much of a noob as i am obviously. you sussed that out well!
do i need v4l too, i can't see that in the list of loaded kernel devices unless it's loaded inside the kernel itself.
I'm afraid I'm not qualified to comment on your new questions, I have zero experience with video devices beyond my nvidia card.
however as far as determining whether v4l is in your kernel, you could look in /boot for a config text file that corresponds to the kernel you're using. Look for the mulitmedia section(about 2/3 the way down in my 2.6.17.11 config file).
if it looks like this (with all =y), then you've got v4l right in the kernel.
CONFIG_VIDEO_DEV=y
CONFIG_VIDEO_V4L1=y
CONFIG_VIDEO_V4L1_COMPAT=y
CONFIG_VIDEO_V4L2=y
HMMM... that explains all, i don't have anything under Video for Linux! Gutted! Another obstacle to overcome! Thats what happens when u get open source suse, it's very limited due to licencing restrictions... i will search for a post on installing video for linux, failing that i will post
what you want is a kernel-(re)compile guide so you can enable the v4l support. It might also be possible to patch it in, but I don't know anything about that yet, and it's quite possible I'm wrong about the patching bit. You should definitely be able to enable v4l with kernel compile though.
how do i go about doing that, anyone got any good sites or guides or step by step on how to do it, i won't worry too much about fudging it up as the install is quite new, as long as i can get into windows after.
it depends on the distro(I think), google "kernel compile" and the name of your distro, there'll be a bunch of guides I'm sure. I know the debian forum has a kernel compile guide stickied, it's likely some of the other distro-specific forums do too.
this is the guide I used to learn, it should be good for anyone to learn the basics, but there may be required steps in other distros that that guide doesn't cover. edit: btw I completely ignore the first section, "X and su".
There are several threads on the forums about compiling your kernel.
In a nutshell you go to the source directory "usually /usr/src/kernel-version
do a make menuconfig
select your options
save
do a make
do a make modules_install
then you can either do a make install or manually copy the bzimage file to your /boot directory named whatever you want (usually vmlinuz) and edit your bootloader.
Make sure to create a backup copy of your current vmlinuz in /boot and edit your bootloader to allow you to boot using that in case the new kernel doesn't work.
This is all very generic and there are some variances depending on the distro.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.