Deploy Cross-Compiled Binary To Target; Porting To Raspberry Pi Os - Moxa Technologies NPort 5000 Series User Manual

Hide thumbs Also See for NPort 5000 Series:
Table of Contents

Advertisement

Deploy cross-compiled binary to target

You should find following binaries under the output or source code directory:
npreal2.ko
npreal2d
npreal2d_redund
mxloadsvr
mxaddsvr
mxdelsvr
mxsetsec
A few necessary tools are available in the source code directory:
mxcfmat
mxmknod
mxrmnod
npreal2d.cf
Follow the steps below to deploy to the target Arm platform.
1.
Copy the npreal2.ko to the path /lib/modules/`uname -r`/kernel/drivers/char on the Arm platform.
2.
Create a folder /usr/lib/npreal2/driver. Copy all the above files to that folder, except npreal2.ko.
3.
Boot into the Arm platform and load the driver.
# modprobe npreal2
4.
Change the directory to "/usr/lib/npreal2/driver" and run "mxaddsvr, mxdelsvr, or mxsetsec", the same
as running them on x86 Linux.
5.
The module can be unloaded by the following command:
# modprobe -r npreal2

Porting to Raspberry Pi OS

Raspberry Pi OS images are prebuilt by www.raspberrypi.org. You can install the image and start up the
system. The process to build the Real TTY driver is the same as with x86 Linux. Please refer to README.txt
to check the system requirements.
You may use the rpi-source to install the kernel source packages for a more convenient option. Please refer
to the official website
rpi-source is a third-party package offering an integrated kernel resource for building a driver. The Real TTY
is tested with this package to see if it works well. However, the requirements may vary for different
Raspberry Pi OS versions. Please read the manual of the rpi-source to understand the know-how and the
limitations.
NPort 5000 Series User Manual
https://github.com/notro/rpi-source/wiki
for more information.
153

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents