summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Dahl <ada@thorsis.com>2022-01-10 13:39:40 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2022-01-14 13:59:43 +0100
commite348da7b9d2883e3fba1513db815e1389cd3876e (patch)
tree47346896e2a572f4aa32508ab98f038931badef0
parentdf2946c8306b1ba0b1ec692caaa3552cefda47c6 (diff)
downloadptxdist-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.in8
-rw-r--r--rules/mtd-utils.make4
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)