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
192.168.3.127 – PuTTY
root@Moxa:~# df |
| Used Available Use% Mounted on | |||||||
Filesystem | Size |
| |||||||
/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 |
| Used Available Use% Mounted on | |||||||
Filesystem | Size |
| |||||||
/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
1.Type the following commands to enable the RAM disk:
#upramdisk
#cd /mnt/ramdisk
2.Type the following commands to use
/mnt/ramdisk> ftp <destination PC’s IP> Login Name: xxxx
Login Password: xxxx ftp> bin
ftp> get
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.
1 | ftp | ftp | 0 | Nov | 30 | 10:03 . | |
1 | ftp | ftp | 0 | Nov | 30 | 10:03 . | |
1 | ftp | ftp | 13167772 Nov 29 10:24 | ||||
1 | ftp | ftp | 8778996 Nov 29 10:24 | ||||
|
|
|
|
|
|
|