Cubieboard2 + domoticz

Others (MiLight, Hue, Toon etc...)

Moderator: leecollings

m_g_s_g
Posts: 11
Joined: Sunday 03 November 2013 16:14
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: ES
Contact:

Re: Cubieboard2 + domoticz

Post by m_g_s_g »

Nice to know. Well, I was having lately some annoying delays using Openzwave (not in the past), I had other plans for this Raspi, and saw some recommendations to use CB2, so I took the plunge. The delays are gone (but I still have to move everything that was on the Raspi to the CB2: 2 GPIO reed sensors and a Node.js server for Sonos).
m_g_s_g
Posts: 11
Joined: Sunday 03 November 2013 16:14
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: ES
Contact:

Re: Cubieboard2 + domoticz

Post by m_g_s_g »

Hello!

I had to reinstall my cubie (it didn't boot after an apt-get upgrade ???), and I chose to use Debian Wheezy (not Jessie) from the same page that is referred from the wiki http://www.domoticz.com/wiki/Installing ... ubieBoard2.

But after the reinstall, I cannot start domoticz:
./domoticz: error while loading shared libraries: libudev.so.1: cannot open shared object file: No such file or directory

(Yes, I did install libudev-dev)

...nor compile it:

Code: Select all

[ 33%] Building CXX object CMakeFiles/domoticz.dir/hardware/HardwareMonitor.cpp.o
In file included from /usr/include/linux/kernel.h:4:0,
                 from /usr/include/arm-linux-gnueabihf/sys/sysinfo.h:25,
                 from /home/pi/domoticz/hardware/HardwareMonitor.cpp:14:
/usr/include/linux/sysinfo.h:8:2: error: ‘__kernel_long_t’ does not name a type
/usr/include/linux/sysinfo.h:9:2: error: ‘__kernel_ulong_t’ does not name a type
/usr/include/linux/sysinfo.h:10:2: error: ‘__kernel_ulong_t’ does not name a type
/usr/include/linux/sysinfo.h:11:2: error: ‘__kernel_ulong_t’ does not name a type
/usr/include/linux/sysinfo.h:12:2: error: ‘__kernel_ulong_t’ does not name a type
/usr/include/linux/sysinfo.h:13:2: error: ‘__kernel_ulong_t’ does not name a type
/usr/include/linux/sysinfo.h:14:2: error: ‘__kernel_ulong_t’ does not name a type
/usr/include/linux/sysinfo.h:15:2: error: ‘__kernel_ulong_t’ does not name a type
/usr/include/linux/sysinfo.h:18:2: error: ‘__kernel_ulong_t’ does not name a type
/usr/include/linux/sysinfo.h:19:2: error: ‘__kernel_ulong_t’ does not name a type
/usr/include/linux/sysinfo.h:21:22: error: ‘__kernel_ulong_t’ was not declared in this scope
/home/pi/domoticz/hardware/HardwareMonitor.cpp: In member function ‘void CHardwareMonitor::FetchUnixData()’:
/home/pi/domoticz/hardware/HardwareMonitor.cpp:372:35: error: ‘struct sysinfo’ has no member named ‘totalram’
/home/pi/domoticz/hardware/HardwareMonitor.cpp:372:54: error: ‘struct sysinfo’ has no member named ‘freeram’
/home/pi/domoticz/hardware/HardwareMonitor.cpp:373:51: error: ‘struct sysinfo’ has no member named ‘totalram’
make[2]: *** [CMakeFiles/domoticz.dir/hardware/HardwareMonitor.cpp.o] Error 1
make[1]: *** [CMakeFiles/domoticz.dir/all] Error 2
make: *** [all] Error 2
Has anybody have some clues? Or should I go back to linaro (or Debian Jessie)?

Thanks in advance.
Derik
Posts: 1602
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Cubieboard2 + domoticz

Post by Derik »

Look @ the wiki
Change pi to your hardware somwhere in a rule

I see pi in your code
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
m_g_s_g
Posts: 11
Joined: Sunday 03 November 2013 16:14
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: ES
Contact:

Re: Cubieboard2 + domoticz

Post by m_g_s_g »

Thanks Derik. No, I didn't have to change pi anywhere (btw: I created a pi user to streamline the move from a previous Raspi). It seems that it's a known problem under last Wheezy image (see quote, under this thread http://www.cubieforums.com/index.php/to ... 5.780.html).
I finally found a solution for the problem with compiling oscam. You have to add these lines to /usr/include/linux/sysinfo.h (just the four lines from #ifndef __kernel_long_t to #endif):
I have repeated all the steps using Jessie and everything worked fine. I just thought that Wheezy would be more stable.

Moral: If, according to the wiki for installing and running domoticz on cubieboard, you prefer to use debian instead of linaro, stick to Jessie (and not Wheezy).
Derik
Posts: 1602
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Cubieboard2 + domoticz

Post by Derik »

ok...
I will give jessie a try... [ on my other cb2 ]

Where do you download the image, is my first problem ]
And nand, or sd?
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
m_g_s_g
Posts: 11
Joined: Sunday 03 November 2013 16:14
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: ES
Contact:

Re: Cubieboard2 + domoticz

Post by m_g_s_g »

I've used the latest Jessie image linked from the opening post in that thread. It's only SD, but you can later move all to NAND executing a script from /root.

All is working Ok now for me.
Derik
Posts: 1602
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Cubieboard2 + domoticz

Post by Derik »

I see wheezy,
no Jessie image ?
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
m_g_s_g
Posts: 11
Joined: Sunday 03 November 2013 16:14
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: ES
Contact:

Re: Cubieboard2 + domoticz

Post by m_g_s_g »

In the OP, click on HDMI:

Jessie v2.4 VGA | HDMI (340 Mb)
Derik
Posts: 1602
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Cubieboard2 + domoticz

Post by Derik »

sorry i am a dombo for sure...

Op? opening post? i see no jessie, also no hdmi...
jessie 2.4 with google no thing like a image that i can use..

Please a download link....
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
User avatar
bizziebis
Posts: 182
Joined: Saturday 19 October 2013 14:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8805
Location: The Netherlands
Contact:

Re: Cubieboard2 + domoticz

Post by bizziebis »

Derik
Posts: 1602
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Cubieboard2 + domoticz

Post by Derik »

THANKS!!

Also for Cubieboard 2?
Or only for Cubietruck...

That explane perhaps that i was not able to find it...
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
User avatar
epierre
Posts: 522
Joined: Wednesday 05 March 2014 13:16
Target OS: Linux
Domoticz version:
Location: France
Contact:

Re: Cubieboard2 + domoticz

Post by epierre »

does anyone here have some issue between their internet router doint NAT, and their cubieboard ?

I have syn_wait syndrome that I don't have on a raspberry... either with nginx and lighttpd... so I guess this is not related to them.
ImperiHome & MyDomoAtHome on top of:
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
woody4165
Posts: 476
Joined: Monday 14 March 2016 13:55
Target OS: Linux
Domoticz version: beta
Location: Rome, Italy
Contact:

Re: Cubieboard2 + domoticz

Post by woody4165 »

Hi all

I have a Cubietruck (Cubieboard 3) on the way from China.
What is the best OS/ditro to work with Domoticz?
Is there a way to boot from Sata SSD ?

Thanks
Cubietruck - Linux cubietruck 4.13.16 (Debian GNU/Linux 8 (jessie)) + Domoticz + RFLink, Xiaomi Gateway, Owl USB, Yeelight Color and B/W, ESP8266, Broadlink RM2, Netatmo Thermostat
antwan
Posts: 116
Joined: Saturday 13 July 2013 13:28
Target OS: Linux
Domoticz version: Latest
Location: Hilversum, The Netherlands
Contact:

Re: Cubieboard2 + domoticz

Post by antwan »

I use Armbian.
Ssd is possible.
Rasp Pi 2B: 3x DS18S20 (1-wire), BME280 (i2c)
Cubietruck 1: Aeotec Z-Wave+, RFXtrx433XL+P1, RFXtrx868, TE923 display, SolarEdge API
Cubietruck 2: Aeotec Z-Wave, Voltcraft CO-20
woody4165
Posts: 476
Joined: Monday 14 March 2016 13:55
Target OS: Linux
Domoticz version: beta
Location: Rome, Italy
Contact:

Re: Cubieboard2 + domoticz

Post by woody4165 »

antwan wrote:I use Armbian.
Ssd is possible.
Thanks

I will go with armbian.
What abound booting from SSD, is there a wiki or a guide that I can look for? I haven't found many info...
Cubietruck - Linux cubietruck 4.13.16 (Debian GNU/Linux 8 (jessie)) + Domoticz + RFLink, Xiaomi Gateway, Owl USB, Yeelight Color and B/W, ESP8266, Broadlink RM2, Netatmo Thermostat
User avatar
gizmocuz
Posts: 2552
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Cubieboard2 + domoticz

Post by gizmocuz »

see the armbian install instructions, there is a script to copy it to the nand or ssd drive
Quality outlives Quantity!
woody4165
Posts: 476
Joined: Monday 14 March 2016 13:55
Target OS: Linux
Domoticz version: beta
Location: Rome, Italy
Contact:

Re: Cubieboard2 + domoticz

Post by woody4165 »

ok, found on https://github.com/igorpecovnik/lib/blo ... install.sh and found also on armbian docs http://www.armbian.com/documentation/ (How to install to eMMC, NAND, SATA & USB?)
I should have look better. :oops:
Now waiting for cubieboard and ssd to arrive
Cubietruck - Linux cubietruck 4.13.16 (Debian GNU/Linux 8 (jessie)) + Domoticz + RFLink, Xiaomi Gateway, Owl USB, Yeelight Color and B/W, ESP8266, Broadlink RM2, Netatmo Thermostat
woody4165
Posts: 476
Joined: Monday 14 March 2016 13:55
Target OS: Linux
Domoticz version: beta
Location: Rome, Italy
Contact:

Re: Cubieboard2 + domoticz

Post by woody4165 »

Just got the Cuibietruck (Cubieboard 3).
Installed armbian (having problem with ssd, written to armbian and cubieforums to find solution) and now trying to install domoticz.
I'm following the instruction at http://www.domoticz.com/wiki/Installing ... ubieBoard2.
When I download from http://domoticz.sourceforge.net/beta/do ... armv7l.tgz the file contains only

Code: Select all

linaro@cubietruck:~/domoticz$ tar xvfz domoticz_linux_armv7l.tgz
scripts/
scripts/download_update.sh
should I download something else to install domoticz?

Thanks
Cubietruck - Linux cubietruck 4.13.16 (Debian GNU/Linux 8 (jessie)) + Domoticz + RFLink, Xiaomi Gateway, Owl USB, Yeelight Color and B/W, ESP8266, Broadlink RM2, Netatmo Thermostat
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest