Elixir API for upgrading and managing firmware on a Nerves device.
Looking for over-the-network firmware updates? see nerves_firmware_http, which provides an HTTP micro-service providing over-network firmware management.
Leans heavily on Frank Hunleth's excellent fwup, which is included of the standard Nerves configurations.
For more, read the documentation.
It's published in Hex, so..
-
Add nerves_firmware to your list of dependencies in
mix.exs
:def deps do [{:nerves_firmware, "~> 0.4.0"}] end
-
Ensure nerves_firmware is started before your application:
def application do [applications: [:nerves_firmware]] end
in config.exs
you can configure the block device and signing of the firmware.
use Mix.Config
config :nerves_firmware,
device: "/dev/mmcblk0",
pub_key_path: "/etc/fwup-key.pub"