User`s manual

UC-7408 User’s Manual Getting Started
2-17
root@server11:/home/uc7400/1st_application
[root@server11 1st_application]# pwd
/home/uc7400/1st_application
[root@server11 1st_application]# 11
total 20
-rw-r—r-- 1 root root 514 Nov 27 11:52 Makefile
-rw-r—r-- 1 root root 4554 Nov 27 11:52 tcps2.c
-rw-r—r-- 1 root root 6164 Nov 27 11:55 tcps2.c
[root@server11 1st_application]# make_
/usr/local/mxscaleb/bin/mxscaleb-gcc -o tcps2-release tcps2.c
/usr/local/mxscaleb/bin/mxscaleb-strip –s tcps2-release
/usr/local/mxscaleb/bin/mxscaleb-gcc -o tcpsp-release tcpsp.c
/usr/local/mxscaleb/bin/mxscaleb-strip –s tcpsp-release
/usr/local/mxscaleb/bin/mxscaleb-gcc –ggdb -o tcps2-debug tcps2.c
/usr/local/mxscaleb/bin/mxscaleb-gcc –ggdb -o tcpsp-debug tcpsp.c
You have new mail in /var/spool/mail/root
[root@server11 1
st
_application]# 11
total 92
-rw-r—-r-- 1 root root 514 Nov 27 11:52 Makefile
-rwxr-xr—x 1 root root 25843 Nov 27 12:03 tcps2-debug
-rwxr—xr-x 1 root root 4996 Nov 27 12:03 tcps2-release
-rw-r—-r-- 1 root root 4554 Nov 27 11:52 tcps2.c
-rwxr—xr-x 1 root root 26823 Nov 27 12:03 tcpsp-debug
-rwxr—xr-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-release—an IXP platform execution file (created specifically to run on UC-7408)
tcps2-debug—an IXP 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 tcps2-release and Running the Program
Use the following commands to use FTP to upload tcps2-release to the UC-7408.
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