| ARRIS Enterprises, Inc. Confidential Information |
Using the flash memoryAll of the ARRIS VIP set-top boxes contain flash memory, which is used to store or cache the downloaded boot image and so improve the set-top box startup time. The flash memory is also used for storing the current DBL, configuration parameters, and configuration objects. This page discusses the storage of boot images and how it relates to booting the STB. Storing the boot image in the flash memory is entirely optional. If the system is not configured to do this, then the STB will download its boot image from the network every time it boots. Three-stage boot will always be used in this scenario. Since not saving the boot image in the flash memory adds to the network load and increases the boot times, it is not desirable in a live deployment. However, it can sometimes be very useful in a lab situation when you are making rapid changes to the boot image. ConfiguringTo use the flash memory for storage of the boot image, the To empty the flash memory, turn on the STB and press MENU on the remote control shortly after the STB displays something on the TV. This will bring up the boot loader menus. Under the In addition, the boot server needs to be correctly configured to broadcast the correct Kernel Version of the boot image being offered. Every boot image contains a string to identify the software version. This string is set when building the boot image, by supplying it to the build_boot_image script, or the various DisablingIf you want to force three-stage boot for some reason, add the following to the boot image configuration file:
In this scenario, the RBL will always start the DBL. If you have the number "3" in the Kernel Protocol, the boot image will still be saved to the flash memory, but on cycling the power the RBL will launch the DBL unconditionally. The DBL will check the versions and proceed to either download a new image or start the one in the flash memory. To not use the flash memory at all, use a Kernel Protocol string which does not contain the number "3" at all. This means that not only will the RBL always launch the DBL, but that the DBL will always have to download a boot image from the server each time the STB boots up. Boot process using flash memoryWhen the STB first boots up, with an empty flash memory, the RBL will notice that no valid boot image is available locally, and so it starts the DBL. The DBL checks the network for a boot image and downloads it, also saving it to the flash memory. The DBL then launches the KreaTV platform contained in the boot image. Once the KreaTV platform successfully starts, it indicates this by writing a flag to the flash memory, saying that the image is ok. If you are watching the KreaTV log you will see a "Software considered OK" message appear shortly after the platform start. This is the point where the STB enters two-stage boot. On the next boot, the RBL will find a valid image in the flash memory, and skip the DBL, launching the software directly. UpdatingThe Splash images are handled in a similar way, using a While the KreaTV platform is up and running, it will periodically poll the boot server to check what Forcing a changeTo force an immediate software upgrade, you need to perform a disaster recovery, or reboot the STB using the TOI API. Both of these operations mark the boot image in the flash memory as invalid, so the following reboot will download new software. Simply pulling the power cable from the STB to restart it does NOT exit the two-stage boot mode, even if new software has been deployed on the boot server. |