Giter Club home page Giter Club logo

system76-firmware's Introduction

system76-firmware

The system76-firmware package has a CLI tool for installing firmware updates. Also included is the system76-firmware-daemon package, which has a systemd service that exposes a DBUS API for handling firmware updates.

Dependencies

  • cargo
  • dbus
  • rustc
  • systemd

Make Targets

The following make targets are supported:

  • make all - compile all binaries
  • make clean - remove compiled binaries
  • make install - install binaries and configuration files
  • make uninstall - uninstall binaries and configuration file
  • make vendor - prepare source for offline compilation
  • make distclean - remove prepared source and compiled binaries

Installation

make
sudo make install

Packaging

In order to package this, you need cargo-vendor:

cargo install cargo-vendor

You can then run the following to create an offline-capable package:

make vendor

Now you can compile and install the package.

To clean out the vendor source, you can run this command:

make distclean

API

The system76-firmware-daemon will download the latest firmware package, if it has changed, and will provide a DBUS interface for a user to query the current firmware status, query the update information, and schedule an update.

The DBUS API is as follows:

  • Bios() -> (String model, String version) Query the BIOS model and version.
  • EmbeddedController(Boolean primary) -> (String project, String version) Query the embedded controller for project and version. Optionally, a second embedded controller can be queried.
  • ManagementEngine() -> (Boolean enabled, String version) Query the ME status and version.
  • Download() -> (String digest, String changelog) Download the latest changelog information
  • Schedule(String digest) -> () Prepare the latest firmware update for installation
  • Unschedule() -> () Cancel installation of the latest firmware update

system76-firmware's People

Contributors

allonhadaya avatar brs17 avatar burntsushi avatar jackpot51 avatar mmstick avatar sodle avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.