Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
tools:dfu-util [2015/03/18 14:28] – created darron | tools:dfu-util [2022/10/31 14:27] (current) – [Probe] darron | ||
---|---|---|---|
Line 3: | Line 3: | ||
dfu-util can be used to communicate with DFU (device firmware upgrade) enabled devices. | dfu-util can be used to communicate with DFU (device firmware upgrade) enabled devices. | ||
- | One example is the Leaflabs maple mini. | + | Examples include |
+ | Be sure to have the latest version installed from at least 2020 if you intend to use | ||
+ | the [[: | ||
=== Install === | === Install === | ||
< | < | ||
- | git clone https://gitorious.org/ | + | git clone https://git.code.sf.net/p/ |
cd dfu-util | cd dfu-util | ||
sh autogen.sh | sh autogen.sh | ||
./configure --prefix=/ | ./configure --prefix=/ | ||
- | make | + | make -j 4 |
make install | make install | ||
</ | </ | ||
+ | === Usage === | ||
+ | |||
+ | < | ||
+ | $ dfu-util | ||
+ | dfu-util 0.11-dev | ||
+ | |||
+ | Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc. | ||
+ | Copyright 2010-2021 Tormod Volden and Stefan Schmidt | ||
+ | This program is Free Software and has ABSOLUTELY NO WARRANTY | ||
+ | Please report bugs to http:// | ||
+ | |||
+ | You need to specify one of -D or -U | ||
+ | Usage: dfu-util [options] ... | ||
+ | -h --help | ||
+ | -V --version | ||
+ | -v --verbose | ||
+ | -l --list | ||
+ | -e --detach | ||
+ | -E --detach-delay seconds | ||
+ | -d --device < | ||
+ | Specify Vendor/ | ||
+ | -n --devnum < | ||
+ | -p --path < | ||
+ | -c --cfg < | ||
+ | -i --intf < | ||
+ | -S --serial < | ||
+ | Specify Serial String of DFU device | ||
+ | -a --alt < | ||
+ | by name or by number | ||
+ | -t --transfer-size < | ||
+ | -U --upload < | ||
+ | -Z --upload-size < | ||
+ | -D --download < | ||
+ | -R --reset | ||
+ | -w --wait | ||
+ | -s --dfuse-address address<: | ||
+ | address for raw file download or upload (not | ||
+ | applicable for DfuSe file (.dfu) downloads). | ||
+ | Add more DfuSe options separated with ':' | ||
+ | leave Leave DFU mode (jump to application) | ||
+ | mass-erase | ||
+ | unprotect | ||
+ | will-reset | ||
+ | force You really know what you are doing! | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | === Probe === | ||
+ | |||
+ | ==Longan Nano== | ||
+ | |||
+ | < | ||
+ | $ sudo dfu-util -v -l | ||
+ | dfu-util 0.9 | ||
+ | |||
+ | Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc. | ||
+ | Copyright 2010-2020 Tormod Volden and Stefan Schmidt | ||
+ | This program is Free Software and has ABSOLUTELY NO WARRANTY | ||
+ | Please report bugs to http:// | ||
+ | |||
+ | Found DFU: [28e9:0189] ver=0100, devnum=45, cfg=1, intf=0, path=" | ||
+ | </ | ||
+ | |||
+ | ==Maple Mini== | ||
+ | |||
+ | __Probe__ | ||
+ | |||
+ | < | ||
+ | sudo dfu-util -l -v | ||
+ | dfu-util 0.11-dev | ||
+ | |||
+ | Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc. | ||
+ | Copyright 2010-2021 Tormod Volden and Stefan Schmidt | ||
+ | This program is Free Software and has ABSOLUTELY NO WARRANTY | ||
+ | Please report bugs to http:// | ||
+ | |||
+ | libusb version 1.0.22 (11312) | ||
+ | Found DFU: [1eaf:0003] ver=0201, devnum=54, cfg=1, intf=0, path=" | ||
+ | Found DFU: [1eaf:0003] ver=0201, devnum=54, cfg=1, intf=0, path=" | ||
+ | </ | ||
+ | |||
+ | __Program__ | ||
+ | |||
+ | < | ||
+ | sudo make -f Makefile.maple_mini dfu-util | ||
+ | dfu-util -a 1 -D maple_mini.bin | ||
+ | dfu-util 0.11-dev | ||
+ | |||
+ | Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc. | ||
+ | Copyright 2010-2021 Tormod Volden and Stefan Schmidt | ||
+ | This program is Free Software and has ABSOLUTELY NO WARRANTY | ||
+ | Please report bugs to http:// | ||
+ | |||
+ | dfu-util: Warning: Invalid DFU suffix signature | ||
+ | dfu-util: A valid DFU suffix will be required in a future dfu-util release | ||
+ | Opening DFU capable USB device... | ||
+ | Device ID 1eaf:0003 | ||
+ | Device DFU version 0110 | ||
+ | Claiming USB DFU Interface... | ||
+ | Setting Alternate Interface #1 ... | ||
+ | Determining device status... | ||
+ | DFU state(2) = dfuIDLE, status(0) = No error condition is present | ||
+ | DFU mode device DFU version 0110 | ||
+ | Device returned transfer size 1024 | ||
+ | Copying data from PC to DFU device | ||
+ | Download | ||
+ | Download done. | ||
+ | DFU state(8) = dfuMANIFEST-WAIT-RESET, | ||
+ | Resetting USB to switch back to runtime mode | ||
+ | Done! | ||
+ | </ |