
Hi Caleb,
Thank you for the patch.
On lun., juin 03, 2024 at 14:49, Caleb Connolly caleb.connolly@linaro.org wrote:
This is extremely similar to the MMC backend, but there are some notable differences.
Works with a DFU string like
scsi 4=u-boot-bin part 11
Where "4" is the SCSI dev number (sequential LUN across all SCSI devices) and "11" is the partition number.
Signed-off-by: Caleb Connolly caleb.connolly@linaro.org
doc/usage/dfu.rst | 32 ++++ drivers/dfu/Kconfig | 7 + drivers/dfu/Makefile | 1 + drivers/dfu/dfu.c | 5 +- drivers/dfu/dfu_scsi.c | 435 +++++++++++++++++++++++++++++++++++++++++++++++++ include/dfu.h | 26 +++ 6 files changed, 505 insertions(+), 1 deletion(-)
diff --git a/doc/usage/dfu.rst b/doc/usage/dfu.rst index 8cc09c308d82..f497dcf137a4 100644 --- a/doc/usage/dfu.rst +++ b/doc/usage/dfu.rst @@ -21,8 +21,9 @@ U-Boot implements this DFU capability (CONFIG_DFU) with the command dfu
Today the supported DFU backends are:
- MMC (RAW or FAT / EXT2 / EXT3 / EXT4 file system / SKIP / SCRIPT)
+- SCSI (UFS, RAW partition, FAT / EXT2 / EXT3 / EXT4 file system / SKIP / SCRIPT)
- NAND
- RAM
- SF (serial flash)
- MTD (all MTD device: NAND, SPI-NOR, SPI-NAND,...)
@@ -166,8 +167,38 @@ mmc
Please note that this means the user will be able to execute any arbitrary commands just like in the u-boot's shell.
Can we please add CONFIG_DFU_SCSI in "Configuration Options" section at the beginning of this document?
See: https://docs.u-boot.org/en/latest/usage/dfu.html#configuration-options
Note: I requested that here: https://lore.kernel.org/all/87o7a94pe1.fsf@baylibre.com/
With above addressed, feel free to add: Reviewed-by: Mattijs Korpershoek mkorpershoek@baylibre.com
And please take this through your tree: Acked-by: Mattijs Korpershoek mkorpershoek@baylibre.com
+scsi
[...]