TW6805 card - xawtv OK - zmu OK - ZM does not display images

Post here to ask any questions about hardware suitability, configuration in ZoneMinder, or experiences. If you just want to know if something works with ZoneMinder or not, please check the Hardware Compatibility sections in the forum, and the Wiki first. Also search this topic as well.
marnold
Posts: 4
Joined: Thu Feb 25, 2010 11:55 pm

Re: Techwell 6805 driver - 'make' problem

Post by marnold »

ifprentice wrote: make[1]: Entering directory `/usr/src/linux-headers-2.6.28-18-generic'
I suspect that your problem is that your kernel version 2.6.28 is not recent enough for the driver.

At home I am running an up to date Fedora 12 with a 2.6.32 kernel and the driver builds and runs with no problems at all.

I just tried building the driver on a Fedroa 9 machine here at work running a 2.6.27 kernel and the compilation fails with similar errors to what you have posted.

Perhaps someonw with ubuntu experience can give you some advice on updating your system/kernel.

Cheers, Mark
ifprentice
Posts: 2
Joined: Sat Mar 13, 2010 8:44 pm

Post by ifprentice »

Mark,
Thanks for the tip. I updated to UBUNTU 9.10 (kernel 2.6.31.20) and compiled the driver OK. Unfortunately I couldn't get apache2 to work, so I reinstalled that and ZM. Now I can get video with xawtv from either my KWORLD TV card or TW8605 chip, but can't get ZM working with either! I get the Monitor in Orange, and /dev/video0 whatever in red. I'm sure I'm using the same settings as before (although the config files were wiped out). Very Puzzling.
I installed mplayer but it won't play video, although I'm not sure I'm using the correct options:
mplayer /dev/video0
MPlayer SVN-r29237-4.4.1 (C) 2000-2009 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing /dev/video0.


Exiting... (End of file)

Any suggestions?
Thx, Ian
whatboy
Posts: 304
Joined: Mon Aug 31, 2009 10:31 pm

Post by whatboy »

Post zm logs... might be shared memory...
OzCrossfire
Posts: 1
Joined: Wed Mar 12, 2008 8:29 pm
Location: Australia

Post by OzCrossfire »

Firstly Thanks for valued information here and the work done to have a working driver. I have finally been able to get, what I thought would be a DVR card to use as a Frisbee, working with several cameras in zoneminder.

I do have a noob question though. How do I get the driver to stick after rebooting prior to reboot I have Video0 - 7 and afterward nothing. I need to make/make insmod again and they are back. I have searched to find something though I think this will just be adding something to a .conf or something.

Any help would be gratefully received.

Cheers
agatek
Posts: 6
Joined: Thu May 06, 2010 11:55 pm

Post by agatek »

Hi,

I am using a so called 4ch card based on tw6805a chipset, tw68-tw68-v2-master taken from the usual source and with the files inside fro February this year. This compiles nicely and tw68 is loaded via modprobe with the following msgs:

Code: Select all

May  4 19:56:10 ziutka kernel: [ 5100.688660] Linux video capture interface: v2.00
May  4 19:56:10 ziutka kernel: [ 5100.702071] tw68: v4l2 driver version 0.0.4 loaded
May  4 19:56:10 ziutka kernel: [ 5100.702128]   alloc irq_desc for 21 on node -1
May  4 19:56:10 ziutka kernel: [ 5100.702132]   alloc kstat_irqs on node -1
May  4 19:56:10 ziutka kernel: [ 5100.702142] tw68 0000:01:0b.0: PCI INT A -> GSI 21 (level, low) -> IRQ 21
May  4 19:56:10 ziutka kernel: [ 5100.702150] tw6804[0]: found at 0000:01:0b.0, rev: 16, irq: 21, latency: 64, mmio: 0xdffff800
May  4 19:56:10 ziutka kernel: [ 5100.702158] tw6804[0]: subsystem: 0000:0000, board: GENERIC [card=0,autodetected]
May  4 19:56:10 ziutka kernel: [ 5100.702199] tw6804[0]: Unable to determine board type, using generic values
May  4 19:56:10 ziutka kernel: [ 5100.804036] IRQ 21/tw6804[0]: IRQF_DISABLED is not guaranteed on shared IRQs
May  4 19:56:10 ziutka kernel: [ 5100.804163] tw6804[0]: registered device video0 [v4l2]
May  4 19:56:10 ziutka kernel: [ 5100.804206] tw6804[0]: registered device vbi0
Unfortunately that's it so only one device (video0) gets created. Any idea how to make the other 3 to appear?
wbrack
Posts: 16
Joined: Fri Jan 08, 2010 1:00 am
Location: Hong Kong

"4-ch" card

Post by wbrack »

Your own description practically answers the question - it is referred to as a "so called 4ch card" because it is actually only a single device with 4 input channels which can be individually selected. All of the four input connectors go to the single TW68 chip, and the driver routes them to the four composite-video inputs, which it names
  • Composite1
    Composite2
    Composite3
    Composite4
How to use them depends upon the particular software package you are using. Under Zoneminder, you configure the source using Device Path /dev/video0, then select which of the 4 inputs you want under "Device Channel".

Bill
TW68xx Driver Developer
agatek
Posts: 6
Joined: Thu May 06, 2010 11:55 pm

Post by agatek »

Wbrack, thanks a lot. I would have never guessed... saw a number of posts with a long list of video devices and did not expect that this is one per chipset only. I expected something like a switch inside but still with separate dev inputs. Now lets see what I can do with it.
dwonga
Posts: 2
Joined: Sat May 08, 2010 5:57 am

TV OUT

Post by dwonga »

Hi people. FIrst of all, I want to tank Domenico and the crew for this awesome driver. It is working like a charm. Thank you!

Second, I bought this card from ebay (http://cgi.ebay.com/H264-60fps-Video-Su ... 518f1f9deb). This card has one TW6805 wich work perfectly with this driver.

I have question with this card: If you see well, this card have a TV OUT/Audio IN conector (selectable by a jumper). I've conected my televisor to TVOUT and it displays just the first video channel, not the other tree.

Do you know how to do for display the four cameras? Maybe a specialized or modified driver?

Thank you so much.
wbrack
Posts: 16
Joined: Fri Jan 08, 2010 1:00 am
Location: Hong Kong

TV OUT

Post by wbrack »

First, not all models of TW68xx cards have the TV-Out capability. Second, at the moment the driver sets the output to be "Channel 0", and does not offer any capability to switch the output to a different channel. I may try to implement something in the future, but that is a rather low priority compared to some of the other outstanding things.

If you are technically inclined, you can take a look at tw68-core.c - search the source for "GPIO" and read about what it's doing.


Regards,

Bill
TW68xx Driver Developer
User avatar
kingofkya
Posts: 1110
Joined: Mon Mar 26, 2007 6:07 am
Location: Las Vegas, Nevada

Post by kingofkya »

Interesting

I have question with this card: If you see well, this card have a TV OUT/Audio IN conector (selectable by a jumper). I've conected my televisor to TVOUT and it displays just the first video channel, not the other tree.

Do you know how to do for display the four cameras? Maybe a specialized or modified driver
When/if this driver feature is implemented this might solve the issues of all the zm viewers as its done in hardware not software and can still drive a screen.


Just a thought
luiz2007
Posts: 2
Joined: Tue May 11, 2010 12:43 pm

Post by luiz2007 »

Where can I find driver and software (Win Xp) TW6805A?
Thanks.
luiz2007
Posts: 2
Joined: Tue May 11, 2010 12:43 pm

Post by luiz2007 »

Help!!!!! :?
steve1611
Posts: 3
Joined: Tue Nov 27, 2007 10:28 pm

Cant get the Linux driver compiled

Post by steve1611 »

I have fedora 12 with kernel 2.6.32.11 and downloaded the modules from gitorious

It seems that i was trying to load the tw68000 driver which failed

i have now compiled the tw68-tw68-v2 driver with no errors.

Driver will not load - can anyone suggest next steps i can take to get it working?

error from dmesg

tw68: v4l2 driver version 0.0.4 loaded
tw6804[0]: found at 0000:00:0a.0, rev: 16, irq: 9, latency: 32, mmio: 0xeb002000
tw6804[0]: subsystem: 0000:0000, board: GENERIC [card=0,autodetected]
tw6804[0]: Unable to determine board type, using generic values
IRQ 9/tw6804[0]: IRQF_DISABLED is not guaranteed on shared IRQs
------------[ cut here ]------------
WARNING: at /usr/local/src/v4l-dvb-16ade09022d9/v4l/v4l2-dev.c:458 __video_register_device+0x48/0x3f5 [videodev]()
Hardware name: P4X266-8233
Modules linked in: snd_seq snd_pcm tw68(+) i2c_viapro snd_timer snd_page_alloc via_ircc snd_mpu401_uart v4l2_common 8139too videodev irda i2c_voodoo3 8139cp v4l1_compat i2c_algo_bit snd_rawmidi videobuf_dma_sg mii i2c_core videobuf_core snd_seq_device snd soundcore crc_ccitt btcx_risc ata_generic pata_acpi pata_via [last unloaded: scsi_wait_scan]
Pid: 291, comm: modprobe Not tainted 2.6.32.11-99.fc12.i686 #1
Call Trace:
[<c043a479>] warn_slowpath_common+0x6a/0x81
[<e0bfa3b4>] ? __video_register_device+0x48/0x3f5 [videodev]
[<c043a4a2>] warn_slowpath_null+0x12/0x15
[<e0bfa3b4>] __video_register_device+0x48/0x3f5 [videodev]
[<e0bfa781>] video_register_device+0xf/0x11 [videodev]
[<e0833cf7>] tw68_initdev+0x963/0xaf3 [tw68]
[<c05ca2cc>] local_pci_probe+0x13/0x15
[<c05cad4d>] pci_device_probe+0x48/0x6b
[<c064f57d>] driver_probe_device+0xca/0x1d2
[<c064f6cd>] __driver_attach+0x48/0x64
[<c064eb8d>] bus_for_each_dev+0x42/0x6c
[<c064f36d>] driver_attach+0x19/0x1b
[<c064f685>] ? __driver_attach+0x0/0x64
[<c064f051>] bus_add_driver+0xd0/0x217
[<c05b8b30>] ? kset_find_obj+0x23/0x4f
[<c064f933>] driver_register+0x7e/0xe5
[<c05caf0f>] __pci_register_driver+0x3d/0x9a
[<e083056d>] ? tw68_init+0x0/0x5d [tw68]
[<e08305c8>] tw68_init+0x5b/0x5d [tw68]
[<c0401143>] do_one_initcall+0x51/0x13f
[<c0469fbc>] sys_init_module+0xac/0x1e0
[<c040365c>] syscall_call+0x7/0xb
---[ end trace 811d1b7ca46eb5b8 ]---
tw6804[0]: can't register video device
tw68: probe of 0000:00:0a.0 failed with error -22

any help appreciated.
Last edited by steve1611 on Mon May 17, 2010 10:31 pm, edited 1 time in total.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

kingofkya wrote:Interesting
dwonga wrote:
I have question with this card: If you see well, this card have a TV OUT/Audio IN conector (selectable by a jumper). I've conected my televisor to TVOUT and it displays just the first video channel, not the other tree.

Do you know how to do for display the four cameras? Maybe a specialized or modified driver
When/if this driver feature is implemented this might solve the issues of all the zm viewers as its done in hardware not software and can still drive a screen.


Just a thought
The hardware typically does not unfortunately have the ability to manipulate the video in that fashion, and only allows displaying of one of the inputs. By setting the gpio you can however select what input it displays if it were accounted for inn the driver. It's usually just a simple passthrough via a transistor of the video signal.
User avatar
kingofkya
Posts: 1110
Joined: Mon Mar 26, 2007 6:07 am
Location: Las Vegas, Nevada

Post by kingofkya »

cordel wrote:
kingofkya wrote:Interesting
dwonga wrote:
I have question with this card: If you see well, this card have a TV OUT/Audio IN conector (selectable by a jumper). I've conected my televisor to TVOUT and it displays just the first video channel, not the other tree.

Do you know how to do for display the four cameras? Maybe a specialized or modified driver
When/if this driver feature is implemented this might solve the issues of all the zm viewers as its done in hardware not software and can still drive a screen.


Just a thought
The hardware typically does not unfortunately have the ability to manipulate the video in that fashion, and only allows displaying of one of the inputs. By setting the gpio you can however select what input it displays if it were accounted for inn the driver. It's usually just a simple passthrough via a transistor of the video signal.

I meant for a tv or live monitor no overlay.
Post Reply