DA-660-8/16-LX User’s Manual
Managing Embedded Linux
3-3
192.168.3.127 - PuTTY
root@Moxa:~# df –h
Filesystem
Size
Used
Available
Use%
Mounted
on
/dev/
mtdblock3
26.0M
8.9M 17.1M 34% /
/dev/mtdblock3
26.0M
8.9M 17.1M 34% /
/dev/ram2
2.0M 40.0k 1.8M 2% /var
tmpfs
62.1M
0 62.1M 0% /dev/shm
root@Moxa:~# upramdisk
root@Moxa:~# df –h
Filesystem
Size
Used
Available
Use%
Mounted
on
/dev/
mtdblock3
26.0M
8.9M 17.1M 34% /
/dev/mtdblock3
26.0M
8.9M 17.1M 34% /
/dev/ram2
2.0M 40.0k 1.8M 2% /var
tmpfs
62.1M
0 62.1M 0% /dev/shm
/dev/ram1
29.0M
13.0k 27.5M 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 DA-660’s RAM
disk, and then 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 DA-660’s built-in FTP client to transfer the
firmware file (
da660
-
x.x.x.frm
) from the PC to the DA-660:
/mnt/ramdisk> ftp <destination PC’s IP> Login Name: xxxx
Login Password: xxxx
ftp> bin
ftp> get da660-x.x.x.frm
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 DA660-1.0.frm
-rw-rw-rw- 1 ftp ftp 8778996 Nov 29 10:24 DA660_rootdisk-1.0.frm
226 Transfer complete.
ftp> get DA660-1.0.frm
local: DA660-1.0.frm remote: DA660-1.0.frm
200 Port command successful.
150 Opening data connection for DA660-1.0.frm
226 Transfer complete.
13167772 bytes received in 2.17 secs (5925.8 kB/s)
ftp>