Ostro
  • Cover
  • Introduction
  • Supported Platforms
  • Build System
    • Building
      • Package Management
      • Linux Kernel
    • Architecture
    • Downloading
    • Flashing
    • Running
  • Initialization
    • Boot Up
    • Display Message
    • Modules
    • Filesystem
    • Memory
    • Processes
    • Environment
    • Reboot
  • User Space
    • Services
    • Logs
    • Package Management Systems
      • SwUpd
      • Python Package Index
    • Libraries
  • Subsystems
    • Power
  • Application Development
    • Python
  • Sandbox
Powered by GitBook
On this page
  • Software Update Mechanism for Ostro™ OS
  • SwUpd
  • Bundles
  1. User Space
  2. Package Management Systems

SwUpd

PreviousPackage Management SystemsNextPython Package Index

Last updated 7 years ago

Software Update Mechanism for Ostro™ OS

Ostro OS based software can be deployed to a target device in two ways:

Full Disk Flashing

A new software image is built and installed, completely replacing what was previously present on the device. It can be useful for initializing a device with Ostro OS. Software Update This is a component that Ostro OS borrows from Clear Linux* OS and consists of both a server and client component. The Software Update component is not tied to any specific platform or architecture, as long as the concept of rootfs/filesystem is supported.

SwUpd

The — swupd — from provides a new way of adding functionality to and updating a Linux-based OS.

  • ostro-image-noswupd (when building without swupd, the recommended mode for local image building)

  • ostro-image-swupd (when building with swupd, the recommended mode for deployment)

Bundles

Clear Linux Bundles Overview
root@edison:~# ls /usr/share/clear/bundles
os-core    world-dev
root@edison:~#
root@edison:~# swupd
Usage:
    swupd [OPTION...]
 or swupd [OPTION...] SUBCOMMAND [OPTION...]

Help Options:
   -h, --help              Show help options

Subcommands:
   bundle-add              Install a new bundle          
   bundle-remove           Uninstall a bundle            
   hashdump                Dumps the HMAC hash of a file 
   update                  Update to latest OS version   
   verify                  Verify content for OS version 
   check-update            Checks if a new OS version is available

To view subcommand options, run `swupd SUBCOMMAND --help'
root@edison:~#
root@edison:~# swupd update
swupd-client software update 2.87
   Copyright (C) 2012-2015 Intel Corporation
   bsdiff portions Copyright Colin Percival, see COPYING file for details

Error: Network issue, unable to proceed with update
Update exiting.
root@edison:~#
root@edison:~# swupd bundle-add editors
swupd-client bundle adder 2.87
   Copyright (C) 2012-2015 Intel Corporation
   bsdiff portions Copyright Colin Percival, see COPYING file for details

Cannot load official manifest MoM for version 4400
root@edison:~#
root@edison:~# swupd check-update -u example.com/updates
root@edison:~# swupd update -u example.com/updates
root@edison:~# swupd verify -u example.com/updates
Software Update Mechanism for Ostro™ OS
SoftWare UPDater
Clear Linux
Meta layer for swupd software-update
About software update
How to run the updater
Bundles overview