DFU-PREFIX(1) DFU-PREFIX(1)

# [NAME](#NAME)

dfu-prefix - add, check, or remove special firmware file prefix

# [SYNOPSIS](#SYNOPSIS)

**dfu-prefix** \[ **-s** *address* | **-L** ] **--add** *DFU\_FILE*

**dfu-prefix** \[ **-T** | **-L** ] **--check** *DFU\_FILE*

**dfu-prefix** \[ **-T** | **-L** ] **--delete** *DFU\_FILE*

**dfu-prefix** **--help**

**dfu-prefix** **--version**

# [DESCRIPTION](#DESCRIPTION)

The program **dfu-prefix** can be used to add, check or remove a prefix used by certain hardware manufacturers. The Stellaris format from TI and the LPC format from NXP is supported.

Note that a standard DFU firmware file has no concept of a prefix, and a DFU host tool like dfu-util passes the prefix on to the device as part of the normal firmware payload.

# [OPTIONS](#OPTIONS)

[**-s, --stellaris-address *address***](#s,)

(in combination with --add) Add TI Stellaris address prefix to file

[**-T, --stellaris**](#T,)

(in combination with --delete or --check) Act on TI Stellaris address prefix of file

[**-L, --lpc-prefix**](#L,)

(in combination with --add or --delete or --check) Use NXP LPC DFU prefix format

[**-h, --help**](#h,)

Displays a help message.

[**-V, --version**](#V,)

Displays the software version.

# [EXAMPLES](#EXAMPLES)

[**dfu-prefix --stellaris-address 0x0100 --add firmware.dfu**](#dfu)

Adds a Stellaris prefix with load address 0x0100

[**dfu-prefix --stellaris --check firmware.dfu**](#dfu~2)

Checks the file firmware.dfu for a Stellaris prefix

[**dfu-prefix --lpc-prefix --delete firmware.dfu**](#dfu~3)

Removes a LPC prefix from the file firmware.dfu

# [EXIT VALUES](#EXIT_VALUES)

**0**

Success (also if prefix is missing)

**-64**

Usage error

# [BUGS](#BUGS)

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

# [COPYRIGHT](#COPYRIGHT)

License GPLv2: GNU GPL version 2

# [SEE ALSO](#SEE_ALSO)

[**dfu-suffix**(1)](/man/enterprise-packages/dfu-util/dfu-suffix.1), [**dfu-util**(1)](/man/enterprise-packages/dfu-util/dfu-util.1)

# [AUTHORS](#AUTHORS)

See AUTHORS file in source.

September 2021 dfu-util 0.11

---

Document: dfu-prefix(1) from dfu-util 0.11-r4 (Chainguard OS)
Source: https://git.code.sf.net/p/dfu-util/dfu-util
