Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

      1. Install the Raspian Pi OS from the “Raspberry Pi Imager” software. Select the Raspberry Pi Os (64-bit) image. 
      2. After installation below are additional packages to be installed for build, db and execution.

sudo apt-get update;
sudo apt-get upgrade;
sudo apt-get install vim;
sudo apt-get install libev-dev;
sudo apt-get install libjansson-dev;
sudo apt-get install zlib1g-dev;
sudo apt-get install libnl-3-dev;
sudo apt-get install libnl-genl-3-dev;
sudo apt-get install libnl-route-3-dev;
sudo apt-get install libavro-dev;
sudo apt-get install libcjson1 libcjson-dev;
sudo apt-get install libssl-dev;
sudo apt-get install uuid-dev;
sudo apt-get install libmysqlcppconn-dev; 
sudo apt-get install libreadline-dev;
sudo apt-get install iptables;
sudo apt install mariadb-server;
sudo apt-get install libmariadb3;
sudo apt-get install libmariadb-dev;
sudo apt-get install golang;

Build Instructions

    1.  In a working directory git clone the OneWifi in generic folder and unified-wifi-mesh repository

...

cd OneWifi
make -f build/linux/rpi/makefile setup

    3.  Build the Onewifi with make command

make -f build/linux/rpi/makefile all

    4.   Build easymesh components in the unified-wifi-mesh folder

...

cd unified-wifi-mesh/build/ctrl
make clean; make all

        • Cli (Legacy cli)

cd unified-wifi-mesh/build/cli
make clean; make all

...

cd unified-wifi-mesh/build/agent
make clean; make all


        • To build new cli (Fyne Cli), follow the below steps

Prerequisites:
--------------
1. upgrade the go version to '1.23.4' or later.

    Steps to upgrade the go version
    --------------------------------
    a) Check the existing path for go, for example
           $which go
               /usr/bin/go
        
    b) Download Go 1.24 from the official site:
              https://go.dev/doc/install
        
    c)Remove the old version (if needed):
             sudo rm -rf /usr/bin/go
             sudo rm -rf /usr/local/go
   
    d) Extract the archive:
            sudo tar -C /usr/local -xzf go1.24.4.linux-arm64.tar.gz
   
    e) Update environment variables (add this to  ~/.bashrc  or  ~/.profile):
            export PATH=$PATH:/usr/local/go/bin
            source ~/.bashrc  or  source ~/.profile
    
    f) Verify the installation:
            go version
       
2.  Download the dependent packages
           sudo apt-get install libxrandr-dev
           sudo apt-get install libxcursor-dev
           sudo apt-get install libxinerama-dev
           sudo apt-get install libxi-dev
           sudo apt-get install libxxf86vm-dev

cd unified-wifi-mesh/build/fynecli
make clean; make all


Execution Steps

Prerequisites

...

sudo ./onewifi_em_ctrl root@root

sudo ./onewifi_em_cli rip

Note: cli expects the path to the libemcli.so. Provide the appropriate path with the below steps

create libemcli.conf in /etc/ld.so.conf.d directory pointing to the location of libemcli.so

cd /etc/ld.so.conf.d
sudo vi libemcli.conf
In this file specify the full path where libemcli.so is built. (install/lib - do pwd and copy)

Return back to install/bin path and execute command "sudo ldconfig"

        • Device 2 (in case of remote agent) or Device 1 (in col-located agent) - Run OneWifi first in a separate window and then run easy mesh agent (in case of remote agent)

...