Moxa Technologies UC-7420/7410 user manual #upramdisk #cd /mnt/ramdisk

Models: UC-7420/7410

1 106
Download 106 pages 2.64 Kb
Page 43
Image 43

UC-7420/7410 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 –hcommand 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

 

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 -h

 

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 UC-7420/7410’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 UC-7420/7410’s built-in FTP client to transfer the firmware file (uc7400-x.x.x.frm) from the PC to UC-7420/7410:

/mnt/ramdisk> ftp <destination PC’s IP> Login Name: xxxx

Login Password: xxxx ftp> bin

ftp> get uc7400-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 UC7420-1.5.frm

-rw-rw-rw-

1

ftp

ftp

8778996 Nov 29 10:24 UC7420_usrdisk-1.5.frm

 

 

 

 

3-3

 

 

 

Page 43
Image 43
Moxa Technologies UC-7420/7410 user manual #upramdisk #cd /mnt/ramdisk