We want to use the dfu-util in manufacture. but the flash speed is very slow. (3G rootfs file cost about 1 hour)
How to improve dfu-util flash performance?
The following are my steps:
in U-boot:
stop at uboot command mode
=> setenv dfu_alt_info ${dfu_alt_info_emmc}
=> dfu 0 mmc 0
in Ubuntu Host:
build-nb:~/disk_2t/images/0720$ cat ./flash_img.sh
echo start flash: `date +%H:%M:%S`
#sudo ./dfu-util -a rootfs -D ./rootfs-3G.img
echo end flash: `date +%H:%M:%S`
build-nb:~/disk_2t/images/0720$ ./flash_img.sh
start flash: 19:44:08
dfu-util 0.10
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 sourceforge.net/.../
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...
ID 0451:6163
Run-time device DFU version 0110
Claiming USB DFU Interface...
Setting Alternate Setting #1 ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 0110
Device returned transfer size 4096
Copying data from PC to DFU device
Download [======================= ] 95% 3087183872 bytes
Download [======================= ] 95% 3088384000 bytes
Download [======================= ] 95% 3089367040 bytes
Download [=========================] 100% 3221225472 bytes
Download done.
state(7) = dfuMANIFEST, status(0) = No error condition is present
state(2) = dfuIDLE, status(0) = No error condition is present
Done!
end flash: 20:46:05