• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
problems compiling pilight on Odroid C2
#21
Can you post the output of:
Code:
uname -a

And the first 10 lines of:
Code:
apt-cache policy pilight
 
Reply
#22
(07-31-2018, 06:26 AM)curlymo Wrote: Can you post the output of:
Code:
uname -a

And the first 10 lines of:
Code:
apt-cache policy pilight

Code:
root@DietPi:~# uname -a
Linux DietPi 3.16.56+ #1 SMP PREEMPT Wed Apr 18 16:59:34 CEST 2018 aarch64 GNU/Linux

Code:
root@DietPi:~# apt-cache policy pilight
N: Unable to locate package pilight

the last one is logic, since I compiled pilight from source. Installing via the pilight instructions for debian based linux resulted in the error message that pilight was not available for this architecture.
Not sure how that works but could the libluajit be the problem there? when I follow the instructions for compiling from source it failed the first time on the libluajit error, see the first post, but that was solved like described in post #4
 
Reply
#23
Can you search the source for these lines and remove them:
Code:
#if defined(__arm__) || defined(__mips__)
Then recompile.
 
Reply
#24
(07-31-2018, 07:19 PM)curlymo Wrote: Can you search the source for these lines and remove them:
Code:
#if defined(__arm__) || defined(__mips__)
Then recompile.

ok thanx, Ill try, but in which specific file should I look for this line?
 
Reply
#25
Just do a search in the full source.
 
Reply
#26
Can you check the apt package i created for the aarch64?
 
Reply
#27
(07-31-2018, 09:39 PM)curlymo Wrote: Just do a search in the full source.

Code:
root@DietPi:~/pilight# grep -r -n 'if defined(__arm__) || defined(__mips__)' *.*
daemon.c:2845:#if defined(__arm__) || defined(__mips__)

I will erase it and recompile

update, made the following change:
Code:
/*
#if defined(__arm__) || defined(__mips__)
               printf("\n\tThe following GPIO platforms are supported:\n");
               char **out = NULL;
               int z = 0, i = wiringXSupportedPlatforms(&out);

               printf("\t- none\n");
               for(z=0;z<i;z++) {
                       printf("\t- %s\n", out[z]);
                       free(out[z]);
               }
               free(out);
               printf("\n");
#endif
*/
after this and a reboot pilght service reports the following:
Code:
root@DietPi:~# service pilight status
● pilight.service - LSB: Starts pilight-daemon
  Loaded: loaded (/etc/init.d/pilight; generated; vendor preset: enabled)
  Active: active (exited) since Fri 2018-08-03 22:09:49 BST; 5min ago
    Docs: man:systemd-sysv-generator(8)
 Process: 432 ExecStart=/etc/init.d/pilight start (code=exited, status=0/SUCCESS)
  CGroup: /system.slice/pilight.service

Aug 03 22:09:48 DietPi systemd[1]: Starting LSB: Starts pilight-daemon...
Aug 03 22:09:49 DietPi pilight[432]: Starting : pilight.
Aug 03 22:09:49 DietPi systemd[1]: Started LSB: Starts pilight-daemon.
and
Code:
root@DietPi:~# pilight-daemon -D
[ Aug 03 21:17:16:94306] pilight-daemon: DEBUG: loaded event function /usr/local/lib/pilight/functions/random.lua v2.1
[ Aug 03 21:17:16:95063] pilight-daemon: DEBUG: loaded event function /usr/local/lib/pilight/functions/date_format.lua v1.0
[ Aug 03 21:17:16:95656] pilight-daemon: DEBUG: loaded event function /usr/local/lib/pilight/functions/date_add.lua v2.0
[ Aug 03 21:17:16:96064] pilight-daemon: DEBUG: loaded event operator /usr/local/lib/pilight/operators/divide.lua v1.0
[ Aug 03 21:17:16:96355] pilight-daemon: DEBUG: loaded event operator /usr/local/lib/pilight/operators/minus.lua v1.0
[ Aug 03 21:17:16:96581] pilight-daemon: DEBUG: loaded event operator /usr/local/lib/pilight/operators/multiply.lua v1.0
[ Aug 03 21:17:16:96809] pilight-daemon: DEBUG: loaded event operator /usr/local/lib/pilight/operators/eq.lua v1.0
[ Aug 03 21:17:16:97010] pilight-daemon: DEBUG: loaded event operator /usr/local/lib/pilight/operators/lt.lua v1.0
[ Aug 03 21:17:16:97267] pilight-daemon: DEBUG: loaded event operator /usr/local/lib/pilight/operators/gt.lua v1.0
[ Aug 03 21:17:16:97507] pilight-daemon: DEBUG: loaded event operator /usr/local/lib/pilight/operators/plus.lua v1.0
[ Aug 03 21:17:16:97731] pilight-daemon: DEBUG: loaded event operator /usr/local/lib/pilight/operators/or.lua v1.0
[ Aug 03 21:17:16:97955] pilight-daemon: DEBUG: loaded event operator /usr/local/lib/pilight/operators/le.lua v1.0
[ Aug 03 21:17:16:98189] pilight-daemon: DEBUG: loaded event operator /usr/local/lib/pilight/operators/intdivide.lua v1.0
[ Aug 03 21:17:16:98566] pilight-daemon: DEBUG: loaded event operator /usr/local/lib/pilight/operators/and.lua v1.0
[ Aug 03 21:17:16:98883] pilight-daemon: DEBUG: loaded event operator /usr/local/lib/pilight/operators/ge.lua v1.0
[ Aug 03 21:17:16:99325] pilight-daemon: DEBUG: loaded event operator /usr/local/lib/pilight/operators/ne.lua v1.0
[ Aug 03 21:17:16:99576] pilight-daemon: DEBUG: loaded event operator /usr/local/lib/pilight/operators/modulus.lua v1.0
[ Aug 03 21:17:16:99762] pilight-daemon: DEBUG: loaded event operator /usr/local/lib/pilight/operators/concat.lua v1.0
[Aug 03 21:17:16:100345] pilight-daemon: DEBUG: loaded event action /usr/local/lib/pilight/actions/sendmail.lua v4.1
[Aug 03 21:17:16:101339] pilight-daemon: DEBUG: loaded event action /usr/local/lib/pilight/actions/switch.lua v4.1
[Aug 03 21:17:16:101870] pilight-daemon: DEBUG: loaded event action /usr/local/lib/pilight/actions/pushover.lua v1.0
[Aug 03 21:17:16:102225] pilight-daemon: DEBUG: loaded event action /usr/local/lib/pilight/actions/pushbullet.lua v1.0
[Aug 03 21:17:16:103242] pilight-daemon: DEBUG: loaded event action /usr/local/lib/pilight/actions/label.lua v4.1
[Aug 03 21:17:16:104178] pilight-daemon: DEBUG: loaded event action /usr/local/lib/pilight/actions/toggle.lua v4.1
[Aug 03 21:17:16:105545] pilight-daemon: DEBUG: loaded event action /usr/local/lib/pilight/actions/dim.lua v4.1
[Aug 03 21:17:16:107030] pilight-daemon: INFO: version v8.1.2-nightly-271a0ad
[Aug 03 21:17:16:107238] pilight-daemon: DEBUG: ssdp sent search
[Aug 03 21:17:16:205159] pilight-daemon: INFO: no pilight daemon found, daemonizing
[Aug 03 21:17:16:229202] pilight-daemon: INFO: daemon listening to port: 48959
[Aug 03 21:17:16:229821] pilight-daemon: INFO: secured webserver started on port: 5002 (fd 12)
[Aug 03 21:17:16:229857] pilight-daemon: DEBUG: new thread socket, 1 thread running
[Aug 03 21:17:16:229974] pilight-daemon: INFO: new client, ip: 127.0.0.1, port: 44049
[Aug 03 21:17:16:230000] pilight-daemon: DEBUG: new thread ssdp, 2 threads running
[Aug 03 21:17:16:230087] pilight-daemon: DEBUG: new thread sender, 3 threads running
[Aug 03 21:17:16:230184] pilight-daemon: DEBUG: new thread broadcaster, 4 threads running
[Aug 03 21:17:16:230272] pilight-daemon: DEBUG: new thread receive parser, 5 threads running
[Aug 03 21:17:16:230354] pilight-daemon: DEBUG: new thread events client, 6 threads running
[Aug 03 21:17:16:230434] pilight-daemon: DEBUG: new thread events loop, 7 threads running
[Aug 03 21:17:16:230569] pilight-daemon: DEBUG: client fd: 14
[Aug 03 21:17:16:230605] pilight-daemon: DEBUG: client id: 1
[Aug 03 21:17:16:230650] pilight-daemon: DEBUG: ssdp sent search
[Aug 03 21:17:16:230649] pilight-daemon: INFO: regular webserver started on port: 5001 (fd 13)
[Aug 03 21:17:16:231047] pilight-daemon: DEBUG: ssdp sent notify
[Aug 03 21:17:16:325361] pilight-daemon: INFO: new client, ip: 192.168.168.2, port: 43497
[Aug 03 21:17:16:325409] pilight-daemon: DEBUG: client fd: 16
[Aug 03 21:17:16:325427] pilight-daemon: DEBUG: client id: 2
[Aug 03 21:17:16:325425] pilight-daemon: DEBUG: socket write succeeded: {"action":"identify","options":{"config":1,"receiver":1},"media":"all"}

[Aug 03 21:17:16:325535] pilight-daemon: DEBUG: socket recv: {"action":"identify","options":{"config":1,"receiver":1},"media":"all"}
[Aug 03 21:17:16:325641] pilight-daemon: DEBUG: socket write succeeded: {"status":"success"}

[ Aug 03 21:17:17:84914] pilight-daemon: DEBUG: cpu: 0.000000%
[ Aug 03 21:17:20:85332] pilight-daemon: DEBUG: cpu: 0.051627%
[ Aug 03 21:17:23:85484] pilight-daemon: DEBUG: cpu: 0.080897%
Adding proper gpio platform made it running, now reboot
pilight status now reads
Code:
root@DietPi:~# service pilight status
● pilight.service - LSB: Starts pilight-daemon
  Loaded: loaded (/etc/init.d/pilight; generated; vendor preset: enabled)
  Active: active (running) since Fri 2018-08-03 22:26:18 BST; 4min 3
8s ago
    Docs: man:systemd-sysv-generator(8)
 Process: 501 ExecStart=/etc/init.d/pilight start (code=exited, status=0/SUCCES
S)
  CGroup: /system.slice/pilight.service
          └─655 /usr/local/sbin/pilight-daemon

Aug 03 22:26:17 DietPi systemd[1]: Starting LSB: Starts pilight-daemon...
Aug 03 22:26:18 DietPi pilight[501]: Starting : pilight.
Aug 03 22:26:18 DietPi systemd[1]: Started LSB: Starts pilight-daemon.
Webgui opens, but home-assistant cannot initialize. after adding port number to config.json home-assistant can initialize, will add the transmitter tomorrow again. for now thanks for the support
 
Reply
#28
(08-03-2018, 08:15 PM)curlymo Wrote: Can you check the apt package i created for the aarch64?

yes off course, please let me know where I can find it, do I download it seperately or just
Code:
apt-get install pilight
?
 
Reply
#29
How you checked if your assumption was right?
 
Reply
#30
not sure which assumption you mean. 
After adding 433gpio code to config.json, I get the similar error as befor, 433 gpio is not supported
Code:
[  Aug 04 10:37:14:5974] pilight-daemon: ERROR: the 433gpio module is not supported on this hardware

config.json looks now like this
Code:
{
       "devices": {},
       "rules": {},
       "gui": {},
       "settings": {
               "log-level": 6,
               "pid-file": "/var/run/pilight.pid",
               "log-file": "/var/log/pilight.log",
               "webserver-enable": 1,
               "webserver-root": "/usr/local/share/pilight/webgui",
               "port": 5000,
               "webserver-http-port": 5001,
               "webserver-https-port": 5002,
               "webserver-cache": 1,
               "gpio-platform": "odroidc2"
       },
       "hardware": {
               "433gpio": {
                       "sender": 15,
                       "receiver": 1
               }
       },
       "registry": {
               "webserver": {
                       "ssl": {
                               "certificate": {
                                       "secure": 1,
                                       "location": "/etc/pilight/pilight.pem"
                               }
                       }
               },
               "pilight": {
                       "version": {
                               "current": "8.1.2"
                       }
               }
       }
}
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  Bug: double free or corruption in pilight-send blackzombie 12 104 10-07-2019, 08:15 PM
Last Post: blackzombie
  pilight-control modify values coolinx 2 78 09-20-2019, 07:24 PM
Last Post: coolinx
  [Fixed] High CPU usage when pilight usb nano disconnects DieterK 1 132 08-13-2019, 05:43 PM
Last Post: curlymo
  pilight Nano USB interface curlymo 228 97,117 07-10-2019, 06:14 PM
Last Post: curlymo
  pilight 8 what chages for custom protocols? polo 11 2,897 02-15-2019, 06:22 PM
Last Post: polo
  pilight-debug shows nothing minhdomanh 3 541 10-18-2018, 07:01 AM
Last Post: felfert
  pilight-send and pilight-daemon DieterK 0 558 06-20-2018, 12:44 AM
Last Post: DieterK
  Lights not switched on or off by rules in pilight 8.1.0 rorie 22 2,491 06-12-2018, 03:56 PM
Last Post: curlymo
  Odroid C2 support on Kernel 4.14 Jojo 5 698 06-01-2018, 03:19 PM
Last Post: curlymo
  check API in pilight 8 stratege-0815 4 1,397 02-11-2018, 09:34 AM
Last Post: stratege-0815

Forum Jump:


Browsing: 1 Guest(s)