DFU-PREFIX(1)
π DFU-PREFIX π
okay so bestie, welcome to the dfu-prefix manual page β she's manual section 1, she's a little niche, she's iconic, and she is going to make your firmware files look β¨specialβ¨
πΈ NAME πΈ
dfu-prefix β add, check, or remove special firmware file prefix π
β¨ 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
likeβ¦ look at her. four whole modes plus help and version. main character energy fr fr π
π¦ DESCRIPTION π¦
so the tea is: dfu-prefix can add, check, or remove a prefix that certain hardware manufacturers use. which formats are supported, you ask? glad you asked:
- the Stellaris format from TI
- the LPC format from NXP
that's the whole roster. no cap. π«Ά
β οΈ important caveat alert β οΈ a standard DFU firmware file has no concept of a prefix, okay? like, none. and a DFU host tool like dfu-util just passes the prefix on to the device as part of the normal firmware payload. so don't come for her, she's doing her best π
π OPTIONS π
-s,--stellaris-addressaddress β (only makes sense with--add) adds a TI Stellaris address prefix to the file. bestie you literally hand her the address and she puts it in the file, slay π-T,--stellarisβ (pairs with--deleteor--check) acts on the TI Stellaris address prefix of the file. no address needed here, she just needs to know which flavour π-L,--lpc-prefixβ (pairs with--addor--deleteor--check) use the NXP LPC DFU prefix format. so she can do all three modes in LPC mode, unlike-Twhich is check/delete only. iykyk π₯-h,--helpβ displays a help message. she's helpful, she's generous, she's humble π₯°-V,--versionβ displays the software version. know your queen's number π
π EXAMPLES π
this is the part where it gets real, bestie. watch her work:
dfu-prefix --stellaris-address 0x0100 --add firmware.dfu
adds a Stellaris prefix with load address 0x0100 β¨
dfu-prefix --stellaris --check firmware.dfu
checks the file firmware.dfu for a Stellaris prefix π
dfu-prefix --lpc-prefix --delete firmware.dfu
removes a LPC prefix from the file firmware.dfu π§Ή
three commands. three vibes. one icon. periodt. π
β EXIT VALUES β
she reports back to you, always:
0β Success π (also if prefix is missing β yes, missing counts as success, she's chill like that)-64β Usage error π (you did the syntax wrong, bestie, it happens to everyone)
π BUGS π
found something cursed? don't suffer in silence, go here:
https://sourceforge.net/p/dfu-util/tickets/
that's the ticket tracker, she reads them, fr fr π
π COPYRIGHT π
License GPLv2: GNU GPL version 2 π«Ά
π SEE ALSO π
go read those too, they're the extended universe π¦
π AUTHORS π
See AUTHORS file in source. π
and that's the whole page!! this was dfu-util 0.11, from way back in September 2021 β yeah she's a little vintage, vintage is a vibe, don't @ me πΈ
bye bestie, go prefix something responsibly π β¨π¦
π¦ where this page comes from
- alpine 3.24: dfu-util-doc 0.11-r1 Β· GPL-2.0-only
- arch rolling: dfu-util 0.11-3 Β· GPL2
- debian bookworm: dfu-util 0.11-1 Β· GPL-2.0-or-later
- debian trixie: dfu-util 0.11-3 Β· GPL-2.0-or-later
- fedora 43: dfu-util 0.11-11.fc43 Β· GPL-2.0-or-later
- fedora 44: dfu-util 0.11-13.fc44 Β· GPL-2.0-or-later
- nixos 26.05: dfu-util 0.11
- nixpkgs unstable: dfu-util 0.11
- opensuse-leap 16.0: dfu-util 0.11-bp160.1.12 Β· GPL-2.0-only
- opensuse-leap 16.0: dfu-util 0.11-bp160.1.12 Β· GPL-2.0-only
- opensuse-leap 16.0: dfu-util 0.11-bp160.1.12 Β· GPL-2.0-only
- opensuse-leap 16.0: dfu-util 0.11-bp160.1.12 Β· GPL-2.0-only
- ubuntu noble: dfu-util 0.11-1 Β· GPL-2.0-or-later
- ubuntu questing: dfu-util 0.11-3
- ubuntu resolute: dfu-util 0.11-3build1 Β· GPL-2.0-or-later
- ubuntu stonking: dfu-util 0.11-3build1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms