fwupd/plugins/dfu
Richard Hughes 206b70120d dfu: Simplify the SREC parser to avoid a crash with an invalid file
Splitting the file into lines does increase memory usage, but allows us to use
a much simpler parser design. This is just like we fixed IHEX a few weeks ago.
2019-01-31 16:05:34 +00:00
..
contrib Do not use /usr/bin/env in the shebang line 2018-07-12 07:08:53 -05:00
fuzzing trivial: Add the generated SREC examples for easy fuzzing 2018-05-01 09:53:10 +01:00
tests Add support for parsing Motorola S-record files 2018-05-01 09:16:19 +01:00
dfu-cipher-xtea.c Remove the unused Emacs indenting headers from all source files 2018-08-09 12:48:04 +01:00
dfu-cipher-xtea.h Remove the unused Emacs indenting headers from all source files 2018-08-09 12:48:04 +01:00
dfu-common.c trivial: Split out strnsplit for future use 2019-01-31 16:05:34 +00:00
dfu-common.h trivial: Split out strnsplit for future use 2019-01-31 16:05:34 +00:00
dfu-device-private.h Remove the unused Emacs indenting headers from all source files 2018-08-09 12:48:04 +01:00
dfu-device.c dfu: Fix flashing various Jabra devices 2019-01-16 11:22:05 +00:00
dfu-device.h Remove the unused Emacs indenting headers from all source files 2018-08-09 12:48:04 +01:00
dfu-element.c Remove the unused Emacs indenting headers from all source files 2018-08-09 12:48:04 +01:00
dfu-element.h Remove the unused Emacs indenting headers from all source files 2018-08-09 12:48:04 +01:00
dfu-firmware.c Don't use AppStream-glib for version helpers 2018-10-11 07:54:01 +01:00
dfu-firmware.h Remove the unused Emacs indenting headers from all source files 2018-08-09 12:48:04 +01:00
dfu-format-dfu.c Remove the unused Emacs indenting headers from all source files 2018-08-09 12:48:04 +01:00
dfu-format-dfu.h Remove the unused Emacs indenting headers from all source files 2018-08-09 12:48:04 +01:00
dfu-format-dfuse.c Remove the unused Emacs indenting headers from all source files 2018-08-09 12:48:04 +01:00
dfu-format-dfuse.h Remove the unused Emacs indenting headers from all source files 2018-08-09 12:48:04 +01:00
dfu-format-ihex.c trivial: Split out strnsplit for future use 2019-01-31 16:05:34 +00:00
dfu-format-ihex.h Remove the unused Emacs indenting headers from all source files 2018-08-09 12:48:04 +01:00
dfu-format-metadata.c Remove the unused Emacs indenting headers from all source files 2018-08-09 12:48:04 +01:00
dfu-format-metadata.h Remove the unused Emacs indenting headers from all source files 2018-08-09 12:48:04 +01:00
dfu-format-raw.c Remove the unused Emacs indenting headers from all source files 2018-08-09 12:48:04 +01:00
dfu-format-raw.h Remove the unused Emacs indenting headers from all source files 2018-08-09 12:48:04 +01:00
dfu-format-srec.c dfu: Simplify the SREC parser to avoid a crash with an invalid file 2019-01-31 16:05:34 +00:00
dfu-format-srec.h Remove the unused Emacs indenting headers from all source files 2018-08-09 12:48:04 +01:00
dfu-image.c Remove the unused Emacs indenting headers from all source files 2018-08-09 12:48:04 +01:00
dfu-image.h Remove the unused Emacs indenting headers from all source files 2018-08-09 12:48:04 +01:00
dfu-patch.c Remove the unused Emacs indenting headers from all source files 2018-08-09 12:48:04 +01:00
dfu-patch.h Remove the unused Emacs indenting headers from all source files 2018-08-09 12:48:04 +01:00
dfu-sector-private.h Remove the unused Emacs indenting headers from all source files 2018-08-09 12:48:04 +01:00
dfu-sector.c Remove the unused Emacs indenting headers from all source files 2018-08-09 12:48:04 +01:00
dfu-sector.h Remove the unused Emacs indenting headers from all source files 2018-08-09 12:48:04 +01:00
dfu-self-test.c trivial: Move out the byte-array chunking to libfwupdprivate 2018-08-22 15:14:12 +01:00
dfu-target-avr.c trivial: Move out the byte-array chunking to libfwupdprivate 2018-08-22 15:14:12 +01:00
dfu-target-avr.h Remove the unused Emacs indenting headers from all source files 2018-08-09 12:48:04 +01:00
dfu-target-private.h Remove the unused Emacs indenting headers from all source files 2018-08-09 12:48:04 +01:00
dfu-target-stm.c trivial: Move out the byte-array chunking to libfwupdprivate 2018-08-22 15:14:12 +01:00
dfu-target-stm.h Remove the unused Emacs indenting headers from all source files 2018-08-09 12:48:04 +01:00
dfu-target.c Remove the unused Emacs indenting headers from all source files 2018-08-09 12:48:04 +01:00
dfu-target.h Remove the unused Emacs indenting headers from all source files 2018-08-09 12:48:04 +01:00
dfu-tool.c Allow replacing the last byte in the image when using 'dfu-tool replace-data' 2018-12-18 08:35:24 +00:00
dfu-tool.h2m use help2man for dfu-tool too 2018-02-09 17:26:18 +00:00
dfu.quirk dfu: Require a specific USB class and subclass for DFU mode 2018-12-03 13:57:52 +00:00
fu-plugin-dfu.c Show a console warning if loading an out-of-tree plugin 2019-01-19 07:26:20 +00:00
fuzzing.md Add support for parsing Motorola S-record files 2018-05-01 09:16:19 +01:00
meson.build Show a console warning if loading an out-of-tree plugin 2019-01-19 07:26:20 +00:00
README.md trivial: Add the missing protocol IDs to the plugin READMEs 2019-01-29 22:28:09 +00:00

DFU Support

Introduction

Device Firmware Update is a standard that allows USB devices to be easily and safely updated by any operating system.

Firmware Format

The daemon will decompress the cabinet archive and extract a firmware blob in DFU or DfuSe file format.

This plugin supports the following protocol IDs:

  • org.usb.dfu
  • com.st.dfuse

GUID Generation

These devices use the standard USB DeviceInstanceId values, e.g.

  • USB\VID_273F&PID_1003&REV_0001
  • USB\VID_273F&PID_1003
  • USB\VID_273F

Quirk use

This plugin uses the following plugin-specific quirks:

Quirk Description Minimum fwupd version
DfuFlags Optional quirks for a DFU device which doesn't follow the DFU 1.0 or 1.1 specification 1.0.1
DfuForceVersion Forces a specific DFU version for the hardware device. This is required if the device does not set, or sets incorrectly, items in the DFU functional descriptor. 1.0.1
DfuJabraDetach Assigns the two magic bytes sent to the Jabra hardware when the device is in runtime mode to make it switch into DFU mode. 1.0.1