Difference between revisions of "RISC FOTA"
From ESS-WIKI
Line 27: | Line 27: | ||
It can detect the Update Flag is enabled or not | It can detect the Update Flag is enabled or not | ||
− | ::If flag is true ,it will enter ''' | + | ::If flag is true ,it will enter '''Recovery System''' |
− | ::If flag is false,it will enter ''' | + | ::If flag is false,it will enter '''Main System''' |
=== System === | === System === | ||
Line 40: | Line 40: | ||
*Main System | *Main System | ||
+ | |||
::do_update.sh | ::do_update.sh | ||
:::This script has three functions | :::This script has three functions | ||
− | :::#Record | + | :::#Record upgrade package file path |
− | :::#Set | + | :::#Set Upgrade Flag |
:::#Return OTA result | :::#Return OTA result | ||
*Recovery system | *Recovery system | ||
+ | |||
::adv-ota.sh | ::adv-ota.sh | ||
:::This script has two functions | :::This script has two functions | ||
− | :::#Parse | + | :::#Parse upgrade package and upgrade main system |
− | :::#Clear | + | :::#Clear Upgrade Flag, and reboot |
+ | |||
=== Cache === | === Cache === | ||
+ | |||
For storage of downloaded OTA upgrade packages | For storage of downloaded OTA upgrade packages | ||
Revision as of 10:14, 12 July 2017
Contents
Introduction
Our Workflow as below
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
- Record upgrade package file path
- Set Upgrade Flag
- Return OTA result
- This script has three functions
- do_update.sh
- Recovery system
- adv-ota.sh
- This script has two functions
- Parse upgrade package and upgrade main system
- Clear Upgrade Flag, and reboot
- This script has two functions
- adv-ota.sh
Cache
For storage of downloaded OTA upgrade packages