Moxa KM-2430-T [48/52] Using c c

Moxa KM-2430-T [48/52] Using c c
ioPAC RTU Software RTU Programming
6-2
Programming Guide
Memory Usage
Partition sizes are hard coded into the kernel binary. The total flash memory on the ioPAC RTU controller is 32
MB.
FLASH system space: 20 MB (read only)
FLASH user space: 12 MB (read/write, /home, /etc, /temp support)
Users can use df and free commands to check memory information.
root@Moxa:~# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 16384 8452 7932 52% /
/dev/ram0 499 17 457 4% /var
/dev/ram7 2011 15 1894 1% /dev
/dev/mtdblock3 12288 740 11548 6% /tmp
/dev/mtdblock3 12288 740 11548 6% /home
/dev/mtdblock3 12288 740 11548 6% /etc
tmpfs 30556 0 30556 0% /dev/shm
root@Moxa:~# free
total used free shared buffers
Mem: 61116 13476 47640 0 40
Swap: 0 0 0
Total: 61116 13476 47640
root@Moxa:~#
If the user file system is incorrect, the kernel will change the root file system to the kernel and use the default
Moxa file system. To finish the boot process, run the init program.
NOTE
1.
The user file system is a complete file system. Users can creat
e and delete directories and files (including
source code and executable files) as needed.
2.
Users can create the user file system on the host PC or the target platform and copy it to the ioPAC RTU
controller.
3.
Continuously writing data to flash is not recommended, since doing so will decrease the flash’s life.
Using C/C++
Linux Toolchain
The Linux toolchain contains a suite of cross compilers and other tools, as well as the libraries and header files
that are necessary to compile your applications. These toolchain components must be installed on your host
computer (PC) running Linux. We have confirmed that the following Linux distributions can be used to install
the toolchain.
ioPAC 8500 & 5500 Series
Debian 6.0.1
Ubuntu 11.04
Fedora Core 15
Steps for Installing the Linux Toolchain
Refer to the Install the Toolchain onto the PC section in Chapter 2.

Содержание

Скачать