华为9312 通过BootROM为系统

通过BootROM菜单升级系统软件



组网需求

如图1所示,用户PC的串口与设备的Console口连接,用户PC的网卡与设备的管理网口相连,用户通过终端仿真软件登录设备。

现在设备的系统软件损坏,无法登录设备。利用BootROM程序的以太网菜单功能,上传系统软件,并设置为设备的启动文件,完成对设备系统软件的加载和升级。

图1 通过Console口连接设备组网图 
fig_dc_cfg_bios_003203.png

icon-note.gif 说明:

本例中以超级终端作为终端仿真软件举例,其他终端仿真软件的操作请参考其使用说明。

配置思路

  1. 在准备使用BootROM升级系统软件前,需要设置FTP服务器,并将目标系统软件上传至FTP工作目录。本例中设置PC为FTP服务器,连接设备的管理网口和PC的网卡,方便后续建立FTP连接。

  2. 重启设备,进入BootROM主菜单。

  3. 设置设备的FTP参数,实现设备与FTP服务器互通,将目标系统软件通过FTP协议上传至设备的存储器。

  4. 上传后的系统软件,设备并不会以此来进行启动,需在修改Flash描述菜单下指定上传的系统软件为设备启动文件。


操作步骤

  1. 设置PC为FTP服务器,并将设备的系统软件拷贝至FTP工作目录

    1. 配置FTP服务器的IP地址、用户名、密码及工作目录。


      如图2所示,在PC上运行FTP Server程序(以wftpd32为例介绍),依次选择菜单“Security”->“Uers/rights”。在弹出的对话框中单击“New User…”设置用户名为user和密码huawei。在“Home Directory:”处设置PC上FTP的工作目录为D:\BootROM。然后单击“Done”按钮完成设置并关闭对话框。配置PC的IP地址为192.168.1.6,掩码为255.255.255.0。

      图2 配置FTP服务器 
      fig_dc_cfg_bios_003202.png


    2. 将系统软件上传至FTP服务器的工作目录D:\BootROM上(上传步骤略),例如上传的系统软件为S9300&S9300E-V200R003C00.cc。

  2. 重启设备,待界面出现如下显示信息时,按下Ctrl+B,输入密码后,进入BootROM主菜单。缺省的BootROM密码是[email protected]


         ****************************************************
         *                                                  *
         *          Ethernet Switch BootLoad                *
         *                                                  *
         ****************************************************
    
        Copyright (C) 2000-2015 HUAWEI TECH CO., LTD
        Version : 122 Compiled at Dec  4 2013, 10:39:37 
    
        PCB Version     : LE02SRUA VER.D
        CPU L2 Cache    : 128KB
        CPU Clock Speed : 700MHz
        BUS Clock Speed : 133MHz              
        Memory Type     : DDR2 SDRAM
        Memory Size     : 1024MB
        Memory Speed    : 667MHz
    
    
    cfcard:/  - Volume is OK
    
    Initializing CFcard ....................................................... done
    Description data is vaild in nvram area
    Press Ctrl+B to enter boot menu ...  1
    
    Password:       //输入BootROM密码
                 MAIN  MENU          
                                                                                    
         1. Boot with default mode                                                  
         2. Boot from Flash                                                         
         3. Boot from CFCard                                                        
         4. Enter serial submenu                                                    
         5. Enter ethernet submenu                                                  
         6. Enter file system submenu                                               
         7. Enter test submenu                                                      
         8. Modify BootROM password                                                 
         9. Modify Flash description area                                           
        10. Clear password for console user                                         
        11. Reboot                                                                  
                                                                                    
    Enter your choice(1-11):


  3. 设置设备的FTP参数,方便设备与PC建立FTP连接

    1. 在BootROM主菜单下选择5,进入以太网子菜单。


                   MAIN  MENU
      
           1. Boot with default mode
           2. Boot from Flash
           3. Boot from CFCard
           4. Enter serial submenu
           5. Enter ethernet submenu
           6. Enter file system submenu
           7. Enter test submenu
           8. Modify BootROM password
           9. Modify Flash description area
          10. Clear password for console user
          11. Reboot
      
      Enter your choice(1-11): 5
      
                  ETHERNET  SUBMENU
      
          1. Download file to SDRAM through ethernet interface and boot
          2. Download file to Flash through ethernet interface
          3. Download file to CFCard through ethernet interface
          4. Upload Configuration file to Ftp through ethernet interface
          5. Modify ethernet interface parameter
          6. Return to main menu
      
      Be sure to modify parameter before downloading!
      Enter your choice(1-6):


    2. 在以太网菜单下,选择5,进入修改以太网参数界面。


                  ETHERNET  SUBMENU
      
          1. Download file to SDRAM through ethernet interface and boot
          2. Download file to Flash through ethernet interface
          3. Download file to CFCard through ethernet interface
          4. Upload Configuration file to Ftp through ethernet interface
          5. Modify ethernet interface parameter
          6. Return to main menu
      
      Be sure to modify parameter before downloading!
      Enter your choice(1-6):5Note: Two protocols for download, tftp & ftp.
            The file max-length for tftp is 32M.
            You can modify the flags following the menu.
            tftp--0x80, ftp--0x0.
      
      '.' = clear field;  '-' = go to previous field;  ^D = quit
      
      boot device          : eth1       //无需设置,直接回车
      processor number     : 0          //无需设置,直接回车
      host name            : host       //无需设置,直接回车
      file name            : S9300-V200R001C00.CC S9300&S9300E-V200R003C00.CC //输入需要加载的系统软件名
      inet on ethernet (e) : 192.168.10.235:ffffff00 192.168.1.3:ffffff00  //输入设备管理网口的IP地址
      inet on backplane (b): 192.168.1.1:ffffff00     //无需设置,直接回车
      host inet (h)        : 192.168.1.1 192.168.1.6     //输入PC的IP地址
      gateway inet (g)     :            //设备与PC直连,无需设置,直接回车
      user (u)             : huawei user    //输入FTP服务器的用户名user
      ftp password (pw) (blank = use rsh):    //输入FTP服务器的密码huawei
      flags (f)            : 0x0          //使用FTP协议,采用缺省值,直接回车
      target name (tn)     : octeon       //无需设置,直接回车
      startup script (s)   :              //无需设置,直接回车
      other (o)            :              //无需设置,直接回车


  4. 在以太网菜单中输入3,将需要加载的系统软件加载到设备存储器中


                ETHERNET  SUBMENU
    
        1. Download file to SDRAM through ethernet interface and boot
        2. Download file to Flash through ethernet interface
        3. Download file to CFCard through ethernet interface
        4. Upload Configuration file to Ftp through ethernet interface
        5. Modify ethernet interface parameter
        6. Return to main menu
    
    Be sure to modify parameter before downloading!
    Enter your choice(1-6): 3boot device          : eth1
    processor number     : 0
    host name            : host
    file name            : S9300&S9300E-V200R003C00.CC
    inet on ethernet (e) : 192.168.1.3:ffffff00
    inet on backplane (b): 192.168.1.1
    host inet (h)        : 192.168.1.6
    gateway inet (g)     :
    user (u)             : user
    ftp password (pw)    :
    flags (f)            : 0x0
    target name (tn)     : octeon
    startup script (s)   :
    other (o)            :
    
    
    Loading....................................................................Done!
    
    Please type a new file name for saving it.
    Press Enter key to save it named " S9300&S9300E-V200R003C00.CC".
    
    Check disk space
    Writing file............................................................................
    ................................Done


  5. 退出以太网菜单,在BootROM主菜单中选择“9. Modify Flash description area”,进入修改Flash描述菜单,设置加载的系统软件为设备的启动文件


                 MAIN  MENU
    
         1. Boot with default mode
         2. Boot from Flash
         3. Boot from CFCard
         4. Enter serial submenu
         5. Enter ethernet submenu
         6. Enter file system submenu
         7. Enter test submenu
         8. Modify BootROM password
         9. Modify Flash description area
        10. Clear password for console user
        11. Reboot
    
    Enter your choice(1-11): 9Modify flash description area
    Please select booting device.
    Press ENTER directly for no change or input your choice.
    1: Flash, 2: CF Card
    Current booting device: 2, your choice:     //采用当前值,无需设置,直接回车
    Current booting File Name: cfcard:/S9300&S9300E-V200R001C00.CC,
    Press ENTER directly for no change.
    Or, please input the file name (e.g. quidway.cc):S9300&S9300E-V200R003C00.CC   //设置为需要加载的系统软件
    OK!OK!
    Saved-configuration file
    '.'=clear field; '^D'=quit; Enter=use current configuration;
    new=change to other configuration file;
    current: vrpcfg.zip
    new    :     //保持不变,无需设置,直接回车
    Saved-patch file
    '.'=clear field; '^D'=quit; Enter=use current patch;
    new=change to other patch file;
    current:
    new    :     //不升级补丁文件,无需设置,直接回车
    
    The expected booting file : cfcard:/S9300-V200R002C00.CC
    Are you sure? Yes or No(Y/N)yWritting descriptor to flash...OK!
    Writting backup descriptor to flash...OK!


  6. 退出修改Flash描述菜单,在BootROM主菜单中选择“1. Boot with default mode”,启动设备


                 MAIN  MENU
    
         1. Boot with default mode
         2. Boot from Flash
         3. Boot from CFCard
         4. Enter serial submenu
         5. Enter ethernet submenu
         6. Enter file system submenu
         7. Enter test submenu
         8. Modify BootROM password
         9. Modify Flash description area
        10. Clear password for console user
        11. Reboot
    
    Enter your choice(1-11): 1


  7. 验证配置结果


    # 设备启动完成后,在命令行界面使用display version命令查看设备是否升级到目标版本。

    <Quidway> display versionHuawei Versatile Routing Platform Software
    VRP (R) software, Version 5.130 (S9300 V200R003C00)
    Copyright (C) 2000-2013 HUAWEI TECH CO., LTD
    Quidway S9306 Terabit Routing Switch uptime is 1 week, 5 days, 22 hours, 23 minu
    tes
    BKP 0 version information:
    1. PCB      Version  : LE02BAKA VER.A
    2. Support  PoE      : No
    3. Board    Type     : ES0B00771200
    4. MPU Slot Quantity : 2
    5. LPU Slot Quantity : 12
    
    MPU 14(Master) : uptime is 1 week, 5 days, 22 hours, 22 minutes
    SDRAM Memory Size    : 1024    M bytes
    Flash Memory Size    : 64      M bytes
    NVRAM Memory Size    : 512     K bytes
    CF Card1 Memory Size : 488     M bytes
    MPU version information :
    1. PCB      Version  : LE02SRUB VER.B
    2. MAB      Version  : 3
    3. Board    Type     : ES0D00SRUB00
    4. CPLD0    Version  : 101
    5. BootROM  Version  : 151
    6. BootLoad Version  : 33751161
    
    LPU 4 : uptime is 1 week, 5 days, 0 hour, 46 minutes
    SDRAM Memory Size    : 256     M bytes
    Flash Memory Size    : 16      M bytes
    LPU version information :
    1. PCB      Version  : LE02G48V VER.B
    2. MAB      Version  : 0
    3. Board    Type     : ES0D0G48TA00
    4. BootROM  Version  : 151
    5. BootLoad Version  : 161
    
    LPU 9 : uptime is 1 week, 5 days, 0 hour, 48 minutes
    SDRAM Memory Size    : 256     M bytes
    Flash Memory Size    : 16      M bytes
    LPU version information :
    1. PCB      Version  : LE02X12S VER.C
    2. MAB      Version  : 0
    3. Board    Type     : ES0D0X12SA00
    4. CPLD0    Version  : 104
    5. BootROM  Version  : 151
    6. BootLoad Version  : 161
    CMU 15(Slave) : uptime is 1 week, 5 days, 22 hours, 22 minutes
    CMU version information :
    1. PCB      Version  : LE02CMUA VER.B
    2. MAB      Version  : 0
    3. Board    Type     : LE0DCMUA0000


版权所有 华为技术有限公司

你可能感兴趣的:(通过BootROM为系统,华为9312)