Firmware Upgrade

The SONiC firmware can be upgraded either from SONiC CLI or from the ONIE shell. The firmware image is obtained from the website https://www.supermicro.com. Make sure that the firmware image is the right file for the switch model. The management port must be connected to the correct network and the switch must get an IP address for the firmware upgrade to work.

Upgrading from SONiC CLI

The sonic-installer command is used to upgrade the SONiC firmware from the SONiC CLI. Some firmware may mandate the upgrade to be done from the ONIE. Refer to the release notes for any such instructions. An upgrade from SONiC CLI can be performed from an SSH terminal.

sonic-installer install http://<ip-address>/<path-to-image>

Reboot the switch when the installation is finished.

Upgrading from ONIE

All configurations and settings will be lost if the switch is upgraded from ONIE. Back up your configurations before upgrading. Installation from ONIE must be performed from the switch console.

  1. Reboot the switch and interrupt the boot during countdown by pressing any key. The switch will boot at a high speed, requiring quick action to interrupt at this boot point.

    Hit any key to stop autoboot: 3

    Marvell>>

  2. Start ONIE as shown below.

    Marvell>> run onie_bootcmd

  3. From ONIE the firmware can be installed either using the remote HTTP/TFTP server or using a USB drive.

    • Upgrade using HTTP/TFTP:

      Stop the auto-discovery process. This step is optional and gives a clean console.

      ONIE:/# onie-stop

      Start the SONiC upgrade from ONIE as shown below.

      ONIE:/# onie-nos-install http://<ip-address>/<path-to-image>

      Or

      ONIE:/# onie-nos-install tftp://<ip-address>/<path-to-image>

    • Upgrade using a USB drive:

      Copy the firmware image file to a FAT-formatted USB drive with the file name onie-installer.bin. Insert the USB drive into the USB slot located between the console port and the management port. The ONIE auto-discovery process will automatically start the installation. The switch will reboot after the installation completes.