Moxa UC-8481-T-LX [54/90] Linux tool chain introduction

Moxa UC-8418-LX [54/90] Linux tool chain introduction
UC-8410/8416/8418/8430 Programmer's Guide
5-2
Flash Memory Map
Partition sizes are hard coded into the kernel binary. To change partition sizes, you will need to
rebuild the kernel. The flash memory map is shown in the following table.
Address Size Contents
0x00000000 0x0009FFFF 640 KB Boot LoaderRead ONLY
0x000A0000 0x0027FFFF 1.875 MB Kernel object codeRead ONLY
0x00280000 0x00FDFFFF 13.375 MB Root file system (JFFS2) Read ONLY
0x00FE0000 0x00FFFFFF 128 KB Boot Loader configuration and directoryRead ONLY
0x01000000 0x01FFFFFFF 32 MB User root file system (JFFS2) Read/Write
256 KB
NOTE
1.
The default Moxa file system only enables the network. It lets users recover the user file system when
it fails.
2. The user file system is a complete file system. Users can create and delete directories and
files (including
source code and executable files) as needed.
3. Users can create the user file system on the PC host or target platform, and then copy it to the
UC-8410/8416/8418/8430.
Linux Tool Chain Introduction
To ensure that an application will be able to run correctly when installed on the UC-8410/8416/8418/8430, you
must ensure that it is compiled and linked to the same libraries that will be present on the
UC-8410/8416/8418/8430. This is particularly true when the RISC XScale processor architecture of the
UC-8410/8416/8418/8430/8430 differs from the CISC x86 processor architecture of the host system, but it is
also true if the processor architecture is the same.
The host tool chain that comes with the UC-8410/8416/8418/8430/8430 contains a suite of cross compilers
and other tools, as well as the libraries and headers that are necessary to compile applications for the
UC-8410/8416/8418/8430. The host environment must be running Linux to install the
UC-8410/8416/8418/8430/8430 GNU Tool Chain. We have confirmed that the following Linux distributions can
be used to install the tool chain:
Redhat 7.3/8.0/9.0, Fefora core 1/2/3/4/5, Debian 4.0 32 bits platform.
The Tool Chain will need about 836 MB of hard disk space on your PC. The UC-8410/8416/8418/8430/8430
Tool Chain 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
#sh /mnt/cdrom/tool-chain/linux/ arm-linux_2.3_Build_YYMMDDHH.sh
With v2.x firmware and arm-linux_3.0_Build_YYMMDDHH.sh
#mount /dev/cdrom /mnt/cdrom
#sh /mnt/cdrom/tool-chain/linux/ arm-linux_3.0_Build_YYMMDDHH.sh
Wait for a few minutes while the Tool Chain is installed automatically on your Linux PC. Once the host
environment has been installed, add the directory /opt/montavista/pro/devkit/arm/xscale_be/bin/ to your
path and the directory /opt/montavista/pro/devkit/arm/xscale_be/man/ to your manual path. You can do this
temporarily for the current login session by issuing the following commands:
For toolchain v2.x:
#export PATH=“/usr/local/arm-linux/bin:$PATH”
#export MANPATH=“/usr/local/arm-linux/man:$MANPATH”

Содержание

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

Скачать