Problems with cpia-0.2.3

Bas Rijniersce bas@brijn.nu
Thu, 28 Oct 1999 16:25:54 +0200


Nick Holloway wrote:
 
> Peter.Pregler@risc.uni-linz.ac.at (Peter Pregler) writes:

> > On 21-Oct-99 Bas Rijniersce wrote:
> > > No problems with the compile. But insmod'ing ppcuscpia.o gives a whole
> > > list off unresolved symbol's:
> > > ppcuscpia.o: unresolved symbol schedule_timeout
> > > ..
> > > ppcuscpia.o: unresolved symbol printk
> > > ppcuscpia.o: unresolved symbol __generic_copy_to_user

> > That's strange. I have no idea why all those standard kernel functions are
> > not found. Are you sure that the include-path for the kernel-headers does
> > match the current running kernel?
 
> I believe this is because the kernel has been compiled with
> CONFIG_MODVERSIONS.
 
> Add the following to DEFINES in the module Makefile:
> 
>     -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h

Nick's suggestion solved the compile problems. Insmod'ing the driver
works OK:
parport0: PC-style at 0x378, dma 3 [SPP,ECP,ECPEPP,ECPPS2]
parport0: detected irq 7; use procfs to enable interrupt-driven
operation.
ppcpia:interface_pp.c:ppcpia_register(778):using irq 7 and DMA 3
ppcpia:module.c:init_module(87):Creative Webcam II Driver (C)1999
B.Huisman v0.2

But ./main SEGFAULT's
straceing:
...
getpid()                                = 741
open("/dev/cpia0", O_RDWR <unfinished ...>
+++ killed by SIGSEGV +++

Putting prints around the open shows that it indeed crashes in the open
(and thus in the cpia module??). I didn't notice it before, but dmesg
shows:

 Unable to handle kernel NULL pointer dereference at virtual address
0000000c
current->tss.cr3 = 04893000, %cr3 = 04893000
*pde = 00000000
Oops: 0000
CPU:    1
EIP:    0010:[<c884dd41>]
EFLAGS: 00010206
eax: 00000000   ebx: 00032000   ecx: c37a8000   edx: 00000322
esi: c89ea000   edi: c89ea000   ebp: 0000001f   esp: c37a9f4c
ds: 0018   es: 0018   ss: 0018
Process main (pid: 755, process nr: 64, stackpage=c37a9000)
Stack: c44f3cb0 c44f6ec0 c884c1dd 00031ca0 c44f3cb0 c45bfce0 c884b05f
00000000 
       00000000 c0128b2f c44f3cb0 c45bfce0 c45bfce0 00000000 c44f3cb0
c0127958 
       c44f3cb0 c45bfce0 00000005 c37a8000 c4197000 bffffa38 c0127b4e
c4197000 
Call Trace: [<c884c1dd>] [<c884b05f>] [<c0128b2f>] [<c0127958>]
[<c0127b4e>] [<c01091bc>] 
Code: 8b 40 0c 8b 14 90 85 d2 74 3a 81 e2 00 f0 ff ff 89 f8 c1 e8 

OOPS ;-)

Any suggestions on what to try next?

TIA,
Bas
----
Bas Rijniersce                       Phone +31 341 550545
Oude Telgterweg 81                   Fax +31 341 562940
3851 EA  Ermelo                      http://www.brijn.nu
The Netherlands                      bas@brijn.nu
-----------------------------------------------------------------------------
To unsubscribe from this mailinglist, send the line "unsubscribe vision-webcam" in the
body of a message to "majordomo@errors.no".