ThinkCore W311/321/341 Linux User’s Manual Managing Embedded Linux
3-4
2. Type the following commands to use the W311/321/341’s built-in FTP client to transfer the
firmware file (W341-x.x.x.frm) from the PC to the W311/321/341:
/mnt/ramdisk> ftp <destination PC’s IP>
Login Name: xxxx
Login Password: xxxx
ftp> bin
ftp> get -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 w3xx-1.0.frm
226 Transfer complete.
ftp> get w3xx-1.0.frm
local: ia240-1.0.frm remote: w3xx-1.0.frm
200 Port command successful.
150 Opening data connection for w3xx-1.0.frm
226 Transfer complete.
13167772 bytes received in 2.17 secs (5925.8 kB/s)
ftp>
3. Next, use the upfirm command to upgrade the kernel and root file system:
#upfirm w3xx-x.x.x.frm
192.168.3.127 – PuTTY
root@Moxa:/mnt/ramdisk# upfirm w3xx-1.0.frm
Moxa ThinkCore IA240 upgrade firmware utility version 1.0.
To check source firmware file context.
The source firmware file conext is OK.
This step will destroy all your firmware.
Continue ? (Y/N) : Y
Now upgrade the file [kernel].
Format MTD device [/dev/mtd1] . . .
MTD device [/dev/mtd1] erase 128 Kibyte @ 1C0000 – 100% complete.
Wait to write file . . .
Compleleted 100%
Now upgrade the file [usrdisk].
Format MTD device [/dev/mtd2] . . .
MTD device [/dev/mtd2] erase 128 Kibyte @ 800000 – 100% complete.
Wait to write file . . .
Compleleted 100%
Upgrade the firmware is OK.