HW-LX808E 8 channel saa7130

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.
Post Reply
delphi_dude
Posts: 2
Joined: Sat Jul 04, 2009 8:05 pm

HW-LX808E 8 channel saa7130

Post by delphi_dude »

I bought this card from http://www.inesun.com/show-6183,HW-LX808E.html. I have been trying for some time to get this card to work but still unsuccessful. It has 8 saa7130 chips and came with a proprietary Linux DVR app which does work so the card is good. I have tried Debian Linux and currently trying Ubuntu 9.04. The OS sees the card but identifies it as Unknown/Generic. Dmesg shows all the ports like this:
[ 8.537156] saa7130[7]: subsystem: 1131:0000, board: UNKNOWN/GENERIC [card=0,autodetected]
[ 8.537200] saa7130[7]: board init: gpio is 10000
[ 8.640170] saa7130[7]: Huh, no eeprom present (err=-5)?
[ 8.640314] saa7130[7]: registered device video8 [v4l2]
[ 8.640412] saa7130[7]: registered device vbi7
[ 8.647700] saa7134 ALSA driver for DMA sound loaded
[ 8.647741] saa7130[0]/alsa: saa7130[0] at 0xfe9ffc00 irq 18 registered as card -2
[ 8.648406] saa7130[1]/alsa: saa7130[1] at 0xfe9ff800 irq 19 registered as card -1
[ 8.648981] saa7130[2]/alsa: saa7130[2] at 0xfe9ff400 irq 17 registered as card -1
[ 8.649626] saa7130[3]/alsa: saa7130[3] at 0xfe9ff000 irq 16 registered as card -1
[ 8.650229] saa7130[4]/alsa: saa7130[4] at 0xfe9fec00 irq 18 registered as card -1
[ 8.650846] saa7130[5]/alsa: saa7130[5] at 0xfe9fe800 irq 19 registered as card -1
[ 8.651461] saa7130[6]/alsa: saa7130[6] at 0xfe9fe400 irq 17 registered as card -1
[ 8.652104] saa7130[7]/alsa: saa7130[7] at 0xfe9fe000 irq 16 registered as card -1

I would appreciate any help with this.
barrydocks
Posts: 42
Joined: Mon Aug 10, 2009 3:15 pm

Post by barrydocks »

had a similar problem, see:
http://www.zoneminder.com/forums/viewtopic.php?t=14452
dmsg should give you all the driver numbers available for your card.
The only way is to plod though the list until you get a picture :cry:

try:

Code: Select all

# rmmod -v saa7134
rmmod saa7134, wait=no
then:

Code: Select all

# modprobe -v  saa7134 card=3,3,3,3,3,3,3,3
insmod /lib/modules/2.6.24-24-server/kernel/drivers/media/video/saa7134/saa7134.ko card=3,3,3,3,3,3,3,3 card=2,2,2,2,2,2,2,2
this tell you what driver has been unloaded and then the one reloaded
then run xawtv to see if you have a picture

when you are successful create a text file called something like "dvrcard.conf" in /etc/modprobe.d/ with your card settings and then reboot to see if things work.

hope this helps!!
delphi_dude
Posts: 2
Joined: Sat Jul 04, 2009 8:05 pm

Post by delphi_dude »

I had a thought since my first post. The DVR software that came with the card runs Fedora Core 7 (2.6.23.1-43.std). They have it so that it boots into the application and I cannot get to a desktop. I am able to mount the drive under Ubuntu and look around. So does anyone know of a way to a) find out which driver and configuration is being used, b) copy the driver and settings to Ubuntu, c) make the Fedora go to a desktop without running the app. on boot. I was a SCO Unix admin. back in the 80s but have not been in this O/S for many years and I don't remember these things. Thanks.
marcelh
Posts: 4
Joined: Tue Sep 22, 2009 11:34 am

Post by marcelh »

hi, i've got mostly the same card (it's a hw-lx808v1e).
http://www.made-in-china.com/china-prod ... X808-.html
mine: http://www.jtccftv.com.br/produtos2/dvr/HW-LX808V1E.jpg
Manufactor: http://www.cctvhw.com/english/
Still trying to get it work with zoneminder on ubuntu.
xawtv works great for different card-numbers (33, 34, 9, 100, 37, 97, and so on). i also get the stream in zoneminder, but i always (randomly between 1 and 4 minutes) get this error:
Sep 22 15:12:52 marcel zmc_dvideo7[7584]: ERR [Sync failure for frame 3 buffer 0(1): Input/output error]
Sep 22 15:12:52 marcel zmc_dvideo7[7584]: ERR [Failed to post-capture monitor 0]
Sep 22 15:12:52 marcel zmdc[6885]: ERR ['zmc -d /dev/video7' exited abnormally, exit status 255]
The frames, buffer-numbers und video-device-numbers are changing also randomly.
After this error the capture process restarts and crashes my firefox.

Tested on 2 different computers

Here are some more informations on my setup:

cat /proc/interrupts:
CPU0
0: 137 IO-APIC-edge timer
1: 2118 IO-APIC-edge i8042
3: 2 IO-APIC-edge
4: 2 IO-APIC-edge
7: 0 IO-APIC-edge parport0
8: 0 IO-APIC-edge rtc0
9: 0 IO-APIC-fasteoi acpi
14: 0 IO-APIC-edge pata_via
15: 26517 IO-APIC-edge pata_via
16: 167792 IO-APIC-fasteoi ohci1394, nvidia, saa7130[2], saa7130[6], saa7130[2], saa7130[6]
17: 37681 IO-APIC-fasteoi eth0, saa7130[3], saa7130[7], saa7130[3], saa7130[7]
18: 38262 IO-APIC-fasteoi sata_promise, saa7130[0], saa7130[4], saa7130[0], saa7130[4]
19: 20943 IO-APIC-fasteoi saa7130[1], saa7130[5], saa7130[1], saa7130[5]
20: 0 IO-APIC-fasteoi sata_via
21: 2916 IO-APIC-fasteoi ehci_hcd:usb1, uhci_hcd:usb2, uhci_hcd:usb3, uhci_hcd:usb4, uhci_hcd:usb5
22: 3216 IO-APIC-fasteoi VIA8237
NMI: 0 Non-maskable interrupts
LOC: 276558 Local timer interrupts
RES: 0 Rescheduling interrupts
CAL: 0 Function call interrupts
TLB: 0 TLB shootdowns
SPU: 0 Spurious interrupts
ERR: 0
MIS: 0
I am a bit confused, why all saa7130[x] are listed twice; but changing computer and cardnumber makes no difference.


lspci -vvxxx:
02:08.0 Multimedia controller: Philips Semiconductors SAA7130 Video Broadcast Decoder (rev 01)
Subsystem: Philips Semiconductors Device 0000
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>TAbort- <TAbort- <MAbort>SERR- <PERR>TAbort- <TAbort- <MAbort>SERR- <PERR>TAbort- <TAbort- <MAbort>SERR- <PERR>TAbort- <TAbort- <MAbort>SERR- <PERR>TAbort- <TAbort- <MAbort>SERR- <PERR>TAbort- <TAbort- <MAbort>SERR- <PERR>TAbort- <TAbort- <MAbort>SERR- <PERR- INTx-
Latency: 64 (3750ns min, 9500ns max)
Interrupt: pin A routed to IRQ 17
Region 0: Memory at fcb00000 (32-bit, non-prefetchable)
Capabilities: [40] Power Management version 1
Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
Kernel driver in use: saa7134
Kernel modules: saa7134
00: 31 11 30 71 06 00 90 02 01 00 80 04 00 40 00 00
10: 00 00 b0 fc 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 31 11 00 00
30: 00 00 00 00 40 00 00 00 00 00 00 00 05 01 0f 26
40: 01 00 01 06 00 00 00 00 00 00 00 00 00 00 00 00
50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00


dmesg:

[ 1997.662568] saa7130/34: v4l2 driver version 0.2.14 loaded
[ 1997.662650] saa7130[0]: found at 0000:02:08.0, rev: 1, irq: 18, latency: 64, mmio: 0xfd200000
[ 1997.662661] saa7130[0]: subsystem: 1131:0000, board: AVerMedia DVD EZMaker [card=33,insmod option]
[ 1997.662716] saa7130[0]: board init: gpio is 10000
[ 1997.769893] saa7130[0]: Huh, no eeprom present (err=-5)?
[ 1997.769987] saa7130[0]: registered device video0 [v4l2]
[ 1997.770026] saa7130[0]: registered device vbi0
[ 1997.770059] saa7130[1]: found at 0000:02:09.0, rev: 1, irq: 19, latency: 64, mmio: 0xfd100000
[ 1997.770069] saa7130[1]: subsystem: 1131:0000, board: AVerMedia DVD EZMaker [card=33,insmod option]
[ 1997.770103] saa7130[1]: board init: gpio is 10000
[ 1997.878025] saa7130[1]: Huh, no eeprom present (err=-5)?
[ 1997.878121] saa7130[1]: registered device video1 [v4l2]
[ 1997.878159] saa7130[1]: registered device vbi1
[ 1997.878195] saa7130[2]: found at 0000:02:0a.0, rev: 1, irq: 16, latency: 64, mmio: 0xfd000000
[ 1997.878205] saa7130[2]: subsystem: 1131:0000, board: AVerMedia DVD EZMaker [card=33,insmod option]
[ 1997.878242] saa7130[2]: board init: gpio is 10000
[ 1997.987001] saa7130[2]: Huh, no eeprom present (err=-5)?
[ 1997.987093] saa7130[2]: registered device video2 [v4l2]
[ 1997.987133] saa7130[2]: registered device vbi2
[ 1997.987169] saa7130[3]: found at 0000:02:0b.0, rev: 1, irq: 17, latency: 64, mmio: 0xfcf00000
[ 1997.987180] saa7130[3]: subsystem: 1131:0000, board: AVerMedia DVD EZMaker [card=33,insmod option]
[ 1997.987216] saa7130[3]: board init: gpio is 10000
[ 1998.097908] saa7130[3]: Huh, no eeprom present (err=-5)?
[ 1998.098087] saa7130[3]: registered device video3 [v4l2]
[ 1998.098124] saa7130[3]: registered device vbi3
[ 1998.098159] saa7130[4]: found at 0000:02:0c.0, rev: 1, irq: 18, latency: 64, mmio: 0xfce00000
[ 1998.098169] saa7130[4]: subsystem: 1131:0000, board: AVerMedia DVD EZMaker [card=33,insmod option]
[ 1998.098206] saa7130[4]: board init: gpio is 1fc00
[ 1998.205993] saa7130[4]: Huh, no eeprom present (err=-5)?
[ 1998.206839] saa7130[4]: registered device video4 [v4l2]
[ 1998.206881] saa7130[4]: registered device vbi4
[ 1998.206919] saa7130[5]: found at 0000:02:0d.0, rev: 1, irq: 19, latency: 64, mmio: 0xfcd00000
[ 1998.206930] saa7130[5]: subsystem: 1131:0000, board: AVerMedia DVD EZMaker [card=33,insmod option]
[ 1998.206967] saa7130[5]: board init: gpio is 10000
[ 1998.313953] saa7130[5]: Huh, no eeprom present (err=-5)?
[ 1998.314052] saa7130[5]: registered device video5 [v4l2]
[ 1998.314090] saa7130[5]: registered device vbi5
[ 1998.314126] saa7130[6]: found at 0000:02:0e.0, rev: 1, irq: 16, latency: 64, mmio: 0xfcc00000
[ 1998.314136] saa7130[6]: subsystem: 1131:0000, board: AVerMedia DVD EZMaker [card=33,insmod option]
[ 1998.314175] saa7130[6]: board init: gpio is 10000
[ 1998.427071] saa7130[6]: Huh, no eeprom present (err=-5)?
[ 1998.427207] saa7130[6]: registered device video6 [v4l2]
[ 1998.427328] saa7130[6]: registered device vbi6
[ 1998.427365] saa7130[7]: found at 0000:02:0f.0, rev: 1, irq: 17, latency: 64, mmio: 0xfcb00000
[ 1998.427375] saa7130[7]: subsystem: 1131:0000, board: AVerMedia DVD EZMaker [card=33,insmod option]
[ 1998.427413] saa7130[7]: board init: gpio is 10000
[ 1998.534049] saa7130[7]: Huh, no eeprom present (err=-5)?
[ 1998.534148] saa7130[7]: registered device video7 [v4l2]
[ 1998.534185] saa7130[7]: registered device vbi7
[ 1998.543821] saa7134 ALSA driver for DMA sound loaded
[ 1998.543873] saa7130[0]/alsa: saa7130[0] at 0xfd200000 irq 18 registered as card -2
[ 1998.544983] saa7130[1]/alsa: saa7130[1] at 0xfd100000 irq 19 registered as card -1
[ 1998.545440] saa7130[2]/alsa: saa7130[2] at 0xfd000000 irq 16 registered as card -1
[ 1998.545896] saa7130[3]/alsa: saa7130[3] at 0xfcf00000 irq 17 registered as card -1
[ 1998.546362] saa7130[4]/alsa: saa7130[4] at 0xfce00000 irq 18 registered as card -1
[ 1998.546823] saa7130[5]/alsa: saa7130[5] at 0xfcd00000 irq 19 registered as card -1
[ 1998.547294] saa7130[6]/alsa: saa7130[6] at 0xfcc00000 irq 16 registered as card -1
[ 1998.547776] saa7130[7]/alsa: saa7130[7] at 0xfcb00000 irq 17 registered as card -1
barrydocks
Posts: 42
Joined: Mon Aug 10, 2009 3:15 pm

Post by barrydocks »

delphi_dude wrote:I had a thought since my first post. The DVR software that came with the card runs Fedora Core 7 (2.6.23.1-43.std). They have it so that it boots into the application and I cannot get to a desktop. I am able to mount the drive under Ubuntu and look around. So does anyone know of a way to a) find out which driver and configuration is being used, b) copy the driver and settings to Ubuntu, c) make the Fedora go to a desktop without running the app. on boot. I was a SCO Unix admin. back in the 80s but have not been in this O/S for many years and I don't remember these things. Thanks.
try installing sysv-rc-conf. run the command after installing and find the program in the list, uncheck boxs for run levels 2 & 3. reboot
works for ubuntu

Alternatively can you not just run the recovery kernel and drop to the CLI prompt?
openman
Posts: 4
Joined: Mon Jan 19, 2009 11:47 am

Post by openman »

I have managed to see the bundled distro with the card by booting with an other linux cd and making chroot after mounting the hard disk root partition and doing a change root password. The result was that they use a propretary driver as far as I remember, but i do not know if something since that.
doughoman
Posts: 3
Joined: Tue Sep 01, 2009 3:26 am

Post by doughoman »

I have the same card and have been struggling to get it working with anything, including the custom app it came with. I saw in another post that it infringed on FFmpeg or something because they were distributing open-source software in a proprietary app sold with proprietary hardware or something.

I'd really like to get this working with ZoneMinder since I currently have a cheap 4-port card working well and integrated with MythBuntu.

Please post how you are successfully able to get this card working if anyone does. I have the custom app that it came with but the CD was in pretty bad shape so I might not be able to get the drivers from it.
marcelh
Posts: 4
Joined: Tue Sep 22, 2009 11:34 am

Post by marcelh »

you don't have to get the drivers from the original cd. just type
sudo rmmod saa7134_alsa
sudo rmmod saa7134
sudo modprobe saa7134 card=33,33,33,33,33,33,33,33
xawtv -nodga -c /dev/video0
and now should see the first input. this works for me on different mainboards and versions of ubuntu.

but I've got another big problem: I tried the OS from the original cd, all installed fine, but the surveillance-software doesn't work. the GUI (espacially the parts where the cameras 1-3 should be shown) is flickering / sparkling so I can't see the images from the cameras. the other inputs don't work either. tested this again with two different mainboards. maybe the card is defect? the software has no debugging output (and is named "test" :roll: )
doughoman
Posts: 3
Joined: Tue Sep 01, 2009 3:26 am

Post by doughoman »

Thanks marcelh - I now have a working image!

Now the only issue is it only works with "Capture Palette" = Grey and capture dimensions 320x240. When I change to RGB24 or any other options, no image. Also, when I try 640x480 (which this card is supposed to support) no image. Has anyone else been able to get the card working in color and/or at a higher resolution?


marcelh - I was only able to get the software that came with my card to install on 1 out of 4 computers. It would then boot to the locked down desktop but the DVR application would not load and I'd get some error message. I could not get any other computer to even recognize the CD to try and copy it so I think I had a bad disc or it came with enough scratches on it that it could not be read.
marcelh
Posts: 4
Joined: Tue Sep 22, 2009 11:34 am

Post by marcelh »

could you attach the log-files?
maybe you didn't set the shared memory, just type (values are examples):
sudo -i
echo 162201600 >/proc/sys/kernel/shmall
echo 162201600 >/proc/sys/kernel/shmmax
/etc/init.d/zoneminder restart
now you should be able to view it with 640x480 using rgb24. i run it with 7FPS. good luck.
aussie_1968
Posts: 14
Joined: Sat May 10, 2008 2:07 pm

Post by aussie_1968 »

hi,

i have exactly the same card (LX808), but can not even get it to work work xawtv.

dmesg shows the card being detected:

Code: Select all

input: saa7134 IR (LifeView/Typhoon Fl as /devices/pci0000:00/0000:00:1e.0/0000:01:00.0/0000:02:0a.0/input/input26
saa7130[2]: Huh, no eeprom present (err=-5)?
saa7130[2]: registered device video4 [v4l2]
saa7130[2]: registered device vbi4
saa7130[2]: registered device radio2
saa7130[3]: found at 0000:02:0b.0, rev: 1, irq: 20, latency: 64, mmio: 0xdf9ff000
saa7130[3]: subsystem: 1131:0000, board: LifeView/Typhoon FlyVIDEO2000 [card=3,insmod option]
saa7130[3]: board init: gpio is 18000
saa7130[3]: there are different flyvideo cards with different tuners
saa7130[3]: out there, you might have to use the tuner=<nr> insmod
saa7130[3]: option to override the default value.
...
then i have used :

Code: Select all

rmmod saa7134
modprobe saa7134 card=3,3,3,3,3,3,3,3
xawtv -nodga -c /dev/video0
xawtv -nodga -c /dev/video1
i chose card number 3 as it shows up in the dmesg output [card=3,in...].
is that correct or has that nothing to do with modprobe ?

i have two different cameras connected to input 1 & 2 of the card, but all i get is a black picture in xawtv.

i also have two DVB-T cards in the server, but they are not using the saaxxxx chip.

has anyone got any idea ?

thanks
Martin
aussie_1968
Posts: 14
Joined: Sat May 10, 2008 2:07 pm

Post by aussie_1968 »

ok, worked it out.

i needed to add a tuner as well.

Code: Select all

modprobe saa7134 card=3,3,3,3,3,3,3,3 tuner=2,2,2,2,2,2,2,2
using

Code: Select all

xawtv -nodga -noxv -c /dev/video5
i then chose PAL-60 and composite 2
Rainer
Posts: 10
Joined: Wed Feb 17, 2010 12:32 am

HW-LX808E

Post by Rainer »

I'm running SuSe11.1 64-Bit, zm 1.2.4.2 with ffmpeg
Only to get ZM MP installed was already a challenge. A lot of manual corrections here and there and adding all kind of lib files.

After many hours of try&error I have on dev/video0 a perfect picture.

The cameras /dev/video1 has a flickering picture, all the other 6 ones are not visible, only blank screen.

My setting in modprobe is
alias char-major-81 saa7134
options saa7134 card=97,97,97,97,97,97,97

The monitor settings are Video for Linux Verions 2, PAL and RGB24

Now I have to work on the remaining 7 cameras.
I assume the system identify only 1 channel and there is a parameter to activate the the remaining 7 channels.

Any idea how to get the 7 cameras up same as camera1?

The original software which came with the card is working perfectly for all cameras but the server itself can't record. A second box is required for recording and because I want to use the LINUX box for other purposes as well therefore I try hard to get ZM up and running.
Post Reply