ah, bedankt, weer een stapje verder, nouja eerlijk gezegd, een stapje terug, kreeg weer een foutmelding, na wat zoeken enz. enz. kwam ik erachter dat je eerst je kernel moet compileren (!?!? ik ben newbe)
ik heb nu deze readme, maar vind het allemaal maar acrabadabra... heb natuurlijk al gezocht, maar hoe meer ik zoek hoe meer ik er niets meer van begrijp... Wil iemand me weer een duwtje in de goede richting geven?
stap 1 is me overigens gelukt (via de otherwise methode) en daarvoor heb ik het commando
modprobe cpia_usb
gedaan, zonder foutmelding (maar wat t doet????)
USAGE:
General:
========
1) Make sure you have created the video devices (/dev/video*):
- if you have a recent MAKEDEV do a 'cd /dev;./MAKEDEV video'
- otherwise do a:
cd /dev
mknod video0 c 81 0
Repeat for /dev/video1, /dev/video2 etc as needed.
2) Compile the kernel (see below for the list of options to use).
If applicable, configure your parport. Reboot.
3) If all worked well you should get messages similar
to the following (your versions may be different) on the console:
V4L-Driver for Vision CPiA based cameras v1.2.2
parport0: read2 timeout.
parport0: Multimedia device, VLSI Vision Ltd PPC2
Parallel port driver for Vision CPiA based camera
CPIA Version: 1.20 (2.0)
CPIA PnP-ID: 0553:0002:0100
VP-Version: 1.0 0100
1 camera(s) found
Building the Driver as modules:
============================
Make sure you have selected the following kernel options (you can
select all stuff as modules):
parallel port:
CONFIG_PARPORT=m
CONFIG_PARPORT_PC=m
CONFIG_PARPORT_1284=y
CONFIG_PARPORT_PC_FIFO=y (needed for high-speed ECP modes, if available)
usb:
CONFIG_USB=m
CONFIG_USB_[OHCI/UHCI/UHCI_ALT/EHCI_HCD]=m (as appropiate for your usb)
The cpia-stuff is in the section 'Character devices -> Video For Linux'.
CONFIG_VIDEO_DEV=m
CONFIG_VIDEO_CPIA=m
also, depending on whether you have parport or USB cameras (or both):
CONFIG_VIDEO_CPIA_PP=m
CONFIG_VIDEO_CPIA_USB=m
Finally for controlling the camera using the /proc/cpia/video<n>
interface you need
CONFIG_PROC_FS=y
The cpia module supports the module parameter option:
options cpia usb_alt=[1,2,3] (initial "usb alt interface" setting <usb_alt>)
The usb_alt parameter only affects usb cameras, and selects the
"alternate usb interface setting " that is assigned when the camera is
first registered (i.e., when it is initially plugged in to the USB
hub, and registered as /dev/video<n>).
(see below)
The cpia_pp module supports module options for selecting parallel ports:
options cpia_pp parport=[none,auto,0,1,2,...] (just like lp)
If your parallel port has ECP hardware, it will not get used unless you:
(a) Build the kernel with CONFIG_PARPORT_PC_FIFO=y
(b) You may have to select ECP mode for the parallel port in the computer's
BIOS setup.
(c) load the parport_pc module with options specifying the interrupt
(and dma channel, if available)
For (c), add the following lines to your modutils config-file
(e.g. /etc/modules.conf or wherever your distribution does store that
stuff):
options parport_pc io=0x378 irq=7 dma=3
alias char-major-81 cpia_pp
The first line tells the dma/irq channels to use. Those _must_ match
the settings of your BIOS. Do NOT simply use the values above. See
Documentation/parport.txt for more information about this. The second
line associates the video-device file with the driver. Of cause you
can also load the modules once upon boot (usually done in /etc/modules).
Building the Driver linked into the kernel:
============================================
Make sure you have selected the following kernel options. Note that
you cannot compile the parport-stuff/usb-stuff as modules and the cpia-driver
statically (the other way round is okay though).
CONFIG_PARPORT=y
CONFIG_PARPORT_PC=y
CONFIG_PARPORT_PC_FIFO=y
CONFIG_PARPORT_1284=y
and/or
CONFIG_USB=y
CONFIG_USB_[OHCI/UHCI/UHCI_ALT/EHCI_HCD]=y
The cpia-stuff is in the section 'Character devices -> Video For Linux'.
CONFIG_VIDEO_DEV=y
CONFIG_VIDEO_CPIA=y
and (as needed):
CONFIG_VIDEO_CPIA_PP=y
CONFIG_VIDEO_CPIA_USB=y
For camera control using /proc/cpia/video<n>,
CONFIG_PROC_FS=y
The kernel-linked cpia_pp driver supports boot-parameter options for
selecting parallel ports: You can give these at the LILO-prompt,
or specify them in lilo.conf, with an append-line:
append="cpia_pp=<...>",
where <...> is one of: [ none, auto, parport <n>], where
<n> is the desired parport number.
To use fast DMA/irq ECP parallel port modes, you will need to tell the kernel
upon boot time the hardware configuration of the parport. You can give the
boot-parameter at the LILO-prompt or specify it in lilo.conf.
I use the following
append-line in lilo.conf:
append="parport=0x378,7,3"
See Documentation/parport.txt for more information about the
configuration of the parport and the values given above. Do not simply
use the values given above.