cmd_dd:support dd can do verify

After writing the file, compare the contents of the two files again

Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
anjiahao
2022-11-08 11:53:33 +08:00
committed by Xiang Xiao
parent c2f07a4d5a
commit 14465b85c4
2 changed files with 108 additions and 3 deletions

View File

@@ -160,9 +160,9 @@ static const struct cmdmap_s g_cmdmap[] =
#endif
#ifndef CONFIG_NSH_DISABLE_DD
{ "dd", cmd_dd, 3, 6,
{ "dd", cmd_dd, 3, 7,
"if=<infile> of=<outfile> [bs=<sectsize>] [count=<sectors>] "
"[skip=<sectors>]" },
"[skip=<sectors>] [verify]" },
# endif
#if defined(CONFIG_NET) && defined(CONFIG_NET_ROUTE) && !defined(CONFIG_NSH_DISABLE_DELROUTE)