Moxa UC-8481-T-LX [14/90] Mount dev cdrom mnt cdrom mnt cdrom tool chain linux arm linux_2 sh

Moxa UC-8416-T-LX [14/90] Mount dev cdrom mnt cdrom mnt cdrom tool chain linux arm linux_2 sh
UC-8410/8416/8418/8430 Getting Started
2-6
Modifying Network Settings over the Network
IP settings can be activated over the network, but the new settings will not be saved to the flash ROM without
modifying the file /etc/network/interfaces.
For example, type the command #ifconfig eth0 192.168.1.1 to change the IP address of LAN1 to
192.168.1.1.
root@Moxa:# ifconfig eth0 192.168.1.1
root@Moxa:/etc/network/#
Test ProgramDeveloping Hello.c
1. Connect the UC-8410/8416/8418/8430/8430 to a Linux PC.
2. Install the Tool Chain (GNU Cross Compiler & glibc).
3. Set the cross compiler and glibc environment variables.
4. Code and compile the program.
5. Download the program to the UC-8410/8416/8418/8430
/8430 via
FTP or NFS.
6. Debug the program
If bugs are found, return to Step 4.
If no bugs are found, continue with Step 7
7. Back up the user directory (distribute the program to additional
UC-8410/8416/8418/8430/8430 units if needed).
Installing the Tool Chain (Linux)
The PC must have the Linux operating system pre-installed before installing the
UC-8410/8416/8418/8430/8430 GNU Tool Chain. Redhat 7.3/8.0, Fedora core, and compatible versions are
recommended. The Tool Chain requires about 600 MB of hard disk space on your PC. The
UC-8410/8416/8418/8430/8430 Tool Chain software is located on the UC-8410/8416/8418/8430/8430 CD. To
install the Tool Chain, insert the CD into your PC and then issue the following commands:
With v1.x firmware:
#mount /dev/cdrom /mnt/cdrom#/mnt/cdrom/tool-chain/Linux/arm-linux_2.3.sh
With v2.x firmware:
#mount /dev/cdrom
/mnt/cdrom#/mnt/cdrom/tool-chain/Linux/arm-linux_3.0_Build_YYMMDDHH.sh
The Tool Chain will be installed automatically on your Linux PC within a few minutes. Before compiling the
program, be sure to set the following path first, since the Tool Chain files, including the compiler, link, library,
and include files, are located in this directory.
With v1.x firmware and arm-linux 2.x.sh:
PATH=/usr/local/arm-linux/bin:$PATH
With v2.x firmware and arm-linux 2.x.sh and arm-linux_3.0_Build_YYMMDDHH.sh:
PATH=/usr/local/arm-linux-4.4.2/bin:$PATH
Setting the path allows you to run the compiler from any directory.

Содержание

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

Скачать