Difference between revisions of "RISC FOTA"

From ESS-WIKI
Jump to: navigation, search
Line 24: Line 24:
  
 
=== Bootloader ===
 
=== Bootloader ===
 +
 +
It can detect the Update Flag is enabled or not
 +
 +
::If flag is true ,it will enter '''recovery system'''
 +
 +
::If flag is false,it will enter '''main system'''
  
 
=== System ===
 
=== System ===
  
 +
We need two systems in our image.
 +
 +
One is '''Main System''' , another is '''Recovery System'''.
 +
 +
Both Systems have a specific script for FOTA.
 +
 +
*Main System
 +
::do_update.sh
 +
:::This script has three functions
 +
:::#Record update package file path
 +
:::#Set Update Flag
 +
:::#Return OTA result
 +
 +
*Recovery system
 +
::adv-ota.sh
 +
:::This script has two functions
 +
:::#Parse update package and update main system
 +
:::#Clear Update Flag, and reboot
 
=== Cache ===
 
=== Cache ===
 +
For storage of downloaded OTA upgrade packages
  
 
== Upgrade Packages ==
 
== Upgrade Packages ==

Revision as of 11:12, 12 July 2017

Introduction

Our Workflow as below

Flow2.png

WISE-OTA

Server

Here we can upload our update package and depoly to devices

http://wise-ota.eastasia.cloudapp.azure.com/

Client

Our devices need to install OTA agent by default, so that devices can connect to OTA server.

OTA PACKAGE TOOL

This software is a package tool for WISE-PaaS/OTA system. You can use this tool to generate an OTA package which can be identified by the WISE-PaaS/OTA system based on your original update resources.

Architecture

Bootloader

It can detect the Update Flag is enabled or not

If flag is true ,it will enter recovery system
If flag is false,it will enter main system

System

We need two systems in our image.

One is Main System , another is Recovery System.

Both Systems have a specific script for FOTA.

  • Main System
do_update.sh
This script has three functions
  1. Record update package file path
  2. Set Update Flag
  3. Return OTA result
  • Recovery system
adv-ota.sh
This script has two functions
  1. Parse update package and update main system
  2. Clear Update Flag, and reboot

Cache

For storage of downloaded OTA upgrade packages

Upgrade Packages

Platform

i.MX6

Quark

QCOM

Upgrade Steps

Online Upgrade

Local Upgrade