• 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
Banana Pi support
#1
As of today, pilight has gotten experimental support for the Banana Pi Dodgy Please test and let me know when there are any issues. I don't own a Banana Pi so it's still untested. The code is a nearly direct copy of the code offered by Banana Pi, so it should work. If you want to add support for other devices, ask me. Due to the modularity of the platform support, i can pretty easily add it.
 
Reply
#2
Hello,

in advance thank you for your work!!
I tried pilight on my new Bananpi but had o luck at the moment.

I used the Raspbian Image from Lemarker to try pilight.
There have not been any errors when i compile pilight but when i wanted to start pilight-daemon i got a "segmentation fault".

So i started the debug as described on yor site.

Output:
gdb pilight-daemon
GNU gdb (GDB) 7.4.1-debian
Copyright © 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "arm-linux-gnueabihf".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/local/sbin/pilight-daemon...(no debugging symbols found)...done.
(gdb) run -D
Starting program: /usr/local/sbin/pilight-daemon -D
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0xb6da0258 in ?? () from /lib/arm-linux-gnueabihf/libc.so.6


If i can help with something to get pilight working with the banana let me know.

Thanks!
Chris
 
Reply
#3
Yes, if you can meet me in the pilight IRC channel today it will be great! I really would like to get the BananaPi supported but don't own it myself.

Also, use code tags instead of making it italic.
 
Reply
#4
today i have tested two fresh images as discussed yesterday, but have the same proplem as with the Raspbian image we have tried.

Bananian image:
Linux bananapi 3.4.90+ #1 SMP PREEMPT Fri Sep 12 18:13:45 CEST 2014 armv7l GNU/Linux
Distributor ID: Debian
Description: Debian GNU/Linux 7.6 (wheezy)
Release: 7.6
Codename: wheezy
Code:
# gdb pilight-daemon
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "arm-linux-gnueabihf".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/pilight/pilight-daemon...done.
(gdb) run -D
Starting program: /home/pilight/pilight-daemon -D
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0xb6e3b59e in ?? () from /lib/arm-linux-gnueabihf/libc.so.6
(gdb) backtrace
#0  0xb6e3b59e in ?? () from /lib/arm-linux-gnueabihf/libc.so.6
#1  0xb6e3e006 in free () from /lib/arm-linux-gnueabihf/libc.so.6
#2  0x00000000 in ?? ()
(gdb)

Lubuntu image:
Linux lemaker 3.4.90 #2 SMP PREEMPT Tue Aug 5 14:11:40 CST 2014 armv7l armv7l armv7l GNU/Linux
Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
Release: 14.04
Codename: trusty

Without "USE SOFT FLOAT" when i do setup.sh:
Code:
[  6%] Building C object CMakeFiles/pilight.dir/libs/pilight/hardware.c.o
In file included from /usr/include/string.h:640:0,
                 from /home/pilight/libs/pilight/hardware.c:21:
In function ‘strcpy’,
    inlined from ‘hardware_init’ at /home/pilight/libs/pilight/hardware.c:82:8:
/usr/include/arm-linux-gnueabihf/bits/string3.h:104:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer [enabled by default]
   return __builtin___strcpy_chk (__dest, __src, __bos (__dest));
   ^

With "USE SOFT FLOAT" and "export CFLAGS=-fPIC" setup.sh install is ok but ther is also an error...

Code:
pilight-daemon -D
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0xb6ea80b2 in _int_free (av=0xb6f374e8 <main_arena>, p=<optimized out>, have_lock=0) at malloc.c:3996
3996    malloc.c: No such file or directory.
(gdb) backtrace
#0  0xb6ea80b2 in _int_free (av=0xb6f374e8 <main_arena>, p=<optimized out>, have_lock=0) at malloc.c:3996
#1  0xb6e9cb7e in _IO_new_fclose (fp=0x1afc0) at iofclose.c:85
#2  0xb6f8c0d6 in genuuid () from /usr/local/lib/libpilight.so
#3  0x0000e77a in main ()
(gdb)
 
Reply
#5
First, don't use Soft Float.
Second, can you post the output of cat /proc/cpuinfo?
Third, not all warning are worth mentioning...
 
Reply
#6
Code:
cat /proc/cpuinfo
Processor       : ARMv7 Processor rev 4 (v7l)
processor       : 0
BogoMIPS        : 1436.46

processor       : 1
BogoMIPS        : 1436.46

Features        : swp half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xc07
CPU revision    : 4

Hardware        : sun7i
Revision        : 0000
Serial          : 03c25caf5249484880485471165166d6
 
Reply
#7
last Code is working great on Bananapi Greedy

I can switch all switches and devices which i have done with my Raspberry...

I am using elro_hc and raw protocol without any problem.

The only little blemish i found is an error when i stop the pilight-daemon with the init script, but it stops anyway.

Code:
/etc/init.d/pilight stop
* Stopping  pilight                                                                                                         *** buffer overflow detected ***: /usr/local/sbin/pilight-daemon terminated

Thanks for your great work!
 
Reply
#8
Can you post a gdb for that last error?
 
Reply
#9
Code:
(gdb) run
Starting program: /sbin/start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile /var/run/pilight.pid
*** buffer overflow detected ***: /usr/local/sbin/pilight-daemon terminated
[Inferior 1 (process 8095) exited normally]
(gdb) backtrace
No stack.
 
Reply
#10
Can you run pilight-daemon in debug mode inside gdb. When everything runs press [CTRL-C] and then type "signal 2". Let's see if the error then occurs.
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  Support for shutters nerd123 0 573 10-06-2018, 01:48 PM
Last Post: nerd123
  Conrad RSL Support Druide85 1 1,663 11-03-2017, 10:34 AM
Last Post: MorfelPi
  OpenWRT Support Rossini 43 19,121 02-29-2016, 10:24 PM
Last Post: Tobias
  Banana Pi with Kernel > 4.0 x2KE4iyW 15 11,247 01-08-2016, 08:24 PM
Last Post: happy
  ir support tobid 2 1,748 08-08-2015, 09:08 AM
Last Post: tobid
  [Fully Supported] SSL support in webserver? Karel 18 13,367 05-29-2015, 10:26 PM
Last Post: curlymo
  Hummingboard support curlymo 0 1,837 09-10-2014, 04:48 PM
Last Post: curlymo
  OpenELEC support mike 4 3,388 09-03-2014, 07:53 PM
Last Post: mike

Forum Jump:


Browsing: 1 Guest(s)