Skip to content

Latest commit

 

History

History
99 lines (63 loc) · 1.97 KB

building_guide(OpenWRT).md

File metadata and controls

99 lines (63 loc) · 1.97 KB

BUILDING GUIDE With OpenWRT

Setup EZMesh

  • Add ezmesh to your feeds.con

    src-git ezmesh https://github.com/RafaelMicro/EZMesh.git 

    OR

    $ echo src-git ezmesh https://github.com/RafaelMicro/EZMesh.git >> feeds.conf 

    build with debug mode (add -j1 V=sc flags)

  • Update and install OpenWRT Setting

    $ ./scripts/feeds update ezmesh 
    $ ./scripts/feeds install -a -p ezmesh

Enable EZMesh

EZMesh is a Network package under OpenWRT Platfrom.
EZMesh is not selected by default, so use menuconfig to select ezmesh

$ make menuconfig 

In the configure window, use the Up and Down keys to move the cursor and the Left and Right keys to choose an action.
A. Select Network to enter its submenu.
B. Enable ezmesh by moving the cursor to it and pressing Y.
C. Select Exit to exit.
menuconfig


Build EZMesh on OpenWRT

OpenWRT can build all package or indiviual package.
build with debug mode (add -j1 V=sc flags)

  • build all package

    $ make
  • build EZMesh package

    $ make package/ezmesh/compile 

    make


Apply EZMesh

The OpenWRT can flush frameware to the target board or insrtall package with opkg tool.

  • install with opkg:
    Copy the generated ipk file into OpenWRT, and install with opkg.

    $ opkg install ezmesh_*.ipk

    install_ipk


Usage Ezmesh

Start EZMesh

  • Start ezmesh daemon : ezmeshd

    $ ezmeshd -c /usr/etc/ez_config.ini

    ezmeshd

  • Start OpenThread border Router:

    $ otbr-agent -v -I wpan0 -B br-lan spinel+ezmesh://ezmeshd_0??iid=1 trel://br-lan

    otbr