Git Product home page Git Product logo

update_ota_lite's Introduction

OTA

Introduction

Over the Air (OTA) provides the remote device update capability. Your devices will be able to support OTA update after secondary development based on the provided APIs. By providing unified update APIs externally, the update subsystem shields the differences of underlying chips.

Directory Structure

/base/update/ota_lite
├── frameworks        # OTA update implementation, including update package parsing, verification, writing, and updating
│   └── test          # Self-test code
│   └── unittest      # Unit test code
│   └── source        # updater module source code
│       └── updater   # updater module code
│       └── verify    # Verification algorithm code
├── interfaces
│   └── kits          # External APIs for OTA update
├── hals              # Chip adaptation code, for example, HiSilicon chip adaptation code is located at device\hisilicon\hardware\update

Constraints

The update subsystem is compiled using the C language. Currently, only the Hi3518EV300, Hi3516DV300, and Hi3861 development boards are supported. If you want to support devices that use other chips, you can implement the OpenHarmony integration APIs in the vendor directory. Currently, only the full-package update is supported.

Usage

Add the dependency on the update subsystem. The following uses the Hi3516D V300 development board as an example.

  • Add update to the subsystem_list field in the vendor\hisilicon\ipcamera_hi3516dv300_liteos\config.json file, and add the following code under subsystem_list:

    {
            "subsystem": "update",
            "components": [
              { "component": "hota", "features": [] }
            ]
     },
    
  • Add the update.json file to the build\lite\components directory.

    "components": [
        {
          "component": "hota",
          "description": "",
          "optional": "false",
          "dirs": [
            "base/update/ota_lite/frameworks",
            "base/update/ota_lite/interfaces/kits"
          ],
          "targets": [
            "//base/update/ota_lite/frameworks:ota_lite"
          ],
    ...
    
  • Add test code. For example, add subsystem_test to the base\update\ota_lite\frameworks\BUILD.gn file.

  • Run the following commands to compile the system. You can experience the OTA update function after flashing the system to the Hi3516 chip.

    hb set
    hb build
    

Repositories Involved

Update subsystem

update_ota_lite

device_hisilicon_hardware

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.