Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: schlaubi666 on August 03, 2016, 11:01:30 AM

Title: knxd package
Post by: schlaubi666 on August 03, 2016, 11:01:30 AM
Hi,

i tryed to compile knxd for tcl8b4, but without success ( https://github.com/knxd/knxd)

has someone tryed it , and has an working package for me ?


Title: Re: knxd package
Post by: bmarkus on August 03, 2016, 11:13:20 AM
For which architecture and TC version?
Title: Re: knxd package
Post by: schlaubi666 on August 03, 2016, 12:03:28 PM
pi 2b -> arm6
tcl 8 beta4
Title: Re: knxd package
Post by: schlaubi666 on August 04, 2016, 01:07:48 PM
i managed to build it, start it, but i have problem with creating an package, because i had to compile

pthsem-2.0.8 and configured to /usr/local ( default) &
knxd and configured to /usr/local ( default)

how to find all the additional files and make an extention of it ?


Dirk
Title: Re: knxd package
Post by: Juanito on August 05, 2016, 01:45:12 AM
Code: [Select]
$ touch mymarker
$ sudo make install
$ sudo find / -not -type 'd' -cnewer mymarker | grep -v "\/proc\/" | grep -v "^\/sys\/" | tee files
$ vi files [edit files that do not belong]
$ sudo tar -T files --numeric-owner -zcvf extension.tar.gz
$ mkdir /tmp/pkg
$ cp extension.tar.gz /tmp/pkg
$ cd /tmp/pkg
$ sudo tar xf extension.tar.gz
$ rm extension.tar.gz
$ cd /tmp
$ sudo mksquashfs pkg/ extension.tcz
Title: Re: knxd package
Post by: schlaubi666 on August 05, 2016, 11:43:03 AM
worked fine, thanks for the howto ....

I added the deamon to /opt/bootlocal.sh, as last line.

But this did not work( is the extention already avail then ?)

Is there another way to autostart an deamon of an extention ?
Title: Re: knxd package
Post by: Rich on August 05, 2016, 12:03:14 PM
Hi schlaubi666
Does your extension depend on the network being up and running? If so, you might want to wait for the network, something like:
Code: [Select]
SEC=60
while [ $SEC -gt 0 ] ; do
   ifconfig | grep -q "Bcast" && break || sleep 1
   echo -ne "Waiting for IP $((SEC--))  \r"     
done                                       
echo
Place your  knxd   command here.
Title: Re: knxd package
Post by: schlaubi666 on August 06, 2016, 01:01:22 AM
thats the reason !!!!


thanks