[cpia] Can't get the driver to work

=?iso-8859-1?Q?Rapha=EBl?= HALIMI raphaelh@easynet.fr
Wed, 25 Apr 2001 18:41:44 +0200


Hi. I have a problem using / building the CPIA driver.

First, I'd like to say that I don't know a single word of C, so, I'm
sorry if the errors seem obvious to you, but I really don't understand :-)

My system is a Debian Sid (unstable) and the kernel is a 2.4.3.

I first tried to use the driver included in the kernel source tree. It
compiles, but it seems not to work :

*****
V4L-Driver for Vision CPiA based cameras v0.7.4
Parallel port driver for Vision CPiA based cameras v0.7.4
parport0: ECP direction: reverse
parport0: ECP direction: reverse
parport0: ECP direction: reverse
parport0: ECP direction: reverse
parport0: ECP direction: reverse
parport0: ECP direction: reverse
cpia.c:do_command_extended(1698):40a4 - failed
parport0: ECP direction: reverse
parport0: ECP direction: reverse
  CPiA Version: 1.02 (1.0)
  CPiA PnP-ID: 0553:0001:0100
  VP-Version: 1.0 0100
*****

It doesn't detect the cam. I used to use the very same cam on another
box and it was OK. I tried to change the parport settings in the BIOS
(ECP, EPP, SPP), nothing helps. Questions are :

1) What does that "parport0: ECP direction: reverse" mean ?
2) What does that "cpia.c:do_command_extended(1698):40a4 - failed" mean ?

Could this be a hardware problem with my parallel port ? I thought of it
because it's an old box (Pentium 166 MMX). How could I test my parallel
port ?

I tried the latest version as well (1.2), but this one doesn't even
compile :-(

Here's the error :

******
cpia.c:3906: warning: initialization from incompatible pointer type
cpia.c:3907: warning: missing braces around initializer
cpia.c:3907: warning: (near initialization for `cpia_template.name')
cpia.c:3909: warning: initialization makes integer from pointer without a cast
cpia.c:3909: initializer element is not computable at load time
cpia.c:3909: (near initialization for `cpia_template.name[2]')
cpia.c:3910: warning: initialization makes integer from pointer without a cast
cpia.c:3910: initializer element is not computable at load time
cpia.c:3910: (near initialization for `cpia_template.name[3]')
cpia.c:3911: warning: initialization makes integer from pointer without a cast
cpia.c:3911: initializer element is not computable at load time
cpia.c:3911: (near initialization for `cpia_template.name[4]')
cpia.c:3912: warning: initialization makes integer from pointer without a cast
cpia.c:3913: warning: initialization makes integer from pointer without a cast
cpia.c:3914: warning: initialization makes integer from pointer without a cast
cpia.c:3914: initializer element is not computable at load time
cpia.c:3914: (near initialization for `cpia_template.name[7]')
cpia.c:3915: warning: initialization makes integer from pointer without a cast
cpia.c:3915: initializer element is not computable at load time
cpia.c:3915: (near initialization for `cpia_template.name[8]')
cpia.c:3916: warning: initialization makes integer from pointer without a cast
cpia.c:3916: initializer element is not computable at load time
cpia.c:3916: (near initialization for `cpia_template.name[9]')
cpia.c:3917: warning: initialization makes integer from pointer without a cast
make: *** [cpia.o] Erreur 1
*****

Did I miss something ? The kernel source tree is in /usr/src/linux (a
symlink to /usr/src/kernel-source-2.4.3), and the include symlinks are
OK as well (/usr/src/linux/include/linux to /usr/include/linux and
/usr/src/linux/include/asm to /usr/include/asm).

What's wrong ?

Thank you very much for any help.

-- 
Raphaël HALIMI