用于引导设备启动的程序文件。MSR系列路由器支持的启动文件如下:
·主用启动文件(main),缺省情况下,设备使用主用启动文件启动设备。
·备用启动文件(backup),当主用启动文件不可用时,设备使用备用启动文件启动设备。
·安全启动文件(secure),当备用启动文件不可用时,设备使用安全启动文件启动设备。如果安全启动文件不可用,系统将提示失败信息。
通常情况下,启动文件是一个后缀名为.bin的文件(例如:main.bin)。
B.2软件升级方式简介升级方式说明通过命令行进行软件升级·需要重启设备来实现设备软件的升级。
·使用该方式升级设备软件时会导致当前业务中断。
通过BootWare菜单升级启动文件可在设备无法正常启动时升级设备软件。
通过Web配置界面升级启动文件通过Web配置界面,为用户提供更加便捷的软件升级方式。
B.3升级前的准备
在升级路由器启动文件前,请完成如下准备工作:
·配置路由器与文件服务器路由可达。
·开启文件服务器的TFTP/FTP Server功能。
·通过配置终端登录到路由器的命令行配置界面中。
·将路由器的升级启动文件拷贝到文件服务器上,并正确设置TFTP/FTP Server的访问路径。
·升级路由器的启动文件后,需要重新启动路由器,在重启过程完成前,路由器的各项业务功能将不可用。
·在BootWare中通过路由器以太网接口升级启动文件时,对于MSR900、MSR 920、MSR20-1X、MSR20-20、MSR20-21、MSR20-24、MSR 30-10、MSR30-11、MSR30-11E、MSR30-11F、MSR 30-16路由器只能使用ETH0接口,对于MSR 930、MSR30-20、MSR30-40、MSR30-60和MSR50-06、MSR50-40、MSR50-60路由器只能使用GE0接口。
各款型路由器用于存储启动文件的存储介质如表11所示:款型存储介质访问路径MSR 900 / 920Flashflash:/
MSR 930Flashflash:/
MSR 20-1XFlashflash:/
MSR 20-20 / 20-21 / 20-40CF卡cfa0:/
MSR 30-10 / 30-11 / 30-11E / 30-11FFlashflash:/
MSR 30-16 / 30-20 / 30-40 / 30-60CF卡cfa0:/
MSR 50-06Flashflash:/
MSR 50-40 / 50-60CF卡cfa0:/
图1路由器的升级环境
B.4.1使用TFTP协议升级路由器的启动文件
路由器作为TFTP Client,访问TFTP文件服务器的制定路径,完成启动文件的备份及升级操作,具体操作步骤如下:
1.备份当前启动文件和配置文件
(1)在命令行配置界面的任意视图下,执行save命令保存路由器当前配置信息:
save
The current configuration will be written to the device. Are you sure? [Y/N]:y
Please input the file name(*.cfg)[cfa0:/startup.cfg]
(To leave the existing filename unchanged, press the enter key):
cfa0:/startup.cfg exists, overwrite? [Y/N]:y
Validating file. Please wait....
Configuration is saved to device successfully.
(2)在命令行配置界面的用户视图下,执行dir命令查看路由器当前的文件系统,确认启动文件及配置文件名,以及CF卡的剩余空间,保证CF卡有足够空间放入新的启动文件:
dir
Directory of cfa0:/
0 drw- - Jun 28 2011 14:41:16 logfile
1 drw- - Jun 28 2011 14:42:56 domain1
2 -rw- 16256 Jun 28 2011 14:43:40 p2p_default.mtd
3 -rw- 1694 Jun 28 2011 14:47:12 startup.cfg
4 -rw- 3432 Jun 28 2011 14:47:10 system.xml
5 -rw- 23861744 Jun 28 2011 14:37:46 main.bin
252328 KB total (227856 KB free)
File system type of cfa0: FAT16
路由器出厂时,缺省的启动文件名为main.bin,用户保存路由器配置信息后,缺省的配置文件名为startup.cfg。CF卡剩余存储空间约为220 MB(227856 KB)。
(3)在命令行配置界面的用户视图下,执行tftp put命令将启动文件main.bin备份到TFTP文件服务器上:
tftp 192.168.1.1 put main.bin
File will be transferred in binary mode
Sending file to remote TFTP server. Please wait... \
TFTP: 23861744 bytes sent in 70 second(s).
File uploaded successfully.
(4)在命令行配置界面的用户视图下,执行tftp put命令将配置文件startup.cfg备份到TFTP文件服务器上:
tftp 192.168.1.1 put startup.cfg
File will be transferred in binary mode
Sending file to remote TFTP server. Please wait... \
TFTP: 1694 bytes sent in 0 second(s).
File uploaded successfully.
2.升级启动文件
(1)在命令行配置界面的用户视图下,执行tftp get命令将启动文件MSR30-CMW520-R2207P02-SI.BIN导入到路由器的CF卡中:
tftp 192.168.1.1 get MSR30-CMW520-R2207P02-SI.BIN
File will be transferred in binary mode
Downloading file from remote TFTP server, please wait...|
TFTP: 23861744 bytes received in 70 second(s)
File downloaded successfully.
(2)在命令行配置界面的用户视图下,执行boot-loader命令设置路由器下次启动使用的启动文件为MSR30-CMW520-R2207P02-SI.BIN,并指定启动文件类型为main:
boot-loader file msr30-cmw520-r2207p02-si.bin main
This command will set the boot file. Continue? [Y/N]:y
The specified file will be used as the main boot file at the next reboot on slot 0!
(3)在命令行配置界面的用户视图下,执行display boot-loader命令查看设备的启动程序文件信息:
display boot-loader
The boot file used at this reboot:cfa0:/main.bin attribute: main
The boot file used at the next reboot:cfa0:/msr30-cmw520-r2207p02-si.bin attribute: main
Failed to get the backup boot file used at the next reboot!
Failed to get the secure boot file used at the next reboot!
如上显示信息中,下一次启动的程序文件已经设置为MSR30-CMW520-R2207P02-SI.BIN。
(4)在命令行配置界面的用户视图下,执行reboot命令重启路由器:
reboot
Start to check configuration with next startup configuration file, please wait.........DONE!
This command will reboot the device. Continue? [Y/N]:y
#Aug 16 15:40:26:623 2011 MSR30-20 DEVM/1/REBOOT:
Reboot device by command.
%Aug 16 15:40:26:623 2011 MSR30-20 DEVM/5/SYSTEM_REBOOT: System is rebooting now.
Now rebooting, please wait...
System is starting...
(5)路由器重启后,通过display version命令查看路由器的启动文件版本信息是否与升级的启动文件一致。
display version
Comware Software, Version 5.20, Release 2207P02, Standard
Copyright (c) 2004-2011 Hangzhou H3C Tech. Co., Ltd. All rights reserved.
H3C MSR30-20 uptime is 0 week, 0 day, 4 hours, 24 minutes
Last reboot 2011/08/16 09:57:05
System returned to ROM By Command.
CPU type: FREESCALE MPC8349 533MHz
256M bytes DDR SDRAM Memory
4M bytes Flash Memory
Pcb Version: 3.0
Logic Version: 2.0
Basic BootROM Version: 3.12
Extended BootROM Version: 3.13
[SLOT 0]CON (Hardware)3.0 (Driver)1.0, (Cpld)2.0
[SLOT 0]AUX (Hardware)3.0 (Driver)1.0, (Cpld)2.0
[SLOT 0]GE0/0 (Hardware)3.0 (Driver)1.0, (Cpld)2.0
[SLOT 0]GE0/1 (Hardware)3.0 (Driver)1.0, (Cpld)2.0
[SLOT 0]CELLULAR0/0 (Hardware)3.0 (Driver)1.0, (Cpld)2.0
B.4.2使用FTP协议升级路由器的启动文件
路由器作为FTP Client,访问FTP文件服务器的指定路径,完成启动文件的备份及升级操作,具体操作步骤如下:
1.备份当前启动文件和配置文件
(1)在命令行配置界面的任意视图下,执行save命令保存路由器当前配置信息:
save
The current configuration will be written to the device. Are you sure? [Y/N]:y
Please input the file name(*.cfg)[cfa0:/startup.cfg]
(To leave the existing filename unchanged, press the enter key):
cfa0:/startup.cfg exists, overwrite? [Y/N]:y
Validating file. Please wait....
Configuration is saved to device successfully.
(2)在命令行配置界面的用户视图下,路由器行dir命令查看路由器当前的文件系统,确认启动文件及配置文件名,以及CF卡的剩余空间,保证CF卡有足够空间放入新的启动文件:
dir
Directory of cfa0:/
0 drw- - Jun 28 2011 14:41:16 logfile
1 drw- - Jun 28 2011 14:42:56 domain1
2 -rw- 16256 Jun 28 2011 14:43:40 p2p_default.mtd
3 -rw- 1694 Jun 28 2011 14:47:12 startup.cfg
4 -rw- 3432 Jun 28 2011 14:47:10 system.xml
5 -rw- 23861744 Jun 28 2011 14:37:46 main.bin
252328 KB total (227856 KB free)
File system type of cfa0: FAT16
路由器出厂时,缺省的启动文件名为main.bin,用户保存路由器配置信息后,缺省的配置文件名为startup.cfg。CF卡剩余存储空间约为220 MB(227856 KB)。
(3)在命令行配置界面的用户视图下,执行ftp命令登录FTP文件服务器,根据系统提示输入登录用户名和密码:
ftp 192.168.1.1
Trying 192.168.1.1 ...
Press CTRL+K to abort
Connected to 192.168.1.1.
220 3Com 3CDaemon FTP Server Version 2.0
User(192.168.1.100:(none)):user001
331 User name ok, need password
Password:
230 User logged in
(4)在FTP客户端视图下,执行put命令将启动文件main.bin备份到FTP文件服务器上:
[ftp] put main.bin
227 Entering passive mode (192,168,1,1,7,210)
125 Using existing data connection
226 Closing data connection; File transfer successful.
FTP: 23861744 byte(s) sent in 21.363 second(s), 1116.00Kbyte(s)/sec.
[ftp]
(5)在FTP客户端视图下,执行put命令将配置文件startup.cfg备份到FTP文件服务器上:
[ftp] put startup.cfg
227 Entering passive mode (192,168,1,1,7,177)
125 Using existing data connection
226 Closing data connection; File transfer successful.
FTP: 1677 byte(s) sent in 0.142 second(s), 11.00Kbyte(s)/sec.
[ftp]
2.升级启动文件
(1)在FTP客户端视图下,执行get命令将启动文件MSR30-CMW520-R2207P02-SI.BIN导入到路由器的CF卡中:
[ftp] get msr30-cmw520-r2207p02-si.bin
227 Entering passive mode (192,168,1,1,7,225)
125 Using existing data connection
226 Closing data connection; File transfer successful.
FTP: 23861744 byte(s) received in 30.907 second(s), 772.00K byte(s)/sec.
[ftp]
(2)在FTP客户端视图下,执行quit命令,返回到命令行配置界面的用户视图:
[ftp]quit
221 Service closing control connection
(3)在命令行配置界面的用户视图下,执行boot-loader命令设置路由器下次启动使用的启动文件为MSR30-CMW520-R2207P02-SI.BIN,并指定启动文件类型为main:
boot-loader file msr30-cmw520-r2207p02-si.bin main
This command will set the boot file. Continue? [Y/N]:y
The specified file will be used as the main boot file at the next reboot on slot 0!
(4)在命令行配置界面的用户视图下,执行display boot-loader命令查看设备的启动程序文件信息:
display boot-loader
The boot file used at this reboot:cfa0:/main.bin attribute: main
The boot file used at the next reboot:cfa0:/msr30-cmw520-r2207p02-si.bin attribute: main
Failed to get the backup boot file used at the next reboot!
Failed to get the secure boot file used at the next reboot!
如上显示信息中,下一次启动的程序文件已经设置为A_MSR30-CMW520-R2207P02-SI.BIN。
(5)在命令行配置界面的用户视图下,执行reboot命令重启路由器:
reboot
Comware Software, Version 5.20, Release 2207P02, Standard
Copyright (c) 2004-2011 Hangzhou H3C Tech. Co., Ltd. All rights reserved.
H3C MSR30-20 uptime is 0 week, 0 day, 4 hours, 24 minutes
Last reboot 2011/08/16 09:57:05
System returned to ROM By Command.
System is starting...
(6)路由器重启后,通过display version命令查看路由器的启动文件版本信息是否与升级的启动文件一致。
display version
Comware Software, Version 5.20, Release 2207P02, Standard
Copyright (c) 2004-2011 Hangzhou H3C Tech. Co., Ltd. All rights reserved.
H3C MSR30-20 uptime is 0 week, 0 day, 4 hours, 24 minutes
Last reboot 2011/08/16 09:57:05
System returned to ROM By Command.
CPU type: FREESCALE MPC8349 533MHz
256M bytes DDR SDRAM Memory
4M bytes Flash Memory
Pcb Version: 3.0
Logic Version: 2.0
Basic BootROM Version: 3.12
Extended BootROM Version: 3.13
[SLOT 0]CON (Hardware)3.0 (Driver)1.0, (Cpld)2.0
[SLOT 0]AUX (Hardware)3.0 (Driver)1.0, (Cpld)2.0
[SLOT 0]GE0/0 (Hardware)3.0 (Driver)1.0, (Cpld)2.0
[SLOT 0]GE0/1 (Hardware)3.0 (Driver)1.0, (Cpld)2.0
[SLOT 0]CELLULAR0/0 (Hardware)3.0 (Driver)1.0, (Cpld)2.0
B.5通过BootWare菜单升级启动文件
通过BootWare菜单升级启动文件,可以采用以下方式:
·通过以太网口利用TFTP/FTP升级
·通过Console口利用Xmodem升级
B.5.1进入BootWare菜单
路由器上电和重新启动的过程中,在配置终端的屏幕上首先将显示:
System is starting...
Do you want to check SDRAM? [Y/N]
Booting Normal Extend BootWare........
The Extend BootWare is self-decompressing.....................
Done!
****************************************************************************
* *
* H3C MSR 30-20 BootWare, Version 4.0 *
* *
****************************************************************************
Copyright (c) 2004-2012 Hangzhou H3C Technologies Co., Ltd.
Compiled Date : Dec 13 2012
CPU Type : MPC8349E
CPU L1 Cache : 32KB
CPU Clock Speed : 533MHz
Memory Type : DDR SDRAM
Memory Size : 256MB
Memory Speed : 266MHz
BootWare Size : 4096KB
Flash Size : 4MB
cfa0 Size : 256MB
CPLD Version : 2.0
PCB Version : 3.0
BootWare Validating...
Press Ctrl+B to enter extended boot menu...
·为了阅读和便于理解,如果不做特殊说明,本菜单都将称为BootWare主菜单。
·以上显示信息与设备实际情况相关,可能会略有差别。
当出现“Press Ctrl+B to enter extended boot menu...”时,键入,系统提示:
BootWare password: Not required. Please press Enter to continue.
按Enter键系统进入BootWare主菜单:
The current mode is password recovery.
Note: The current operating device is cfa0
Enter < Storage Device Operation > to select device.
======================================================
|<1> Boot System |
|<2> Enter Serial SubMenu |
|<3> Enter Ethernet SubMenu |
|<4> File Control |
|<5> Restore to Factory Default Configuration |
|<6> Skip Current System Configuration |
|<7> BootWare Operation Menu |
|<8> Clear Super Password |
|<9> Storage Device Operation |
|<0> Reboot |
============================================================================
Ctrl+Z: Access EXTEND-ASSISTANT MENU
Ctrl+F: Format File System
Enter your choice(0-9):
该菜单含义如下:菜单项说明<1> Boot System引导启动文件
<2> Enter Serial SubMenu进入串口子菜单。子菜单详细描述请参见1.
<3> Enter Ethernet SubMenu进入以太网子菜单。子菜单详细描述请参见2.
<4> File Control文件控制子菜单。子菜单详细描述请参见3.
<5> Restore to Factory Default Configuration恢复设备的出厂配置
<6> Skip Current System Configuration跳过当前配置进行启动,只是本次生效。该功能一般在用户丢失口令之后使用
<7> BootWare Operation MenuBootWare操作子菜单。
BootWare程序会随路由器启动文件的升级而同步升级,不推荐用户单独升级BootWare程序
<8> Clear Super Password清除超级用户密码
超级用户密码用来设置切换用户级别时的密码,缺省情况下没有设置超级用户密码
<9> Storage Device Operation存储设备控制菜单,用于存储设备的选择
<0> Reboot重新启动路由器
通过该子菜单可以实现升级启动文件,修改串口速率等操作。
在BootWare主菜单下选择<2>可以进入串口子菜单:
====================================================
|Note:the operating device is cfa0 |
|<1> Download Application Program To SDRAM And Run |
|<2> Update Main Application File |
|<3> Update Backup Application File |
|<4> Update Secure Application File |
|<5> Modify Serial Interface Parameter |
|<0> Exit To Main Menu |
==========================================================================
Enter your choice(0-5):
各选项含义如下:菜单项说明<1> Download Application Program To SDRAM And Run通过串口下载启动文件到内存并启动
<2> Update Main Application File升级主启动文件
<3> Update Backup Application File升级备份启动文件
<4> Update Secure Application File升级安全启动文件
<5> Modify Serial Interface Parameter修改串口参数
<0> Exit To Main Menu返回BootWare主菜单
在BootWare菜单下键入<3>,可以进入以太网口子菜单,系统显示如下:
==================================================
|Note:the operating device is cfa0 |
|<1> Download Application Program To SDRAM And Run |
|<2> Update Main Application File |
|<3> Update Backup Application File |
|<4> Update Secure Application File |
|<5> Modify Ethernet Parameter |
|<0> Exit To Main Menu |
| |
==========================================================================
Enter your choice(0-5):
以太网口子菜单中各选项解释如下:菜单项说明<1> Download Application Program To SDRAM And Run下载启动文件到内存并启动
<2> Update Main Application File升级主启动文件
<3> Update Backup Application File升级备份启动文件
<4> Update Secure Application File升级安全启动文件
<5> Modify Ethernet Parameter修改以太网口参数
<0> Exit To Main Menu返回BootWare主菜单
在BootWare主菜单中键入<4>,系统将进入文件控制子菜单。通过这个菜单可以实现对存储器中保存的启动文件显示类型、修改文件名、删除文件等操作,提示信息如下:
============================================================
|Note:the operating device is cfa0 |
|<1> Display All File(s) |
|<2> Set Application File type |
|<3> Set Configuration File type |
|<4> Delete File |
|<0> Exit To Main Menu |
==========================================================================
Enter your choice(0-4):
各选项含义如下:菜单项说明<1> Display All File显示所有文件
<2> Set Application File type设置文件类型
<3> Set Configuration File type设置配置文件类型
<4> Delete File删除文件
<0> Exit To Main Menu返回BootWare主菜单
B.5.3通过以太网口利用TFTP/FTP升级启动文件
(1)以太网口参数配置:在BootWare主菜单下键入<3>可以进入以太网口子菜单,然后键入<5>就可以进入以太网口配置菜单:
==================================================
|Note: '.' = Clear field. |
| '-' = Go to previous field. |
| Ctrl+D = Quit. |
==========================================================================
Protocol (FTP or TFTP) :tftp
Load File Name :main.bin
:
Target File Name :main.bin
:
Server IP Address :192.168.1.1
Local IP Address :192.168.1.253
Gateway IP Address :0.0.0.0
FTP User Name :user
FTP User Password :password显示说明'.' = Clear field快捷键:“.”表示清除当前输入
'-' = Go to previous field快捷键:“-”表示返回到前一个参数域
Ctrl+D = Quit快捷键:表示退出参数配置界面
Protocol (FTP or TFTP)使用的传输协议,可以为FTP或者TFTP
Load File Name下载文件名,要与下载的实际文件名一致
Target File Name存储的目标文件名。缺省情况下与服务器端文件名一致
Server IP AddressTFTP/FTP服务器的IP地址。需要设置掩码请使用冒号“:”格开,如:192.168.80.10:24
Local IP Address本地IP地址,为TFTP/FTP客户端设置的IP地址
Gateway IP Address网关IP地址。当与服务器不在同一网段时需要配置网关地址。
FTP User NameFTP用户名,传输协议为TFTP时,无此选项
FTP User PasswordFTP用户密码,传输协议为TFTP时,无此选项
(2)以升级主启动文件为例,键入<2>为升级主启动文件:
Loading.....................................................................
............................................................................
.........................Done!
31911744 bytes downloaded!
Updating File flash:/main.bin...............................................
....................................................Done!
====================================================
|Note:the operating device is flash |
|<1> Download Application Program To SDRAM And Run |
|<2> Update Main Application File |
|<3> Update Backup Application File |
|<4> Update Secure Application File |
|<5> Modify Ethernet Parameter |
|<0> Exit To Main Menu |
| |
============================================================================
Enter your choice(0-5):
(3)选择<0>,返回BootWare主菜单。选择<1>,引导系统。
B.5.4通过Console口利用Xmodem升级启动文件
(1)通过Console口升级启动文件,在BootWare主菜单下键入<2>,就会进入串口子菜单,菜单内容如下:
======================================================
|Note:the operating device is flash |
|<1> Download Application Program To SDRAM And Run |
|<2> Update Main Application File |
|<3> Update Backup Application File |
|<4> Update Secure Application File |
|<5> Modify Serial Interface Parameter |
|<0> Exit To Main Menu |
============================================================================
Enter your choice(0-5):
(2)在串口子菜单中,键入<5>,系统会提示修改串口波特率:
==============================================================
|Note:'*'indicates the current baudrate |
| Change The HyperTerminal's Baudrate Accordingly |
|------------------------------------------------------|
|<1> 9600(Default)* |
|<2> 19200 |
|<3> 38400 |
|<4> 57600 |
|<5> 115200 |
|<0> Exit |
============================================================================
Enter your choice(0-5):5
根据实际情况,选择合适的下载波特率,若如上所示键入<5>,即选择115200bps,终端显示提示信息:
Baudrate has been changed to 115200 bps.
Please change the terminal's baudrate to 115200 bps, press ENTER when ready.
如果下载波特率选择为9600bps,用户不用修改超级终端的波特率,不用进行下面的第(3)至(5)步操作,直接进入第(8)步的操作。
(3)单击超级终端的[呼叫/断开]菜单项,即断开超级终端和路由器的连接。
(4)点击[文件/属性]菜单,在弹出的对话框单击按钮,进入Console口配置对话框,将波特率配置为115200bps。
图3进入属性对话框
图4Console口配置对话框
(5)设置完波特率后,点击[呼叫/呼叫]按钮,重新建立超级终端和路由器的连接。
回车后,终端显示如下信息:
The current baudrate is 115200 bps
==============================================================
|Note:'*'indicates the current baudrate |
| Change The HyperTerminal's Baudrate Accordingly |
|------------------------------------------------------|
|<1> 9600(Default) |
|<2> 19200* |
|<3> 38400 |
|<4> 57600 |
|<5> 115200 |
|<0> Exit |
============================================================================
Enter your choice(0-5):
如果通过改变串口波特率下载文件来升级启动文件,完成升级后应及时将超级终端的连接波特率恢复为9600bps,以防止启动或重新启动时终端无法显示信息。
(6)在波特率设置菜单中键入<0>,返回串口子菜单。终端显示如下信息:
======================================================
|Note:the operating device is flash |
|<1> Download Application Program To SDRAM And Run |
|<2> Update Main Application File |
|<3> Update Backup Application File |
|<4> Update Secure Application File |
|<5> Modify Serial Interface Parameter |
|<0> Exit To Main Menu |
============================================================================
Enter your choice(0-5):
(7)根据所需升级的启动文件类型在串口子菜单中键入2~4,选择升级主用启动文件、备用启动文件或者安全启动文件。此处以升级主用启动文件为例。在串口子菜单下键入<2>,终端显示信息:
Please Start To Transfer File, Press To Exit.
Waiting ...CCCCC
此时,从终端窗口选择[传送\发送文件],在弹出的对话框(如下图)中点击[浏览]按扭,选择需要下载的软件,并将下载使用的协议改为XModem。
图6[发送文件]对话框
(8)选择完成后,点击[发送]按钮,系统弹出如下图所示的界面。
图7正在发送文件界面
文件下载成功后,终端显示如下信息:
Download successfully!
31911808 bytes downloaded!
Input the File Name:main.bin
Updating File flash:/main.bin..............................................
.....................................................Done!
======================================================
|Note:the operating device is flash |
|<1> Download Application Program To SDRAM And Run |
|<2> Update Main Application File |
|<3> Update Backup Application File |
|<4> Update Secure Application File |
|<5> Modify Serial Interface Parameter |
|<0> Exit To Main Menu |
============================================================================
Enter your choice(0-5):
(9)升级成功后,在串口子菜单中键入<0>,返回到BootWare主菜单,然后键入<1>,启动系统。
·系统重启后,需要将超级终端的波特率调整为9600bps,过程请参考前面的第(3)至(5)步;如果下载波特率选择为9600bps,用户不用修改超级终端的波特率。
·启动文件较大,通过Console口升级启动文件速度较慢,推荐您使用以太网口升级启动文件。
B.6通过BootWare菜单进行文件管理
对文件类型的修改、显示等可以在文件控制子菜单下完成:
在BootWare主菜单下键入<4>,系统会进入文件控制子菜单。系统显示如下:
============================================================
|Note:the operating device is cfa0 |
|<1> Display All File(s) |
|<2> Set Application File type |
|<3> Set Configuration File type |
|<4> Delete File |
|<0> Exit To Main Menu |
==========================================================================
Enter your choice(0-4):
1.显示所有文件
键入<1>进入该选项,系统提示:
Display all file(s) in cfa0:
'M' = MAIN 'B' = BACKUP 'S' = SECURE 'N/A' = NOT ASSIGNED
==========================================================================
|NO. Size(B) Time Type Name |
|1 640199 Dec/20/2007 09:53:16 N/A cfa0:/logfile/logfile.log |
|2 22165484 Dec/20/2007 09:18:10 B+S cfa0:/update.bin |
|3 1181 Dec/20/2007 09:42:54 N/A cfa0:/startup.cfg |
|4 22165484 Dec/20/2007 09:42:28 M cfa0:/main.bin |
==========================================================================
2.设置文件类型
启动文件属性包括主用启动文件(M)、备用启动文件(B)和安全启动文件(S)。设备中同一属性的启动文件只能有一个。同一个启动文件的属性可以是M、B和S三种文件属性的任意组合。当某种属性被指定到一个新的启动文件后,该属性对应的原启动文件将不在具有该属性,如果原启动文件只具有一种属性,则原启动文件的属性将变更为N/A。
例如,启动文件main.bin具有主用启动文件属性M,启动文件update.bin具有安全启动文件属性S。如果将主用启动文件属性M指定到update.bin上,则该启动文件的属性将变为M+S,main.bin的文件属性将变为N/A。
安全启动文件的文件类型不允许修改。
在文件控制子菜单下键入<2>,进入设置启动文件类型菜单:
'M' = MAIN 'B' = BACKUP 'S' = SECURE 'N/A' = NOT ASSIGNED
==========================================================================
|NO. Size(B) Time Type Name |
|1 22165484 Dec/20/2007 09:18:10 B+S cfa0:/update.bin |
|2 22165484 Dec/20/2007 09:42:28 M cfa0:/main.bin |
|0 Exit |
========================================================================
Enter file No:
输入要修改的文件的编号,按,系统提示对文件类型进行更改:
Modify the file attribute:
==========================================================================
|<1> +Main |
|<2> -Main |
|<3> +Backup |
|<4> -Backup |
|<0> Exit |
==========================================================================
Enter your choice(0-4):
键入1~4可以指定主用启动文件、取消主用启动文件、指定为备用启动文件和取消备用启动文件。当用户成功设置文件类型后,终端显示如下信息:
Set the file attribute success!
3.删除文件
在文件控制子菜单下键入<4>,可进入删除文件选项:
Deleting the file in cfa0:
'M' = MAIN 'B' = BACKUP 'S' = SECURE 'N/A' = NOT ASSIGNED
==========================================================================
|NO. Size(B) Time Type Name |
|1 640199 Dec/20/2007 09:53:16 N/A cfa0:/logfile/logfile.log |
|2 22165484 Dec/20/2007 09:18:10 B+S cfa0:/update.bin |
|3 1181 Dec/20/2007 09:42:54 N/A cfa0:/startup.cfg |
|4 22165484 Dec/20/2007 09:42:28 M cfa0:/main.bin |
|0 Exit |
==========================================================================
Enter file No:
输入要删除文件的编号,按,系统提示如下,表示删除成功:
The file you selected is cfa0:/backup.bak,Delete it?[Y/N]Y
Deleting........Done!
B.7通过Web配置界面升级启动文件
设备使用HTTP方式从用户定义的路径中获取目标应用程序文件,设备重启后,系统就可升级到目标版本。
在界面左侧的导航栏中选择“系统管理>软件升级”,进入如下图所示的页面:
点击“选择文件”按钮,从本地路径中选择应用程序升级文件,设置设备上存储的应用程序文件名称,并勾选“如果文件已经存在,直接覆盖”选项,然后点击“确定”按钮开始软件升级,如下图所示:
升级过程大约需要3~5分钟,在此过程中,请勿关闭设备电源或重新启动设备,同时保证网络连接正常。
升级完成后,系统提示如下,表示升级成功,请重新启动设备。
在重启设备之前,请保存当前系统配置信息,在界面左侧的导航栏中选择“系统管理>配置管理”,默认进入“保存配置”页签,点击“保存当前配置”,如下图所示:
点击“确定”按钮,保存系统配置信息。
配置信息保存完成后,在界面左侧的导航栏中选择“系统管理>设备重启”,进入如下图所示的页面,点击按钮,重启设备。
升级失败后,系统会使用原来的版本运行。用户可以通过以下方式尝试解决软件升级失败问题。
(1)请检查物理端口是否连接完好,请确保端口物理连接正确。
(2)通过Console口登录设备时,请检查超级终端相关参数是否设置正确,如波特率、数据位等。
(3)查看超级终端上的显示信息,请检查是否有输入错误等。输入错误可能包括以下:
·利用Xmodem协议下载时,如果选择了9600bps以外的波特率进行下载,没有及时修改超级终端的波特率。超级终端的波特率和Console口的波特率必须保持一致;
·在使用TFTP协议进行软件升级时,输入的IP地址、文件名称或指定的TFTP Server的工作路径有误;
·在使用FTP协议进行软件升级时,输入的IP地址、文件名字、指定的FTP Server的工作路径、FTP用户名或FTP密码有误。
(4)请检查FTP Server或者TFTP Server等软件是否正常运行,相关设置是否正确。
(5)请检查设备存储介质的剩余空间大小是否足够保存待上传的文件。
(6)如果文件在加载结束后出现如下提示:Something is wrong with the file.请检查文件是否可用。