
NPort 5000 Series User Manual
160
Set the default tty mapping to the Real TTY configuration
You may use the Real TTY configuration file, npreal2d.cf that we set up in 4.5, as the default settings when
deploying to a new Raspberry Pi image.
1.
Copy and replace npreal2d.cf in the NPort Real TTY driver folder
'/moxa' extracted in the build system.
2.
tar -zxvf new_npreal2_driver.tgz /moxa
3.
Go back to “Create a recipe for the Real TTY utilities”, change the name of
npreal2_vM.N_BUILD_DATE.tgz with the file name in step 2.)
4.
Rebuild the image.
(Optional): Use the SSL secure mode for the NPort 6000
Series
You may use the NPort secure mode (SSL) to connect between Raspberry Pi and the NPort 6000 Series
securely. The following instructions are for this purpose:
1.
Open the realtty-tools bb file with a text editor.
(./meta-moxa/recipes-utility/realtty-tools/realtty-tools.bb)
2.
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"
3.
Repeat “Deploy the Yocto image in Raspberry Pi” and “Start the Real TTY driver in Raspberry Pi” again,
executing the following command to enable the serial port after the NPort mapping. Remember to
enable secure mode in the NPort.
root@raspberrypi3:/usr/lib/npreal2/driver# ./mxsetsec
Troubleshooting
If the following error is encountered during the building of the image,
ERROR: Task (/home/user/poky/meta/recipes-devtools/binutils/binutils_2.34.bb:do_compile) failed with
exit code '1'
It is suggested to compile binutils first, then compile the entire image:
$ bitbake binutils -c do_compile
$ bitbake core-image-base