
$ mkdir build; cd build
$ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr ..
$ make
$ sudo make install
4. Install libnetconf2:
$ git clone https://github.com/CESNET/libnetconf2.git
$ cd libnetconf2
$ git checkout v0.12-r2 -b v0.12-r2
$ mkdir build; cd build
$ cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr ..
$ make
$ sudo make install
5. Install protobuf:
$ git clone https://github.com/protocolbuffers/protobuf.git
$ cd protobuf
$ git submodule update --init --recursive
$ ./autogen.sh
$ ./configure
$ make
$ sudo make install
$ sudo ldconfig # refresh shared library cache.
6. Install Netopeer2-cli(v0.7-r2):
$ git clone https://github.com/CESNET/Netopeer2.git
$ cd Netopeer2
$ git checkout v0.7-r2 -b v0.7-r2
$ cd cli
$ cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .
$ make
$ sudo make install
6.4 Configuration
6.4.1 Enabling NETCONF feature in OpenIL
Build the image using the below command to enable the NETCONF feature:
make nxp_ls1028ardb-64b_defconfig
or
make nxp_ls1021atsn_defconfig
Users can find detailed configuration with the
make menuconfig
command, as shown below:
Target packages ->
Hardware handling --->
NXP QorIQ libraries --->
-*- qoriq-netopeer2-keystored
-*- qoriq-netopeer2-server
[*] qoriq-sysrepo-tsn
NXP Semiconductors
NETCONF/YANG
Open Industrial User Guide, Rev. 1.8, 05/2020
User's Guide
76 / 199