RBMTX-Lite OpenWrt SDK Exmaple: Różnice pomiędzy wersjami
Z Elproma Wiki Knowledge Base
Linia 1: | Linia 1: | ||
__TOC__ | __TOC__ | ||
==Prerequisites== | ==Prerequisites== | ||
Linia 29: | Linia 30: | ||
cd modbus_server</pre></li> | cd modbus_server</pre></li> | ||
<li>Create the Makfile file to build your custom package. Exmaple Makefile shown below.</li> | <li>Create the Makfile file to build your custom package. Exmaple Makefile shown below.</li> | ||
[[Plik: | [[Plik:MakefileNew.png|2000x1000px|lewo]] |
Wersja z 14:28, 19 kwi 2023
Prerequisites
You will need:
- A PC, laptop or virtual machine running Linux OS (preferably Ubuntu distro)
- An SDK intended for your router, which can be downloaded here: Software Development Kit
Preparation
- Create directory, where the SDK will be extrated e.g RBMTX_SDK.
- Open terminal in created folder and unpack SDK.
tar -xf ~/Downloads/rbmtx3-owrt-sdk-....Linux-x86_64.tar.xz
- Go to the SDK directory.
cd rbmtx3-owrt-sdk-22.10.14-rbmtx3_gcc-8.4.0_musl_eabi.Linux-x86_64/
- Update the feeds.
./scripts/feeds update -a
Compiling a custom package
In this example we are going to show you how to generate OpenWrt package base on the simple Modbus client and server application.
- To create custom package, when you are in the SDK directory go to the package directory.
cd package
- Make new directory where the package Makefile should be placed.
mkdir modbus_server cd modbus_server
- Create the Makfile file to build your custom package. Exmaple Makefile shown below.