Moxa IA240-T-LX [21/92] Installing the tool chain linux

Moxa IA240-T-LX [21/92] Installing the tool chain linux
IA240/241 Linux User’s Manual Getting Started
2-13
Installing the Tool Chain (Linux)
The Linux Operating System must be pre-installed in the PC before installing the IA240/241 GNU
Tool Chain. Fedora core or compatible versions are recommended. The Tool Chain requires
approximately 100 MB of hard disk space on your PC. The IA240/241 Tool Chain software is
located on the IA240/241 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/install.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.
PATH=/usr/local/arm-linux/bin:$PATH
Setting the path allows you to run the compiler from any directory.
NOTE Refer to Appendix B for an introduction to the Windows Tool Chain. In this chapter, we use the
Linux tool chain to illustrate the cross compiling process.
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 IA240/241 with the console cable, and then use the
console utility to delete the files from the IA240/241’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.

Содержание

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

Скачать