mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Alexander Dahl <ada@thorsis.com>
To: ptxdist@pengutronix.de
Cc: Alexander Dahl <ada@thorsis.com>
Subject: [ptxdist] [PATCH 2/2] mtd-utils: Add option to install new tool 'ubiscan'
Date: Mon, 10 Jan 2022 13:39:40 +0100	[thread overview]
Message-ID: <20220110123940.67341-3-ada@thorsis.com> (raw)
In-Reply-To: <20220110123940.67341-1-ada@thorsis.com>

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>
---
 rules/mtd-utils.in   | 8 ++++++++
 rules/mtd-utils.make | 4 ++++
 2 files changed, 12 insertions(+)

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)
-- 
2.20.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de


  parent reply	other threads:[~2022-01-10 12:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-10 12:39 [ptxdist] [PATCH 0/2] mtd-utils: Bump version and add ubiscan Alexander Dahl
2022-01-10 12:39 ` [ptxdist] [PATCH 1/2] mtd-utils: version bump 2.1.3 -> 2.1.4 Alexander Dahl
2022-01-21  7:19   ` [ptxdist] [APPLIED] " Michael Olbrich
2022-01-10 12:39 ` Alexander Dahl [this message]
2022-01-21  7:19   ` [ptxdist] [APPLIED] mtd-utils: Add option to install new tool 'ubiscan' Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220110123940.67341-3-ada@thorsis.com \
    --to=ada@thorsis.com \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox