User`s manual

Table Of Contents
W406-LX User’s Manual Managing Embedded Linux
3-3
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
Rootfs 8.6M 7.8M 888.0k 90% /
/dev/root 8.6M 7.8M 888.0k 90% /
/dev/ram3 1003.0k 9.0k 943.0k 1% /dev
/dev/ram0 499.0k 18.0k 456.0k 4% /var
/dev/mtdblock3 5.0M 3.8M 1.2M 75% /tmp
/dev/mtdblock3 5.0M 3.8M 1.2M 75% /home
/dev/mtdblock3 5.0M 3.8M 1.2M 75% /etc
tmpfs 14.4M 0 14.4M 0% /dev/shm
/dev/ram1 15.5M 1.0k 14.7M 0% /var/ramdisk
root@Moxa:~# cd /mnt/ramdisk
root@Moxa:/mnt/ramdisk#
The following instructions give the steps required to save the firmware file to the W406-LX’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 W406-LX’s built-in FTP client to transfer the
firmware file (W406-x.x.x.hfm) from the PC to the W406-LX:
/mnt/ramdisk> ftp <destination PC’s IP>
Login Name: xxxx
Login Password: xxxx
ftp> bin
ftp> get W406-x.x.x.hfm
192.168.3.127 – PuTTY
root@Moxa:/mnt/ramdisk# ftp 192.168.3.193
Connected to 192.168.3.193 (192.168.3.193).
220 TYPSoft FTP Server 1.10 ready…
Name (192.168.3.193:root): root
331 Password required for root.
Password:
230 User root logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd newsw
250 CWD command successful. “/C:/ftproot/newsw/” is current directory.
ftp> bin
200 Type set to I.
ftp> ls
200 Port command successful.
150 Opening data connection for directory list.
drw-rw-rw- 1 ftp ftp 0 Nov 30 10:03 .
drw-rw-rw- 1 ftp ftp 0 Nov 30 10:03 .
-rw-rw-rw- 1 ftp ftp 13167772 Nov 29 10:24
W406-x.x.x.hfm
226 Transfer complete.
ftp> get W406-x.x.x.hfm
local: W406-x.x.x.hfm
remote: W406-x.x.x.hfm
200 Port command successful.