Flash memory map, Linux tool chain introduction, Linux tool chain introduction -2 – Moxa Technologies UC-7420/7410 User Manual

Page 78

Advertising
background image

UC-7420/7410 User’s Manual

Programmer’s Guide

5-2

Flash Memory Map

Partition sizes are hard coded into the kernel binary. To change the partition sizes, you will need to
rebuild the kernel. The flash memory map is shown in the following table.

Address Size

Contents

0x00000000 – 0x0005FFFF

384 KB

Boot Loader—Read ONLY

0x00060000 – 0x0015FFFF

1 MB

Kernel object code—Read ONLY

0x00160000 – 0x0055FFFF

4 MB

Mini root file system (EXT2) —Read ONLY

0x00560000 – 0x01F5FFFF

26 MB

User root file system (JFFS2) —Read/Write

0x01F60000 – 0x01FBFFFF

384 KB

Not used

0x01FC0000 – 0x01FDFFFF

128 KB

Boot Loader configuration—Read ONLY

0x01FE0000 – 0x01FFFFFF

128 KB

Boot Loader directory—Read ONLY

Mount the user file system to /mnt/usrdisk with the root file system. Check to see if the user file
system was mounted correctly. If user file system is okay, the kernel will change the root file
system to /mnt/usrdisk. If the user file system is not okay, the kernel will use the default Moxa
file system. To finish boot process, run the init program.

NOTE

1. The default Moxa file system only enables the network and CF. 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-7420/7410.

Linux Tool Chain Introduction

To ensure that an application will be able to run correctly when installed on UC-7420/7410, you
must ensure that it is compiled and linked to the same libraries that will be present on the
UC-7420/7410. This is particularly true when the RISC Xscale processor architecture of the
UC-7420/7410 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 UC-7420/7410 contains a suite of cross compilers and other
tools, as well as the libraries and headers that are necessary to compile applications for
UC-7420/7410. The host environment must be running Linux to install the UC-7420/7410 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.

The Tool Chain will need about 100 MB of hard disk space on your PC. The UC-7420/7410 Tool
Chain is located on the UC-7420/7410 CD. To install the Tool Chain, insert the CD into your PC
and then issue the following commands:

#mount /dev/cdrom /mnt/cdrom

#rpm –ivh /mnt/cdrom/mxscaleeb-3.3.2-1.386.rpm

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 /usr/local/mxscaleb/bin to your path
and the directory /usr/local/mxscaleb/man to your manual path. You can do this temporarily for
the current login session by issuing the following commands:

#export PATH=“/usr/local/mxscaleb/bin:$PATH”

#export MANPATH=“/usr/local/mxscaleb/man:$PATH”

Alternatively, you can add the same commands to $HOME/.bash_profile to cause it to take effect
for all login sessions initiated by this user.

Advertising