Newsgroup: it.comp.os.linux.iniziare
Titolo: Drivers SPCA50X per webcam

Ho scaricato i drivers sorgente (SRC) per far funzionare la mia webcam.
All'interno del file tar.gz c'è un file "Makefile" e una cartella.
Ho letto il readme ma non ho capito nulla. Chi mi spiega come procedere
senza usare un linguaggio troppo "spinto"?
La mia distribuzione è MDK 9.2 (Kernel 2.4.22).
Grazie a chi di buona volontà!
Il readme è il seguente:
How do I use it?
================
Well, first you need to compile the driver (see below), then you need to
make
sure that the v4l infrastructure is set up and then load the driver.
After
you've done that, any v4l enabled application, such as gqcam, xawtv,
gnomemeeting, camE etc should work.
Compiling it
============
The driver module can be built without modifying your kernel source
tree.
Before trying to compile the driver, ensure that you've configured your
kernel, and updated the dependencies:
'make [config|menuconfig|xconfig]; make dep'.
Make sure, when compiling the driver, you use the same version of
compiler as
was used to compile your kernel. Not doing so can create incompatible
binaries.
If you wish to compile the driver against a kernel other than the
currently
installed one, build the driver with
'make KINCLUDE=/usr/src/linux-<version>/include', or similar.
Please note, the default location for the kernel, according to the
driver, is
/usr/src/linux.
To build just the driver, simply use 'make'.
Compiling against the linux kernel 2.4 source tree, there should be no
warnings at all.
If you compile against the linux kernel 2.2 source tree, you may see:
{standard input}: Assembler messages:
{standard input}: Warning: ignoring changed section attributes for
.modinfo
This is OK. It's caused by a small bug in the 2.2 series kernel, whereby
it
outputs two modinfo sections. It doesn't affect the running of the
module,
however.
This version of the driver offers an automatic installation facility.
Use 'make install' to have the driver installed into your kernel modules
directory, which is assumed to be
/lib/modules/<version>/kernel/drivers/usb.
<version> is picked up from the currently running kernel, so if that's
not
the right place, then don't use 'make install'!
Making sure the usb and v4l stuff is there
==========================================
For the module to function correctly, the video for linux subsystem
needs to
be loaded. As root, check the output of lsmod for videodev. If its not
there,
do: modprobe videodev.
Also, you need to make sure that the usbcore module is loaded (or
compiled
into your kernel) and similarly the module appropriate for your usb
controller
(uhci or ohci).
Loading it
==========
If you have compiled the module, but haven't done 'make install' you can
load
the module in the top build directory by doing as root: insmod spca50x.o
If you have made install, do as root: modprobe spca50x
There are several parameter that can be passed in:
  bright=25   <-- Set camera initial brightness (25 for greyscale,
                  ~90 for colour)
  contrast=16 <-- Set camera initial contrast (16 for greyscale,
                  ~32-64 for colour)
  dumppix=4   <-- return raw camera data for use with raw.c
  dumppix=6   <-- return greyscale video from the YUV decoder
                  [use with internal CCD]
  debug=<n>   <-- set debug level
  ccd=0       <-- SPCA505 only. Switch between the internal CCD (zero)
and
                  the external video input (non-zero)
  osd=1       <-- Enable on-screen display if kernel patches applied
                  (see below)
-- 
Posted via Mailgate.ORG Server - 
http://www.Mailgate.ORG

 If you have made install, do as root: modprobe spca50x
Scrivendo "modprobe spca50x" ottieni il caricameto del modulo spca50x e
quindi l'estensione di una funzionalità del kernel..
A questo punto, inserendo il dispositivo USB, dovrebbe essere intercettato
dal sistema e attivato. Quindi basta aprire il programma desiderato come
xawtv.
Questo è in sintesi quello che grosso modo succede. Se ora ti è più chiaro,
puoi rileggere tutti gli altri commenti scritti nel readme. Otherwise ask.
Tidy