User`s manual

IA260-261-262 EM-2260 LX User’s Manual Managing Embedded Linux
Since different Flash disks have different sizes, it’s a good idea to check the size of your Flash
disk before upgrading the firmware, or before using the disk to store your application and data
files. Use the
#df –h
command to list the size of each memory block and how much free space is
available in each block.
192.168.3.127 – PuTTY
root@Moxa:~# df -h
Filesystem Size Used Available Use% Mounted on
/dev/mtdblock2 8.0M 6.0M 2.0M 75% /
/dev/ram0 499.0k 16.0k 458.0k 3% /var
/dev/mtdblock3 6.0M 488.0k 5.5M 8% /tmp
/dev/mtdblock3 6.0M 488.0k 5.5M 8% /home
/dev/mtdblock3 6.0M 488.0k 5.5M 8% /etc
tmpfs 30.4M 0 30.4M 0% /dev/shm
root@Moxa:~# upramdisk
root@Moxa:~# df -h
Filesystem Size Used Available Use% Mounted on
/dev/mtdblock2 8.0M 6.0M 2.0M 75% /
/dev/ram0 499.0k 16.0k 458.0k 3% /var
/dev/mtdblock3 6.0M 488.0k 5.5M 8% /tmp
/dev/mtdblock3 6.0M 488.0k 5.5M 8% /home
/dev/mtdblock3 6.0M 488.0k 5.5M 8% /etc
tmpfs 30.4M 0 30.4M 0% /dev/shm
/dev/ram1 16.0M 1.0k 15.1M 0% /mnt/ramdisk
root@Moxa:~# cd /mnt/ramdisk
root@Moxa:/mnt/ramdisk#
The following instructions give the steps required to save the firmware file to the
IA260/IA261/IA262/EM-2260’s RAM disk and how to upgrade the firmware.
1. Type the following commands to enable the RAM disk:
#upramdisk
#cd /mnt/ramdisk
2. Type the following commands to use the IA260/IA261/IA262/EM-2260’s built-in FTP client
to transfer the firmware file (ia260/ia261/ia262/em2260-x.x.x.hfm) from the PC to the
IA260/IA261/IA262/EM-2260:
/mnt/ramdisk> ftp <destination PC’s IP>
Login Name: xxxx
Login Password: xxxx
ftp> bin
ftp> get ia260/ia261/ia262/em2260-x.x.x.hfm
3-3