User`s manual
IA260/IA261/IA262/EM-2260 Linux User’s Manual  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 Loader—Read ONLY 
0x00040000 – 0x002FFFFF  2.75 MB  Kernel object code—Read ONLY 
0x00300000 – 0x00FFFFFF  13 MB  Root file system (JFFS2) —Read ONLY 
0x01000000 – 0x01FFFFFF  16 MB  User directory (JFFS2) —Read/Write 
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 the 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 the 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 IA260/IA261/IA262/EM-2260. 
Device API 
The IA260/IA261/IA262/EM-2260 supports control devices with the ioctl system API. You will 
need to
 include <moxadevice.h>
, and use the following ioctl function. 
int ioctl(int d, int request,…); 
 Input: int d  - open device node return file handle 
   int request – argument in or out 
Use the desktop Linux’s man page for detailed documentation: 
#man ioctl 
RTC (Real Time Clock) 
The device node is located at /dev/rtc. The IA260/IA261/IA262/EM-2260 supports Linux 
standard simple RTC control. You must 
include <linux/rtc.h>
. 
1.  Function: RTC_RD_TIME 
int ioctl(fd, RTC_RD_TIME, struct rtc_time *time); 
Description: read time information from RTC. It will return the value on argument 3. 
2.  Function: RTC_SET_TIME 
int ioctl(fd, RTC_SET_TIME, struct rtc_time *time); 
Description: set RTC time. Argument 3 will be passed to RTC. 
6-2










