Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Vega Switch Boot Partitions

Vega Gateways have two flash partitions that contain the boot image.
In case of image corruption or in case of a failed firmware upgrade, user can recover their Vega by switching to a secondary flash partition.

There are two way ways of switching Vegafirmwarepartitionusedon boot.

  1. Boot Loader

  2. Vega CLI

In case of firmware corruption the only way to recover the Vega is through option #1.

Boot Loader Partition 

The boot partition selection is different between Vega families, due to low level HW and SW differences.


Analog Vega

  • Connect a Laptop to Vega via Serial Console 
    Light blue console cable provided during shipping.
     

  • Reboot Vega

  • Enter uboot
     
    With the console speed left at the default 115200 8N1 hold down the enter key as the system boots.
    This will allow you to access the Uboot prompt

    U-Boot 2013.10-dirty (Jul 13 2015 - 07:42:11)
    DRAM: 128 MiB
    SF: Detected N25Q128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
    Net: cpsw
    Hit any key to stop autoboot: 0
    U-Boot#

  • Changing Boot image
    From the Uboot prompt enter: UBoot# printenv
    Find the line that says bootcmd=run sys2
    This shows bank 2 is currently active.

  • There are now two options. Temporarily run the other image (you've got a bad image and just want to download a good one)
    U-Boot# run sys1;
    This will boot bank one and allow you to download a new image.
     

  • Alternatively, one can save the change to make it persist
    U-Boot# setenv bootcmd "run sys1;"
    U-Boot# saveenv
    Saving Environment to SPI Flash...
     
    SF: Detected N25Q128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
    Erasing SPI flash...Writing to SPI flash...done

  • Exit the boot loader
    U-Boot# boot

  • No labels