Difference between revisions of "WISE-PaaS/OTA Agent(risc linux)"

From ESS-WIKI
Jump to: navigation, search
Line 1: Line 1:
 
== Introduction ==
 
== Introduction ==
  
This document demonstrates how to support our ota-agent solution under you risc arm linux.
+
This document demonstrates how to support our ota-agent solution under your risc arm linux.
  
 
== requirement ==
 
== requirement ==
  
*This solution is base TI am335x platform, but other platform is similar
 
 
*The storage(sd card, Nand flash) capacity need greate than 4G. 8G is recommended
 
*The storage(sd card, Nand flash) capacity need greate than 4G. 8G is recommended
 +
 +
=== Note ===
 +
 +
We take our '''rsb4220 '''(TI am335x platform) for example. For other platform, it is similar
  
 
== Architecture ==
 
== Architecture ==
  
[[File:linux-ota.png|RTENOTITLE]]
+
In order to support rollback, we requires the device to have a certain partition layout. At least four different partitions are needed:
 +
 
 +
*one boot partition, containing the U-Boot bootloader and its environment
 +
*two partitions for storing the root file system and kernel. The kernel image file, zImage, and any device tree binary should be stored in directory /boot
 +
*one for persistent data
 +
 
 +
One of the rootfs and kernel partitions will be marked as the ''active'' partition, from which the kernel and rootfs will be booted. The other, called the ''inactive'' partition, will be used by the update mechanism to write the updated image. After an update their roles are swapped.
 +
 
 +
The persistent data partition stores data that needs to be preserved through an update.For our rsb4220, the partition layout is as follow:
 +
 
 +
[[File:Linux-ota.png|RTENOTITLE]]
  
 
== How to support ==
 
== How to support ==

Revision as of 10:33, 4 November 2016

Introduction

This document demonstrates how to support our ota-agent solution under your risc arm linux.

requirement

  • The storage(sd card, Nand flash) capacity need greate than 4G. 8G is recommended

Note

We take our rsb4220 (TI am335x platform) for example. For other platform, it is similar

Architecture

In order to support rollback, we requires the device to have a certain partition layout. At least four different partitions are needed:

  • one boot partition, containing the U-Boot bootloader and its environment
  • two partitions for storing the root file system and kernel. The kernel image file, zImage, and any device tree binary should be stored in directory /boot
  • one for persistent data

One of the rootfs and kernel partitions will be marked as the active partition, from which the kernel and rootfs will be booted. The other, called the inactive partition, will be used by the update mechanism to write the updated image. After an update their roles are swapped.

The persistent data partition stores data that needs to be preserved through an update.For our rsb4220, the partition layout is as follow:

RTENOTITLE

How to support

uboot modification

make sd card script

modify-env-tools under linux

refer to