Newsgroup: it.comp.os.linux.iniziare
Titolo: mi fate il riassunto in parole semplici?

Leggendo qui non capisco se devo compilare il kernel o no. Inoltre non
capisco quale kernel utilizzare: /lib/modules/kernel... oppure il
sorgente /usr/src/linux/...?
Mi spiegate logicamente cosa occorre fare in modo da capire quello che
c'è scritto?
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)
Trying a v4l app
================
The canonical app to try is gqcam, but it has some problems. First, you
need
to make sure that you switch it to a resolution that the driver and cam
are
actually capable of. It supports the resolutions "full", "half" and
"quarter"
or somesuch, which equate to 640x480, 320x240, and 160x120. The middle
resolution should be supported by all cameras, so try that. It starts up
with
the smallest resolution active, so that might not work. Also, gqcam
expects
the r, g, and b values of the data stream in a different order than the
rest
of the world, but it provides a switch to change that, which can be
found
under preferences. If your picture has a blue tint, that is likely to be
the
cause.
Grazie
-- 
Posted via Mailgate.ORG Server - 
http://www.Mailgate.ORG

 c'č scritto?



/usr/src/linux contiene i sorgenti del kernel necessari per la compilazione
del driver.
/lib/modules/../kernel e' dove verra' installato il driver risultante dalla
compilazione.
Alessandro.

 Cerca 
di quotare decentemente, grazie.
-- 
Sono un servitore del Fuoco Segreto, e reggo la fiamma di Anor.
A nulla ti servira' il fuoco oscuro, fiamma di Udun.
Torna nell'Ombra! Non puoi passare.