• 產品與解決方案
  • 行業解決方案
  • 服務
  • 支持
  • 合作夥伴
  • 關於我們

01-基礎配置指導

目錄

17-BootWare管理配置

本章節下載 17-BootWare管理配置  (534.30 KB)

17-BootWare管理配置


1 BootWare管理配置

說明

本文中所有操作,建議僅在單主控板環境下執行。操作前,請先將串口線連接該主控板上的Console口,網線連接該主控板上的網管口,通過Console口登錄設備後在執行相應操作。

 

1.1  簡介

1.1.1  BootWare程序文件

BootWare程序文件是設備啟動時用來引導應用程序的文件。完整的BootWare包含BootWare基本段和BootWare擴展段。

·     BootWare基本段是指完成係統基本初始化的BootWare,可以實現修改串口參數、升級BootWare等操作。

·     BootWare擴展段具有豐富的人機交互功能,用於接口的初始化,可以實現升級應用程序和引導係統。BootWare擴展段包括擴展段主菜單和擴展段輔助菜單兩部分:主菜單用於升級係統啟動文件、文件控製等操作,輔助菜單用於查看、搜索設備內存等操作。

BootWare基本段啟動後,可以在基本段菜單下加載升級BootWare擴展段。為了閱讀和便於理解,如果不做特殊說明,本文中BootWare擴展段主菜單將稱為BootWare主菜單。

1.1.2  應用程序文件

係統缺省定義了兩種用於啟動的應用程序文件:主程序文件、備份程序文件。當用戶在存儲介質或文件係統中加載了這兩種應用程序文件時,係統將以此順序依次選擇這兩種文件來啟動設備,直到設備正常啟動為止。如果用戶希望改變啟動文件,可以參考1.3.5  進入文件控製子菜單

主程序文件、備份程序文件的缺省文件名、文件類型及啟動時的選擇順序如下:

·     主程序文件,文件類型為M,是係統啟動缺省使用的文件;

·     備份程序文件,文件類型為B。當主程序文件啟動失敗時,係統使用備份程序文件啟動;

說明

·     用於啟動的應用程序文件,既可以是IPE文件,還可以是BIN文件;當使用BIN文件作為啟動的程序文件時,需要Boot軟件包和System軟件包各一個。關於軟件包的詳細介紹,請參見“基礎配置指導”中的“軟件升級”。

·     當應用程序文件未指定文件類型時,則為N/A類型;當指定應用程序文件既為主程序文件,又為備用程序文件時,則為M+B類型。

·     僅有類型為M、B的應用程序可以用於係統啟動,其他類型的應用程序不會被用於係統啟動。

·     存儲的應用程序文件名可以在應用程序啟動後通過命令行修改;類型為M、B或N/A的應用程序的文件類型可以在BootWare菜單中修改,也可以在應用程序啟動後通過命令修改。

·     M、B類型的文件在每個主控板上同時最多存在一個。如:Flash中有一個boot軟件包文件為M+B類型,那麼就不可能存在其它的類型為M或者B的boot軟件包文件;若另一個boot軟件包文件的類型被改為B,那麼以前的M+B類型的boot軟件包文件就變成M類型的文件了。

 

1.2  進入BootWare基本段菜單

設備上電後,通過串口(Console口)連接設備,在終端顯示信息中出現“Press Ctrl+D to access BASIC-BOOTWARE MENU…”的3秒鍾之內,鍵入<Ctrl+D>,係統將進入BootWare基本段;如果未在3秒鍾之內鍵入<Ctrl+D>,係統將直接運行BootWare程序,若此後仍希望進入BootWare基本段,則需要重新啟動設備,設備啟動過程中再執行相關操作。

RAM test successful.

Press Ctrl+T to start five-step full RAM test...

Press Ctrl+Y to start nine-step full RAM test...

System is starting...

Press Ctrl+D to access BASIC-BOOTWARE MENU...

 

=====================<BASIC-BOOTWARE MENU (Ver 1.00) >======================

|<1> Modify Serial Interface Parameter                                     |

|<2> Update Extended BootWare                                              |

|<3> Update Full BootWare                                                  |

|<4> Boot Extended BootWare                                                |

|<5> Boot Backup Extended BootWare                                         |

|<0> Reboot                                                                |

============================================================================

Ctrl+C: Display Copyright

Enter your choice(0-5):

表1-1 BootWare基本段菜單項解釋

菜單項

解釋

<1> Modify Serial Interface Parameter

修改串口參數

<2> Update Extended BootWare

升級BootWare擴展段

<3> Update Full BootWare

升級完整的BootWare,包括BootWare基本段和BootWare擴展段

<4> Boot Extended BootWare

啟動BootWare擴展段

<5> Boot Backup Extended BootWare

啟動備份的BootWare擴展段

<0> Reboot

重啟設備

 

1.2.2  修改串口參數

在BootWare基本段菜單項中鍵入<1>,回車後,可以設置串口(Console口)的波特率。

Enter your choice(0-5): 1

===============================<BAUDRATE SET>===============================

|Note:'*'indicates the current baudrate                                    |

|     Change The HyperTerminal's Baudrate Accordingly                      |

|---------------------------<Baudrate Available>---------------------------|

|<1> 9600(Default)*                                                        |

|<2> 19200                                                                 |

|<3> 38400                                                                 |

|<4> 57600                                                                 |

|<5> 115200                                                                |

|<0> Exit                                                                  |

============================================================================

Enter your choice(0-5):

說明

·     通過BootWare菜單使用Console口加載主機程序時,應注意正確設置PC端串口的波特率、數據位、奇偶校驗位、停止位和數據流控製等屬性,否則超級終端將無響應。關於PC端串口屬性設置的詳細介紹,請參見“基礎配置指導”中的“登錄設備”。

·     單板Console口的默認波特率是9600bps。用戶修改了Console口波特率後,到下次重啟時,又會重新恢複到默認波特率9600bps。

 

1.2.3  升級BootWare擴展段

在BootWare基本段菜單項中鍵入<2>,回車後,將僅升級BootWare擴展段。當BootWare擴展段損壞時,可以在基本段執行該操作來升級BootWare擴展段。

Enter your choice(0-5): 2

Please Start To Transfer File, Press <Ctrl+C> To Exit.

Waiting ...CCCCC

Download successfully!

329344 bytes downloaded!

Updating Extended BootWare? [Y/N]Y

Updating Extended BootWare...............Done.

1.2.4  升級完整的BootWare

在BootWare基本段菜單項中鍵入<3>,回車後,將升級完整的BootWare。

Enter your choice(0-5): 3

Please Start To Transfer File, Press <Ctrl+C> To Exit.

Waiting ...CCCCC

Download successfully!

329344 bytes downloaded!

Updating Basic BootWare? [Y/N]Y

Updating Basic BootWare...............Done.

Updating Extended BootWare? [Y/N]Y

Updating Extended BootWare...............Done.

1.2.5  啟動BootWare擴展段

在BootWare基本段菜單項中鍵入<4>,回車後,設備將啟動BootWare擴展段。

Enter your choice(0-5): 4

Booting Normal Extended BootWare

The Extended BootWare is self-decompressing.........Done.

 

****************************************************************************

*                                                                          *

*                         BootWare, Version 1.08                           *

*                                                                          *

****************************************************************************

Compiled Date         : Jan 10 2020

CPU Type              : loongson-2h

CPU Clock Speed       : 800MHz

Memory Type           : DDR3 SDRAM

Memory Size           : 2048MB

Memory Speed          : 333MHz

BootWare Size         : 832KB

Flash Size            : 16MB

CPLD Version          : 001A

PCB Version           : Ver.B

 

 

BootWare Validating...

Press Ctrl+B to access EXTENDED-BOOTWARE MENU...

1.2.6  啟動備份的BootWare擴展段

在BootWare基本段菜單項中鍵入<5>,回車後,設備將啟動備份的BootWare擴展段。BootWare的備份操作請參見1.3.8  進入BootWare操作子菜單

Enter your choice(0-5): 5

Booting Normal Extended BootWare

The Extended BootWare is self-decompressing.........Done.

 

****************************************************************************

*                                                                          *

*                         BootWare, Version 1.08                           *

*                                                                          *

****************************************************************************

Compiled Date         : Jan 10 2020

CPU Type              : loongson-2h

CPU Clock Speed       : 800MHz

Memory Type           : DDR3 SDRAM

Memory Size           : 2048MB

Memory Speed          : 333MHz

BootWare Size         : 832KB

Flash Size            : 16MB

CPLD Version          : 001A

PCB Version           : Ver.B

 

 

BootWare Validating...

Press Ctrl+B to access EXTENDED-BOOTWARE MENU...

1.3  進入BootWare擴展段菜單

設備上電後,如果未選擇進入基本段,則設備會提示是否選擇進入BootWare擴展段主菜單,終端屏幕上顯示如下信息:

RAM test successful.

Press Ctrl+T to start five-step full RAM test...

Press Ctrl+Y to start nine-step full RAM test...

System is starting...

Press Ctrl+D to access BASIC-BOOTWARE MENU...

Booting Normal Extended BootWare

The Extended BootWare is self-decompressing.........Done.

 

****************************************************************************

*                                                                          *

*                         BootWare, Version 1.08                           *

*                                                                          *

****************************************************************************

Compiled Date         : Jan 10 2020

CPU Type              : loongson-2h

CPU Clock Speed       : 800MHz

Memory Type           : DDR3 SDRAM

Memory Size           : 2048MB

Memory Speed          : 333MHz

BootWare Size         : 832KB

Flash Size            : 16MB

CPLD Version          : 001A

PCB Version           : Ver.B

 

 

BootWare Validating...

Press Ctrl+B to access EXTENDED-BOOTWARE MENU...

在出現“Press Ctrl+B to access EXTENDED-BOOTWARE MENU...”的3秒鍾之內,鍵入<Ctrl+B>,係統將進入BootWare擴展段主菜單,否則係統將進入程序解壓過程;若程序進入解壓過程後再希望進入BootWare擴展段,則需要重新啟動設備,設備啟動過程中再執行相關操作。

Password recovery capability is enabled.

Note: The current operating device is flash

Enter < Storage Device Operation > to select device.

 

==========================<EXTENDED-BOOTWARE MENU>==========================

|<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> Skip Authentication for Console Login                                 |

|<9> Storage Device Operation                                              |

|<0> Reboot                                                                |

============================================================================

Ctrl+Z: Access EXTENDED ASSISTANT MENU

Ctrl+C: Display Copyright

Ctrl+F: Format File System

Enter your choice(0-9):

表1-2 BootWare擴展段菜單項解釋

菜單項

解釋

<1> Boot System

啟動應用程序

<2> Enter Serial SubMenu

進入串口子菜單

啟動文件較大,通過串口(Console口)升級啟動文件速度較慢,推薦您使用網管口升級啟動文件

<3> Enter Ethernet SubMenu

進入網管口子菜單

<4> File Control

進入文件控製子菜單

<5> Restore to Factory Default Configuration

恢複出廠配置啟動

使能密碼恢複功能後不支持該操作

<6> Skip Current System Configuration

跳過當前係統配置

關閉密碼恢複功能後不支持該操作

<7> BootWare Operation Menu

進入BootWare操作子菜單

<8> Skip Authentication for Console Login

跳過Console口登錄認證

關閉密碼恢複功能後不支持該操作

<9> Storage Device Operation

進入存儲介質操作子菜單

<0> Reboot

重啟設備

 

說明

關於密碼恢複功能的詳細介紹,請參見“基礎配置指導”中的“設備管理”。

 

1.3.2  啟動應用程序

在Bootware主菜單中,鍵入<1>,回車後,係統啟動應用程序。

Enter your choice(0-9): 1

Loading the main image files...

Loading file flash:/system-test.bin........................

.........................Done.

Loading file flash:/boot-test.bin.....Done.                   

 

 

Image file flash:/boot-test.bin is self-decompressing......

....................................................Done.

 

System image is starting...

Line con2 is available.

 

 

Press ENTER to get started.

1.3.3  進入串口子菜單

通過該子菜單可以實現升級應用程序,修改串口速率等操作。

在BootWare主菜單中,鍵入<2>,回車後,係統進入串口子菜單:

===========================<Enter Serial SubMenu>===========================

|Note:the operating device is flash                                        |

|<1> Download Image Program To SDRAM And Run                               |

|<2> Update Main Image File                                                |

|<3> Update Backup Image File                                              |

|<4> Download Files(*.*)                                                   |

|<5> Modify Serial Interface Parameter                                     |

|<0> Exit To Main Menu                                                     |

============================================================================

Enter your choice(0-5):

表1-3 串口子菜單項解釋

菜單項

解釋

<1> Download Image Program To SDRAM And Run

加載應用程序到SDRAM並且運行

關閉密碼恢複功能後不支持該操作

<2> Update Main Image File

加載主用程序文件到當前存儲介質

新加載的程序文件將自動被設置為M類型,原帶有M類型的程序文件中的該屬性將被取消

<3> Update Backup Image File

加載備用程序文件到當前存儲介質

新加載的程序文件將自動被設置為B類型,原帶有B類型的程序文件中的該屬性將被取消

<4> Download Files(*.*)

加載文件到當前存儲介質

<5> Modify Serial Interface Parameter

進入修改串口參數子菜單

<0> Exit To Main Menu

返回到上一級目錄

 

在串口子菜單中,加載文件前需要先設置串口參數,操作步驟如下。

(2)     鍵入<5>,回車後,係統進入串口參數設置界麵:

===============================<BAUDRATE SET>=============================

|Note:'*'indicates the current baudrate                                    |

|     Change The HyperTerminal's Baudrate Accordingly                      |

|---------------------------<Baudrate Available>---------------------------|

|<1> 9600(Default)*                                                        |

|<2> 19200                                                                 |

|<3> 38400                                                                 |

|<4> 57600                                                                 |

|<5> 115200                                                                |

|<0> Exit                                                                  |

==========================================================================

Enter your choice(0-5):1

(3)     用戶根據實際情況,選擇相應的程序文件加載方式。當需要加載主用程序文件時,可在網管口子菜單中鍵入<2>,回車後,即將主用程序文件下載至設備中,終端顯示如下信息:

Enter your choice(0-5):2

Waiting ...CCC

Download successfully!

47979456 bytes downloaded!

Updating File flash:/test.bin..............................................

..Done.

1.3.4  進入網管口子菜單

在BootWare主菜單中,鍵入<3>,回車後,係統進入網管口子菜單:

==========================<Enter Ethernet SubMenu>==========================

|Note:the operating device is flash                                        |

|<1> Download Image Program To SDRAM And Run                               |

|<2> Update Main Image File                                                |

|<3> Update Backup Image File                                              |

|<4> Download Files(*.*)                                                   |

|<5> Modify Ethernet Parameter                                             |

|<0> Exit To Main Menu                                                     |

|<Ensure The Parameter Be Modified Before Downloading!>                    |

============================================================================

Enter your choice(0-5):

表1-4 網管口子菜單項解釋

菜單項

解釋

<1> Download Image Program To SDRAM And Run

加載應用程序到SDRAM並且運行

關閉密碼恢複功能後不支持該操作

<2> Update Main Image File

加載主用程序文件到當前存儲介質

新加載的程序文件將自動被設置為M類型,原帶有M類型的程序文件中的該屬性將被取消

<3> Update Backup Image File

加載備用程序文件到當前存儲介質

新加載的程序文件將自動被設置為B類型,原帶有B類型的程序文件中的該屬性將被取消

<4> Download Files(*.*)

加載文件到當前存儲介質

關閉密碼恢複功能後不支持該操作

<5> Modify Ethernet Parameter

進入修改以太網參數的子菜單

<0> Exit To Main Menu

返回到上一級目錄

 

在網管口子菜單中,加載文件前需要先設置網管口參數,操作步驟如下。

(2)     鍵入<5>,回車後,進入網管口參數設置界麵,修改網管口相關參數:

Enter your choice(0-5): 5

 

==========================<ETHERNET PARAMETER SET>==========================

|Note:       '.' = Clear field.                                            |

|            '-' = Go to previous field.                                   |

|         Ctrl+D = Quit.                                                   |

============================================================================

Protocol (FTP or TFTP) :ftp

Load File Name         : new.ipe

                       :

Target File Name       : new.ipe

                       :

Server IP Address      :192.168.2.79

Local IP Address       :192.168.2.105

Subnet Mask            :255.255.255.0

Gateway IP Address     :192.168.2.105

FTP User Name          :123

FTP User Password      :***

表1-5 以太網參數設置說明

顯示

說明

'.' = Clear field

快捷鍵:“.”表示清除該項設置

'-' = Go to previous field

快捷鍵:“-”表示返回到上一個設置項

Ctrl+D = Quit

快捷鍵:表示退出參數設置界麵

Protocol (FTP or TFTP)

使用的傳輸協議,可以為FTP或者TFTP

Load File Name

下載文件名,要與下載的實際文件名一致

Target File Name

存儲的目標文件名。缺省情況下與服務器端文件名一致

Server IP Address

TFTP/FTP服務器的IP地址

Local IP Address

本地IP地址,為TFTP/FTP客戶端設置的IP地址

Subnet Mask

子網絡掩碼

Gateway IP Address

網關IP地址。當與服務器不在同一網段時需要配置網關地址。

FTP User Name

FTP用戶名,傳輸協議為TFTP時,無此選項

FTP User Password

FTP用戶密碼,傳輸協議為TFTP時,無此選項

 

(3)     用戶根據實際情況,選擇相應的程序文件加載方式。當需要加載主用程序文件時,可在網管口子菜單中鍵入<2>,回車後,即將主用程序文件下載至設備中,終端顯示如下信息:

Enter your choice(0-5):2

Loading.....................................................................

............................................................................

............................................................................

.................................................Done.

227301376 bytes downloaded!

Image file boot-test.bin is self-decompressing...

Saving file flash:/boot-test.bin ..........................

........................................................Done.

Image file system-test.bin is self-decompressing...

Saving file flash:/system-test.bin ........................

............................................................................

............................................................................

............................................................................

............Done.

1.3.5  進入文件控製子菜單

在BootWare主菜單中,鍵入<4>,回車後,係統進入文件控製子菜單。通過這個菜單可以查看存儲介質中保存的文件顯示類型、修改文件名、刪除文件等操作,提示信息如下:

Enter your choice(0-9): 4

 

===============================<File CONTROL>===============================

|Note:the operating device is flash                                        |

|<1> Display All File(s)                                                   |

|<2> Set Image File type                                                   |

|<3> Set Bin File type                                                     |

|<4> Delete File                                                           |

|<5> Copy File                                                             |

|<0> Exit To Main Menu                                                     |

============================================================================

Enter your choice(0-5):

(1)     在文件控製子菜單中,鍵入<1>,回車後,查看設備當前存儲介質路徑下的文件信息:

Enter your choice(0-5): 1

 

Display all file(s) in flash:

 'M' = MAIN      'B' = BACKUP      'N/A' = NOT ASSIGNED

============================================================================

|NO. Size(B)   Time                 Type   Name                            |

|1   4577      Feb/19/2013 13:07:54 N/A    flash:/labtop.cfg               |

|2   141952    Feb/19/2013 13:07:54 N/A    flash:/labtop.mdb               |

|3   341547    Feb/20/2013 12:00:15 N/A    flash:/logfile/logfile.log      |

|4   0         Jul/29/2014 16:32:27 N/A    flash:/test.cfg                 |

|5   1681      Jul/29/2014 17:34:42 N/A    flash:/vlan.txt                 |

|6   8299      Jul/29/2014 17:36:00 N/A    flash:/test.txt                 |

|7   27708416  Jul/31/2014 09:27:30 M      flash:/BOOT-test.bin            |

|8   208249856 Jul/31/2014 09:28:27 M      flash:/SYSTEM.bin               |

|0   Exit                                                                  |

============================================================================

說明

在文件控製子菜單中,查看設備當前存儲介質路徑下的文件時,最多可以顯示998個文件。

 

(2)     在文件控製子菜單中,鍵入<2>,回車後,係統進入設置文件屬性菜單,可以根據需要來選擇修改對應文件的屬性,比如選擇new.ipe作為下次備用啟動文件,設備舉例如下。

Enter your choice(0-5): 2

 

'M' = MAIN      'B' = BACKUP      'N/A' = NOT ASSIGNED                        

============================================================================   

|NO. Size(B)   Time                 Type   Name                            |   

|1   53692416  Jan/01/2011 05:17:14 N/A    flash:/new.ipe                  |   

|0   Exit                                                                  |   

============================================================================   

Enter file No.:1                                                               

                                                                               

Modify the file attribute:                                                     

============================================================================   

|<1>+Main                                                                  |   

|<2>+Backup                                                                |   

|<0> Exit                                                                  |   

============================================================================   

Enter your choice(0-2):                                                        

屬性選擇界麵中,“+Main”表示為被選定文件添加主程序文件屬性;“+Backup”表示為被選定文件添加備用程序文件屬性。new.ipe設置為備用啟動文件,選擇<2>,回車後,係統提示如下,表示設置成功:

Enter your choice(0-2):2

This operation may take several minutes. Please wait....                       

The file is exist,will you overwrite it? [Y/N]Y                                

Image file BOOT-test.bin is self-decompressing...             

Saving file flash:/BOOT-test.bin .............Done.           

Image file SYSTEM-test.bin is self-decompressing...           

Saving file flash:/SYSTEM-test.bin ........................   

............................................................................   

..............................................................Done.            

Set the file attribute success!                                                

(3)     在文件控製子菜單中,鍵入<3>,回車後,係統進入設置文件屬性菜單,可以根據需要來選擇修改對應文件的屬性,比如選擇BOOT-test.bin和SYSTEM-test.bin作為下次備用啟動文件,設備舉例如下。

Enter your choice(0-5): 3

 

 'M' = MAIN      'B' = BACKUP      'N/A' = NOT ASSIGNED

============================================================================   

|NO. Size(B)   Time                 Type   Name                            |   

|1   18432     Jan/01/2011 06:45:16 M      flash:/BOOT-test.bin            |   

|2   48168960  Jan/05/2011 06:10:21 M      flash:/SYSTEM-test.bin          |   

|0   Exit                                                                  |   

============================================================================

Note:Select .bin files. One but only one boot image and system image must

be included.

Enter file No.(Allows multiple selection):1

Enter another file No.(0-Finish choice):2

Enter another file No.(0-Finish choice):0

You have selected:

flash:/BOOT-test.bin

flash:/SYSTEM-test.bin

 

Modify the file attribute:

============================================================================

|<1>+Main                                                                  |

|<2>+Backup                                                                |

|<0> Exit                                                                  |

============================================================================

Enter your choice(0-2):

屬性選擇界麵中,“+Main”表示為被選定文件添加主程序文件屬性;“+Backup”表示為被選定文件添加備用程序文件屬性。BOOT-test.bin和SYSTEM-test.bin設置為備用啟動文件,選擇<2>,回車後,係統提示如下,表示設置成功:

Enter your choice(0-2):2

This operation may take several minutes. Please wait....

Set the file attribute success!

(4)     在文件控製子菜單中,鍵入<4>,回車後,可以對設備存儲介質中的文件進行刪除操作。

Enter your choice(0-5): 4

 

Deleting the file in flash:

 'M' = MAIN      'B' = BACKUP      'N/A' = NOT ASSIGNED

Display all file(s) in flash:

 'M' = MAIN      'B' = BACKUP      'N/A' = NOT ASSIGNED

============================================================================

|NO. Size(B)   Time                 Type   Name                            |

|1   4577      Feb/19/2013 13:07:54 N/A    flash:/labtop.cfg               |

|2   141952    Feb/19/2013 13:07:54 N/A    flash:/labtop.mdb               |

|3   341547    Feb/20/2013 12:00:15 N/A    flash:/logfile/logfile.log      |

|4   0         Jul/29/2014 16:32:27 N/A    flash:/test.cfg                 |

|5   1681      Jul/29/2014 17:34:42 N/A    flash:/vlan.txt                 |

|6   8299      Jul/29/2014 17:36:00 N/A    flash:/test.txt                 |

|7   27708416  Jul/31/2014 09:27:30 M      flash:/BOOT-test                |

|8   208249856 Jul/31/2014 09:28:27 M      flash:/SYSTEM-test              |

|0   Exit                                                                  |

============================================================================

Enter file No.:1

The file you selected is flash:/labtop.cfg,Delete it? [Y/N]Y

Deleting...Done.

(5)     在文件控製子菜單中,鍵入<5>,回車後,可以對設備存儲介質中的文件進行複製操作。

Enter your choice(0-5): 5

 'M' = MAIN      'B' = BACKUP      'N/A' = NOT ASSIGNED

============================================================================

|NO. Size(B)   Time                 Type   Name                            |

|1   141952    Feb/19/2013 13:07:54 N/A    flash:/labtop.mdb               |

|2   341547    Feb/20/2013 12:00:15 N/A    flash:/logfile/logfile.log      |

|3   0         Jul/29/2014 16:32:27 N/A    flash:/test.cfg                 |

|4   1681      Jul/29/2014 17:34:42 N/A    flash:/vlan.txt                 |

|5   8299      Jul/29/2014 17:36:00 N/A    flash:/test.txt                 |

|7   27708416  Jul/31/2014 09:27:30 M      flash:/BOOT-test                |

|8   208249856 Jul/31/2014 09:28:27 M      flash:/SYSTEM-test              |

|0   Exit                                                                  |

============================================================================

Enter file No.:1

The selected file is :flash:/labtop.mdb

Choose copy dest device :

============================================================================

|NO.  Device Name  File System  Total Size  Available Space                |

|1    flash        YAFFS2       1048576KB   792990KB                       |

|0    Exit                                                                 |

============================================================================

Enter your choice(0-1):1

The destination file can't be the same as the source file.

1.3.6  恢複出廠配置啟動

注意

·     使能密碼恢複功能後不支持該操作。

·     關閉密碼恢複功能後執行該操作,會刪除設備存儲介質中指定的下次啟動配置文件。

·     當設備上存在主用主控板和備用主控板時,執行恢複出廠配置啟動操作將不會生效。

 

在BootWare主菜單中,鍵入<5>,回車後,係統會恢複出廠設置並以空配置啟動。

·     使能密碼恢複功能後設置該項時的顯示如下:

Enter your choice(0-8): 5

Password recovery capability is enabled. To perform this operation, first

disable the password recovery capability using the undo password-recovery

enable command in CLI.

·     關閉密碼恢複功能後設置該項時的顯示如下:

Enter your choice(0-8): 5

Because the password recovery capability is disabled, this operation can

cause the configuration files to be deleted, and the system will start up

with factory defaults. Are you sure to continue?[Y/N]Y

Setting...Done.

1.3.7  跳過當前係統配置

在BootWare主菜單中,鍵入<6>,回車後,設備將在下次加載主機軟件時,忽略配置文件中的所有配置;但再次重新啟動後,設備仍會以配置文件啟動。

Enter your choice(0-9): 6

Flag Set Success.

1.3.8  進入BootWare操作子菜單

在BootWare主菜單中,鍵入<7>,回車後,係統進入BootWare操作子菜單目錄,可以執行BootWare的升級操作。

Enter your choice(0-9): 7

 

=========================<BootWare Operation Menu>==========================

|Note:the operating device is flash                                        |

|<1> Backup Full BootWare                                                  |

|<2> Restore Full BootWare                                                 |

|<3> Update BootWare By Serial                                             |

|<4> Update BootWare By Ethernet                                           |

|<0> Exit To Main Menu                                                     |

============================================================================

Enter your choice(0-4):

表1-6 BootWare操作子菜單項解釋

菜單項

解釋

<1> Backup Full BootWare

備份完整BootWare

<2> Restore Full BootWare

恢複完整BootWare

<3> Update BootWare By Serial

通過串口升級BootWare

<4> Update BootWare By Ethernet

通過網管口升級BootWare

<0> Exit To Main Menu

返回到上一級目錄

 

(2)     在BootWare操作子菜單中,鍵入<1>,回車後,備份設備的BootWare,根據實際需要,您可以選擇是否備份BootWare基本段或BootWare擴展段。如果設備的BootWare基本段或者BootWare擴展段損壞,可以通過備份的BootWare進行恢複操作。

Enter your choice(0-4): 1

Will you backup the Basic BootWare? [Y/N]Y

Begin to backup the Basic BootWare.......Done.

Will you backup the Extended BootWare? [Y/N]Y

Begin to backup the Extended BootWare.......Done.

(3)     在BootWare操作子菜單中,鍵入<2>,回車後,恢複設備的BootWare,根據實際需要,您可以選擇是否通過備份的BootWare覆蓋當前的BootWare來恢複BootWare基本段或BootWare擴展段。

Enter your choice(0-4): 2

Will you restore the Basic BootWare? [Y/N]Y

Begin to restore Normal Basic BootWare.......Done.

Will you restore the Extended BootWare? [Y/N]Y

Begin to restore Normal Extended BootWare.......Done.

(4)     在BootWare操作子菜單中,鍵入<3>,回車後,進入BootWare串口操作子菜單。

Enter your choice(0-4):3

====================<BOOTWARE OPERATION SERIAL SUB-MENU>====================

|<1> Update Full BootWare                                                  |

|<2> Update Extended BootWare                                                |

|<3> Update Basic BootWare                                                 |

|<4> Modify Serial Interface Parameter                                     |

|<0> Exit To Main Menu                                                     |

============================================================================

Enter your choice(0-4):4

表1-7 BootWare串口操作子目錄菜單項解釋

菜單項

解釋

<1> Update Full BootWare

通過串口升級完整BootWare

<2> Update Extended BootWare

通過串口升級BootWare擴展段

<3> Update Basic BootWare

通過串口升級BootWare基本段

<4> Modify Serial Interface Parameter

修改串口參數

<0> Exit To Main Menu

返回到上一級目錄

 

(5)     在BootWare操作子菜單中,鍵入<4>,回車後,進入BootWare網管口操作子菜單。

Enter your choice(0-4):4

===================<BOOTWARE OPERATION ETHERNET SUB-MENU>===================

|<1> Update Full BootWare                                                  |

|<2> Update Extended BootWare                                                |

|<3> Update Basic BootWare                                                 |

|<4> Modify Ethernet Parameter                                             |

|<0> Exit To Main Menu                                                     |

============================================================================

Enter your choice(0-4):

表1-8 BootWare網管口操作子目錄菜單項解釋

菜單項

解釋

<1> Update Full BootWare

通過網管口升級完整BootWare

<2> Update Extended BootWare

通過網管口升級BootWare擴展段

<3> Update Basic BootWare

通過網管口升級BootWare基本段

<4> Modify Ethernet Parameter

修改網管口參數

<0> Exit To Main Menu

返回到上一級目錄

 

1.3.9  跳過Console口登錄認證

在BootWare主菜單中,鍵入<8>,回車並重啟設備後,係統將跳過設備上Console口認證密碼。關於Console口認證密碼的詳細介紹,請參見“基礎配置指導”中的“登錄設備”。

設備上選擇跳過Console口登錄認證密碼時,由於操作過程不同,導致最後的登錄方式也不同,具體情況參見下圖。

圖1-1 跳過Console口登錄認證密碼操作

 

說明

·     關閉密碼恢複功能後不支持該操作。

·     配置設備上跳過Console口認證密碼操作後,第一次設備重啟後生效,退出Console口登錄界麵並再執行登錄操作時也不需要執行Console口登錄認證密碼的配置,當再次啟動設備時,係統將會執行Console口登錄認證密碼的配置。

·     當設備上存在主用主控板和備用主控板時,執行清除Console口認證密碼操作將不會生效。

 

Enter your choice(0-9): 8

Clear Image Password Success!

1.3.10  進入存儲介質操作子菜單

在BootWare主菜單中,鍵入<9>,回車後,係統進入存儲介質操作子菜單。

Enter your choice(0-9): 9

 

==============================<DEVICE CONTROL>==============================

|<1> Display All Available Nonvolatile Storage Device(s)                   |

|<2> Set The Operating Device                                              |

|<3> Set The Default Boot Device                                           |

|<0> Exit To Main Menu                                                     |

============================================================================

Enter your choice(0-3):

表1-9 存儲介質操作目錄菜單項解釋

菜單項

解釋

<1> Display All Available Nonvolatile Storage Device(s)

查看設備上所有的存儲介質信息

<2> Set The Operating Device

設置當前操作的存儲介質

<3> Set The Default Boot Device

設置缺省情況下設備啟動時采用的存儲介質

<0> Exit To Main Menu

返回到上一級目錄

 

1.3.11  進入BootWare擴展段輔助菜單

在BootWare主菜單中,鍵入<Ctrl+Z>,回車後,係統將直接進入BootWare擴展段輔助菜單:

=========================<EXTENDED ASSISTANT MENU>==========================

|<1> Display Memory                                                        |

|<2> Search Memory                                                         |

|<0> Exit To Main Menu                                                     |

============================================================================

Enter your choice(0-2):

(1)     在輔助菜單中,鍵入<1>,回車後,可以查看設備指定的內存信息。

Enter your choice(0-2): 1

Info: Press Ctrl+C to abort or return to EXTENDED ASSISTANT MENU.

Info: Enter the address and length in hexadecimal notation.

Info: Only 4 bytes mode supported.

Enter memory address:80

Enter memory length:2

00000080: 00000000 00000000                      ........

(2)     在輔助菜單中,鍵入<2>,回車後,可以搜索設備指定的內存信息。

Enter your choice(0-2): 2

Info: Press Ctrl+C to abort or return to EXTENDED ASSISTANT MENU.

Info: Enter the address and value in hexadecimal notation.

Info: Only 4 bytes mode supported.

Enter start address:80

Enter end address:90

Enter the value to search for:0000

00000080: 00000000 00000000 00000000 00000000    ................

說明

·     當輸入的內存起始地址不在內存空間範圍內時,設備會提示“Invalid address.”。

·     當輸入的內存結束地址小於內存起始地址或者超出內存空間時,設備會提示“Invalid address.”。

·     當輸入的內存起始地址加上長度超出內存空間時,設備會提示“Invalid length”。

·     如果沒有輸入待搜索的內存值直接回車,則設備會提示“Invalid value.”。

·     如果沒有找到待搜索的值或者待搜索的值不足4個字節時,設備會提示“The value not fount.”。

·     設備僅支持4字節模式的查找和顯示,當輸入的內存起始地址和內存結束地址之間不滿足4字節對齊時,將強製調整為4字節對齊格式。搜索內存信息時也僅支持以4字節為單位進行查找。

 

1.4  BootWare快捷鍵

為便於用戶對常用功能進行操作,係統提供了如下快捷鍵。

表1-10 BootWare快捷鍵

快捷鍵

BootWare中所在提示信息

功能

<Ctrl+B>

Press Ctrl+B to access EXTENDED-BOOTWARE MENU…

設備啟動時進入BootWare擴展段

<Ctrl+C>

Please Start To Transfer File, Press <Ctrl+C> To Exit.

停止文件加載操作並退出當前操作界麵

Info: Press Ctrl+C to abort or return to EXTENDED ASSISTANT MENU.

返回擴展段輔助菜單或在顯示結果過程中中止顯示並返回擴展段輔助菜單

<Ctrl+D>

Press Ctrl+D to access BASIC-BOOTWARE MENU…

設備啟動時進入BootWare基本段

Ctrl+D = Quit

表示退出參數設置頁麵

<Ctrl+F>

Ctrl+F: Format File System

格式化當前操作的儲存介質

<Ctrl+T>

Press Ctrl+T to start five-step full RAM test…

五步法內存測試

<Ctrl+Y>

Press Ctrl+Y to start nine-step full RAM test…

九步法內存測試

<Ctrl+Z>

Ctrl+Z: Access EXTENDED ASSISTANT MENU

在擴展段主菜單鍵入時可以進入擴展段輔助菜單

 

說明

內存測試主要用於技術人員定位內存故障或檢測內存狀況時使用,建議您不要自行操作。

 

1.5  通過BootWare主菜單升級係統啟動文件配置舉例

通過BootWare主菜單升級係統啟動文件,主要有以下三種方式:

·     通過串口采用Xmodem協議完成BootWare以及應用程序的升級

·     通過網管口從TFTP服務器完成應用程序的升級

·     通過網管口從FTP服務器完成應用程序的升級

1.5.1  通過串口采用Xmodem協議完成BootWare以及應用程序的升級

·     Xmodem協議簡介

XModem協議是一種文件傳輸協議,因其簡單性和較好的性能而被廣泛應用。XModem協議通過串口傳輸文件,支持128字節和1K字節兩種類型的數據包,並且支持一般校驗和、CRC兩種校驗方式,在出現數據包錯誤的情況下支持多次重傳(一般為10次)。

XModem協議傳輸由接收程序和發送程序共同完成。先由接收程序發送協商字符,協商校驗方式,協商通過之後發送程序就開始發送數據包,接收程序接收到完整的一個數據包之後按照協商的方式對數據包進行校驗。校驗通過之後發送確認字符,然後發送程序繼續發送下一包;如果校驗失敗,則發送否認字符,發送程序重傳此數據包。

·     Xmodem應用

(1)     在Bootware主菜單中,鍵入<2>,回車後,係統進入串口子菜單:

===========================<Enter Serial SubMenu>===========================

|Note:the operating device is flash                                        |

|<1> Download Image Program To SDRAM And Run                               |

|<2> Update Main Image File                                                |

|<3> Update Backup Image File                                              |

|<4> Download Files(*.*)                                                   |

|<5> Modify Serial Interface Parameter                                     |

|<0> Exit To Main Menu                                                     |

============================================================================

Enter your choice(0-5):

(2)     在串口子菜單中,鍵入<5>,回車後,係統進入串口參數設置菜單:

===============================<BAUDRATE SET>=============================

|Note:'*'indicates the current baudrate                                    |

|     Change The HyperTerminal's Baudrate Accordingly                      |

|---------------------------<Baudrate Available>---------------------------|

|<1> 9600(Default)*                                                        |

|<2> 19200                                                                 |

|<3> 38400                                                                 |

|<4> 57600                                                                 |

|<5> 115200                                                                |

|<0> Exit                                                                  |

==========================================================================

Enter your choice(0-5):1

(3)     在這個子菜單中可以根據實際情況,選擇合適的下載速率,如上所示鍵入<1>,即選擇9600bps的下載速率。

(4)     根據上麵提示,改變配置終端設置的波特率,使其與所選的軟件下載波特率一致,配置終端的波特率設置完成後,做一次終端的斷開和連接操作,然後鍵入回車,終端再次進入串口子菜單:

===========================<Enter Serial SubMenu>===========================

|Note:the operating device is flash                                        |

|<1> Download Image Program To SDRAM And Run                               |

|<2> Update Main Image File                                                |

|<3> Update Backup Image File                                              |

|<4> Download Files(*.*)                                                   |

|<5> Modify Serial Interface Parameter                                     |

|<0> Exit To Main Menu                                                     |

============================================================================

Enter your choice(0-5): 2

說明

·     終端的波特率更改後,要做一次終端仿真程序的斷開和連接操作,新的設置才能起作用。

·     如果是Win98操作係統,可以先設置完波特率後斷開,再連接;如果是Win2000係統,則必須先斷開才能設置參數,設置完以後再連接。

 

(5)     根據實際情況,用戶選擇升級選項,如上所示鍵入<2>,即將主用應用程序下載至設備,回車後,終端顯示如下信息:

Please Select File .

XMODEM downloading ...CCC

(6)     此時,從終端窗口選擇[傳送/發送文件],在彈出的對話框(如下圖)中點擊[瀏覽]按扭,選擇需要下載的軟件,並將下載使用的協議改為XModem本處以下載main.bin文件舉例)。

圖1-2 [發送文件]對話框

 

(7)     選擇完成後,點擊[發送]按鈕,係統彈出如下圖所示的界麵。

圖1-3 正在發送文件界麵

 

(8)     程序成功下載後,此時,係統將再次進入串口子菜單,用戶根據自己的實際需要進行其他選擇,此處不再贅述。在BootWare主菜單,執行重啟操作,設備將以新加載的主用應用程序啟動,完成應用程序的升級。

1.5.2  通過網管口從TFTP服務器完成應用程序的升級

·     TFTP介紹

TFTP(Trivial File Transfer Protocol,簡單文件傳輸協議)協議適用於客戶機和服務器之間不需要複雜交互的環境。

TFTP協議傳輸由客戶端發起,當需要下載文件時,客戶端向TFTP服務器發送讀請求包,然後從服務器接收數據包,並向服務器發送確認信息;當需要上傳文件時,由客戶端向TFTP服務器發送寫請求包,然後向服務器發送數據包,並接收服務器的確認信息。TFTP傳輸文件有兩種模式:一種是二進製模式,用於傳輸程序文件;另一種是ASCII碼模式,用於傳輸文本文件。

下麵升級描述以設備作為TFTP客戶端(Client)為例。

·     TFTP升級步驟

(1)     將設備通過網絡管理口與下載文件所在PC相連(需要知道該PC的IP地址),同時設備通過配置口外接一台PC(此PC與下載文件所在PC可以是同一台)。

(2)     在與網絡管理口相連的PC上運行TFTP Server程序,並指定升級程序的文件路徑。

(3)     在與配置口相連的PC上運行終端仿真程序,啟動設備,進入BootWare主菜單。

(4)     在BootWare主菜單中,鍵入<3>,回車後,係統進入網管口子菜單:

==========================<Enter Ethernet SubMenu>==========================

|Note:the operating device is flash                                        |

|<1> Download Image Program To SDRAM And Run                               |

|<2> Update Main Image File                                                |

|<3> Update Backup Image File                                              |

|<4> Download Files(*.*)                                                   |

|<5> Modify Ethernet Parameter                                             |

|<0> Exit To Main Menu                                                     |

|<Ensure The Parameter Be Modified Before Downloading!>                    |

============================================================================

Enter your choice(0-5): 5

(5)     若操作文件下載,請鍵入<5>,修改網管口相關參數的設置,係統界麵如下:

==========================<ETHERNET PARAMETER SET>=========================

|Note:       '.' = Clear field.                                            |

|            '-' = Go to previous field.                                   |

|         Ctrl+D = Quit.                                                   |

==========================================================================

說明

上麵的信息提示用戶,在菜單項中鍵入“.”將清除該項設置,鍵入“-”將返回上一個設置項,鍵入<Ctrl+D>表示退出設置。

 

Protocol (FTP or TFTP) :tftp

Load File Name         : new.ipe

                       :

Target File Name       : new.ipe

                       :

Server IP Address      :192.168.1.1

Local IP Address       :192.168.1.2

Subnet Mask            :255.255.255.0

Gateway IP Address     :192.168.1.3

(6)     用戶根據實際情況,完成上麵相關信息的輸入後,係統再次進入網管口子菜單:

==========================<Enter Ethernet SubMenu>==========================

|Note:the operating device is flash                                        |

|<1> Download Image Program To SDRAM And Run                               |

|<2> Update Main Image File                                                |

|<3> Update Backup Image File                                              |

|<4> Download Files(*.*)                                                   |

|<5> Modify Ethernet Parameter                                             |

|<0> Exit To Main Menu                                                     |

|<Ensure The Parameter Be Modified Before Downloading!>                    |

============================================================================

Enter your choice(0-5):2

(7)     在如上所示的網管口子菜單中鍵入<2>,即將主用應用程序下載至設備中,回車後,終端顯示如下信息:

Loading.....................................................................

............................................................................

............................................................................

.................................................Done.

227301376 bytes downloaded!

Image file BOOT-test.bin is self-decompressing...

Saving file flash:/BOOT-test.bin..........................

........................................................Done.

Image file SYSTEM-test.bin is self-decompressing...

Saving file flash:/SYSTEM-test.bin ........................

............................................................................

............................................................................

............................................................................

............Done.

(8)     上麵的信息,表明文件下載成功!此時,係統將再次進入網管口子菜單,用戶根據自己的實際需要進行選擇,此處不再贅述。

1.5.3  通過網管口從FTP服務器完成應用程序的升級

·     FTP介紹

通過網管口,設備還可通過FTP(File Transfer Protocol,文件傳輸協議)來完成軟件升級。

下麵升級描述以設備作為FTP客戶端(Client)為例。

·     FTP升級步驟

(1)     將設備通過網絡管理口與下載文件所在PC相連(需要知道該PC的IP地址),同時設備通過配置口外接一台PC(此PC與下載文件所在PC可以是同一台)。

(2)     在與網絡管理口相連的PC上運行FTP Server程序,並指定升級程序的文件路徑,完成登錄用戶名、用戶口令的設置。

(3)     在與配置口相連的PC上運行終端仿真程序,啟動設備,進入BootWare主菜單。

(4)     請參考TFTP升級步驟中對應的描述,此處不再贅述。

不同款型規格的資料略有差異, 詳細信息請向具體銷售和400谘詢。H3C保留在沒有任何通知或提示的情況下對資料內容進行修改的權利!

BOB登陆
官網
聯係我們