Firebird News

Sunday, November 14, 2004

Installing open source linux driver for mustek wcam300

download the kernel and compile it folow this tutorial for debian
http://www.desktop-linux.net/debkernel.htm
then get the cvs version of driver

Patch for kernel 2.6 and a Makefile for 2.6. And some small bugg fixes.
So to compile with a 2.6 kernel :

cvs -d:pserver:anonymous@cvs.nw802.sourceforge.net:/cvsroot/nw802 login
cvs -z3 -d:pserver:anonymous@cvs.nw802.sourceforge.net:/cvsroot/nw802
co nw802-2.4
cd nw802-2.4
cp Makefile.26 Makefile
patch -p0 < patch-2.6
make clean
make

if it fails then go to lists

after kernel compile and driver patching is time for compile

make
ln -sf /opt/kernel-source-2.6.7/drivers/usb/media/usbvideo.h .
ln -sf /opt/kernel-source-2.6.7/drivers/usb/media/usbvideo.c .
make -C /opt/kernel-source-2.6.7 SUBDIRS=`pwd` modules
make[1]: Entering directory `/opt/kernel-source-2.6.7'
CC [M] /home/mariuz/tmp/nw802-2.4/nw8xx_jpgl.o
CC [M] /home/mariuz/tmp/nw802-2.4/nw802.o
LD [M] /home/mariuz/tmp/nw802-2.4/nw8xx.o
CC [M] /home/mariuz/tmp/nw802-2.4/usbvideo.o
Building modules, stage 2.
MODPOST
CC /home/mariuz/tmp/nw802-2.4/nw8xx.mod.o
LD [M] /home/mariuz/tmp/nw802-2.4/nw8xx.ko
CC /home/mariuz/tmp/nw802-2.4/usbvideo.mod.o
LD [M] /home/mariuz/tmp/nw802-2.4/usbvideo.ko
make[1]: Leaving directory `/opt/kernel-source-2.6.7'

then we should do modprobe for driver


su -c 'modprobe videodev'
su -c 'modprobe usbvideo'
su -c 'insmod nw8xx.ko'
dmesg | grep video
Linux video capture interface: v1.00

also at the end of dmesg
nw802.c: Potentially NW8xx supported cam found ( supported vendor/product IDs )
nw802.c: Detected bridge type : DivIO NW802
videodev: "nw802 USB Camera" has no release callback. Please fix your driver for proper sysfs support, see http://lwn.net/Articles/36850/
drivers/usb/media/usbvideo.c: nw802 on /dev/video0: canvas=320x240 videosize=320x240
usbcore: registered new driver nw802
nw802.c: Module loaded


install xawtv
su -c 'apt-get install xawtv'
then you should grap nice movies from your camer :) with this command
xawtv -c /dev/video0

2 comments:

Rono said...

excelent article, i have a DIVIO chicony cam, and i hope this tutorial helps me to make it work on ubuntu, but a silly question: what its the password for the cvs login?. thanks

mariuz said...

it's blank and you should push the ENTER key