Skip to content
Lee Ballard edited this page Sep 9, 2020 · 25 revisions

Install, Configuration

see also https://github.com/sfeakes/AqualinkD/wiki

Install

sudo apt-get install git
cd ~
mkdir git
cd git
git clone https://github.com/ballle98/AqualinkD.git
make clean
make
sudo make install

Install dev/rebase-1.3.x

sudo apt-get install git
cd ~
mkdir git
cd git
git clone https://github.com/ballle98/AqualinkD.git
git checkout dev/rebase-1.3.x
make clean
make
sudo make install

run in foreground with logging

release/aqualinkd -v -d -c /etc/aqualinkd.conf

Developer instructions

Cross Compile and Eclipse IDE

  1. start with these instructions https://www.cososo.co.uk/2015/12/cross-development-using-eclipse-and-gcc-for-the-rpi/
    1. Install GCC Cross compiler from http://gnutoolchains.com/raspberry/
    2. Synchronise header file and library versions with c:\SysGCC\Raspberry\TOOLS\UpdateSysroot.exe
  2. import project from github
  3. configure as makefile project
  4. Use these instructions to configure the toolchain https://stackoverflow.com/questions/27180771/how-to-configure-a-particular-gcc-cross-toolchain-in-eclipse-cdt

Enable Core Dumps

You can follow these instructions to enable core files https://pve.proxmox.com/wiki/Enable_Core_Dump_systemd

rebuild the code with debug symbols, and turn on address sanitize (we're looking for memory corruption)

make DBG="-g -O0 -fsanitize=address -static-libasan"
make install

when it crashes "sudo -i" to become root, run gbd and dump the back trace with the bt command

cd /var/lib/coredumps/
ls
gdb /home/pi/git/AqualinkD/release/aqualinkd core-aqualinkd-sig11-user0-group0-pid386-time1554347133
bt
Clone this wiki locally