ar 28-09 路由器提供了利用tftp 升级应用程序的方法,具体操作步骤如下:
1 搭建升级环境

第一步:将ethernet0 口通过交叉网线与一台微机相连;
利用tftp 升级时只能使用ethernet0 口。
第二步:路由器的配置口外接一台配置终端(利用以太网口外接的微机即可),并参考4.1.1 中的“2. 设置微机和终端的参数”配置好超级终端。
第三步:在微机上安装tftp server;
tftp server 程序由用户自己购买、安装,ar 28-09 不提供此软件。
第四步: 将新的应用程序文件拷贝到某一路径下, 这里假定路径为c:\quidway;
第五步:配置微机的以太网口ip 地址,这里假定微机的ip 地址为10.110.10.13。
2 运行tftp server
第一步:在微机上运行tftp server ,如下图:

第二步:单击[settings],并在[base directory]中设置新的应用程序的路径。
3 配置路由器
第一步:进入tftp 配置状态;
启动路由器,当屏幕上显示“quidway start booting”时,迅速单击[n]键,终端界面上出现如下提示:
(m)odify any of quidway router configuration or (c)ontinue? [m]键入[enter],出现如下提示:
for each of the following questions, you can press [return] to select the value shown in braces, or you can enter a new value.
对于下面每个问题,你可以键入[return]去选择“[ ]”中的缺省值,也可以直接键入新的值。
第二步:配置tftp 参数
network interface parameters:
配置路由器的网络接口参数,包括使用的接口、接口ip 地址、子网掩码等。
do you want a lan interface? [n] y
this board's lan ip address? [169.254.10.10]10.110.10.10
subnet mask for lan (0 for none)? [255.255.0.0]
tftp server parameters:
配置tftp server 参数,包括微机的以太网口ip 地址、应用程序的文件名、cpu 延迟时间等。
ip address of the tftp server? [169.254.75.166]10.110.10.13
what is the name of the file to be loaded and started? [m8241ram.arj]
how long (in seconds) should cpu delay before starting up? [5]
(1) “ip address of the tftp server ? [10.110.10.13]” 一项必须设为路由器以太网口所连的微机的ip 地址,
(2) “this board's lan ip address(0.0.0.0 = rarp)? [10.110.10.10],subnet mask for lan (0 for none)? [255.255.0.0] “ 中配置的必须为ethernet0 的ip 地址及子网掩码。
(3) 微机网口ip 地址与路由器ethernet0 的ip 地址必须位于同一网段。
第三步:确认配置参数
键入最后一项值后出现如下提示,要求确认刚才的输入是否正确:
----------------------------------------------------------------
network interface parameters:
ip address on lan is 10.110.10.10
lan interface's subnet mask is 0xffff0000
hardware parameters:
processor type is mpc8241
internal clock rate 200 mhz
external clock rate 100 mhz
serial channels will use a baud rate of 9600
tftp server parameters:
ip address of the tftp host is 10.110.10.13
the file to download and start is m8241ram.arj
after board is reset, start-up code will wait 5 seconds
---------------------------------------------------------------
(m)odify any of this or (c)ontinue? [m]c键入[c],表示确认以上选择不再修改。
4 进入boot 菜单
第一步:系统进入正常启动,按照5.1.1 小节介绍方法,进入boot 菜单。
第二步:在boot 菜单中键入[2],选择通过tftp 下载应用程序,出现以下提示:
please start tftp server then press enter key to get start
如果运行tftp server 的微机已经准备就绪,键入[enter],开始程序加载。
starting the tftp download...
..................................................................
tftp download completed...
read len=[03713478]
writing program code to flash...
please waiting,it needs a long time (about 5 min)
##############################
write flash success.
press enter key to reboot the system.
加载成功,键入[enter]后,路由器重新启动。