aos_updatemanager

command module
v0.0.0-...-67346a2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

README

AOS Update Manager

CI codecov Quality Gate Status

Aos Update Manager (UM) is responsible for update of different system part. The main functions of UM:

  • unpack and validate the update image
  • perform update of different system part
  • notify AOS Service Manager about update status

For more details see the architecure document

Build

Required GO packages

All requires GO packages exist under vendor folder. Content of this folder is created with GO modules:

export GO111MODULE=on
go mod init
go mod vendors
Native build
go build

ARM 64 build

Install arm64 toolchain:

sudo apt install gcc-aarch64-linux-gnu

Build:

CC=aarch64-linux-gnu-gcc CGO_ENABLED=1 GOOS=linux GOARCH=arm64 go build

Configuration

UM is configured through a configuration file. The file aos_updatemanager.cfg should be either in a current directory or specified with command line option as following:

./aos_updatemanager -c aos_updatemanager.cfg

The configuration file has JSON format described here. Example configuration file could be found in aos_updatemanager.cfg

To increase log level use option -v:

./aos_updatemanager -c aos_updatemanager.cfg -v debug

To send log messages directly to system journal use option -j:

./aos_updatemanager -c aos_updatemanager.cfg -v debug -j

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL