| 1 |
% DFU-PREFIX(1) dfu-util 0.11 |
| 2 |
% See AUTHORS file in source |
| 3 |
% September 2021 |
| 4 |
|
| 5 |
# NAME |
| 6 |
dfu-prefix - add, check, or remove special firmware file prefix |
| 7 |
|
| 8 |
# SYNOPSIS |
| 9 |
**dfu-prefix** [ **\-s** *address* | **\-L** ] **\--add** *DFU_FILE*\ |
| 10 |
**dfu-prefix** [ **\-T** | **\-L** ] **\--check** *DFU_FILE*\ |
| 11 |
**dfu-prefix** [ **\-T** | **\-L** ] **\--delete** *DFU_FILE*\ |
| 12 |
**dfu-prefix** **\--help**\ |
| 13 |
**dfu-prefix** **\--version** |
| 14 |
|
| 15 |
# DESCRIPTION |
| 16 |
The program **dfu-prefix** can be used to add, check or remove a prefix |
| 17 |
used by certain hardware manufacturers. The Stellaris format from TI |
| 18 |
and the LPC format from NXP is supported. |
| 19 |
|
| 20 |
Note that a standard DFU firmware file has no concept of a prefix, and |
| 21 |
a DFU host tool like dfu-util passes the prefix on to the device as |
| 22 |
part of the normal firmware payload. |
| 23 |
|
| 24 |
# OPTIONS |
| 25 |
-s, \--stellaris-address *address* |
| 26 |
: (in combination with \--add) Add TI Stellaris address prefix to file |
| 27 |
|
| 28 |
-T, \--stellaris |
| 29 |
: (in combination with \--delete or \--check) Act on TI Stellaris address prefix of file |
| 30 |
|
| 31 |
-L, \--lpc-prefix |
| 32 |
: (in combination with \--add or \--delete or \--check) Use NXP LPC DFU prefix format |
| 33 |
|
| 34 |
-h, \--help |
| 35 |
: Displays a help message. |
| 36 |
|
| 37 |
-V, \--version |
| 38 |
: Displays the software version. |
| 39 |
|
| 40 |
# EXAMPLES |
| 41 |
**dfu-prefix** \--stellaris-address 0x0100 \--add firmware.dfu |
| 42 |
: Adds a Stellaris prefix with load address 0x0100 |
| 43 |
|
| 44 |
**dfu-prefix** \--stellaris \--check firmware.dfu |
| 45 |
: Checks the file firmware.dfu for a Stellaris prefix |
| 46 |
|
| 47 |
**dfu-prefix** \--lpc-prefix \--delete firmware.dfu |
| 48 |
: Removes a LPC prefix from the file firmware.dfu |
| 49 |
|
| 50 |
# EXIT VALUES |
| 51 |
**0** |
| 52 |
: Success (also if prefix is missing) |
| 53 |
|
| 54 |
**-64** |
| 55 |
: Usage error |
| 56 |
|
| 57 |
# BUGS |
| 58 |
https://sourceforge.net/p/dfu-util/tickets/ |
| 59 |
|
| 60 |
# COPYRIGHT |
| 61 |
License GPLv2: GNU GPL version 2 |
| 62 |
|
| 63 |
# SEE ALSO |
| 64 |
**dfu-suffix**(1), **dfu-util**(1) |