saa7134 >8 channels

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.
liviud
Posts: 5
Joined: Wed Mar 19, 2008 5:16 pm
Location: Bucharest / Romania

saa7134 >8 channels

Post by liviud »

Hello

I want to use 4 china boards with saa7x chipsets, so i have 16 channels.
everything ok, i tested this boards with ZM and it worked, but the problem appears when i need to use options, becouse when i try :

[root@atlantis usr]# modprobe saa7134 card=33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33
FATAL: Error inserting saa7134 (/lib/modules/2.6.24.3-12.fc8/kernel/drivers/media/video/saa7134/saa7134.ko): Invalid argument

dmesg:
card: can only take 8 arguments
saa7134: `33' invalid for parameter `card'

first 8 channels work, but the rest ... the same story:
saa7134[4]: subsystem: 1131:0000, board: UNKNOWN/GENERIC [card=0,autodetected]

any ideeas ?
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Re: saa7134 >8 channels

Post by cordel »

liviud wrote: FATAL: Error inserting saa7134 (/lib/modules/2.6.24.3-12.fc8/kernel/drivers/media/video/saa7134/saa7134.ko): Invalid argument

dmesg:
card: can only take 8 arguments
saa7134: `33' invalid for parameter `card'

first 8 channels work, but the rest ... the same story:
saa7134[4]: subsystem: 1131:0000, board: UNKNOWN/GENERIC [card=0,autodetected]

any ideeas ?
I'd say that it's a limit of either the driver and/or the chip.
liviud
Posts: 5
Joined: Wed Mar 19, 2008 5:16 pm
Location: Bucharest / Romania

Post by liviud »

yea, i know that, but any ideea how to jump over that ?
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Sorry mate, I don't code driver stuff so I can't be of any use there.
liviud
Posts: 5
Joined: Wed Mar 19, 2008 5:16 pm
Location: Bucharest / Romania

problem solved

Post by liviud »

For saa7134 chipset this problem can be solved in few steps

1. download kernel sources
2. edit drivers/media/video/saa7134/saa7134.h , search for
#define SAA7134_MAXBOARDS 8
#define SAA7134_INPUT_MAX 8
and change values in what you need
3. compile
4. reboot and play

i hoppe this will help
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Yeah but the question remains, does it work, meaning can you get all the inputs functioning at once?
I am sure the cap was there for a reason, maybe for the old pci buss since it can't handle much. So what results are you getting?
liviud
Posts: 5
Joined: Wed Mar 19, 2008 5:16 pm
Location: Bucharest / Romania

Post by liviud »

Yes is workin', i have video on all 16 inputs, i don't realy know why that limit is there but i see the same limit in bt* driver, and i think is the same limit in the driver.

PS. i've tested on nvidia and via moterboard's.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

What chipsets?
Certain chipsets from both manufactures have issues with at least bttv, so this would be useful to know.
liviud
Posts: 5
Joined: Wed Mar 19, 2008 5:16 pm
Location: Bucharest / Romania

Post by liviud »

right now is workin' with saa7134, for bt* i will test soon
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

No I mean mainboard chip sets. Sorry I was a bit vague. BT878 has issues with some Nvidia, SiS, and Via chipsets. Mostly around the earliy P4 release time frame.
azir
Posts: 14
Joined: Tue Jan 22, 2008 7:30 am
Location: Surabaya, Indonesia

Re: problem solved

Post by azir »

liviud wrote:For saa7134 chipset this problem can be solved in few steps

1. download kernel sources
2. edit drivers/media/video/saa7134/saa7134.h , search for
#define SAA7134_MAXBOARDS 8
#define SAA7134_INPUT_MAX 8
and change values in what you need
3. compile
4. reboot and play

i hoppe this will help
Thanks, that a helpful post mate. I have the same problem with 2 cards (8 ch and 4 ch) and now solved :)
this is my lspci:

Code: Select all

00:00.0 Host bridge: Intel Corporation 82865G/PE/P DRAM Controller/Host-Hub Interface (rev 02)
00:01.0 PCI bridge: Intel Corporation 82865G/PE/P PCI to AGP Controller (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev c2)
00:1f.0 ISA bridge: Intel Corporation 82801EB/ER (ICH5/ICH5R) LPC Interface Bridge (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801EB/ER (ICH5/ICH5R) IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801EB/ER (ICH5/ICH5R) SMBus Controller (rev 02)
00:1f.5 Multimedia audio controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev 02)
01:00.0 VGA compatible controller: nVidia Corporation NV18 [GeForce4 MX 4000] (rev c1)
02:01.0 PCI bridge: Hint Corp HiNT HB4 PCI-PCI Bridge (PCI6150) (rev 04)
02:02.0 PCI bridge: Hint Corp HB6 Universal PCI-PCI bridge (non-transparent mode) (rev 11)
02:05.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
03:08.0 Multimedia controller: Philips Semiconductors SAA7130 Video Broadcast Decoder (rev 01)
03:09.0 Multimedia controller: Philips Semiconductors SAA7130 Video Broadcast Decoder (rev 01)
03:0a.0 Multimedia controller: Philips Semiconductors SAA7130 Video Broadcast Decoder (rev 01)
03:0b.0 Multimedia controller: Philips Semiconductors SAA7130 Video Broadcast Decoder (rev 01)
03:0c.0 Multimedia controller: Philips Semiconductors SAA7130 Video Broadcast Decoder (rev 01)
03:0d.0 Multimedia controller: Philips Semiconductors SAA7130 Video Broadcast Decoder (rev 01)
03:0e.0 Multimedia controller: Philips Semiconductors SAA7130 Video Broadcast Decoder (rev 01)
03:0f.0 Multimedia controller: Philips Semiconductors SAA7130 Video Broadcast Decoder (rev 01)
04:0c.0 Multimedia controller: Philips Semiconductors SAA7130 Video Broadcast Decoder (rev 01)
04:0d.0 Multimedia controller: Philips Semiconductors SAA7130 Video Broadcast Decoder (rev 01)
04:0e.0 Multimedia controller: Philips Semiconductors SAA7130 Video Broadcast Decoder (rev 01)
04:0f.0 Multimedia controller: Philips Semiconductors SAA7130 Video Broadcast Decoder (rev 01)
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Glad to hear it :)
Still would be interested to hear how it performs though ;)
azir
Posts: 14
Joined: Tue Jan 22, 2008 7:30 am
Location: Surabaya, Indonesia

Post by azir »

It runs well anyway, but I'm quite unsatisfied with full 8 monitor in montage so I grouped into 2 groups, each 4 monitor ..

It runs Zoneminder-1.23.2 on Slackware-12, just run as server, no monitor, keyboard, mouse. Only run services required by zm and me :) I need ssh
cam settings:
func = modect
size = 320x240, RGB24
buffer = default
MaxFPS = AlarmMaxFPS = 12

Browser Firefox 2.0.0.4 w/ config:
network.http.pipelining = true
network.http.proxy.pipelining = true
network.http.pipelining.maxrequest = 32
network.http.max-connections-* = 32
network.http.max-persistent-connections-* = 32

cpu load
idle = 0.51
peak = 1.96
this post http://www.zoneminder.com/forums/viewtopic.php?t=6419 seems work for me
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Thank you for posting back, sounds great ;)
foreverg
Posts: 25
Joined: Fri Jul 04, 2008 4:16 pm

Re: problem solved

Post by foreverg »

liviud wrote:For saa7134 chipset this problem can be solved in few steps

1. download kernel sources
2. edit drivers/media/video/saa7134/saa7134.h , search for
#define SAA7134_MAXBOARDS 8
#define SAA7134_INPUT_MAX 8
and change values in what you need
3. compile
4. reboot and play

i hoppe this will help
I'm having the same iusse making work two 8 chip saa7134 cards at the same time on ubuntu server..

Have anyone got a patch to solve that?
Post Reply