Page 2 of 2

Re: Cubieboard2 + domoticz

Posted: Tuesday 02 September 2014 0:49
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).

Re: Cubieboard2 + domoticz

Posted: Friday 12 September 2014 0:30
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.

Re: Cubieboard2 + domoticz

Posted: Friday 12 September 2014 6:29
by Derik
Look @ the wiki
Change pi to your hardware somwhere in a rule

I see pi in your code

Re: Cubieboard2 + domoticz

Posted: Friday 12 September 2014 19:13
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).

Re: Cubieboard2 + domoticz

Posted: Sunday 14 September 2014 14:34
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?

Re: Cubieboard2 + domoticz

Posted: Sunday 14 September 2014 17:51
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.

Re: Cubieboard2 + domoticz

Posted: Sunday 14 September 2014 18:40
by Derik
I see wheezy,
no Jessie image ?

Re: Cubieboard2 + domoticz

Posted: Sunday 14 September 2014 19:17
by m_g_s_g
In the OP, click on HDMI:

Jessie v2.4 VGA | HDMI (340 Mb)

Re: Cubieboard2 + domoticz

Posted: Sunday 14 September 2014 19:45
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....

Re: Cubieboard2 + domoticz

Posted: Sunday 14 September 2014 20:54
by bizziebis

Re: Cubieboard2 + domoticz

Posted: Sunday 14 September 2014 21:20
by Derik
THANKS!!

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

That explane perhaps that i was not able to find it...

Re: Cubieboard2 + domoticz

Posted: Sunday 14 September 2014 22:31
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.

Re: Cubieboard2 + domoticz

Posted: Monday 20 June 2016 21:11
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

Re: Cubieboard2 + domoticz

Posted: Tuesday 21 June 2016 5:41
by antwan
I use Armbian.
Ssd is possible.

Re: Cubieboard2 + domoticz

Posted: Tuesday 21 June 2016 6:56
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...

Re: Cubieboard2 + domoticz

Posted: Tuesday 21 June 2016 7:40
by gizmocuz
see the armbian install instructions, there is a script to copy it to the nand or ssd drive

Re: Cubieboard2 + domoticz

Posted: Tuesday 21 June 2016 7:54
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

Re: Cubieboard2 + domoticz

Posted: Tuesday 28 June 2016 16:07
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