Moxa IA3341-LX [14/72] Modifying network settings over the network

Moxa IA3341-LX [14/72] Modifying network settings over the network
IA3341 Linux User’s Manual 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. 27.125 to change the IP address of LAN
to 192.168. 27.125.
root@Moxa:~# ifconfig eth0 192.168.27.125
root@Moxa:~# _
SD Socket and USB for Storage Expansion
The IA3341 has an SD socket for storage expansion. The SD slot allows users to plug in a Secure
Digital (SD) memory card compliant with the SD 1.0 standard for up to 1 GB of additional
memory space, or a Secure Digital High Capacity (SDHC) memory card compliant with the SD
2.0 standard for up to 16 GB of additional memory space. Please refer to the IA3341 Hardware
User’s Manual to see how to install the SD card.
After installing an SD card, the SD card will be mounted at /mnt/sd.
In addition to the SD socket, a USB 2.0 host is located on the front panel. The USB host is also
designed for storage expansion. To expand the amount of storage with a USB flash disk, you just
need to plug the USB flash disk into this USB port. The flash disk will be detected automatically,
and its file partition will be mounted into the OS. The USB storage device will be mounted in one
of the following four directories: /mnt/usbstorage1, /mnt/usbstorage2, /mnt/usbstorage3, or
/mnt/usbstorage4.
Test ProgramDeveloping Hello.c
In this section, we use the standard “Hello” programming example to illustrate how to develop a
program for the IA3341. In general, program development involves the following seven steps.
Step 1:
Connect the IA3341 to a Linux PC.
Step 2:
Install Tool Chain (GNU ross Compiler & glibc).
Step 3:
Set the cross compiler and glibc environment variables.
Step 4:
Code and compile the program.
Step 5:
Download the program to the IA3341 via FTP or NFS.
Step 6:
Debug the program
Æ If bugs are found, return to Step 4.
Æ If no bugs are found, continue with Step 7.
Step 7:
Back up the user directory (distribute the program to additional IA3341 units if needed).

Содержание

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

Скачать