FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > 64 Studio > 64 Studio User

 
 
LinkBack Thread Tools
 
Old 07-12-2008, 04:32 PM
"Peter Geirnaert"
 
Default installing gspca-modules (webcam driver) in 64 Studio .

I just got my Q-Tec Webcam 100 working on 64 Studio now, but not out of the box, so here's my little how-to:

Installing gspca-modules in 64 Studio . (short version)

(Make sure) this package is installed:

gspca-modules-2.6.17-2-multimedia-486
version 01.00.04-2+2.6.17-9 (apt.64studio.com)
and this one too:
gspca-source
version 01.00.04-2 (stable)

To unpack the sourcefiles I did:


peter@64studio:/usr/src$ sudo bunzip2 gspca-source.tar.bz2
cd into the new directory:
peter@64studio:/usr/src$ cd modules/gspca/

Now prepare module-assistant:

peter@64studio:/usr/src/modules/gspca$ sudo m-a prepare

*** [skip]
*** a lot of messages came and 'cause all went well, it ended with
*** ...
*** Done!

Now auto install gspca :

peter@64studio:/usr/src/modules/gspca$ sudo m-a a-i gspca
*** [skip]

*** again a lot of messages and 'cause all went well, again
*** ...
*** Done!

The driver is now installed and the webcam works :-)

Useful links:
gspca home page : http://mxhaard.free.fr/

list of supported cams
/usr/share/doc/gspca-source/README.Debian.gz


-------------------------------------------------------------------------------------------


Installing gspca-modules in 64 Studio . (detailed version)

Another title might have been ..
"spca5xx-v4l driver for Pixart Imaging webcam how-to "

peter@64studio:/dev$ lsusb

Bus 002 Device 005: ID 093a:2460 Pixart Imaging, Inc.

synaptic shows me the needed driver is in gspca-modules



home page : http://mxhaard.free.fr/
my webcam is this one, featured in the list of supported cams :




PIXART
Vendor IdProduct Id



PAC207-BCA based Cameras
Bridge
Sensor
Support
Stream



Driver
Quality
Qtec
170
0x093a
0x2460
Qtec Webcam100


Pac207
Pac207
Yes
gbrg
spca5xx
****

This package is installed now:
gspca-modules-2.6.17-2-multimedia-486
version 01.00.04-2+2.6.17-9 (apt.64studio.com)



gspca modules for Linux (kernel 2.6.17-2-multimedia-486) This package
contains the set of loadable kernel modules for the
gspca video for linux (v4l) driver.

This package contains the compiled kernel modules for 2.6.17-2-multimedia-486




If you have compiled your own kernel, you will most likely need to build
your own gspca-modules. The gspca-source package has been provided for
use with the Debian's module-assistant or kernel-package utilities to



produce a version of gspca-module for your kernel.

This one's also installed:
gspca-source
version 01.00.04-2 (stable)
source for the gspca v4l kernel module


The gpsca video for linux (v4l) driver, provides support for

webcams and digital cameras based on the spca5xx range of chips
manufactured by SunPlus, Sonix, Z-star, Vimicro, Conexant, Etoms,
Mars-semi, Pixart and Transvision.

The gspca driver is a rewrite of the well known spca5xx v4l kernel



module from the same author, Michel Xhaard.

This package provides the source code for the gspca kernel modules.
Kernel source or headers are required to compile these modules. For
basic install steps see /usr/share/doc/gspca-source/README.Debian.gz




http://mxhaard.free.fr/index.html

The /usr/share/doc/gspca-source/README.Debian.gz doc contains the following:


gspca for Debian
----------------

This package provides the gspca source code that can be used to build
modules that work with your custom built linux kernel. The source files are
located in /usr/src/gspca-source.tar.bz2; unpacking that file in /usr/src will


produce a build tree in /usr/src/modules/gspca/ (The tar file can also be
unpacked elsewhere).

Building gspca kernel modules with module-assistant
================================================== =


Please install the module-assistant package and issue the following commands

in a shell:-

* $ m-a prepare
* $ m-a a-i gspca

m-a is short for module-assistant, and a-i is short for auto-install. Please
see the module-assistant documentation for futher details about this process.



If you need information on the Debian packaging team please visit
http://alioth.debian.org/projects/pkg-spca5xx/

*-- Kel Modderman <kelmo@kanotixguide.org>, Wed,* 4 Oct 2006 12:35:59 +1000



To unpack the sourcefiles I do:
peter@64studio:/usr/src$ sudo bunzip2 -v gspca-source.tar.bz2
peter@64studio:/usr/src$ cd modules/gspca/
Now prepare module-assistant:


peter@64studio:/usr/src/modules/gspca$ sudo m-a prepare
Getting source for kernel version: 2.6.21-1-multimedia-486
apt-get install linux-headers-2.6.21-1-multimedia-486
Reading package lists... Done
Building dependency tree


Reading state information... Done
The following extra packages will be installed:
* linux-kbuild-2.6.21
The following NEW packages will be installed:
* linux-headers-2.6.21-1-multimedia-486 linux-kbuild-2.6.21


0 upgraded, 2 newly installed, 0 to remove and 4 not upgraded.
Need to get 478kB of archives.
After unpacking 9945kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://apt.64studio.com 64studio/main linux-kbuild-2.6.21 2.6.21-1~bpo.1 [176kB]


Get:2 http://apt.64studio.com 64studio/main linux-headers-2.6.21-1-multimedia-486 2.6.21-2 [302kB]
Fetched 478kB in 1s (344kB/s)
Selecting previously deselected package linux-kbuild-2.6.21.


(Reading database ... 148836 files and directories currently installed.)
Unpacking linux-kbuild-2.6.21 (from .../linux-kbuild-2.6.21_2.6.21-1~bpo.1_i386.deb) ...
Selecting previously deselected package linux-headers-2.6.21-1-multimedia-486.


Unpacking linux-headers-2.6.21-1-multimedia-486 (from .../linux-headers-2.6.21-1-multimedia-486_2.6.21-2_i386.deb) ...
Setting up linux-kbuild-2.6.21 (2.6.21-1~bpo.1) ...
Setting up linux-headers-2.6.21-1-multimedia-486 (2.6.21-2) ...


apt-get install build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
* build-essential
0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.


Need to get 6982B of archives.
After unpacking 20.5kB of additional disk space will be used.
Get:1 http://apt.64studio.com 64studio/main build-essential 11.3 [6982B]

Fetched 6982B in 0s (23.6kB/s)

Selecting previously deselected package build-essential.
(Reading database ... 153565 files and directories currently installed.)
Unpacking build-essential (from .../build-essential_11.3_i386.deb) ...
Setting up build-essential (11.3) ...



Done!
now auto install gspca :
peter@64studio:/usr/src/modules/gspca$ sudo m-a a-i gspca
.
Updated infos about 1 packages
Getting source for kernel version: 2.6.21-1-multimedia-486


Kernel headers available in /lib/modules/2.6.21-1-multimedia-486/build
Creating symlink...
apt-get install build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done


build-essential is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.

Done!
unpack
The source tarball could not be found!
Package gspca-source not installed?

Running "m-a -f get gspca-source" may help.

"/usr/share/modass/overrides/gspca-source" build KVERS=2.6.21-1-multimedia-486 KSRC=/lib/modules/2.6.21-1-multimedia-486/build KDREV=2.6.21-2 kdist_image
dh_testdir
dh_testroot
dh_clean
rm -f *.symvers


/usr/bin/make -C /usr/src/modules/gspca clean
make[1]: Entering directory `/usr/src/modules/gspca'
rm -r -f *.o decoder/.gspcadecoder.o.cmd decoder/*.o
******* .gspca.o.cmd* *.o *.ko *.mod.* .[a-z]* core *.i


******* Modules.symvers
make[1]: Leaving directory `/usr/src/modules/gspca'
/usr/bin/make* -f debian/rules kdist_clean kdist_config binary-modules
make[1]: Entering directory `/usr/src/modules/gspca'

dh_testdir

dh_testroot
dh_clean
rm -f *.symvers
/usr/bin/make -C /usr/src/modules/gspca clean
make[2]: Entering directory `/usr/src/modules/gspca'
rm -r -f *.o decoder/.gspcadecoder.o.cmd decoder/*.o
******* .gspca.o.cmd* *.o *.ko *.mod.* .[a-z]* core *.i


******* Modules.symvers
make[2]: Leaving directory `/usr/src/modules/gspca'
for templ in ; do
*** cp $templ `echo $templ | sed -e 's/_KVERS_/2.6.21-1-multimedia-486/g'` ;
* done
for templ in `ls debian/*.modules.in` ; do


*** test -e ${templ%.modules.in}.backup || cp ${templ%.modules.in} ${templ%.modules.in}.backup 2>/dev/null || true;

*** sed -e 's/##KVERS##/2.6.21-1-multimedia-486/g ;s/#KVERS#/2.6.21-1-multimedia-486/g ; s/_KVERS_/2.6.21-1-multimedia-486/g ; s/##KDREV##/2.6.21-2/g ; s/#KDREV#/2.6.21-2/g ; s/_KDREV_/2.6.21-2/g* ' < $templ > ${templ%.modules.in};


* done
dh_testdir
dh_testroot
dh_clean -k
# Build the module
/usr/bin/make -C /usr/src/modules/gspca KERNEL_VERSION=2.6.21-1-multimedia-486 KERNELDIR=/lib/modules/2.6.21-1-multimedia-486/build
make[2]: Entering directory `/usr/src/modules/gspca'


/usr/bin/make -C /lib/modules/2.6.21-1-multimedia-486/build SUBDIRS=/usr/src/modules/gspca CC=gcc-4.1 modules
make[3]: Entering directory `/usr/src/linux-headers-2.6.21-1-multimedia-486'
* CC [M]* /usr/src/modules/gspca/gspca_core.o


/usr/src/modules/gspca/gspca_core.c: In function 'gspca_init_isoc':
/usr/src/modules/gspca/gspca_core.c:1037: warning: assignment from incompatible pointer type
/usr/src/modules/gspca/gspca_core.c: In function 'spca50x_create_sysfs':


/usr/src/modules/gspca/gspca_core.c:2610: warning: ignoring return value of 'video_device_create_file', declared with attribute warn_unused_result
/usr/src/modules/gspca/gspca_core.c:2611: warning: ignoring return value of 'video_device_create_file', declared with attribute warn_unused_result


/usr/src/modules/gspca/gspca_core.c:2612: warning: ignoring return value of 'video_device_create_file', declared with attribute warn_unused_result
* CC [M]* /usr/src/modules/gspca/decoder/gspcadecoder.o
* LD [M]* /usr/src/modules/gspca/gspca.o


* Building modules, stage 2.
* MODPOST 1 modules
* CC***** /usr/src/modules/gspca/gspca.mod.o
* LD [M]* /usr/src/modules/gspca/gspca.ko
make[3]: Leaving directory `/usr/src/linux-headers-2.6.21-1-multimedia-486'


make[2]: Leaving directory `/usr/src/modules/gspca'
# Install the module
dh_installdirs***************** lib/modules/2.6.21-1-multimedia-486/kernel/drivers/usb/media/
dh_install gspca.ko**** lib/modules/2.6.21-1-multimedia-486/kernel/drivers/usb/media/


dh_installdocs
dh_installchangelogs
dh_compress
dh_fixperms
dh_installmodules
dh_installdeb
dh_gencontrol -- -v01.00.04-2+2.6.21-2
dh_md5sums
dh_builddeb --destdir=/usr/src
dpkg-deb: building package `gspca-modules-2.6.21-1-multimedia-486' in `/usr/src/gspca-modules-2.6.21-1-multimedia-486_01.00.04-2+2.6.21-2_i386.deb'.


make[1]: Leaving directory `/usr/src/modules/gspca'
/usr/bin/make* -f debian/rules kdist_clean
make[1]: Entering directory `/usr/src/modules/gspca'
dh_testdir
dh_testroot
dh_clean
rm -f *.symvers


/usr/bin/make -C /usr/src/modules/gspca clean
make[2]: Entering directory `/usr/src/modules/gspca'
rm -r -f *.o decoder/.gspcadecoder.o.cmd decoder/*.o
******* .gspca.o.cmd* *.o *.ko *.mod.* .[a-z]* core *.i


******* Modules.symvers
make[2]: Leaving directory `/usr/src/modules/gspca'
make[1]: Leaving directory `/usr/src/modules/gspca'
dpkg -Ei /usr/src/gspca-modules-2.6.21-1-multimedia-486_01.00.04-2+2.6.21-2_i386.deb


Selecting previously deselected package gspca-modules-2.6.21-1-multimedia-486.
(Reading database ... 153574 files and directories currently installed.)
Unpacking gspca-modules-2.6.21-1-multimedia-486 (from .../gspca-modules-2.6.21-1-multimedia-486_01.00.04-2+2.6.21-2_i386.deb) ...


Setting up gspca-modules-2.6.21-1-multimedia-486 (01.00.04-2+2.6.21-2) ...

Ok now the webcam works !
Big smile on my face


_______________________________________________
64studio-users mailing list
64studio-users@64studio.com
http://lists.64studio.com/mailman/listinfo/64studio-users
 

Thread Tools




All times are GMT. The time now is 11:50 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org