summaryrefslogtreecommitdiffstats
path: root/rules/mtd-utils.in
diff options
context:
space:
mode:
Diffstat (limited to 'rules/mtd-utils.in')
-rw-r--r--rules/mtd-utils.in48
1 files changed, 40 insertions, 8 deletions
diff --git a/rules/mtd-utils.in b/rules/mtd-utils.in
index 2cb2b88eb..8cc55caba 100644
--- a/rules/mtd-utils.in
+++ b/rules/mtd-utils.in
@@ -3,10 +3,11 @@
menuconfig MTD_UTILS
tristate
prompt "mtd-utils "
- select LIBC_M if MTD_UTILS_MKFS_UBIFS
+ select GCCLIBS_GCC_S if MTD_UTILS_UBIFORMAT
+ select LIBC_M if MTD_UTILS_MKFS_UBIFS
select ZLIB
- select LIBUUID if MTD_UTILS_UBIFS
- select LIBLZO if MTD_UTILS_USE_LIBLZO
+ select LIBUUID if MTD_UTILS_UBIFS
+ select LIBLZO if MTD_UTILS_USE_LIBLZO
help
Memory Technology Device Utilities
@@ -43,7 +44,7 @@ config MTD_UTILS_FLASH_ERASE
bool
prompt "flash_erase"
help
- Erase parts of a MTD device
+ Erase parts of an MTD device
config MTD_UTILS_FLASH_ERASEALL
bool
@@ -283,7 +284,6 @@ comment "busybox' ubidetach is selected!"
config MTD_UTILS_UBIFORMAT
bool
- select GCCLIBS_GCC_S
prompt "ubiformat"
help
Format an MTD device
@@ -294,12 +294,28 @@ config MTD_UTILS_UBIFS_MOUNTHELPER
help
Simplifies attaching an ubi and mounting an ubifs via /etc/fstab.
-config MTD_UTILS_UBIHEALTHD
+menuconfig MTD_UTILS_UBIHEALTHD
bool
prompt "ubihealthd"
help
Daemon that randomly scans each PEB of a UBI device to ensure that
filesystems with little reading do enough wear leveling.
+ Requires kernel >= 5.1 and glibc >= 2.25.
+
+if MTD_UTILS_UBIHEALTHD
+
+config MTD_UTILS_UBIHEALTHD_STARTSCRIPT
+ bool
+ prompt "install /etc/init.d/ubihealthd"
+ depends on INITMETHOD_BBINIT
+
+config MTD_UTILS_UBIHEALTHD_SYSTEMD_UNIT
+ bool
+ prompt "install systemd unit files"
+ default y
+ depends on SYSTEMD
+
+endif
config MTD_UTILS_UBIMKVOL
bool
@@ -353,6 +369,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"
@@ -370,12 +394,20 @@ config MTD_UTILS_MKFS_UBIFS
help
Create ubifs filesystems
+endif
+
config MTD_UTILS_MTDINFO
bool
prompt "mtdinfo"
help
- Print UBI specific information about MTD devices
+ Print information about MTD devices
-endif
+config MTD_UTILS_TESTS
+ bool
+ prompt "MTD test programs"
+ help
+ MTD test-suite with the following, potentially dangerous, test
+ programs: nandbiterrs, flash_speed, flash_stress, flash_readtest,
+ nandpagetest, nandsubpagetest, and flash_torture.
endif