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.
Hi friends,
I have some doubts in video device driver. I have an Creative webcam with me. After inserting the webcam i have seen the following modules installed
Code:
Module Size Used by
gspca_zc3xx 55936 0
gspca_main 29312 1 gspca_zc3xx
videodev 41344 1 gspca_main
v4l1_compat 22404 1 videodev
I dont know which module is exactly for my webcam? i am seeing 5 extra module installed after inserting my webcam. I am confused. Can anyone help me?
Usually they're all required to support your camera. gspca_main is probably the main driver, but this may support many models, so gspca_zc3xx is probably a plug-in to gspca_main that supports your camera specifically.
A framework called v4l(video4linux) is used by most applications to support video capture devices.
videodev & v4l1_compat are used by Linux to create the v4l video device so that it appears as a webcam.
Here i am facing a new problem. I tried to compile and install the gspca_main and gspca_zc3xx modules separately. I compiled them successfully. but i am getting error when inserting that modules
Code:
root@sharief-desktop:/home/sharief/Desktop/video/gspca# insmod gspca_zc3xx.ko
insmod: error inserting 'gspca_zc3xx.ko': -1 Unknown symbol in module
root@sharief-desktop:/home/sharief/Desktop/video/gspca# insmod gspca_main.ko
insmod: error inserting 'gspca_main.ko': -1 Unknown symbol in module
I think this both modules what some other modules to get insert in to kernel...But i am sure about that modules. Can anyone help me?
Hmm.. Unknown symbol in module usually means it's not compiled against the right kernel version. Can u double check that you installed kernel source & headers are matching your running kernel?
Anyway, can should use the modprobe command to insert the module instead of insmod.
I cam to know that i need the other two modules to be installed to work this module..ie "videodev" and "v4l1-compat"...so i copiled that modules too...but i am getting the following error..
I compiled all the required modules...ie gspca_main, gspca_zc3xx, v4l1-compat. But i am not getting this "videodev" module..I dont know why...
sharief@sharief-desktop:~/Desktop/video/gspca$ make
make -C /lib/modules/2.6.30/build M=/home/sharief/Desktop/video/gspca modules
make[1]: Entering directory `/home/sharief/Desktop/kernelroot/linux-2.6.30'
CC [M] /home/sharief/Desktop/video/gspca/gspca.o
CC [M] /home/sharief/Desktop/video/gspca/zc3xx.o
LD [M] /home/sharief/Desktop/video/gspca/gspca_main.o
LD [M] /home/sharief/Desktop/video/gspca/gspca_zc3xx.o
CC [M] /home/sharief/Desktop/video/gspca/v4l1-compat.o
CC [M] /home/sharief/Desktop/video/gspca/v4l2-dev.o
CC [M] /home/sharief/Desktop/video/gspca/v4l2-ioctl.o
CC [M] /home/sharief/Desktop/video/gspca/v4l2-device.o
Building modules, stage 2.
MODPOST 6 modules
CC /home/sharief/Desktop/video/gspca/gspca_main.mod.o
LD [M] /home/sharief/Desktop/video/gspca/gspca_main.ko
CC /home/sharief/Desktop/video/gspca/gspca_zc3xx.mod.o
LD [M] /home/sharief/Desktop/video/gspca/gspca_zc3xx.ko
CC /home/sharief/Desktop/video/gspca/v4l1-compat.mod.o
LD [M] /home/sharief/Desktop/video/gspca/v4l1-compat.ko
CC /home/sharief/Desktop/video/gspca/v4l2-dev.mod.o
LD [M] /home/sharief/Desktop/video/gspca/v4l2-dev.ko
CC /home/sharief/Desktop/video/gspca/v4l2-device.mod.o
LD [M] /home/sharief/Desktop/video/gspca/v4l2-device.ko
CC /home/sharief/Desktop/video/gspca/v4l2-ioctl.mod.o
LD [M] /home/sharief/Desktop/video/gspca/v4l2-ioctl.ko
I dont know why i am getting like this...?Please help me
I am not getting the exact videodev module....please help me
Insmod is working fine. But modprobe is not working properly..I know modprobe will install all necessary dependent modules. But in this case all dependent modules are already installed...But i dont know why its happening here..Please help me..see below
You are loading the module directly from that directory. To use modprobe & to ensure correct operation, you need to copy the .ko files to the appropriate location for kernel modules.
The makefile should have done if for you. Did you run 'make install'?
Anyway, the location should roughly be here:
/lib/modules/$(uname -r)/kernel/drivers/media/video/gspca
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.