zoneminder, amahi & Bluecherry BC-H16480A

er0sion
Posts: 5
Joined: Sun Jul 10, 2011 8:54 am

zoneminder, amahi & Bluecherry BC-H16480A

Postby er0sion » Fri Dec 02, 2011 11:12 am

Hello everyone!

I've seen a lot of requests for zoneminder for amahi, so I thought I'd get to work on porting it over to amahi. I guess the one in alpha has stalled or something. Anyway, here is my current set up:

F14 x64: (kernel 2.6.35-106)
Bluecherry BC-H16480A

Yesterday, I successfully installed the zoneminder app in amahi.
Today, I sucessfully compiled the Bluecherry driver and all 16 video's showed up in /dev

If you are planning on compiling bluecherry's driver for solo6x10 chipset, you do need to patch some of the source files from the bluecherrydvr git repository in order for it to compile.
View this thread and search for solo6010-patch.txt and get the 2 files in that post.
http://support.bluecherrydvr.com/entrie ... eg-4-h-264
The patch will fail in solo6010-v4l2-enc.c, and thats okay! Simply nano solo6010-v4l2-enc.c and change line 819 to look like this:

#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,35)

Then "sudo make; sudo make install; sudo depmod -a" and you should be good to go. Reboot your hda after installing the driver then check /dev to make sure you see your video sources.

Here is my dmesg | grep -i solo:

[ 7.841132] solo6x10 0000:07:05.0: Probing Softlogic 6110
[ 7.841533] solo6x10 0000:07:05.0: PCI INT A -> Link[AE4B] -> GSI 16 (level, low) -> IRQ 16
[ 8.718792] solo6x10 0000:07:05.0: Display as /dev/video0 with 16 inputs (5 extended)
[ 8.779321] solo6x10 0000:07:05.0: Encoders as /dev/video1-16
[ 8.779538] solo6x10 0000:07:05.0: Alsa sound card as Softlogic0

I will be hooking up a camera this weekend and testing it.

My goal is to create a jquery mobile amahi theme for touch screen devices, then improve the zoneminder touchscreen interface.

When that is complete I will either write a tutorial or attempt to make a 1-click app. This thread will detail my progress.

er0sion
Posts: 5
Joined: Sun Jul 10, 2011 8:54 am

Re: zoneminder, amahi & Bluecherry BC-H16480A

Postby er0sion » Mon Dec 05, 2011 4:30 pm

I picked up a BNC camera and connected it. I was able to see video using "cheese" but zoneminder 1.24.2 (fc14's version) was not letting me query my camera for settings using zmu:
zmu -d /dev/video1 -q -v
error: Error, failed to get video capabilties /dev/video0:invalid argument

I read this is a bug in 1.24, so off to install the latest.

Grabbed the latest, installed some dependencies, (note: if you see a perl related dependency, install with "cpan dependency").
Sys::Mmap does not have an rpm in fc14, grab fc15's perl-Sys-Mmap rpm, install, and install the module in perl using "cpan Sys::Mmap"

After uzipping the latest zoneminder tar to /usr/src you will need to perform the following command line:

sudo ./configure -bindir=/usr/bin --with-libarch=/usr/lib64 --with-mysql=/usr/lib64/mysql --with-webdir=/usr/share/zoneminder/www --with-cgidir=/usr/libexec/zoneminder/cgi-bin ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=zmuser ZM_DB_PASS=zmpass ZM_SSL_LIB=openssl --enable-debug=no --with-extralibs="-L/usr/lib64 -L/usr/lib64/mysql -L/usr/lib64/perl5/vendor_perl/Sys/Mmap" --with-webgroup=apache --with-webuser=users --enable-mmap=yes CPPFLAGS="-D__STDC_CONSTANT_MACROS ${CPPFLAGS}"

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: zoneminder, amahi & Bluecherry BC-H16480A

Postby bigfoot65 » Mon Dec 05, 2011 8:29 pm

Great work! It would be greatly appreciated if you could put the tutorial in the wiki. It is easier for users to follow and find for those interested. We are trying to make the wiki our primary source of how-to and such.

We have several versions of this currently as a one-click app in Amahi. Once you have it stable, we could give you access to update the app. It then could be installed by users with little or no additional configuration.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Who is online

Users browsing this forum: No registered users and 7 guests