DOKK / manpages / debian 12 / dfu-util / dfu-suffix.1.en
DFU-SUFFIX(1) DFU-SUFFIX(1)

dfu-suffix - add, check, or remove DFU firmware file suffix

dfu-suffix [options] --add DFU_FILE

dfu-suffix --check DFU_FILE

dfu-suffix --delete DFU_FILE

dfu-suffix --help

dfu-suffix --version

The program dfu-suffix can be used to add, check or remove a DFU firmware file suffix, recommended for safely matching a firmware file and device.

Note that a suffix is recommended by the DFU standard, but not required. A DFU host tool like dfu-util will recognize the suffix and use it to check that the device is matching, but not transfer the suffix to the device.

Specify USB vendor ID (hexadecimal)
Specify USB product ID (hexadecimal)
Specify USB device ID (hexadecimal)
Specify DFU specification version (hexadecimal)
Displays a help message.
Displays the software version.

Adds a suffix matching vendor 0x0123 and product ID 0x4567. Since product and device ID are not specified, they will contain the wildcard value 0xFFFF.
Checks the file firmware.dfu for a valid DFU suffix
Removes a valid DFU suffix from the file firmware.dfu

0
Success (also if suffix is missing)
-64
Usage error

dfu-suffix can not tell a broken DFU suffix (e.g. checksum mismatch) from a non-existing suffix, so only a valid suffix can be removed.

https://sourceforge.net/p/dfu-util/tickets/

License GPLv2: GNU GPL version 2

dfu-prefix(1), dfu-util(1)

See AUTHORS file in source.

September 2021 dfu-util 0.11