EasyManuals Logo

Moxa Technologies NPort 5110 User Manual

Moxa Technologies NPort 5110
194 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #157 background imageLoading...
Page #157 background image
NPort 5000 Series User Manual
157
6. Modify the content of the file “./realtty-kernel/files/Makefile” as follows:
obj-m := npreal2.o
SRC := $(shell pwd)
all:
$(MAKE) -C $(KERNEL_SRC) M=$(SRC)
modules_install:
$(MAKE) -C $(KERNEL_SRC) M=$(SRC) modules_install
clean:
rm -f *.o *~ core .depend .*.cmd *.ko *.mod.c
rm -f Module.markers Module.symvers modules.order
rm -rf .tmp_versions Modules.symvers
7. Modify the content of the file './realtty-kernel/realtty-kernel_0.1.bb' as follows:
DESCRIPTION = "Linux kernel module for NPort"
LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://COPYING-GPL.TXT;md5=3c34afdc3adf82d2448f12715a255122"
inherit module
SRC_URI = " \
file://Makefile \
file://npreal2.h \
file://np_ver.h \
file://npreal2.c \
file://COPYING-GPL.TXT \
"
S = "${WORKDIR}"
# The inherit of module.bbclass will automatically name module packages with the prefix"kernel-
module-" as required by the OpenEmbedded Core-build environment.
RPROVIDES_${PN} += "kernel-module-npreal2"
Create a recipe for the Real TTY utilities
Similar to creating a realtty-kernel recipe, create a recipe for facilitating the NPort management.
1. Create directory below in meta-moxa:
$ cd /home/user/poky
$ mkdir -p ./meta-moxa/recipes-utility/realtty-tools/files
2. Copy the Moxa driver which can be downloaded from the Moxa product web page directly. The driver’s
name format is npreal2_vM.N_BUILD-DATE.tgz.
$ cp /home/user/download/npreal2_vM.N_BUILD_DATE.tgz ./meta-moxa/recipes-
utility/realtty-tools/files/
3. Create a bb file ./meta-moxa/recipes-utility/realtty-tools/realtty-tools.bb, which has the following
content:
DESCRIPTION = "Service utilities for NPort"
LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://moxa//COPYING-GPL.TXT;md5=3c34afdc3adf82d2448f12715a255122"
# OpenSSL is required for secured mode
DEPENDS = "openssl"
# Specify the compressed driver file for SRC_URI
SRC_URI = "file://npreal2_vM.N_BUILD-DATE.tgz"
S = "${WORKDIR}"
# Specify the destination of RealTTY driver
DEST_DIR = "${D}${libdir}/npreal2/driver"
FILES_${PN} += "${libdir}/npreal2/driver/*"
# If it is required to connect the NPort with the SSL secure mode (secure mode is available in the NPort
6000 Series only), unremark the following line:
#SSL_MODE = "yes"
do_compile () {
${CC} -o mxaddsvr ${S}/moxa/mxaddsvr.c ${S}/moxa/misc.c
${CC} -o mxdelsvr ${S}/moxa/mxdelsvr.c ${S}/moxa/misc.c

Table of Contents

Other manuals for Moxa Technologies NPort 5110

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Moxa Technologies NPort 5110 and is the answer not in the manual?

Moxa Technologies NPort 5110 Specifications

General IconGeneral
BrandMoxa Technologies
ModelNPort 5110
CategoryServer
LanguageEnglish

Related product manuals