Installation et configuration de zoneminder sur A10


zoneminder est un logiciel de vidéosurveillance, beaucoup plus évolué que motion (ou ce que j’aurais codé 🙂 )

par contre sur débian jessie (distribution sur A10 olinuxino) il faut réaliser quelques opérations :

voila, reste à configurer l’ensemble avec les caméras, et develloper une passerelle vers jeedom

 

olinuxino A10S on debian jessie with cedarx accel


these instructions activate the acceleration on X11 and cedarx for A10S ,

first , i install the A10S stock image , then i resize the partition and cross compile a linux sunxi kernel, the 3.4.103+ is ok , when i use the 3.4.104+ it doesn’t work, activate :

  • CONFIG_FHANDLE=y
  • CONFIG_DRM=m
  • CONFIG_FB=y
  • CONFIG_FB_SUNXI=y
  • CONFIG_FB_SUNXI_RESERVED_MEM=y
  • CONFIG_FB_SUNXI_LCD=y
  • CONFIG_FB_SUNXI_HDMI=y

NOTA :

  • if you don’t activate the DRM it will crash when you try to use cedar for acceleration
  • i’don’t activate MALI , it seems very unstable

here is my config config_3.4.103+_accelok

after that :

  • use this tuto and serial console to upgrade to jessie , i also create a new user as a member of « video » group
  • use these instructions to install FBTURBO : https://linux-sunxi.org/Xorg and configure xorg.conf as bellow (no G2D on A10S) :

Section « Device »
Identifier « Allwinner A10/A13 FBDEV »
Driver « fbturbo »
Option « fbdev » « /dev/fb0 »
Option « AccelMethod » « CPU »
Option « SwapbuffersWait » « true »
EndSection

test using becnhmark functions of ffmpeg

without acceleration –> 15fps and 85% load

export VDPAU_DRIVER=sunxi

export DISPLAY=:0.0

FFmpeg-Cedrus/ffmpeg -benchmark  -i big_buck_bunny_1080p_H264_AAC_25fps_7200K.MP4  -f null out.null

with acceleration –> 30fps and 50% load

export VDPAU_DRIVER=sunxi

export DISPLAY=:0.0

FFmpeg-Cedrus/ffmpeg -benchmark -hwaccel vdpau -i big_buck_bunny_1080p_H264_AAC_25fps_7200K.MP4 -f null out.null

that’s all!

ESP8266 first connection


Preamble

i’ve bought an ESP8266 module on ebay for less than 4€ few month ago,
a good description of the chip is avalaible here :
http://www.electrodragon.com/w/ESP8266 and a procedure to update the firmware
the SDK is now available on linux see https://github.com/esp8266/esp8266-wiki/wiki/Toolchain

the page https://nurdspace.nl/ESP8266 explain each AT command in detail

first connection

the chip only accept 3.3V so i use a PC power supply (i still waiting for an MB102 power supply module) and a 3.3V serial / USB converter pl2303 from prolific
and the photo below describe my connection
esp8266.png

Lire la suite

ESP8266 update


prepare

software :

hardware :

  • turn off the esp8266 module
  • connect the esp8266 to the linux PC using serial / usab cable (as explained before)
  • additionnaly , connection GPIO0 to GND, connected during update onlys

so the connection will be :

Serial converter ESP8266 POWER SUPPLY
TX (out) URXD
RX (in) UTXD
GND GND GND
VCC 3.3V
CH_PD 3.3V
GPIO0 GND

update process

type the folowing command inside a the terminal , into directory used to uncompress the files DON’T PRESS ENTER :
python esptool.py --port /dev/ttyUSB0 write_flash 0x00000 firmware0950.bin 
NOTA : firmware0950.bin was the name after space removal
after that power on you ESP8266 then press ENTER, after few seconds the message below shall appear :
Connecting...
Erasing flash...
Writing at 0x0007ec00... (100 %)
the progress is indicated and the prompt shall appear
power of the ESP8266 module and remove the connection between GPIO0 and GND

reboot and check version

NOTA : after upgrade , you shall modify your serial line speed to 9600baud, t
after reboot, check the version using AT+GMR command :
AT+GMR
00200.9.5(b1)
compiled @ Dec 25 2014 21:40:28
AI-THINKER Dec 25 2014
that’s all !