Le bazar de Stemp
Le bazar de Stemp
Karmic: get the latest drivers for gspca, uvc, usbvideo and other
Publié par le 3 novembre 2009

Hercules Classic Link 06f8:3009
La version Française se trouve ici.
For gspsca drivers only, with the latest versions of Ubuntu, you may try this post : Gspca Snapshots.
I already mentioned the gspca driver and libv4l in the post [fr] Intrepid, les Webcams et les drivers Gspca. Unfortunately the topic is still relevant, the drivers being developed much faster than their integration into the distros kernel.
It’s time to update informations and expand them to all the drivers from linuxtv.org (V4L-DVB). For a list of the webcams please check the wiki (uvc, gspca, quickcam, Microdia, linux-uvc, etc …).
The procedure does not really change.
Installing needed packages:
sudo aptitude install mercurial build-essential linux-headers libncurses5-dev
Retrieving sources (from Douglas Schilling Landgraf V4L/DVB backports repository):
hg clone http://linuxtv.org/hg/v4l-dvb/
Copy the configuration file:
cd v4l-dvb
sudo cp /boot/config-`uname -r` v4l/.config
Note: currently FireDTV drivers do not compile easily (you need all the kernel sources) and are rarely used, we will disable them in the configuration.
Launch configuration:
sudo make menuconfig
Disable FireDTV support (Multimedia Support -> DVB/ATSC adapters -> set the option blank on FireDTV and FloppyDTV):



Exit, Exit.
Now let’s take care of usb webcams (Multimedia Support -> Video Capture adapters -> V4L USB devices)
Activate new modules drivers (press M on those marked NEW), in gspca for example:





Once the new drivers are enabled (M for module instead of a space), we can leave. Exit, Exit, etc… and save:

Launch the compilation:
make
sudo make install
If everything ok go to the next step, because the drivers also require the latest versions of libv4l.
For karmic it’s easy:
sudo add-apt-repository ppa:libv4l
Get the latest version if necessary:
sudo aptitude update
sudo aptitude full-upgrade
Restart and enjoy your new drivers.
Publicités

Thanks! That worked for me and I’m a total linux newbie.
You’re welcome 😉
Pingback: [Ubuntu] Webcam Driver help needed please
Thanks a ton for this wonderfully precise instruction! I did it with a little help from this website (I’m not too deeply into kernels and stuff under Linux):
http://forum.ubuntu-fr.org/viewtopic.php?id=376762&p=2
I’ve only ever read things like « … and then compile »; now that was a really uplifting experience….
We sell Clevo notebooks (German brand « Nexoc ») with Kubuntu preinstalled.
I’ve tried Kubuntu 10.04 Alpha 2. The webcam still did not work « out of the box ».
Now I’m wondering: what will happen after upgrading a notebook with current Kubuntu 9.04 (kernel 2.6.31-19) to Kubuntu 10.04 (kernel 2.6.32-10 in Alpha 2)?
Will the new kernel erase the changes done to 2.6.31-19, leaving the webcam malfunctioning?
Can I protect the new modules in some way?
There is (as far as I know), no way to keep the modules because they are compiled against a kernel version. They probably won’t work with another one.
Just let’s hope the next kernel version in Lucid will include a newer version of the V4L-DVB project.
Hi, I’ve compiled the driver on Ubuntu 10.04 (2.6.32-42) and it works great.
Can I use your instructions on my blog (with your credits and link)
http://ubuntulucidtweaks.blogspot.com/?
Thank you
Sure you can use these instructions, There should be a Creative Commons License somewhere but I can’t find it anymore 🙂
Thank you, here is the link, if you want to chechk it
http://ubuntulucidtweaks.blogspot.sk/2012/08/genius-i300-and-others-webcam-on-ubuntu.html
Best regards, Miskopo
Folder /home/USERNAME/gspca
Oh, another question on the above mentioned folder.
Is it a temporary folder that I can delete after carrying out the process of installing the new modules?
It’s in my home folder, so I would assume it’s only a temporary needed folder.
Thanks for the help!
Yes, it’s a temporary folder. You can safely remove it.
Pingback: Karmic : récupérer les derniers drivers pour gspca, uvc, usbvideo et autres « Le bazar de Stemp
Thank you. Your instructions allowed me to install latest gspca module on Ubuntu 9.10 (2.6.31-20-server). This was supposed to enabled support for my Genius iLook 300 camara (with pac7302). Unfortunately, although module is loaded automatically and /dev/video0 is present, I can’t make it work yet.
However, I feel more close to the solution now. Thanks for your help
Can’t make it work ? Is it the 093a:2628 Pixart Imaging, Inc. version ? (check lsusb to see).
Yes lsusb shows that my cam is recognized
Bus 002 Device 002: ID 093a:2628 Pixart Imaging, Inc
/dev/video0 is present.
lsmod shows:
gspca_pac7302 12352 0
gspca_main 29088 1 gspca_pac7302
videodev 45120 1 gspca_main
However,nor Camorama nor Skype can use my cam (message is just « unable to capture image »)
Camorama doesn’t use v4l2, so you have to test it with :
LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so camorama
Thanks bro!
work it with my webcam 093a:2628 in Ubuntu 10.04
Gracias bro!
Funcionó con mi webcam 093a:2628 en Ubuntu 10.04
🙂 Saludos desde México!
Oh, by the way, support for the following webcam:
ID 5986:0241 Acer, Inc (Bison Electronics)
seems to be in kernel 2.6.33.
I used the routine described above to make it work and hoped for the next Kubuntu release for out-of-the-box support.
But the webcam did not work for me in Kubuntu 10.04 (kernel 2.6.32). When I installed the mainline kernel 2.6.33 it worked « out of the box ».
So if you have the same webcam, or have a similar model, you might try to install the latestet mainline kernel with (K)Ubuntu 10.04.
You can always deinstall it if it creates other problems. The « old » kernels are kept.
I just saw that a new stable version came out yesterday: « v2.6.33.4-lucid ».
See:
http://kernel.ubuntu.com/~kernel-ppa/mainline/
I think this the third time I’ve had to revisit this process – great to know it works, really well 🙂 but I’m beginning to wish I could just throw away my camera X-|
Anyway… the facts mamm, only the facts … 🙂
10.4 lucid
lsusb > Bus 001 Device 006: ID 0ac8:0302 Z-Star Microelectronics Corp. ZC0302 Webcam (aka Pleomax PWC-3800)
Skype (Beta0 v 2.1.0.81)
HP TC1100 (runnin’ fine :-0 )
so how do I pin it down so the compiling focuses on the ‘module’ I require for MY web cam – selfish I know, but there are just too many I don’t need …
CC [M] /home/nenglish/v4l-dvb/v4l/budget-core.o
CC [M] /home/nenglish/v4l-dvb/v4l/budget.o
CC [M] /home/nenglish/v4l-dvb/v4l/budget-av.o
CC [M] /home/nenglish/v4l-dvb/v4l/budget-ci.o
CC [M] /home/nenglish/v4l-dvb/v4l/budget-patch.o
LD [M] /home/nenglish/v4l-dvb/v4l/dvb-ttpci.o
CC [M] /home/nenglish/v4l-dvb/v4l/ttusb_dec.o
CC [M] /home/nenglish/v4l-dvb/v4l/ttusbdecfe.o
CC [M] /home/nenglish/v4l-dvb/v4l/dvb-ttusb …
…. etc
Thoughts and abuse welcome such is web 🙂 Feedback only kills speakers not listeners 😉
Malheuresement…
CC [M] /var/software/v4l-dvb/v4l/pvrusb2-sysfs.o
/var/software/v4l-dvb/v4l/pvrusb2-sysfs.c: In function ‘class_dev_create’:
/var/software/v4l-dvb/v4l/pvrusb2-sysfs.c:658: error: implicit declaration of function ‘sysfs_attr_init’
make[3]: *** [/var/software/v4l-dvb/v4l/pvrusb2-sysfs.o] Error 1
make[2]: *** [_module_/var/software/v4l-dvb/v4l] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.31-22-generic’
make[1]: *** [default] Error 2
make[1]: Leaving directory `/var/software/v4l-dvb/v4l’
make: *** [all] Error 2
peter@adam:/var/software/v4l-dvb$
Salut Peter,
Should be fixed now by this commit http://linuxtv.org/hg/v4l-dvb/rev/a94edec0e41a
Thanks very much, now it compiles. Camera now works in Camorama but is not even recognised in Ekiga or in Flash plugins:
pac207: Pixart PAC207BCA Image Processor and Control Chip detected (vid/pid 0x093A:0x2468)
I am obviously missing something but I don’t know what.
Seems like linuxtv converted wholly to git. So to get sources, you need
git clone git://linuxtv.org/v4l-dvb.git
Excellent, It works for Lucid too.
I’ve published this link over some ubuntu forums..
Thanks a lot
Just wanted to know if this really works for Lucid. I’ve tried testing this on Lucid in a VM but it kept on freezing my VM.
Advice please.
Yes, it works.
Hi, Stemp. Genius iLook 300. Everitihing done as you write, and it’s working. But next day. Cheese – black screen. the reason is :
« Disable FireDTV support (Multimedia Support -> DVB/ATSC adapters -> set the option blank on FireDTV and FloppyDTV): » – when i’m trying to repeat from the begining – it’s always enabled, even if I talled it « save » each time. What’s wrong?
I’m new in linux, sorry.
The source is broken:
/home/grigoriy/v4l-dvb/v4l/cx25821-audio-upstream.c: In function ‘cx25821_audio_upstream_irq’:
/home/grigoriy/v4l-dvb/v4l/cx25821-audio-upstream.c:573: error: ‘KERN_WARN’ undeclared (first use in this function)
/home/grigoriy/v4l-dvb/v4l/cx25821-audio-upstream.c:573: error: (Each undeclared identifier is reported only once
/home/grigoriy/v4l-dvb/v4l/cx25821-audio-upstream.c:573: error: for each function it appears in.)
/home/grigoriy/v4l-dvb/v4l/cx25821-audio-upstream.c:573: error: expected ‘)’ before string constant
/home/grigoriy/v4l-dvb/v4l/cx25821-audio-upstream.c:577: error: expected ‘)’ before string constant
/home/grigoriy/v4l-dvb/v4l/cx25821-audio-upstream.c:581: error: expected ‘)’ before string constant
/home/grigoriy/v4l-dvb/v4l/cx25821-audio-upstream.c:590: error: expected ‘)’ before string constant
/home/grigoriy/v4l-dvb/v4l/cx25821-audio-upstream.c: In function ‘cx25821_audio_upstream_init’:
/home/grigoriy/v4l-dvb/v4l/cx25821-audio-upstream.c:731: error: ‘KERN_WARN’ undeclared (first use in this function)
/home/grigoriy/v4l-dvb/v4l/cx25821-audio-upstream.c:731: error: expected ‘)’ before string constant
make[3]: *** [/home/grigoriy/v4l-dvb/v4l/cx25821-audio-upstream.o] Error 1
make[2]: *** [_module_/home/grigoriy/v4l-dvb/v4l] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.32-24-generic’
make[1]: *** [default] Ошибка 2
What to do?
It looks like this backport commit : http://linuxtv.org/hg/v4l-dvb/rev/e64216157c2b broke the source.
You have two choices :
1° wait for Douglas Schilling Landgraf to fix it (if he’s aware of this bug)
2° manually change the source linux/drivers/staging/cx25821/cx25821-audio-upstream.c and drop the KERN_WARN
Thank you for your reply. I downloaded an older version of the source and build it.
I just commented with // lines where KERN_WARN appeared and added {} after each if statement and it went OK.
Afterwards, I had to apply a patch for some file called ir-something.
hola:
Disculpa el idioma, he seguido cada paso, pero no he logrado imagen por ningun programa: camorama, emesene, amsn, xaw tv, cheese.
Segruí la recomendación que le hiciste a Sergio <> sin exito. Muestra sin coneccion de video
Estoy en Ubuntu 9.10 Karmik
Detecta la camara
lsusb>>
Bus 002 Device 008: ID 0ac8:301b Z-Star Microelectronics Corp. ZC0301 Webcam
lsmod>>
gspca_zc3xx 45564 0
gspca_main 24732 1 gspca_zc3xx
videodev 45024 1 gspca_main
v4l1_compat 14336 1 videodev
Gracias
Pingback: Dell Webcam Problem (0c45:63e0) « Nastelroy's Blog
Pingback: Ubuntu и Genius iLOOK300 - XXII век
Thx! a lot!!!!!
it worked! thank you so much!
Pingback: ubuntu: install driver for webcam | LINUX | XUNIL