Python MQTT client

Compiling ledpanel driver from the sources

To compile ledpanel.c it is requested a Linux Ubuntu PC on where install the cross compiler toolchain and Linux Kernel sources. Follow this tutorial to know how to do that:

Inside the Kernel configuration be sure that the High Resolution Timer in enabled:

General setup  --->
    Timers subsystem  --->
        [*] High Resolution Timer Support  

Clone inside the home directory of your Linux PC the ledpanel GitHub repository:

git clone git://github.com/tanzilli/ledpanel.git
cd ledpanel

Launch the module compilation by typing:

make -C ~/path-to-linux-sources/linux-4.9.33 ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- M=`pwd` modules

then copy the binary file generaterd inside Arietta G25 microSD

scp ledpanel.ko root@ledpanel.local:/root

Open a command session on Arietta and load the Kernel module:

insmod ledpanel.ko

How to mount ledpanel.ko automatically at startup

Copy the module into a well known location on the Arietta microSD:

cp ledpanel.ko /lib/modules/$(uname -r)/kernel/ledpanel.ko

Add it to the module list to load at bootstrap

echo ledpanel >> /etc/modules

refresh the kernel tables:

depmod

check only if the module is loaded:

modprobe ledpanel

reboot Arietta:

reboot