Fwup (fwup v1.1.0)

Configurable embedded Linux firmware update creator and runner

Link to this section 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

Link to this section Functions

Link to this function

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.

Returns the path to the fwup executable.

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

Link to this function

send_chunk(pid, chunk)

See Fwup.Stream.send_chunk/2.

Link to this function

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