Дерево страниц

Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

Примечание

Firmware from earlier versions can be updated using instructions in the Firmware update#Updating Updating firmware via bootloader section.

...

  1. Prepare the selected server for operation. The server address must be known; also firmware distributive file should be loaded onto the server.
  2. The router/controller should be prepared for operation according to the documentary requirements. Router configuration should allow for data exchange with the server via TFTP/FTP/SCP and ICMP protocols. Server's belonging to the security zones of the router/controller must be taken into account.
  3. Connect to the router/controller locally via Console port or remotely via Telnet or SSH.
    Check the server availability for the router using ping command on the router/controller. If the server is not available, check the router/controller settings and the status of the server network interfaces.
  4. To update the router/controller firmware, enter the following command. Specify IP address of the server being used as <server> For updates that utilize FTP or SCP server, enter a username (<user> parameter) and a password (<password> parameter). Specify the name of the firmware file loaded onto the server as <file_name> parameter (when using SCP, the full path must be as <folder> parameter). When the command is executed, router will copy the file into its internal memory, perform data integrity check and save it into non-volatile memory.

    TFTP:

    Блок кода
    esr# copy tftp://<server>:/<file_name> system:firmware

    FTP:

    Блок кода
    esr# copy ftp://[<user>[:<password>]@]<server>:/<file_name> system:firmware

    SCP:

    Блок кода
    esr# copy scp://[<user>[:<password>]@]<server>://<folder>/<file_name>system:firmware

    SFTP:

    Блок кода
    esr# copy sftp://[<user>[:<password>]@]<server>:/<file_name> system:firmware

    Example of updating main firmware via SCP:

    Блок кода
    esr# copy scp://adm:password123@192.168.16.168://home/tftp/firmware system:firmware


  5. To start the device with the new firmware version, switch the active image. With show bootvar command, locate the image number, containing updated firmware.

    Блок кода
    esr# show bootvar
    Image   Version                      Date                   Status         After reboot   
    -----  --------------               --------------------    ------------   ------------   
    1       1.0.7 build 141[f812808]     date 18/02/2015 time    Active         *
                                         16:12:54             
    
    2       1.0.7 build 141[f812808]     date 18/02/2015 time   Not Active
                                         16:12:54             

    Use the following command to select the image:

    Блок кода
    esr# boot system image-[1|2]


  6. To update the secondary bootloader (U-Boot), enter the following command: Specify IP address of the server being used as <server> parameter. For updates that utilize FTP or SCP server, enter a username (<user> parameter) and a password (<password> parameter). Specify the name of the secondary bootloader onto the server as <file_name> parameter (when using SCP, the full path must be as <folder> parameter). When the command is executed, router will copy the file into its internal memory, perform data integrity check and save it into non-volatile memory.

    TFTP:

    Блок кода
    esr# copy tftp://<server>:/<file_name> system:boot-2

    FTP:

    Блок кода
    esr# copy ftp://<server>:/<file_name> system:boot-2

    SCP:

    Блок кода
    esr# copy scp://[<user>[:<password>]@]<server>://<folder>/<file_name>system:boot-2

    SFTP:

    Блок кода
    esr# copy sftp://<server>:/<file_name> system:boot-2

    Scroll Pagebreak

Updating firmware via bootloader

Router/controller firmware may be updated via the bootloader as follows:

  1. When U-Boot finishes the router initialization, break the device startup with the <Esc> key.

    Блок кода
    Configuring PoE...
    distribution 1 dest_threshold 0xa drop_timer 0x0
    Configuring POE in bypass mode
    NAE configuration done!
    initializing port 0, type 2.
    initializing port 1, type 2.
    SMC Endian Test:b81fb81f
    nae-0, nae-1
      =======Skip: Load SYS UCORE for old 8xxB1/3xxB0 revision on default.
    Hit any key to stop autoboot:  2


  2. Specify TFTP server address:

    Блок кода
    BRCM.XLP316Lite Rev B0.u-boot# serverip 10.100.100.1

    For version 1.5 and newer:

    Блок кода
    BRCM.XLP316Lite Rev B0.u-boot# serverip 10.100.100.1


  3. Specify router IP address:

    Блок кода
    BRCM.XLP316Lite Rev B0.u-boot# ipaddr 10.100.100.2

    For version 1.5 and newer:

    Блок кода
    BRCM.XLP316Lite Rev B0.u-boot# ipaddr 10.100.100.2


  4. Specify the name of the firmware file on the TFTP server:

    Блок кода
    BRCM.XLP316Lite Rev B0.u-boot# firmware_file firmware

    For version 1.5 and newer:

    Блок кода
    BRCM.XLP316Lite Rev B0.u-boot# firmware_file firmware


  5. The environment can be saved using 'saveenv' command for future updates.

    Scroll Pagebreak

  6. Launch firmware update procedure:

    Блок кода
    BRCM.XLP316Lite Rev B0.u-boot# run tftp_update_image1
    Using nae-0-3 device
    TFTP from server 10.100.100.1; our IP address is 10.100.100.2
    Filename 'esr1000/firmware'.
    Load address: 0xa800000060000000
    Loading: TftpStart:TftpTimeoutMsecs = 10000, TftpTimeoutCountMax = 6
    #################################################################
    ################################################################# #################################################################
    #########################
    ####################################
    done
    Bytes transferred = 64453909 (3d77d15 hex)
    Device 0: MT29F8G08ABBCAH4 ... is now current device
    
    NAND erase: device 0 offset 0x1440000, size 0x6400000
    Bad block table found at page 262080, version 0x01
    Bad block table found at page 262016, version 0x01
    Erasing at 0x7800000 -- 1895825408% complete..
    OK
    
    NAND write: device 0 offset 0x1440000, size 0x6400000
    104857600 bytes written: OK


  7. Set the downloaded firmware as an image to start the system and reboot the router/controller:

    Блок кода
    BRCM.XLP316Lite Rev B0.u-boot# run set_bootpart_1

    For version 1.5 and newer:

    Блок кода
    BRCM.XLP316Lite Rev B0.u-boot# boot_system image1
    BRCM.XLP316Lite Rev B0.u-boot# reset


...

Secondary bootloader initializes NAND and the router/controller. During the update, a new file of the secondary bootloader is saved to the flash.

To view the current version of the load file operating on the device, execute 'version' command in U-Boot CLI. Also, the version is displayed during the router startup:

...

  1. When U-Boot finishes the router initialization, break the device startup with the <Esc> key.

    Блок кода
    Configuring PoE...
    distribution 1 dest_threshold 0xa drop_timer 0x0
    Configuring POE in bypass mode
    NAE configuration done!
    initializing port 0, type 2.
    initializing port 1, type 2.
    SMC Endian Test:b81fb81f
    nae-0, nae-1
      =======Skip: Load SYS UCORE for old 8xxB1/3xxB0 revision on default.
    Hit any key to stop autoboot:  2


  2. Specify TFTP server address:

    Блок кода
    BRCM.XLP316Lite Rev B0.u-boot# setenv serverip 10.100.100.1

    For version 1.5 and newer:

    Блок кода
    BRCM.XLP316Lite Rev B0.u-boot# serverip10.100.100.2


  3. Specify router/controller IP address:

    Блок кода
    BRCM.XLP316Lite Rev B0.u-boot# setenv ipaddr 10.100.100.2

    For version 1.5 and newer:

    Блок кода
    BRCM.XLP316Lite Rev B0.u-boot# ipaddr 10.100.100.2


  4. Specify the name of the bootloader file on the TFTP server:

    Блок кода
    BRCM.XLP316Lite Rev B0.u-boot# uboot_file u-boot.bin

    For version 1.5 and newer:

    Блок кода
    BRCM.XLP316Lite Rev B0.u-boot# uboot_file u-boot.bin


  5. The environment can be saved using 'saveenv' command for future updates.

  6. Launch firmware update procedure:

    Блок кода
    BRCM.XLP316Lite Rev B0.u-boot# run upd_uboot

    Scroll Pagebreak
    For version 1.5 and newer:

    Блок кода
    BRCM.XLP316LiteRevB0.u-boot# run tftp_update_uboot
    Using nae-1 device
    TFTP from server 10.100.100.1; our IP address is 10.100.100.2
    Filename 'esr1000/u-boot.bin'.
    Load address: 0xa800000078020000
    Loading: ###########################################################
    done
    Bytes transferred = 852648 (d02a8 hex)
    SF: Detected MX25L12805D with page size 256, total 16777216 bytes
    16384 KiB MX25L12805D at 0:0 is now current device


  7. Reboot the routerdevice:

    Блок кода
    BRCM.XLP316Lite Rev B0.u-boot# reset