Moxa DA-662A-I-8-LX [18/63] Uploading and running the tcps2 release program

Moxa DA-662A-I-8-LX [18/63] Uploading and running the tcps2 release program
DA-662A Series Software Getting Started
2-10
arm-none-linux-gnueabi-gcc ggdb -o tcpsp-debug tcpsp.c
You have new mail in /var/spool/mail/root
[root@server11 1st_application]# 1s
[root@server11 1st_application]# 11
total 92
-rw-r-r-- 1 root root 514 Nov 27 11:52 Makefile
-rwxr-xrx 1 root root 25843 Nov 27 12:03 tcps2-debug
-rwxrxr-x 1 root root 4996 Nov 27 12:03 tcps2-release
-rw-r-r-- 1 root root 4554 Nov 27 11:52 tcps2.c
-rwxrxr-x 1 root root 26823 Nov 27 12:03 tcpsp-debug
-rwxrxr-x 1 root root 5396 Nov 27 12:03 tcpsp-release
-rw-r-r-- 1 root root 6164 Nov 27 11:55 tcpsp.c
[root@server11 1st_application]#
Two executable files, tcps2-release and tcps2-debug, are created.
tcps2-releasean execution file (created specifically to run on the DA-662A series).
tcps2-debugan GDB debug server execution file (see Chapter 5 for details about the GDB debug tool).
NOTE
If you get an error message at this point, it could be because you neglected to put tcps2.c and tcpsp.c in the
same directory. The example Makefile we provide is set up to compile both tcps2 and tcpsp into the same
project Makefile. Alternatively, you could modify the Makefile to suit your particular requirements.
Uploading and Running the “tcps2-release” Program
Use the following commands to use FTP to upload tcps2-release to the DA-662A series.
1. From the PC, type:
#ftp 192.168.3.127
2. Next, use the bin command to set the transfer mode to Binary, and the put command to initiate the file
transfer:
ftp> bin
ftp> put tcps2-release
root@server11:/home/1st_application
[root@server11 1st_application]# ftp 192.168.3.127
Connected to 192.168.3.127 220
220---------- Welcome to Pure-FTPd [privsep] ----------
220-You are user number 1 of 50 allowed.
220-Local time is now 13:11. Server port: 21.
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.
Name (localhost:root): root
331 User root OK. Password required
Password:
230 OK. Current directory is /home/root
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> bin
200 TYPE is now 8-bit binary
ftp> put tcps2-release
local: tcps2-release remote: tcps2-release
277 Entering Passive Mode (192.168.3.127.82.253)
150 Opening BINARY mode data connection for tcps2-release.

Содержание

Похожие устройства

Скачать