Programmer’s Guide |
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 |
0x00060000 – 0x0015FFFF | 1 MB | Kernel object |
0x00160000 – 0x0055FFFF | 4 MB | Mini root file system (EXT2) |
0x00560000 – 0x01F5FFFF | 26 MB | User root file system (JFFS2) |
0x01F60000 – 0x01FBFFFF | 384 KB | Not used |
0x01FC0000 – 0x01FDFFFF | 128 KB | Boot Loader |
0x01FE0000 – 0x01FFFFFF | 128 KB | Boot Loader |
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
Linux Tool Chain Introduction
To ensure that an application will be able to run correctly when installed on
The host tool chain that comes with
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
#mount /dev/cdrom /mnt/cdrom
#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.