diff options
author | Alexander Dahl <ada@thorsis.com> | 2022-01-10 13:39:40 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2022-01-14 13:59:43 +0100 |
commit | e348da7b9d2883e3fba1513db815e1389cd3876e (patch) | |
tree | 47346896e2a572f4aa32508ab98f038931badef0 | |
parent | df2946c8306b1ba0b1ec692caaa3552cefda47c6 (diff) | |
download | ptxdist-e348da7b9d2883e3fba1513db815e1389cd3876e.tar.gz ptxdist-e348da7b9d2883e3fba1513db815e1389cd3876e.tar.xz |
mtd-utils: Add option to install new tool 'ubiscan'
The ubiscan utility was introduced with mtd-utils 2.1.4 and gives an
overview over actual PEB erase counts.
Signed-off-by: Alexander Dahl <ada@thorsis.com>
Message-Id: <20220110123940.67341-3-ada@thorsis.com>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | rules/mtd-utils.in | 8 | ||||
-rw-r--r-- | rules/mtd-utils.make | 4 |
2 files changed, 12 insertions, 0 deletions
diff --git a/rules/mtd-utils.in b/rules/mtd-utils.in index 0d8fb5f5a..bd7ce9449 100644 --- a/rules/mtd-utils.in +++ b/rules/mtd-utils.in @@ -363,6 +363,14 @@ config MTD_UTILS_UBIRMVOL comment "busybox' ubirmvol is selected!" depends on BUSYBOX_UBIRMVOL +config MTD_UTILS_UBISCAN + bool + prompt "ubiscan" + help + ubiscan will scan the PEBs in a specific MTD device and print + a summary of the PEB erase counters and (optionally) details + about each PEB's status. + config MTD_UTILS_UBIUPDATEVOL bool prompt "ubiupdatevol" diff --git a/rules/mtd-utils.make b/rules/mtd-utils.make index 7414c6b58..a049e9896 100644 --- a/rules/mtd-utils.make +++ b/rules/mtd-utils.make @@ -228,6 +228,10 @@ ifdef PTXCONF_MTD_UTILS_UBIRMVOL @$(call install_copy, mtd-utils, 0, 0, 0755, -, \ /usr/sbin/ubirmvol) endif +ifdef PTXCONF_MTD_UTILS_UBISCAN + @$(call install_copy, mtd-utils, 0, 0, 0755, -, \ + /usr/sbin/ubiscan) +endif ifdef PTXCONF_MTD_UTILS_UBIUPDATEVOL @$(call install_copy, mtd-utils, 0, 0, 0755, -, \ /usr/sbin/ubiupdatevol) |