From cb986ba0fe4692a9d21a193c4ca9db460df77364 Mon Sep 17 00:00:00 2001 From: Patrick Delaunay Date: Mon, 14 Oct 2019 09:28:00 +0200 Subject: dfu: sf: add partition support for nor backend Copy the partition support from NAND backend to SF, support part and partubi option. In case of ubi partition, erase the rest of the partition as it is mandatory for UBI. The added code is under compilation flag CONFIG_DFU_SF_PART activated by default. for example: U-Boot> env set dfu_alt_info "spl part 0 1;\ u-boot part 0 2;u-boot-env part 0 3;UBI partubi 0 4" U-Boot> dfu 0 sf 0:0:10000000:0 Signed-off-by: Patrick Delaunay --- doc/README.dfu | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'doc') diff --git a/doc/README.dfu b/doc/README.dfu index f5344e2..7a2b5f1 100644 --- a/doc/README.dfu +++ b/doc/README.dfu @@ -33,6 +33,7 @@ Configuration Options: CONFIG_DFU_NAND CONFIG_DFU_RAM CONFIG_DFU_SF + CONFIG_DFU_SF_PART CONFIG_CMD_DFU Environment variables: @@ -89,6 +90,10 @@ Commands: cmd: dfu 0 sf each element in "dfu_alt_info" = ram raw access to sf device + part raw acces to partition + partubi raw acces to ubi partition + + with is the MTD partition index Host tools: When U-Boot runs the dfu stack, the DFU host tools can be used -- cgit v1.1