User Tools

Site Tools


subsystem:agl-sota:ostree

This is an old revision of the document!


Using OTA feature

OTA feature is enabled with agl-ota parameter added to agl-setup (see Download and Build AGL Source Code). It allows you to build image that can later be upgraded over TCP/IP conection using OSTree and SOTA client.

OSTree

SOTA client

Building

To enable OTA feature just add agl-ota to the feature list when setting up your environment.

  source meta-agl/scripts/aglsetup.sh -m qemux86-64 agl-demo agl-netboot agl-appfw-smack agl-sota

You can then edit your local.conf

  vim conf/local.conf

to tune several parameters.

  • OSTREE_REPO sets local OSTree repository, to which your resulting image will be committed.
  • OSTREE_BRANCHNAME is the ref name in your local repository.
  • OSTREE_OSNAME is the OS name in OSTree repository on your target device. See OSTree documentation for the details.

After that just build your desired image e.g.

  bitbake agl-demo-platform

As a result of the building process you will get the following:

  1. The whole root filesystem together with the kernel and initramfs commited to OSTree repository set in OSTREE_REPO on a branch set in OSTREE_BRANCHNAME
  2. Archived exact copy of the commited tree ('*.rootfs.ostree.tar.bz2' file)
  3. Live bootstrap image with the commited tree as the only OSTree deployment ('*.otaimg' file).

To boot into the resulting image, provided you've built it for QEMU run

  ../meta-agl-extra/meta-sota/scripts/runqemu qemuparams="-vga std" tmp/deploy/images/qemux86-64/agl-demo-platform-qemux86-64.otaimg

runqemu script from poky upstream is not able to work with OTA images at the moment.

Non-secure update

Secure update

subsystem/agl-sota/ostree.1475745333.txt.gz · Last modified: 2016/10/06 09:15 by oytis