Hei hei, the recently announced new version 2.1.4 of mtd-utils comes with a new tool 'ubiscan'. This is useful to get a quick picture of PEB erase counters on a NAND flash. Greets Alex Alexander Dahl (2): mtd-utils: version bump 2.1.3 -> 2.1.4 mtd-utils: Add option to install new tool 'ubiscan' .../0001-nandmarkbad-new-util-to-mark-blocks-as-bad.patch | 0 patches/{mtd-utils-2.1.3 => mtd-utils-2.1.4}/autogen.sh | 0 patches/{mtd-utils-2.1.3 => mtd-utils-2.1.4}/series | 0 rules/mtd-utils.in | 8 ++++++++ rules/mtd-utils.make | 8 ++++++-- 5 files changed, 14 insertions(+), 2 deletions(-) rename patches/{mtd-utils-2.1.3 => mtd-utils-2.1.4}/0001-nandmarkbad-new-util-to-mark-blocks-as-bad.patch (100%) rename patches/{mtd-utils-2.1.3 => mtd-utils-2.1.4}/autogen.sh (100%) rename patches/{mtd-utils-2.1.3 => mtd-utils-2.1.4}/series (100%) base-commit: b90da4e990ee000187617533ebdc1efbdc3ce9ba -- 2.20.1 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
Link: http://lists.infradead.org/pipermail/linux-mtd/2022-January/090742.html Signed-off-by: Alexander Dahl <ada@thorsis.com> --- .../0001-nandmarkbad-new-util-to-mark-blocks-as-bad.patch | 0 patches/{mtd-utils-2.1.3 => mtd-utils-2.1.4}/autogen.sh | 0 patches/{mtd-utils-2.1.3 => mtd-utils-2.1.4}/series | 0 rules/mtd-utils.make | 4 ++-- 4 files changed, 2 insertions(+), 2 deletions(-) rename patches/{mtd-utils-2.1.3 => mtd-utils-2.1.4}/0001-nandmarkbad-new-util-to-mark-blocks-as-bad.patch (100%) rename patches/{mtd-utils-2.1.3 => mtd-utils-2.1.4}/autogen.sh (100%) rename patches/{mtd-utils-2.1.3 => mtd-utils-2.1.4}/series (100%) diff --git a/patches/mtd-utils-2.1.3/0001-nandmarkbad-new-util-to-mark-blocks-as-bad.patch b/patches/mtd-utils-2.1.4/0001-nandmarkbad-new-util-to-mark-blocks-as-bad.patch similarity index 100% rename from patches/mtd-utils-2.1.3/0001-nandmarkbad-new-util-to-mark-blocks-as-bad.patch rename to patches/mtd-utils-2.1.4/0001-nandmarkbad-new-util-to-mark-blocks-as-bad.patch diff --git a/patches/mtd-utils-2.1.3/autogen.sh b/patches/mtd-utils-2.1.4/autogen.sh similarity index 100% rename from patches/mtd-utils-2.1.3/autogen.sh rename to patches/mtd-utils-2.1.4/autogen.sh diff --git a/patches/mtd-utils-2.1.3/series b/patches/mtd-utils-2.1.4/series similarity index 100% rename from patches/mtd-utils-2.1.3/series rename to patches/mtd-utils-2.1.4/series diff --git a/rules/mtd-utils.make b/rules/mtd-utils.make index d96ab02b0..7414c6b58 100644 --- a/rules/mtd-utils.make +++ b/rules/mtd-utils.make @@ -15,8 +15,8 @@ PACKAGES-$(PTXCONF_MTD_UTILS) += mtd-utils # # Paths and names # -MTD_UTILS_VERSION := 2.1.3 -MTD_UTILS_MD5 := 32f3e1dcb21adb1185e994f7b2bf14d8 +MTD_UTILS_VERSION := 2.1.4 +MTD_UTILS_MD5 := f1dc14163903dfecd4fe474e0fdcf606 MTD_UTILS := mtd-utils-$(MTD_UTILS_VERSION) MTD_UTILS_SUFFIX := tar.bz2 MTD_UTILS_URL := https://infraroot.at/pub/mtd/$(MTD_UTILS).$(MTD_UTILS_SUFFIX) -- 2.20.1 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
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
Thanks, applied as df2946c8306b1ba0b1ec692caaa3552cefda47c6.
Michael
[sent from post-receive hook]
On Fri, 21 Jan 2022 08:19:43 +0100, Alexander Dahl <ada@thorsis.com> wrote:
> Link: http://lists.infradead.org/pipermail/linux-mtd/2022-January/090742.html
> Signed-off-by: Alexander Dahl <ada@thorsis.com>
> Message-Id: <20220110123940.67341-2-ada@thorsis.com>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
>
> diff --git a/patches/mtd-utils-2.1.3/0001-nandmarkbad-new-util-to-mark-blocks-as-bad.patch b/patches/mtd-utils-2.1.4/0001-nandmarkbad-new-util-to-mark-blocks-as-bad.patch
> similarity index 100%
> rename from patches/mtd-utils-2.1.3/0001-nandmarkbad-new-util-to-mark-blocks-as-bad.patch
> rename to patches/mtd-utils-2.1.4/0001-nandmarkbad-new-util-to-mark-blocks-as-bad.patch
> diff --git a/patches/mtd-utils-2.1.3/autogen.sh b/patches/mtd-utils-2.1.4/autogen.sh
> similarity index 100%
> rename from patches/mtd-utils-2.1.3/autogen.sh
> rename to patches/mtd-utils-2.1.4/autogen.sh
> diff --git a/patches/mtd-utils-2.1.3/series b/patches/mtd-utils-2.1.4/series
> similarity index 100%
> rename from patches/mtd-utils-2.1.3/series
> rename to patches/mtd-utils-2.1.4/series
> diff --git a/rules/mtd-utils.make b/rules/mtd-utils.make
> index d96ab02b0a7d..7414c6b58dd6 100644
> --- a/rules/mtd-utils.make
> +++ b/rules/mtd-utils.make
> @@ -15,8 +15,8 @@ PACKAGES-$(PTXCONF_MTD_UTILS) += mtd-utils
> #
> # Paths and names
> #
> -MTD_UTILS_VERSION := 2.1.3
> -MTD_UTILS_MD5 := 32f3e1dcb21adb1185e994f7b2bf14d8
> +MTD_UTILS_VERSION := 2.1.4
> +MTD_UTILS_MD5 := f1dc14163903dfecd4fe474e0fdcf606
> MTD_UTILS := mtd-utils-$(MTD_UTILS_VERSION)
> MTD_UTILS_SUFFIX := tar.bz2
> MTD_UTILS_URL := https://infraroot.at/pub/mtd/$(MTD_UTILS).$(MTD_UTILS_SUFFIX)
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
Thanks, applied as e348da7b9d2883e3fba1513db815e1389cd3876e.
Michael
[sent from post-receive hook]
On Fri, 21 Jan 2022 08:19:44 +0100, Alexander Dahl <ada@thorsis.com> wrote:
> 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>
>
> diff --git a/rules/mtd-utils.in b/rules/mtd-utils.in
> index 0d8fb5f5a0df..bd7ce94493e5 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 7414c6b58dd6..a049e9896678 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)
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de