读书人

u-boot DFU implement - dfu-util (一)

发布时间: 2013-10-15 16:47:37 作者: rapoo

u-boot DFU implement ---- dfu-util (1)

[This article is just collecting the information of dfu]


[dfu-util was originally written for the OpenMoko project:http://wiki.openmoko.org/wiki/Dfu-util, and now is maintained at: http://dfu-util.gnumonks.org/]


1. Description

dfu-util is the host side implementation of theDFU 1.0andDFU 1.1 specifications of the USB forum. DFU is intended to download and upload firmware to devices connected over USB. Using dfu-util you can download firmware to your DFU-enabled device or upload firmware from it.


2. dfu-util on ubuntu or debian

2.1 install dfu-util

2.1.1 using apt-get to install

$ sudo apt-get install dfu-util

2.1.2 install from source code [more information: http://dfu-util.gnumonks.org/build.html]

$ git clone git://gitorious.org/dfu-util/dfu-util.git

$ ./autogen.sh

$ ./configure

checking for libusb_init in -lusb... no
./configure: line 3810: syntax error near unexpected token `USB,'
./configure: line 3810: ` PKG_CHECK_MODULES(USB, libusb-1.0 >= 1.0.0,,'

==> sudo apt-get install libusb-1.0.0-dev

$

2.2 run dfu-util [more information: http://dfu-util.gnumonks.org/dfu-util.1.html]

$ dfu-util -h
Usage: dfu-util [options] ...
-h --help Print this help message
-V --version Print the version number
-v --verbose Print verbose debug statements
-l --list List the currently attached DFU capable USB devices
-d --device vendor:product Specify Vendor/Product ID of DFU device
-p --path bus-port. ... .port Specify path to DFU device
-c --cfg config_nr Specify the Configuration of DFU device
-i --intf intf_nr Specify the DFU Interface number
-a --alt alt Specify the Altsetting of the DFU Interface
by name or by number
-t --transfer-size Specify the number of bytes per USB Transfer
-U --upload file Read firmware from device into <file>
-D --download file Write firmware from <file> into device
-R --reset Issue USB Reset signalling once we're finished
-s --dfuse-address address ST DfuSe mode, specify target address for
raw file download or upload. Not applicable for
DfuSe file (.dfu) downloads

读书人网 >系统运维

热点推荐