Moxa RM-2600-T [12/52] Install the toolchain onto the pc

Moxa RM-1602-T [12/52] Install the toolchain onto the pc
ioPAC RTU Software Getting Started
2-4
LAN2 (default IP: 192.168.126.254) 192.168.126.100
Step 3: Use the telnet command to access the console of the RTU controller.
root@localhost:~# telnet 192.168.127.254
Step 4: If successfully connected to the RTU controller, the following message will be shown on the screen.
Close this connection to return to the local PC.
root@localhost:~# telnet 192.168.127.254
Trying 192.168.127.254...
Connected to 192.168.127.254.
Escape character is ‘^]’.
Moxa login:
Install the Toolchain onto the PC
The RTU controller’s GNU toolchain requires approximately 150 MB of hard disk space on your PC. The RTU
controller’s toolchain software is located on the Document and Software CD. To install the toolchain, insert the
CD into your PC’s CD-ROM and then issue the following commands:
root@localhost:~# mount /dev/cdrom /mnt/cdrom
root@localhost:~# sh /mnt/cdrom/Software/Toolchain/arm-linux_Vx.x.sh
The toolchain will be installed automatically on the host Linux PC within a few minutes.
Set Cross Compiler & glibc Environment
Variables
Before compiling the program, be sure to set the following path first, since the toolchain files (including the
compiler, link, and library) are located in this directory. Setting the path allows you to run the compiler from
any directory.
root@localhost:~# PATH=/usr/local/arm-linux/bin:$PATH
Develop Code & Compile the Program
The Software and Document CD contains a sample hello_world.c program and makefile for users to run pilot
tests to the RTU controller.
Type the following commands for the host PC to copy the files used for this example.
root@localhost:~# cd /tmp/
root@localhost:/tmp# mkdir example
root@localhost:/tmp# cp –r /mnt/cdrom/Software/Sample/hello_world/* /tmp/example
To compile the program, go to the hello_world subdirectory and issue the following commands:
root@localhost:~# cd/tmp/example/hello_world
root@localhost:/tmp/example/hello_world# make

Содержание

Скачать