AosCore 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 AosCore Service Manager about update status
For more details see the architecure document
All requires GO packages exist under vendor folder. Content of this folder is created with GO modules:
export GO111MODULE=ongo mod init
go mod vendorsgo buildInstall arm64 toolchain:
sudo apt install gcc-aarch64-linux-gnuBuild:
CC=aarch64-linux-gnu-gcc CGO_ENABLED=1 GOOS=linux GOARCH=arm64 go buildUM 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.cfgThe 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 debugTo send log messages directly to system journal use option -j:
./aos_updatemanager -c aos_updatemanager.cfg -v debug -j