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.
Gesukkel
Posts: 6
Joined: Thu Aug 04, 2011 9:40 am

Re: TW6805 card - xawtv OK - zmu OK - ZM does not display im

Post by Gesukkel »

Thanks for the response tijuca,
Here is the dmesg and syslog file.

What should I be looking for?
tijuca
Posts: 9
Joined: Sun Jul 31, 2011 10:01 am

Re: TW6805 card - xawtv OK - zmu OK - ZM does not display im

Post by tijuca »

Gesukkel wrote:Thanks for the response tijuca,
Here is the dmesg and syslog file.
I can't see it. :wink:

Post it here: http://pastebin.com/
Gesukkel
Posts: 6
Joined: Thu Aug 04, 2011 9:40 am

Re: TW6805 card - xawtv OK - zmu OK - ZM does not display im

Post by Gesukkel »

tijuca wrote:
Gesukkel wrote:Thanks for the response tijuca,
Here is the dmesg and syslog file.
I can't see it. :wink:

Post it here: pastebin
Sorry, think I messed it up a bit instead of uploading it :(
Copy and pasted to pastebin, not sure how pastebin works but I hope you can see it there.

Thank you
Gesukkel
Posts: 6
Joined: Thu Aug 04, 2011 9:40 am

Re: TW6805 card - xawtv OK - zmu OK - ZM does not display im

Post by Gesukkel »

tijuca wrote:
Gesukkel wrote:Thanks for the response tijuca,
Here is the dmesg and syslog file.
I can't see it. :wink:

Post it here: pastebin
Can not post the full URL, but after com/ it is;
for syslog
k50yJguH
dmesg
gZtQPK44

Thanks again
Gesukkel
Posts: 6
Joined: Thu Aug 04, 2011 9:40 am

Re: TW6805 card - xawtv OK - zmu OK - ZM does not display im

Post by Gesukkel »

After 2 weeks no joy, can only use this card where you need to see that something did move, hope that the next release of the driver works better – not blaming the developers of the Linux driver, but the company putting these cards together for not helping out.
Just my runt for the day.
luisbriones
Posts: 3
Joined: Tue Aug 17, 2010 7:33 pm

TW6801 card I can't compile tw68

Post by luisbriones »

Hi,

I have problems to compile the tw68 driver. My SO is Lubuntu 11.10 desktop.

I do this:

Code: Select all

sudo git clone git://gitorious(dot)org/tw68/tw68-v2.git
cd tw68-v2
When I try to compile with make or make run ,etc.

Code: Select all

aeroclub@vigilancia:~/tw68-v2$ sudo make
make -C /lib/modules/3.0.0-14-generic/build M=/home/aeroclub/tw68-v2 modules
make[1]: se ingresa al directorio «/usr/src/linux-headers-3.0.0-14-generic»
  CC [M]  /home/aeroclub/tw68-v2/tw68-core.o
/home/aeroclub/tw68-v2/tw68-core.c: En la función ‘tw68_suspend’:
/home/aeroclub/tw68-v2/tw68-core.c:970:3: error: declaración implícita de la función ‘tw68_ir_stop’ [-Werror=implicit-function-declaration]
/home/aeroclub/tw68-v2/tw68-core.c: En la función ‘tw68_resume’:
/home/aeroclub/tw68-v2/tw68-core.c:1000:3: error: declaración implícita de la función ‘tw68_ir_start’ [-Werror=implicit-function-declaration]
cc1: algunos avisos se tratan como errores

make[2]: *** [/home/aeroclub/tw68-v2/tw68-core.o] Error 1
make[1]: *** [_module_/home/aeroclub/tw68-v2] Error 2
make[1]: se sale del directorio «/usr/src/linux-headers-3.0.0-14-generic»
make: *** [all] Error 2
Any help?

Thanks in advance,

Luis
Gesukkel
Posts: 6
Joined: Thu Aug 04, 2011 9:40 am

Re: TW6805 card - xawtv OK - zmu OK - ZM does not display im

Post by Gesukkel »

Hi luisbriones,
Use this link, sort the compile errors for me on Ubuntu.
http://gitorious.org/~enjoy/tw68/tw68-v2-lucid-tw6804

Let me know it if worked for you.

Regards
luisbriones
Posts: 3
Joined: Tue Aug 17, 2010 7:33 pm

Re: TW6805 card - xawtv OK - zmu OK - ZM does not display im

Post by luisbriones »

Hi,

Sorry for delay, but I was in my summer holidays.

I have errors:

Code: Select all

aeroclub@vigilancia:~/tw68-v2-lucid-tw6804$ [b]sudo make[/b]

make -C /lib/modules/3.0.0-14-generic/build M=/home/aeroclub/tw68-v2-lucid-tw6804 modules
make[1]: se ingresa al directorio «/usr/src/linux-headers-3.0.0-14-generic»
  CC [M]  /home/aeroclub/tw68-v2-lucid-tw6804/tw68-core.o
In file included from /home/aeroclub/tw68-v2-lucid-tw6804/tw68-core.c:43:0:
/home/aeroclub/tw68-v2-lucid-tw6804/tw68.h:49:29: error fatal: media/ir-common.h: No existe el archivo o el directorio
compilación terminada.
make[2]: *** [/home/aeroclub/tw68-v2-lucid-tw6804/tw68-core.o] Error 1
make[1]: *** [_module_/home/aeroclub/tw68-v2-lucid-tw6804] Error 2
make[1]: se sale del directorio «/usr/src/linux-headers-3.0.0-14-generic»
make: *** [all] Error 2
Thanks in advance
pewebhost
Posts: 4
Joined: Sat Dec 08, 2012 10:26 pm

Re: TW6805 card - xawtv OK - zmu OK - ZM does not display im

Post by pewebhost »

I am just now trying to setup a TW6816 Chipset Card to use with Zoneminder. Is it still necessary to use the Kernel Addin Module, or has full kernel support been added for this card?

Thanks,
Cliff
marnold
Posts: 4
Joined: Thu Feb 25, 2010 11:55 pm

Re: TW6805 card - xawtv OK - zmu OK - ZM does not display im

Post by marnold »

pewebhost wrote:I am just now trying to setup a TW6816 Chipset Card to use with Zoneminder. Is it still necessary to use the Kernel Addin Module, or has full kernel support been added for this card?

Thanks,
Cliff
Hi,

I think your mileage will vary depending on what distro or more importantly what kernel you are running.
You still need to compile and install the driver yourself as its not included in the kernel.

From my experience over the last 2+ years, I have been running 64bit fedora 15,16 and now 17 and the driver works although over the last 6 months or so of updates I have started to have issues with crashes and other unwanted behaviour such as my machine freezes on a reboot and needs a power hit to fix it.
Also with the latest fedora kernel update to 3.7.3-101.fc17.x86_64 the card is no longer detected at boot at least for me anyway.
For reference I am running an AMD 5050e CPU with a PCI based tw6800 card and have 3 connected cameras + a webcam running zoneminder.

Out of the two guys listed as administrators of the gitorious tw68/tw68-v2 project, I recently heard from Domenico by email when I asked about the status of the driver.
He told me that its not actively maintained anymore, the original contributors are missing in action and essentially the driver is abandoned, he also commented that he was surprised that it still builds let alone works.

Over the last few nights I have made a few changes to the driver in my local build and now have something that works with my 3.7.3 kernel, although I have been only running things for 24hours so haven't tested it much yet.


Cheers, Mark
pewebhost
Posts: 4
Joined: Sat Dec 08, 2012 10:26 pm

Re: TW6805 card - xawtv OK - zmu OK - ZM does not display im

Post by pewebhost »

marnold wrote:
pewebhost wrote:I am just now trying to setup a TW6816 Chipset Card to use with Zoneminder. Is it still necessary to use the Kernel Addin Module, or has full kernel support been added for this card?

Thanks,
Cliff
Hi,

I think your mileage will vary depending on what distro or more importantly what kernel you are running.
You still need to compile and install the driver yourself as its not included in the kernel.

From my experience over the last 2+ years, I have been running 64bit fedora 15,16 and now 17 and the driver works although over the last 6 months or so of updates I have started to have issues with crashes and other unwanted behaviour such as my machine freezes on a reboot and needs a power hit to fix it.
Also with the latest fedora kernel update to 3.7.3-101.fc17.x86_64 the card is no longer detected at boot at least for me anyway.
For reference I am running an AMD 5050e CPU with a PCI based tw6800 card and have 3 connected cameras + a webcam running zoneminder.

Out of the two guys listed as administrators of the gitorious tw68/tw68-v2 project, I recently heard from Domenico by email when I asked about the status of the driver.
He told me that its not actively maintained anymore, the original contributors are missing in action and essentially the driver is abandoned, he also commented that he was surprised that it still builds let alone works.

Over the last few nights I have made a few changes to the driver in my local build and now have something that works with my 3.7.3 kernel, although I have been only running things for 24hours so haven't tested it much yet.


Cheers, Mark
Hmm, Not the good news I was hoping for and based on the gitorious updates, I had assumed this driver was still in development.

Currently I'm running Ubuntu 12.04 server, but don't know the Kernel version. I will check it tomorrow and see what I can find out.

Hopefully, this card will still work, but who knows.

Cliff
zSeries
Posts: 30
Joined: Thu Aug 18, 2011 12:43 pm

Re: TW6805 card - xawtv OK - zmu OK - ZM does not display im

Post by zSeries »

I cant remember where I found this but

To fix the error 'media/ir-common.h', open tw68-core.c:
gedit tw68.h
Go to line 49 and remove/comment
#include "media/ir-common.h"

The driver works OK with Lubuntu 12.10 64bit and Ubuntu 10.04.4 LTS 32bit. I did not have to install any other software other that a base OS install from the LiveCD and applying current updates then zm from the repositories. Simple. However i do have some issues with corrupted frames not sure if this is a driver or Zoneminder problem.
Grzegorz
Posts: 1
Joined: Mon Jul 08, 2013 9:34 am

Re: TW6805 card - xawtv OK - zmu OK - ZM does not display im

Post by Grzegorz »

Hello there.

I use Debian 7 with ZM v1.25.0 and card chipset Techwell TW6816 x2 with driver from avreg team (I can't inseart link as newbie)

I try to add new monitor or increase cam resolution and got next error in syslog

Code: Select all

kernel: [240724.864027] tw6810[0]/0: [ffff880223aa8a00/0] timeout - dma=0x368d0000

Code: Select all

ls -l /dev/shm/
total 399128
-r-------- 1 Debian-gdm Debian-gdm 67108904 Jul  5 18:46 pulse-shm-1268927350
-r-------- 1 Debian-gdm Debian-gdm 67108904 Jul  5 18:46 pulse-shm-2688998232
-rw------- 1 www-data   www-data   51979764 Jul  8 13:29 zm.mmap.1
-rw------- 1 www-data   www-data   49767924 Jul  8 13:29 zm.mmap.18
-rw------- 1 www-data   www-data   49767924 Jul  8 13:29 zm.mmap.20
-rw------- 1 www-data   www-data   49767924 Jul  8 13:29 zm.mmap.21
-rw------- 1 www-data   www-data   49767924 Jul  8 13:29 zm.mmap.23
-rw------- 1 www-data   www-data   52521204 Jul  8 13:29 zm.mmap.28
-rw------- 1 www-data   www-data   52521204 Jul  8 13:29 zm.mmap.31
-rw------- 1 www-data   www-data   52521204 Jul  8 13:29 zm.mmap.7

Code: Select all

df -h
Filesystem                    Size  Used Avail Use% Mounted on
rootfs                        913G  9.7G  857G   2% /
udev                           10M     0   10M   0% /dev
tmpfs                         798M  656K  797M   1% /run
/dev/mapper/dvr--server-root  913G  9.7G  857G   2% /
tmpfs                         5.0M     0  5.0M   0% /run/lock
tmpfs                         2.0G  390M  1.7G  20% /run/shm
/dev/sda1                     228M   29M  188M  14% /boot

I understand that problem with memory but

Code: Select all

free -m
             total       used       free     shared    buffers     cached
Mem:          7971       1263       6708          0        174        693
-/+ buffers/cache:        395       7576
Swap:         4027          0       4027
also

Code: Select all

cat /etc/sysctl.conf
#
# /etc/sysctl.conf - Configuration file for setting system variables
# See /etc/sysctl.d/ for additonal system variables
# See sysctl.conf (5) for information.
#

kernel.shmmax=3145728000
kernel.shmall=768000

Thanks for any help.
Fed7
Posts: 1
Joined: Tue Mar 09, 2010 2:40 pm

Re: TW6805 card - xawtv OK - zmu OK - ZM does not display im

Post by Fed7 »

Hi.

I tried to compile tw68 module on Ubuntu 13.04 @64bit .... kernel 3.8.10 ... but i received two errors

Code: Select all

fedsette@7FDVR25:~$ cd tw68-tw68-v2/
fedsette@7FDVR25:~/tw68-tw68-v2$ sudo make
[sudo] password for fedsette: 
make -C /lib/modules/3.8.0-32-generic/build M=/home/fedsette/tw68-tw68-v2 modules
make[1]: ingresso nella directory "/usr/src/linux-headers-3.8.0-32-generic"
  CC [M]  /home/fedsette/tw68-tw68-v2/tw68-core.o
In file included from /home/fedsette/tw68-tw68-v2/tw68-core.c:43:0:
/home/fedsette/tw68-tw68-v2/tw68.h:512:43: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘tw68_pci_tbl’
/home/fedsette/tw68-tw68-v2/tw68-core.c:514:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘must_configure_manually’
/home/fedsette/tw68-tw68-v2/tw68-core.c:654:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘tw68_initdev’
/home/fedsette/tw68-tw68-v2/tw68-core.c:910:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘tw68_finidev’
/home/fedsette/tw68-tw68-v2/tw68-core.c:1058:14: error: ‘tw68_pci_tbl’ undeclared here (not in a function)
/home/fedsette/tw68-tw68-v2/tw68-core.c:1059:13: error: ‘tw68_initdev’ undeclared here (not in a function)
/home/fedsette/tw68-tw68-v2/tw68-core.c:1060:2: error: implicit declaration of function ‘__devexit_p’ [-Werror=implicit-function-declaration]
/home/fedsette/tw68-tw68-v2/tw68-core.c:1060:26: error: ‘tw68_finidev’ undeclared here (not in a function)
/home/fedsette/tw68-tw68-v2/tw68-core.c:93:21: warning: ‘tw68_devcount’ defined but not used [-Wunused-variable]
/home/fedsette/tw68-tw68-v2/tw68-core.c:368:12: warning: ‘tw68_hw_init1’ defined but not used [-Wunused-function]
/home/fedsette/tw68-tw68-v2/tw68-core.c:491:12: warning: ‘tw68_hw_init2’ defined but not used [-Wunused-function]
/home/fedsette/tw68-tw68-v2/tw68-core.c:503:12: warning: ‘tw68_hwfini’ defined but not used [-Wunused-function]
/home/fedsette/tw68-tw68-v2/tw68-core.c:542:20: warning: ‘tw68_irq’ defined but not used [-Wunused-function]
/home/fedsette/tw68-tw68-v2/tw68-core.c:579:29: warning: ‘vdev_init’ defined but not used [-Wunused-function]
/home/fedsette/tw68-tw68-v2/tw68-core.c:599:13: warning: ‘tw68_unregister_video’ defined but not used [-Wunused-function]
/home/fedsette/tw68-tw68-v2/tw68-core.c:626:13: warning: ‘mpeg_ops_attach’ defined but not used [-Wunused-function]
/home/fedsette/tw68-tw68-v2/tw68-core.c:642:13: warning: ‘mpeg_ops_detach’ defined but not used [-Wunused-function]
cc1: some warnings being treated as errors
make[2]: *** [/home/fedsette/tw68-tw68-v2/tw68-core.o] Errore 1
make[1]: *** [_module_/home/fedsette/tw68-tw68-v2] Errore 2
make[1]: uscita dalla directory "/usr/src/linux-headers-3.8.0-32-generic"
make: *** [all] Errore 2
fedsette@7FDVR25:~/tw68-tw68-v2$
Has anyone tried to install modules?

Tks,
Fed
B_jare_hotrods
Posts: 6
Joined: Fri Jan 10, 2014 4:38 am

Re: TW6805 card - xawtv OK - zmu OK - ZM does not display im

Post by B_jare_hotrods »

Okay I found away to get my dvr card to work I have a linkdelight 8channel video and I think it was only advertised as 4 channel audio but not sure looks like it has 2 techwell tw6816 chips on it

anyways I believe if you have past 3 8 kernel the regular instructions wont work, the gitorious website I found a little difficult to navigate, I went to the website just typed in tw68 and found alot more info, posts and repositories, and there I found one of the users that modified the code for the new kernel versions.
Anyways since I have linux mint 16 kde 64 bit , I believe it has kernel 3 11 or so but this is what i did

steps:
1 first make sure have the git program: sudo apt-get install git
2 sudo git clone git gitorious org tw68 smokeyjoness tw68 v2 git (without spaces separted by forward slashes)
3 cd smokeyjoness tw68 v2
4 sudo make (wont do a regular make say permission denied, but this works)
5 sudo make install

6 and if you don't have xawtv: sudo apt-get install xawtv
7 reboot the computer

Now what this got me was 8 video inputs: " dev video0" thru video7 that weren't there before my usb capture card got moved to video8 and they work!!!! in terminal i typed xawtv -c " dev video0" if camera is attached to first cable and shows the camera image, but I cant tell you if it works in zoneminder I'm still working on it, since the new changes when I installed linux mint 16 and the current version on zoneminder with the apache2 4 version I cant get the live event view to work, but if my usb capture card with camera worked on it before and I get a similar image for both cameras now with xawtv I don't see why it wouldnt,
Hope this helps anyone in need, anyone figure out the blank screen in the live event view yet?
Post Reply