Moxa W321-LX [24/80] Uploading and running the tcps2 release program

Moxa W341-LX [24/80] Uploading and running the tcps2 release program
W321/341 Linux Getting Started
2-16
Two executable files, tcps2-release and tcps2-debug, are created.
tcps2-releasean ARM platform execution file (created specifically to run on the W321/341).
tcps2-debugan ARM platform 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 upload tcps2-release to the W321/341 through an FTP connection.
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> cd /home
ftp> put tcps2-release
root@server11:/home/w341/1st_application
[root@server11 1st_application]# ftp 192.168.3.127
Connected to 192.168.3.127 220
Moxa FTP server (Version wu-2.6.1(2) Mon Nov 24 12:17:04 CST 2003) ready.
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (192.168.3.127:root): root
331 Password required for root.
Password:
230 User root logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> bin
200 Type set to I.
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.
226 Transfer complete
4996 bytes sent in 0.00013 seconds (3.9e+04 Kbytes/s)
ftp> ls
227 Entering Passive Mode (192.168.3.127.106.196)
150 Opening ASCII mode data connection for /bin/ls.
-rw------- 1 root root 899 Jun 10 08:11 bash_history
-rw-r--r-- 1 root root 4996 Jun 12 02:15 tcps2-release
226 Transfer complete
ftp>
3. From the W321/341, type:
# chmod +x tcps2-release
# ./tcps2-release &
192.168.3.127 - PuTTY
root@Moxa:~# ls –al
drwxr—xr-x 2 root root 0 Jun 12 02:14
drwxr—xr-x 15 root root 0 Jan 1 1970
-rw------- 1 root root 899 Jun 10 08:11 .bash_history
-rw-r--r-- 1 root root 4996 Jun 12 02:15 tcps2-release
root@Moxa:~# chmod +x tcps2-release

Содержание

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

Скачать
Случайные обсуждения