Moxa IA261-I-T-LX [16/71] Installing the tool chain linux

Moxa IA261-I-T-LX [16/71] Installing the tool chain linux
IA260-261-262 EM-2260 LX User’s Manual Getting Started
Installing the Tool Chain (Linux)
The Linux Operating System must be pre-installed in the PC before installing the
IA260/IA261/IA262/EM-2260 GNU Tool Chain. Fedora core or compatible versions are
recommended. The Tool Chain requires approximately 1 GB of hard disk space on your PC. The
IA260/IA261/IA262/EM-2260 Tool Chain software is located on the
IA260/IA261/IA262/EM-2260 CD. To install the Tool Chain, insert the CD into your PC and then
issue the following commands:
#mount /dev/cdrom /mnt/cdrom
#sh /mnt/cdrom/tool-chain/linux/arm-linux_x.x.sh (where x.x indicates the version of
the Tool Chain)
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, and library, are located in this directory.
PATH=/usr/local/arm-linux/bin:$PATH
Setting the path allows you to run the compiler from any directory.
Checking the Flash Memory Space
If the flash memory is full, you will not be able to save data to the Flash ROM. Use the following
command to calculate the amount of “Available” flash memory:
/>df –h
If there isn’t enough “Available” space for your application, you will need to delete some existing
files. To do this, connect your PC to the IA260/IA261/IA262/EM-2260 with the console cable, and
then use the console utility to delete the files from the IA260/IA261/IA262/EM-2260’s flash
memory. To check the amount of free space available, look at the directories in the read/write
directory /dev/mtdblock3. Note that the directories /home and /etc are both mounted on the
directory /dev/mtdblock3.
NOTE If the flash memory is full, you will need to free up some memory space before saving files to
the Flash ROM.
2-8

Содержание

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

Скачать