Difference between revisions of "RISC FOTA"

From ESS-WIKI
Jump to: navigation, search
Line 84: Line 84:
  
 
=== Online Upgrade ===
 
=== Online Upgrade ===
 +
*Step 1
 +
:Using package tool to generate ota package file
 +
[[File:oat1.png | 600px]]
  
 +
[[File:ota2.png |600px]]
 +
*Step 2
 +
:Upload ota package
 +
[[File:ota3.png|600px]]
 +
 +
[[File:ota4.png|600px]]
 +
*Step 3
 +
:Check whether the device has connected to server
 +
[[File:ota5.png|600px]]
 +
 +
[[File:ota6.png|600px]]
 +
*Step 4
 +
:Upgrade system
 +
[[File:ota7.png|600px]]
 +
 +
[[File:ota8.png|600px]]
 +
 +
[[File:ota9.png|600px]]
 +
 +
[[File:ota10.png|600px]]
 
=== Local Upgrade ===
 
=== Local Upgrade ===

Revision as of 11:46, 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 upgrade package file path
  2. Set Upgrade Flag
  3. Return OTA result
  • Recovery system
adv-ota.sh
This script has two functions
  1. Parse upgrade package and upgrade main system
  2. Clear Upgrade Flag, and reboot

Cache

For storage of downloaded OTA upgrade packages

Upgrade Packages

ota-package.sh

Generate package file to be used for OTA update on Yocto Linux

Platform

Depending on the platform, we have different modifications for FOTA

i.MX6

  • Layout

Layout.png

We add misc partition to store upgrade flag
  • Workflow

Imxflow.png

The step for setting upgrade flag here is to write BCB to misc partition.
Then bootloader will detect the content of BCB, if the content is "boot-recovery" then system will boot to recovery system.

Quark

QCOM

Upgrade Steps

Online Upgrade

  • Step 1
Using package tool to generate ota package file

Oat1.png

Ota2.png

  • Step 2
Upload ota package

Ota3.png

Ota4.png

  • Step 3
Check whether the device has connected to server

Ota5.png

Ota6.png

  • Step 4
Upgrade system

Ota7.png

Ota8.png

Ota9.png

Ota10.png

Local Upgrade