Fwup (fwup v1.1.0)

Copy Markdown

Configurable embedded Linux firmware update creator and runner

Summary

Functions

Returns the path to the fwup executable.

Returns a list of ["/path/to/device", byte_size]

Stream a firmware image to the device

Functions

apply(device, task, path, extra_args \\ [])

Apply a fwupdate

  • device - block device to write too. See get_device/0.
  • task - Can be any task in the fwup.conf.
           Traditionally it will be `upgrade` or `complete`
  • path - path to the firmware file
  • extra_args - extra optional args to pass to fwup.

exe()

Returns the path to the fwup executable.

get_devices()

Returns a list of ["/path/to/device", byte_size]

send_chunk(pid, chunk)

See Fwup.Stream.send_chunk/2.

stream(pid, args, opts \\ [])

Stream a firmware image to the device

Options

  • :name - register the started GenServer under this name (defaults to Fwup.Stream)
  • :fwup_env - the OS environment to pass to fwup