mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-30 16:39:35 +00:00
001a831986
on nand flash using ubi, after the download of the new image into the flash, the "rest" of the nand sectors get erased while flushing the medium. With current u-boot version dfu-util may show: Starting download: [##################################################] finished! state(7) = dfuMANIFEST, status(0) = No error condition is present unable to read DFU status as get_status is not answered while erasing sectors, if erasing needs some time. So do the following changes to prevent this: - introduce dfuManifest state According to dfu specification ( http://www.usb.org/developers/devclass_docs/usbdfu10.pdf ) section 7: "the device enters the dfuMANIFEST-SYNC state and awaits the solicitation of the status report by the host. Upon receipt of the anticipated DFU_GETSTATUS, the device enters the dfuMANIFEST state, where it completes its reprogramming operations." - when stepping into dfuManifest state, sending a PollTimeout DFU_MANIFEST_POLL_TIMEOUT in ms, to the host, so the host (dfu-util) waits the PollTimeout before sending a get_status again. Signed-off-by: Heiko Schocher <hs@denx.de> Cc: Lukasz Majewski <l.majewski@samsung.com> Cc: Kyungmin Park <kyungmin.park@samsung.com> Cc: Marek Vasut <marex@denx.de> Cc: Pantelis Antoniou <panto@antoniou-consulting.com> |
||
---|---|---|
.. | ||
atmel_usba_udc.c | ||
atmel_usba_udc.h | ||
ci_udc.c | ||
ci_udc.h | ||
composite.c | ||
config.c | ||
core.c | ||
designware_udc.c | ||
ep0.c | ||
ep0.h | ||
epautoconf.c | ||
ether.c | ||
f_dfu.c | ||
f_dfu.h | ||
f_mass_storage.c | ||
f_thor.c | ||
f_thor.h | ||
fotg210.c | ||
g_dnl.c | ||
gadget_chips.h | ||
Makefile | ||
mpc8xx_udc.c | ||
ndis.h | ||
omap1510_udc.c | ||
pxa25x_udc.c | ||
pxa25x_udc.h | ||
pxa27x_udc.c | ||
regs-otg.h | ||
rndis.c | ||
rndis.h | ||
s3c_udc_otg.c | ||
s3c_udc_otg_xfer_dma.c | ||
storage_common.c | ||
usbstring.c |