[HowTo] Installation on HummingBoard i2eX

Tips, Tricks and Scripts to enhance your home automation and workaround known device bugs, limitations and incompatibilities
Nadhyr
Posts: 4
Joined: 19 Jul 2015 20:01

[HowTo] Installation on HummingBoard i2eX

Post by Nadhyr »

Moderator note: We try to keep this first post with instructions up to date.

Last updated: 2015-07-27
Tested with: v2.0.1 ???
STATUS: Final

I chose the i2ex for all his abilities that are far superior to Raspberry.
My goal was to use this i2ex of Solidrun to install, Domoticz with a Zwave controller (Razberry GPIO daughter card), Rfbee to control heating Honeywell, with an Arduino Mega RFLINK 433 for the control of catches and lights.

A: Installation

Prerequisite:
  • HummingBoard a motherboard connected to your home network
  • a 5v power supply 2A
  • Razberry a GPIO card, connect to the motherboard HummingBoard
  • Sd Card Class 10
  • Putty installed on a computer on your network
  • (For Arduino part, if someone is interested, send an email)
1-download and install the following image

http://mirror.igorpecovnik.com/Cubox-i_ ... .14.14.zip

ps: you must simply unzip and burn the image to your SD card. If you have problems, it is imperative formatted your SD card in fat or fat 32.

For those who wish, you can use the ignition SolidRun (Debian Wheezy), but the installation will be longer and at this time, some sources are problematic.

LOGIN / PASS: root / 1234

The first time you will be asked to change the password.

Once you're indentified, start Putty.
Enter the address of the Ip hummingboard on your network, port 22, SSH connection.
Then you are prompted to enter the name of the SSH account:

LOGIN: root
no password: the one you have previously chosen.

after that, everything goes faster !!

(You can copy / paste, simply by selecting and making must click on your mouse)

To the system:
  1. apt-get update && apt-get upgrade
  2. dpkg-reconfigure tzdata (choose your location: Ex: EUROPE - Paris)
  3. sudo apt-get install cmake make gcc g ++ libboost-dev libboost-thread-dev libboost-system-dev-dev subversion libsqlite3 curl libcurl4-openssl-dev libusb-dev
  4. sudo apt-get install cmake libboost-dev libboost-thread-dev libboost-system-dev-dev subversion libsqlite3 curl libcurl4-openssl-dev libusb-dev zlib1g-dev
For the bookshop OpenZwave:
  1. sudo apt-get install libudev-dev
  2. git clone https://github.com/OpenZWave/open-zwave.git
  3. ln -s open Zwave Zwave open-read-only
  4. cd open Zwave
  5. 5- make
  6. cd ..
For Razberry, which I frankly problem.
edit the / etc / inittab
  1. cd ~ /
  2. nano (you should have a console with marked GNU nano 2.2.6), which is a kind of file editor)
  3. to CONTROL T
  4. to R CONTROL
  5. You should arrive in 5- DIR: / root
  6. direct you in ... (parent dir)
  7. direct you in / etc
  8. looking for the inittab file (2 kb) and validated

    there should see things like this

    Code: Select all

    #
    # T0: 23: respawn: / sbin / getty -L ttymxc0 9600 vt100
    # T1: 23: respawn: / sbin / getty -L 9600 ttyS1 vt100
    
    # Example how to put a getty was modem line.
    #
    # T # 3: 23: respawn: / sbin / mgetty -X0 -s 57600 ttyS3
    
    T0: 2345: respawn: / sbin / getty -L ttymxc0 115200 vt100
    
    Clearly, unlike Raspberry for which to create a symbolic link to AMA0 USB20, a HummingBaord, we see that the port is routed mxc0 port.

    So you have just modified the file by adding a # before the line T0 2345 ..

    Code: Select all

    #
    # T0: 23: respawn: / sbin / getty -L ttymxc0 9600 vt100
    # T1: 23: respawn: / sbin / getty -L 9600 ttyS1 vt100
    
    # Example how to put a getty was modem line.
    #
    # T # 3: 23: respawn: / sbin / mgetty -X0 -s 57600 ttyS3
    
    # T0: 2345: respawn: / sbin / getty -L ttymxc0 115200 vt100
  9. CONTROL to x (command to exit)
  10. You are asked to save, do y (yes), then validated
  11. Then you are asked the saving path: / etc / inittab
  12. crush: yes
it's over for Razberry !!!!
A simple story #
and knowledge of the port: ttymxc0

B: Installing Domoticz
  1. cd ~ /
  2. mkdir domoticz
  3. cd domoticz
  4. 4-1 wget http://nadhyr.deffar.free.fr/domoticz_linux_armv6l.tgz
    or
  5. 4-2 wget http://nadhyr.deffar.free.fr/domoticz_linux_armv6l.tgz
    4-1 4-2 Stable beta
  6. xzvf domoticz_linux_armv6l tar or tar xzvf domoticz_linux_armv7l.tgz
  7. domoticz_linux_armv6l.tgz rm or rm domoticz_linux_armv7l.tgz

    To verify that domoticz, type (./domoticz)
    You should see this:

    Code: Select all

    2015-07-23 11: 02: 51,966 Domoticz V2.2657 (c) 2012-2015 GizMoCuz
    2015-07-23 11: 02: 51,967 Startup Path: / root / domoticz /
    2015-07-23 11: 02: 52,038 Sunrise: 6:05:00 SunSet: 21: 46: 00
    2015-07-23 11: 02: 52,046 Active notification subsystems: http (1/8)
    2015-07-23 11: 02: 52,049 Webserver started on Port: 8080
    2015-07-23 11: 02: 53,554 Hardware Monitor: Started
    Domoticz works !!!
  8. domoticz leave the server, making CONTROL c
Installation symbolic sliens rooter for ttymxc0 obverse USB20 for domoticz recognize our Razberry.

Putty in the console,
  1. cd ~ /
  2. nano -w /etc/udev/rules.d/09-tty.rules
  3. enter the following line:
    KERNEL == "ttymxc0" SYMLINK + = "ttyUSB20"
  4. CONTROL do x, then yes, then enter to save
  5. ln -s / dev / ttymxc0 / dev / ttyUSB20
    (Command to the port rooter Razberry ttymxc0 towards the USB20

C: Last step

domoticz start (visit the domoticz folder, and make ./domoticz)
eg root @ Cubox-i: ~ / # domoticz ./domoticz

Go in part Harware, add Razberry, with:
Name: Razberry
Type: OpenZwave Usb
Port: / dev / ttymsc0
and confirm.

Then click setup, and you should see the Razberry, registered as a controller !!

Here Is.

sources:
http://www.domoticz.com/wiki/Install.txt
http://www.vesternet.com/resources/appl ... bDEqPntmkr
https://www.chopperrob.nl/domoticz/13-i ... mmingboard
https://domotiga.nl/projects/domotiga/w ... e_RaZberry

good luck everybody !

Moderator note: Moved the original post as quote to post 3
pofs
Posts: 688
Joined: 25 Mar 2011 19:03

Re: HummingBoard i2eX

Post by pofs »

Moderator note: Moved the original post as quote to post 3
jonnes1
Posts: 7
Joined: 27 Jan 2013 03:00

Re: HummingBoard i2eX

Post by jonnes1 »

jonnes1 wrote: Hi,

I recently bought a Hummingboard due to a faster processor, more memory and the mSATA would love to use in automation projects, and from what I read in the documentation the GPIO is equal to the Raspberry therefore believe that will work, i am using Debian (Jessie) the instalation procedure would be the same? Or i have to compile from source?

http://www.solid-run.com/products/hummi ... mentation/

http://www.solid-run.com/support/downloads/

Thanks for any help.
pofs wrote:Installation procedure will likely be the same, but you'll probably need to manually configure serial port (the procedure is OS-specific, so refer your OS/board docs).

Hi,

Using a tutorial from cubieboard: https://www.domotiga.nl/projects/domoti ... e_RaZberry, i can run the software but i can't connect serial port, someone can help?

Thanks,
User avatar
PoltoS
Posts: 7565
Joined: 26 Jan 2011 19:36

Re: HummingBoard i2eX

Post by PoltoS »

You need to figure out the name of the port used in your hardware and change it in Z-Wave Binding module
zoic22
Posts: 45
Joined: 04 Apr 2014 14:21

Re: HummingBoard i2eX

Post by zoic22 »

Hi,

I just tried razberry v5, z-way 2.0 on hummingboard 1x with jessie but I can not start zway. I replace /dev/ttyAMA0 by /dev/ttymxc0. I also comment /etc/inittab, but when I start zway I got :
Notification: critical (z-wave): Can not start Z-Wave binding: Error: Bad data - communication failed

I check on rpi my razberry is ok. What can I test to find the probleme ?
zoic22
Posts: 45
Joined: 04 Apr 2014 14:21

Re: HummingBoard i2eX

Post by zoic22 »

I juste test on wheezy and it's ok so I think z-way-server is not compatible with jessie
zoic22
Posts: 45
Joined: 04 Apr 2014 14:21

Re: HummingBoard i2eX

Post by zoic22 »

I find how to solve that :
- systemctl mask serial-getty@ttymxc0.servic
- edit /boot/uEnv.txt and remove reference to ttymxc0 (console=ttymxc0,xxxx)
Chopper_Rob
Posts: 5
Joined: 07 Jan 2015 00:13

Re: HummingBoard i2eX

Post by Chopper_Rob »

Hi Zoic22. Can you post your config.xml.
I'am also trying to install the razberry on an hummingboard. I installed Debian wheezy and removed the reference in inittab, removed the reference in uEnv and run the systemctl command you posted. But still without luck.

I get this in the z-way-server log files:
[2015-01-06 22:09:34.393] [C] [i/o] Failed to open device: No such file or directory
[2015-01-06 22:09:34.393] [E] [zway] SaveData will not save data since it wasn't loaded. This is to prevent data loss.
[2015-01-06 22:09:34.413] [core] Notification: critical (z-wave): Can not start Z-Wave binding: Error: Invalid port

When i grep the tty ports from dmesg i got 2 ports, but both are not working.
[ 0.000706] console [tty0] enabled
[ 0.749355] 2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 58, base_baud = 5000000) is a IMX
[ 0.750061] 21f0000.serial: ttymxc3 at MMIO 0x21f0000 (irq = 61, base_baud = 5000000) is a IMX
zoic22
Posts: 45
Joined: 04 Apr 2014 14:21

Re: HummingBoard i2eX

Post by zoic22 »

There is no change in config.xml, in z-way 2.0 all configuration is in HA UI
Chopper_Rob
Posts: 5
Joined: 07 Jan 2015 00:13

Re: HummingBoard i2eX

Post by Chopper_Rob »

That explains a lot. I will check it tonight, thank you
Post Reply