Lukasz >> > >> > The SPL-DFU will load and execute u-boot.img from RAM. If we issue >> > dfu-reset (-R switch), this leads to cpu-reset and we lost the >> > purpose of SPL-DFU itself. Hence dfu-reset issue shall not be >> > issued for SPL-DFU.
>It seems like a valid use case - maybe it would be beneficial to add Kconfig >option (CONFIG_DFU_SPL_NO_RESET) to give the user possibility to decide (and >in this way document it?). Yes, make sense, to differentiate dfu-reset for SPL-DFU. Ok, I will include CONFIG_SPL_DFU_NO_RESET in next version of patch. Thanks. >> > >> > I agree, the dfu-reset is needed in u-boot, after flashing images to >> > QSPI/eMMC/SD using the DFU to execute newly loaded image. So, >> > dfu-reset is needed for u-boot, but not required for SPL-DFU. >> > >> > For u-boot, we can continue to use run_command() for dfu-reset. >> >> OK. I guess if someone else wants to try and use SPL for DFU flashing >> that requires more work and they can address the above then, thanks! >> >> Reviewed-by: Tom Rini <tr...@konsulko.com> Regards Ravi _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot