[cpia] still hoping

Bastian sTYLe@WtAl.De
Wed, 15 Mar 2000 14:20:06 +0100


At 18:37 14.3.2000 +0100, Peter Pregler wrote:

>- try out the driver version 0.4.4, that is the first one which
>should work reliable with 1.02 firmware, so we can see if any bug was
>introduced after that
>(http://download.sourceforge.net/webcam/cpia-0.4.4.tgz), do not activate
>dma please
>
>- can you boot your box fresh in emergency mode, load the parport-modules,
>v4l and the driver and _no_ other fency stuff, especially not the ppp/isdn
>stuff you got in the ooops, use vidcat or the like to grab a single frame
>to disk (or /dev/null ;), if it fails send me the syslog from boot to end,
>and also the output of the relevant proc-file (interrupt, parport, cpia).

ok, i've done the following :
- disabled the isdn/hisax drivers
- compiled the 0.4.4 cpia module (disabled DMA in makefile and added the 
include line)
- loaded the parport, videodev and cpia modules using the script loadpp

here are the results AFTER starting gqcam :

--- dmesg ---
Linux version 2.2.14 (root@Little) (gcc version egcs-2.91.66 19990314/Linux 
(egcs-1.1.2 release)) #1 SMP Wed Mar 1 17:53:36 CET 2000
mapped APIC to ffffe000 (00233000)
Detected 132874322 Hz processor.
Console: colour VGA+ 80x60
Calibrating delay loop... 52.84 BogoMIPS
Memory: 79472k/81920k available (880k kernel code, 416k reserved, 1092k 
data, 60k init)
Dentry hash table entries: 16384 (order 5, 128k)
Buffer cache hash table entries: 131072 (order 7, 512k)
Page cache hash table entries: 32768 (order 5, 128k)
Checking 386/387 coupling... OK, FPU using exception 16 error reporting.
Checking 'hlt' instruction... OK.
Intel Pentium with F0 0F bug - workaround enabled.
POSIX conformance testing by UNIFIX
per-CPU timeslice cutoff: 1.56 usecs.
CPU0: Intel Pentium 75 - 200 stepping 0c
SMP motherboard not detected. Using dummy APIC emulation.
PCI: PCI BIOS revision 2.10 entry at 0xfb740
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: 00:38 [1106/0586]: Work around ISA DMA hangs (00)
Activating ISA DMA hang workarounds.
Linux NET4.0 for Linux 2.2
Based upon Swansea University Computer Society NET3.039
NET4: Unix domain sockets 1.0 for Linux NET4.0.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
TCP: Hash tables configured (ehash 131072 bhash 65536)
Initializing RT netlink socket
Starting kswapd v 1.5
Serial driver version 4.27 with no serial options enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
pty: 256 Unix98 ptys configured
VP_IDE: IDE controller on PCI bus 00 dev 39
VP_IDE: not 100% native mode: will probe irqs later
     ide0: BM-DMA at 0x6000-0x6007, BIOS settings: hda:pio, hdb:pio
     ide1: BM-DMA at 0x6008-0x600f, BIOS settings: hdc:pio, hdd:pio
Keyboard timeout[2]
Keyboard timeout[2]
hda: ST32531A, ATA DISK drive
hdb: FX810T, ATAPI CDROM drive
hdc: IOMEGA ZIP 100 ATAPI, ATAPI FLOPPY drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: ST32531A, 2439MB w/0kB Cache, CHS=619/128/63
hdb: ATAPI 8X CD-ROM drive, 256kB Cache
Uniform CDROM driver Revision: 2.56
FDC 0 is a post-1991 82077
Partition check:
  hda: hda2 hda3
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 60k freed
Adding Swap: 60476k swap-space (priority -1)
ne.c:v1.10 9/23/94 Donald Becker (becker@cesdis.gsfc.nasa.gov)
NE*000 ethercard probe at 0x300: 08 00 00 18 20 07
eth0: NE2000 found at 0x300, using IRQ 5.
parport0: PC-style at 0x378 (0x778) [SPP,ECP,ECPPS2]
Linux video capture interface: v1.00
V4L-Driver for Vision CPiA based cameras v0.4.4
parport0: read2 timeout.
parport0: Multimedia device, VLSI Vision Ltd DUAL Camera
Parallel port driver for Vision CPiA based cameras v0.4.4
   1 cameras found
cpia.c(19607):cpia_open(2466):cpia_open
Unable to handle kernel NULL pointer dereference at virtual address 0000000c
current->tss.cr3 = 03841000, %cr3 = 03841000
*pde = 00000000
Oops: 0000
CPU:    0
EIP:    0010:[<c581d0b3>]
EFLAGS: 00010212
eax: 00000000   ebx: 00032000   ecx: c3882000   edx: 00000316
esi: c5832000   edi: c5832000   ebp: 0000001f   esp: c3883f2c
ds: 0018   es: 0018   ss: 0018
Process gqcam (pid: 276, process nr: 40, stackpage=c3883000)
Stack: c581b540 c3476640 c58258f0 00031ba5 c3d946ac 00000000 c581b17f c3d946ac
        00000000 00000000 c384a480 c375e220 00000051 00000000 000000ff 
c01c0d9c
        c01e8b20 c01273eb c375e220 c384a480 c384a480 00000000 c375e220 
c01261b8
Call Trace: [<c581b540>] [<c58258f0>] [<c581b17f>] [<c01c0d9c>] 
[<c01273eb>] [<c01261b8>] [<c01263b2>]
        [<c0107a50>]
Code: 8b 40 0c 8b 14 90 85 d2 74 43 81 e2 00 f0 ff ff 89 f8 c1 e8

--- /var/log/message (since last boot) ---
Mar 15 13:59:21 Little syslogd 1.3-3: restart.
Mar 15 13:59:24 Little kernel: klogd 1.3-3, log source = /proc/kmsg started.
Mar 15 13:59:24 Little kernel: Inspecting /boot/System.map
Mar 15 13:59:25 Little kernel: Loaded 6463 symbols from /boot/System.map.
Mar 15 13:59:25 Little kernel: Symbols match kernel version 2.2.14.
Mar 15 13:59:25 Little kernel: Loaded 6 symbols from 2 modules.
Mar 15 13:59:25 Little kernel: ne.c:v1.10 9/23/94 Donald Becker 
(becker@cesdis.gsfc.nasa.gov)
Mar 15 13:59:25 Little kernel: NE*000 ethercard probe at 0x300: 08 00 00 18 
20 07
Mar 15 13:59:25 Little kernel: eth0: NE2000 found at 0x300, using IRQ 5.
Mar 15 13:59:31 Little /usr/sbin/cron[185]: (CRON) STARTUP (fork ok)
Mar 15 13:59:32 Little in.identd[186]: started
Mar 15 14:00:03 Little in.telnetd[236]: connect from 192.168.0.1
Mar 15 14:00:04 Little login: pam_unix session started for user root, 
service login
Mar 15 14:00:28 Little kernel: parport0: PC-style at 0x378 (0x778) 
[SPP,ECP,ECPPS2]
Mar 15 14:00:28 Little kernel: Linux video capture interface: v1.00
Mar 15 14:00:28 Little kernel: V4L-Driver for Vision CPiA based cameras v0.4.4
Mar 15 14:00:29 Little modprobe: modprobe: Can't locate module cpia_pp
Mar 15 14:00:29 Little kernel: parport0: read2 timeout.
Mar 15 14:00:29 Little kernel: parport0: Multimedia device, VLSI Vision Ltd 
DUAL Camera
Mar 15 14:00:29 Little kernel: Parallel port driver for Vision CPiA based 
cameras v0.4.4
Mar 15 14:00:29 Little kernel:   1 cameras found
Mar 15 14:01:59 Little kernel: cpia.c(19607):cpia_open(2466):cpia_open
Mar 15 14:01:59 Little kernel: Unable to handle kernel NULL pointer 
dereference at virtual address 0000000c
Mar 15 14:01:59 Little kernel: current->tss.cr3 = 03841000, %cr3 = 03841000
Mar 15 14:01:59 Little kernel: *pde = 00000000
Mar 15 14:01:59 Little kernel: Oops: 0000
Mar 15 14:01:59 Little kernel: CPU:    0
Mar 15 14:01:59 Little kernel: EIP:    0010:[<c581d0b3>]
Mar 15 14:01:59 Little kernel: EFLAGS: 00010212
Mar 15 14:01:59 Little kernel: eax: 00000000   ebx: 00032000   ecx: 
c3882000   edx: 00000316
Mar 15 14:01:59 Little kernel: esi: c5832000   edi: c5832000   ebp: 
0000001f   esp: c3883f2c
Mar 15 14:01:59 Little kernel: ds: 0018   es: 0018   ss: 0018
Mar 15 14:01:59 Little kernel: Process gqcam (pid: 276, process nr: 40, 
stackpage=c3883000)
Mar 15 14:01:59 Little kernel: Stack: c581b540 c3476640 c58258f0 00031ba5 
c3d946ac 00000000 c581b17f c3d946ac
Mar 15 14:01:59 Little kernel:        00000000 00000000 c384a480 c375e220 
00000051 00000000 000000ff c01c0d9c
Mar 15 14:01:59 Little kernel:        c01e8b20 c01273eb c375e220 c384a480 
c384a480 00000000 c375e220 c01261b8
Mar 15 14:01:59 Little kernel: Call Trace: [<c581b540>] [<c58258f0>] 
[<c581b17f>] [tvecs+10012/13216] [chrdev_open+63/76] [filp_open+172/240] 
[sys_open+82/172]
Mar 15 14:01:59 Little kernel:        [system_call+52/56]
Mar 15 14:01:59 Little kernel: Code: 8b 40 0c 8b 14 90 85 d2 74 43 81 e2 00 
f0 ff ff 89 f8 c1 e8

--- cat /proc/interrupts ---
            CPU0
   0:      46211          XT-PIC  timer
   1:          2          XT-PIC  keyboard
   2:          0          XT-PIC  cascade
   5:       2565          XT-PIC  NE2000
  13:          1          XT-PIC  fpu
  14:      48176          XT-PIC  ide0
  15:          2          XT-PIC  ide1
NMI:          0
ERR:          0

--- cat /proc/cpia/video0 ---
read-only

CPIA Version:             0.00 (0.0)
CPIA PnP-ID:              0000:0000:0000
VP-Version:               0.0 0000
system_state:             0x00
grab_state:               0x00
stream_state:             0x00
fatal_error:              0x00
cmd_error:                0x00
debug_flags:              0x00
vp_status:                0x00
error_code:               0x00
video_size:               CIF
sub_sample:               422
yuv_order:                YUYV
roi:                      (  0,   0) to (352, 288)
actual_fps:               0
transfer_rate:            500kB/s
read-write
                            current       min       max   default  comment
brightness:                   50         0       100        50
contrast:                     48         0        96        48  steps of 8
saturation:                   50         0       100        50
sensor_fps:               15.000         3        30        15
stream_start_line:           240         0       288       240
ecp_timing:               normal      slow    normal    normal
color_balance_mode:         auto    manual      auto      auto
red_gain:                     32         0       212        32
green_gain:                    6         0       212         6
blue_gain:                    92         0       212        92
max_gain:                      2             1,2,4,8         2
exposure_mode:              auto    manual      auto      auto
centre_weight:                on       off        on        on
gain:                          1         1  max_gain         1  1,2,4,8 
possible
fine_exp:                      0         0       511         0
coarse_exp:                  185         0     65535       185
red_comp:                    220       220       255       220
green1_comp:                 214       214       255       214
green2_comp:                 214       214       255       214
blue_comp:                   230       230       255       230
apcor_gain1:                0x1c       0x0      0xff      0x1c
apcor_gain2:                0x1a       0x0      0xff      0x1a
apcor_gain4:                0x2d       0x0      0xff      0x2d
apcor_gain8:                0x2a       0x0      0xff      0x2a
vl_offset_gain1:              24         0       255        24
vl_offset_gain2:              28         0       255        28
vl_offset_gain4:              30         0       255        30
vl_offset_gain8:              30         0       255        30
flicker_control:             off       off        on       off
mains_frequency:              50        50        60        50 only 50/60
allowable_overexposure:        0         0       255         0
compression_mode:           none    none,auto,manual      auto
decimation:                  off       off       off       off
compression_target:      quality framerate   quality   quality
target_framerate:              7         0        30         7
target_quality:               10         0       255        10
y_threshold:                  15         0        31        15
uv_threshold:                 15         0        31        15
hysteresis:                    3         0       255         3
threshold_max:                11         0       255        11
small_step:                    1         0       255         1
large_step:                    3         0       255         3
decimation_hysteresis:         2         0       255         2
fr_diff_step_thresh:           5         0       255         5
q_diff_step_thresh:            3         0       255         3
decimation_thresh_mod:         2         0       255         2

--- cat /proc/parport/0/hardware ---
base:   0x378
irq:    none
dma:    none
modes:  SPP,ECP,ECPPS2

--- cat /proc/parport/0/autoprobe ---
CLASS:MEDIA;
MODEL:DUAL Camera;
MANUFACTURER:VLSI Vision Ltd;
DESCRIPTION:Parallel Port Camera;
COMMAND SET:CPIA_1-00;

--- lsmod ---
Module                  Size  Used by
parport_probe           2980   0  (autoclean)
cpia_pp                16036   0  (unused)
cpia                   50780   0  [cpia_pp]
videodev                2368   1  [cpia]
parport_pc              7232   1  [cpia_pp]
parport                 7272   1  [parport_probe cpia_pp parport_pc]
ne                      6560   1  (autoclean)
8390                    6628   0  (autoclean) [ne]

a bit long but i hope it helps.

>-Peter
>
>
>-------------------------------
>Email: Peter.Pregler@risc.uni-linz.ac.at
>WWW:   http://www.risc.uni-linz.ac.at/people/ppregler
>
>_______________________________________________
>cpia mailing list  -  cpia@risc.uni-linz.ac.at
>http://mailman.risc.uni-linz.ac.at/mailman/cgi-bin/listinfo/cpia

Regards,
    Bastian