diff options
| author | Paweł Owoc | 2025-11-08 21:08:18 +0000 |
|---|---|---|
| committer | Hauke Mehrtens | 2025-11-24 23:43:23 +0000 |
| commit | 8d8990a07eae43ee541d135b1c2204295a7cb7fd (patch) | |
| tree | 8800287aca9cfb5263a9dde3ce9daec461529570 | |
| parent | 693db5945b6ad0b2c0ff5bf46261f5d21a6b153d (diff) | |
| download | openwrt-8d8990a07eae43ee541d135b1c2204295a7cb7fd.tar.gz | |
mtd: add dump command help
Add missing dump command help.
Signed-off-by: Paweł Owoc <frut3k7@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20725
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
| -rw-r--r-- | package/system/mtd/src/mtd.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/package/system/mtd/src/mtd.c b/package/system/mtd/src/mtd.c index be6de2f63e..847170cb40 100644 --- a/package/system/mtd/src/mtd.c +++ b/package/system/mtd/src/mtd.c @@ -774,6 +774,7 @@ static void usage(void) fprintf(stderr, "Usage: mtd [<options> ...] <command> [<arguments> ...] <device>[:<device>...]\n\n" "The device is in the format of mtdX (eg: mtd4) or its label.\n" "mtd recognizes these commands:\n" + " dump dump mtd device\n" " unlock unlock the device\n" " refresh refresh mtd partition\n" " erase erase all data on device\n" @@ -816,7 +817,10 @@ static void usage(void) if (mtd_fixtrx) { fprintf(stderr, " -M <magic> magic number of the image header in the partition (for fixtrx)\n" - " -o offset offset of the image header in the partition(for fixtrx)\n"); + " -o offset offset of the image header in the partition (for dump / fixtrx)\n"); + } else { + fprintf(stderr, + " -o offset offset of the image header in the partition (for dump)\n"); } if (mtd_fixtrx || mtd_fixseama || mtd_fixwrg || mtd_fixwrgg) { fprintf(stderr, |