AOS Update Manager
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