<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="pl">
	<id>http://wiki.elpromaelectronics.com/index.php?action=history&amp;feed=atom&amp;title=RBMTX-Lite_OpenWrt_SDK_Example</id>
	<title>RBMTX-Lite OpenWrt SDK Example - Historia wersji</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.elpromaelectronics.com/index.php?action=history&amp;feed=atom&amp;title=RBMTX-Lite_OpenWrt_SDK_Example"/>
	<link rel="alternate" type="text/html" href="http://wiki.elpromaelectronics.com/index.php?title=RBMTX-Lite_OpenWrt_SDK_Example&amp;action=history"/>
	<updated>2026-05-11T02:21:28Z</updated>
	<subtitle>Historia wersji tej strony wiki</subtitle>
	<generator>MediaWiki 1.37.1</generator>
	<entry>
		<id>http://wiki.elpromaelectronics.com/index.php?title=RBMTX-Lite_OpenWrt_SDK_Example&amp;diff=1688&amp;oldid=prev</id>
		<title>Elproma: Utworzono nową stronę &quot; __TOC__ ==Prerequisites==  You will need:  &lt;ul&gt;     &lt;li&gt;A PC, laptop or virtual machine running Linux OS (preferably Debian/Ubuntu distro)&lt;/li&gt;     &lt;li&gt;An SDK intended for your router, which can be downloaded here: &lt;b&gt;Software Development Kit&lt;/b&gt;&lt;/li&gt; &lt;/ul&gt;  ==Preparation== #Create a directory where the SDK will be extracted, e.g. RBMTX_SDK. #Open a terminal in the folder you created and unzip the SDK.  tar -xf ~/Downloads/rbmtx3-owrt-sdk-....Linux-x86_64.tar.…&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.elpromaelectronics.com/index.php?title=RBMTX-Lite_OpenWrt_SDK_Example&amp;diff=1688&amp;oldid=prev"/>
		<updated>2023-05-10T07:48:46Z</updated>

		<summary type="html">&lt;p&gt;Utworzono nową stronę &amp;quot; __TOC__ ==Prerequisites==  You will need:  &amp;lt;ul&amp;gt;     &amp;lt;li&amp;gt;A PC, laptop or virtual machine running Linux OS (preferably Debian/Ubuntu distro)&amp;lt;/li&amp;gt;     &amp;lt;li&amp;gt;An SDK intended for your router, which can be downloaded here: &amp;lt;b&amp;gt;&lt;a href=&quot;/Software_Development_Kit&quot; title=&quot;Software Development Kit&quot;&gt;Software Development Kit&lt;/a&gt;&amp;lt;/b&amp;gt;&amp;lt;/li&amp;gt; &amp;lt;/ul&amp;gt;  ==Preparation== #Create a directory where the SDK will be extracted, e.g. RBMTX_SDK. #Open a terminal in the folder you created and unzip the SDK.  tar -xf ~/Downloads/rbmtx3-owrt-sdk-....Linux-x86_64.tar.…&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nowa strona&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
__TOC__&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
You will need:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
    &amp;lt;li&amp;gt;A PC, laptop or virtual machine running Linux OS (preferably Debian/Ubuntu distro)&amp;lt;/li&amp;gt;&lt;br /&gt;
    &amp;lt;li&amp;gt;An SDK intended for your router, which can be downloaded here: &amp;lt;b&amp;gt;[[Software Development Kit]]&amp;lt;/b&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Preparation==&lt;br /&gt;
#Create a directory where the SDK will be extracted, e.g. RBMTX_SDK.&lt;br /&gt;
#Open a terminal in the folder you created and unzip the SDK.&lt;br /&gt;
 tar -xf ~/Downloads/rbmtx3-owrt-sdk-....Linux-x86_64.tar.xz&lt;br /&gt;
#&amp;lt;li value=&amp;quot;3&amp;quot;&amp;gt; Go to the SDK directory.&lt;br /&gt;
 cd rbmtx3-owrt-sdk-.....Linux-x86_64/&lt;br /&gt;
#&amp;lt;li value=&amp;quot;4&amp;quot;&amp;gt; Update the feeds.&lt;br /&gt;
 ./scripts/feeds update -a&lt;br /&gt;
&lt;br /&gt;
==Compiling a custom package==&lt;br /&gt;
&lt;br /&gt;
In this example, we are going to show you how to generate OpenWrt package based on the simple Modbus client and server application.&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt; Install dependency library (in this example, it is &amp;#039;&amp;#039;&amp;#039;libmodbus&amp;#039;&amp;#039;&amp;#039;). To install library run: &lt;br /&gt;
&amp;lt;pre&amp;gt;./scripts/feeds install libmodbus&amp;lt;/pre&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt; To create your custom package, when you are in the SDK directory go to the package directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;cd package&amp;lt;/pre&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;Make a new directory where the package Makefile should be placed.&lt;br /&gt;
 &amp;lt;pre&amp;gt; mkdir modbus_server&lt;br /&gt;
 cd modbus_server&amp;lt;/pre&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Create the Makefile file to build your custom package. Example Makefile is shown below.&lt;br /&gt;
* It is important to change all &amp;#039;&amp;#039;&amp;#039;modbus_server&amp;#039;&amp;#039;&amp;#039; strings with your package name.&lt;br /&gt;
* In the &amp;#039;&amp;#039;&amp;#039;SOURCE_DIR&amp;#039;&amp;#039;&amp;#039; section add path to your package sources.&lt;br /&gt;
* If you are using external library, it is important to complete the dependency sections e.g.:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;pre&amp;gt;TARGET_LDFLAGS=-lmodbus&lt;br /&gt;
DEPENDS:= +libmodbus&lt;br /&gt;
PKG_BUILD_DEPENDS+= libs/libmodbus&amp;lt;/pre&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
[[Plik:MakefileNew.png|800px|border|class=tlt-border]]&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;Now we are ready to select the packages and libraries which we want to compile. Return to the SDK root directory and execute the command: &amp;lt;pre&amp;gt; make menuconfig&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should see a view like the one below.&lt;br /&gt;
&lt;br /&gt;
[[Plik:RBMTX-Lite Menuconfig.png|800px|border|class=tlt-border]]&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Then turn off the &amp;#039;&amp;#039;&amp;#039; Cryptographically sign package lists&amp;#039;&amp;#039;&amp;#039; option in  the &amp;#039;&amp;#039;&amp;#039;Global build settings&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[Plik:Turn_off_cryptograpy.png |800px|border|class=tlt-border]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Then go to the &amp;#039;&amp;#039;&amp;#039;Libraries&amp;#039;&amp;#039;&amp;#039; section and make sure the libraries you want to use are checked.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[Plik:RBMTX-Lite Libraries.png|800px|border|class=tlt-border]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Next, go to the section where you placed the package to compilation. The name of section depends on the name that was placed in the &amp;#039;&amp;#039;&amp;#039;CATEGORY:&amp;#039;&amp;#039;&amp;#039; option in the package&amp;#039;s Makefile. In our case it is &amp;#039;&amp;#039;&amp;#039;Example&amp;#039;&amp;#039;&amp;#039; section. Make sure your custom package is checked.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[Plik:RBMTX-Lite Cutom Package.png|800px|border|class=tlt-border]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;At the end, save all settings - leave the default name of the configuration. &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Exit the menuconfig.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Now, we are ready to compile our custom package. Type command &amp;#039;&amp;#039;&amp;#039;make&amp;#039;&amp;#039;&amp;#039; in the terminal and wait for compilation to finish.&lt;br /&gt;
You should see the output like the one below:&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[Plik:RBMTX-Lite Compilation Output.png|800px|border|class=tlt-border]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Once the compilation process is complete, the package can be found in the &amp;#039;&amp;#039;&amp;#039;bin/packages/arm_cortex-a7_neon/base&amp;#039;&amp;#039;&amp;#039; directory. &lt;br /&gt;
&amp;lt;pre&amp;gt;cd bin/packages/arm_cortex-a7_neon/base&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[Plik:RBMTX-Lite Packages.png|600px|border|class=tlt-border]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:RBMTX-Lite]]&lt;/div&gt;</summary>
		<author><name>Elproma</name></author>
	</entry>
</feed>