Thank you guys !
At last I managed to see some images from my refurbished TW6800 based card also with zm using the tw68 device driver .
Working settings for zm and my camera are:
Code: Select all
Device format PAL I
Capture palette BGR 24
Capture Witdth 384
Capture Height 288
CAPTURES_PER_FRAME = 2
With bigger resolution than 384x288 zm does not work (but mplayer does).
I will try changing dimension of shared memory later.
And now bad news: the images I get are somehow corrupted (see below) and after a while (from few minutes to half an hour) the device driver stops working and zm gets errors.
If I remove the device driver and install it again (make instmod) , I get images again.
Here some more informations:
dmesg
Code: Select all
tw68: v4l2 driver version 0.0.2 loaded
tw68 0000:02:04.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
tw6800[0]: found at 0000:02:04.0, rev: 17, irq: 17, latency: 64, mmio: 0xfb000000
tw6800[0]: subsystem: 0000:0000, board: GENERIC [card=0,autodetected]
tw6800[0]: Unable to determine board type, using generic values
IRQ 17/tw6800[0]: IRQF_DISABLED is not guaranteed on shared IRQs
tw6800[0]: registered device video1 [v4l2]
tw6800[0]: registered device vbi1
lspci
Code: Select all
02:04.0 Multimedia video controller [0400]: Techwell Inc. Device [1797:6800] (rev 11)
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort>SERR- <PERR- INTx-
Latency: 64 (8000ns min, 18000ns max), Cache Line Size: 32 bytes
Interrupt: pin A routed to IRQ 17
Region 0: Memory at fb000000 (32-bit, non-prefetchable) [size=16M]
Kernel driver in use: tw68
Why size is so big (16M)? (For the bt878 size is only 4K)
var/log/messages
Code: Select all
Jan 13 15:43:49 pentium4 zmdc[12273]: INF ['zmc -d /dev/video1' started at 10/01/13 15:43:49]
Jan 13 15:43:49 pentium4 zmc_dvideo1[12273]: INF [Debug Level = 0, Debug Log = <none>]
Jan 13 15:43:49 pentium4 zmdc[12236]: INF ['zmc -d /dev/video1' starting at 10/01/13 15:43:49, pid = 12273]
Jan 13 15:43:50 pentium4 zmc_dvideo1[12273]: INF [Starting Capture]
Jan 13 15:43:50 pentium4 zma_m2[12265]: INF [In mode 3/0, warming up]
Jan 13 15:43:50 pentium4 zmdc[12277]: INF ['zmfilter.pl' started at 10/01/13 15:43:50]
Jan 13 15:43:50 pentium4 zmdc[12236]: INF ['zmfilter.pl' starting at 10/01/13 15:43:50, pid = 12277]
Jan 13 15:43:50 pentium4 kernel: tw6800[0]/0: [ccce7f00/0] timeout - dma=0x049aa000
Jan 13 15:43:50 pentium4 kernel: tw6800[0]/0: [ccce7840/1] timeout - dma=0x1ad05000
Jan 13 15:43:50 pentium4 kernel: tw6800[0]/0: [ccce7900/2] timeout - dma=0x18d63000
Jan 13 15:43:50 pentium4 kernel: tw6800[0]/0: [da54bd80/3] timeout - dma=0x048a6000
Jan 13 15:43:50 pentium4 kernel: tw6800[0]/0: [da54b540/4] timeout - dma=0x0fd8e000
Jan 13 15:43:50 pentium4 kernel: tw6800[0]/0: [da54bf00/5] timeout - dma=0x08aac000
Jan 13 15:43:50 pentium4 kernel: tw6800[0]/0: [da54bb40/6] timeout - dma=0x17e04000
Jan 13 15:43:50 pentium4 kernel: tw6800[0]/0: [da54b840/7] timeout - dma=0x0e56e000
Jan 13 15:43:50 pentium4 zmc_dvideo1[12273]: WAR [Capture failure, possible signal loss?: Input/output error]
Jan 13 15:43:50 pentium4 zmc_dvideo1[12273]: ERR [Failed to capture image from monitor 5 (0/1)]
Jan 13 15:43:50 pentium4 zmdc[12236]: ERR ['zmc -d /dev/video1' exited abnormally, exit status 255]
Here a picture :
What are those black an green stripes on the left border?
(The camera is OK because using the bt878 card the image is good.)