summaryrefslogtreecommitdiff
path: root/cmd/Kconfig
diff options
context:
space:
mode:
authorJohn Chau <john@harmon.hk>2020-07-02 12:01:21 +0800
committerTom Rini <trini@konsulko.com>2020-08-04 23:29:59 -0400
commit4a4830cf915e76f07cff5ce346c3ccbc987c1557 (patch)
tree42ebbb70628121c40e6cc4e757dd55d56cad003d /cmd/Kconfig
parent5b3ddb17baec13b4386620b533527d0f53ddeddf (diff)
downloadu-boot-4a4830cf915e76f07cff5ce346c3ccbc987c1557.tar.gz
u-boot-4a4830cf915e76f07cff5ce346c3ccbc987c1557.tar.bz2
u-boot-4a4830cf915e76f07cff5ce346c3ccbc987c1557.zip
cmd: add clone command
This patch adds a feature for block device cloning similar to dd command, this should be useful for boot-strapping a device where usb gadget or networking is not available. For instance one can clone a factory image into a blank emmc from an external sd card. Signed-off-by: John Chau <john@harmon.hk>
Diffstat (limited to 'cmd/Kconfig')
-rw-r--r--cmd/Kconfig8
1 files changed, 8 insertions, 0 deletions
diff --git a/cmd/Kconfig b/cmd/Kconfig
index d7136b0e79..e11176451b 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -1148,6 +1148,14 @@ config CMD_MMC_SWRITE
endif
+config CMD_CLONE
+ bool "clone"
+ depends on BLK
+ help
+ Enable storage cloning over block devices, useful for
+ initial flashing by external block device without network
+ or usb support.
+
config CMD_MTD
bool "mtd"
depends on MTD